Remove the test for endianness in configure.ac and regenerate.
[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.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
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_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package| sed 's/-/_/g'`
1155     eval with_$ac_package=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-libcpp         Use libc++ if available (default is NO)
1407   --enable-cxx11          Use c++11 if available (default is NO)
1408   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-static-analyzer
1411                           Enable building of clang Static Analyzer (default is
1412                           YES)
1413   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414   --enable-optimized      Compile with optimizations enabled (default is NO)
1415   --enable-profiling      Compile with profiling enabled (default is NO)
1416   --enable-assertions     Compile with assertion checks enabled (default is
1417                           YES)
1418   --enable-werror         Compile with -Werror enabled (default is NO)
1419   --enable-expensive-checks
1420                           Compile with expensive debug checks enabled (default
1421                           is NO)
1422   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1423                           NO)
1424   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1425                           optimization is on and YES if it's off)
1426   --enable-keep-symbols   Do not strip installed executables)
1427   --enable-jit            Enable Just In Time Compiling (default is YES)
1428   --enable-docs           Build documents (default is YES)
1429   --enable-doxygen        Build doxygen documentation (default is NO)
1430   --enable-threads        Use threads if available (default is YES)
1431   --enable-pthreads       Use pthreads if available (default is YES)
1432   --enable-zlib           Use zlib for compression/decompression if available
1433                           (default is YES)
1434   --enable-pic            Build LLVM with Position Independent Code (default
1435                           is YES)
1436   --enable-shared         Build a shared library and link tools against it
1437                           (default is NO)
1438   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1439                           Win32 DLL (default is NO)
1440   --enable-timestamps     Enable embedding timestamp information in build
1441                           (default is YES)
1442   --enable-backtraces     Enable embedding backtraces on crash (default is
1443                           YES)
1444   --enable-crash-overrides
1445                           Enable crash handling overrides (default is YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-terminfo       Query the terminfo database if available (default is
1457                           YES)
1458   --enable-libffi         Check for the presence of libffi (default is NO)
1459   --enable-ltdl-install   install libltdl
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-optimize-option  Select the compiler options to use for optimized
1465                           builds
1466   --with-extra-options    Specify additional options to compile LLVM with
1467   --with-extra-ld-options Specify additional options to link LLVM with
1468   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1469                           is stdlib)
1470   --with-clang-srcdir     Directory to the out-of-tree Clang source
1471   --with-clang-resource-dir
1472                           Relative directory from the Clang binary for
1473                           resource files
1474   --with-c-include-dirs   Colon separated list of directories clang will
1475                           search for headers
1476   --with-gcc-toolchain    Directory where gcc is installed.
1477   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1478   --with-binutils-include Specify path to binutils/include/ containing
1479                           plugin-api.h file for gold plugin.
1480   --with-bug-report-url   Specify the URL where bug reports should be
1481                           submitted (default=http://llvm.org/bugs/)
1482   --with-internal-prefix  Installation directory for internal files
1483   --with-python           path to python
1484   --with-udis86=<path>    Use udis86 external x86 disassembler library
1485   --with-oprofile=<prefix>
1486                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1487   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CXX         C++ compiler command
1498   CXXFLAGS    C++ compiler flags
1499   CPP         C preprocessor
1500   CXXCPP      C++ preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <http://llvm.org/bugs/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511   # If there are subdirs, report their specific --help.
1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513     test -d "$ac_dir" || continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 LLVM configure 3.5svn
1567 generated by GNU Autoconf 2.60
1568
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573
1574 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1575 _ACEOF
1576   exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by LLVM $as_me 3.5svn, which was
1583 generated by GNU Autoconf 2.60.  Invocation command line was
1584
1585   $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1603
1604 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1605 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1608 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1609 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1610 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646   for ac_arg
1647   do
1648     case $ac_arg in
1649     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651     | -silent | --silent | --silen | --sile | --sil)
1652       continue ;;
1653     *\'*)
1654       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655     esac
1656     case $ac_pass in
1657     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658     2)
1659       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660       if test $ac_must_keep_next = true; then
1661         ac_must_keep_next=false # Got value, back to normal.
1662       else
1663         case $ac_arg in
1664           *=* | --config-cache | -C | -disable-* | --disable-* \
1665           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667           | -with-* | --with-* | -without-* | --without-* | --x)
1668             case "$ac_configure_args0 " in
1669               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670             esac
1671             ;;
1672           -* ) ac_must_keep_next=true ;;
1673         esac
1674       fi
1675       ac_configure_args="$ac_configure_args '$ac_arg'"
1676       ;;
1677     esac
1678   done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log.  We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689   # Save into config.log some information that might help in debugging.
1690   {
1691     echo
1692
1693     cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698     echo
1699     # The following way of writing the cache mishandles newlines in values,
1700 (
1701   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702     eval ac_val=\$$ac_var
1703     case $ac_val in #(
1704     *${as_nl}*)
1705       case $ac_var in #(
1706       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708       esac
1709       case $ac_var in #(
1710       _ | IFS | as_nl) ;; #(
1711       *) $as_unset $ac_var ;;
1712       esac ;;
1713     esac
1714   done
1715   (set) 2>&1 |
1716     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717     *${as_nl}ac_space=\ *)
1718       sed -n \
1719         "s/'\''/'\''\\\\'\'''\''/g;
1720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721       ;; #(
1722     *)
1723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724       ;;
1725     esac |
1726     sort
1727 )
1728     echo
1729
1730     cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735     echo
1736     for ac_var in $ac_subst_vars
1737     do
1738       eval ac_val=\$$ac_var
1739       case $ac_val in
1740       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741       esac
1742       echo "$ac_var='\''$ac_val'\''"
1743     done | sort
1744     echo
1745
1746     if test -n "$ac_subst_files"; then
1747       cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752       echo
1753       for ac_var in $ac_subst_files
1754       do
1755         eval ac_val=\$$ac_var
1756         case $ac_val in
1757         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758         esac
1759         echo "$ac_var='\''$ac_val'\''"
1760       done | sort
1761       echo
1762     fi
1763
1764     if test -s confdefs.h; then
1765       cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770       echo
1771       cat confdefs.h
1772       echo
1773     fi
1774     test "$ac_signal" != 0 &&
1775       echo "$as_me: caught signal $ac_signal"
1776     echo "$as_me: exit $exit_status"
1777   } >&5
1778   rm -f core *.core core.conftest.* &&
1779     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780     exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1786
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1789
1790 # Predefined preprocessor variables.
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1815
1816
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820   set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824   set x "$ac_default_prefix/share/config.site" \
1825         "$ac_default_prefix/etc/config.site"
1826 fi
1827 shift
1828 for ac_site_file
1829 do
1830   if test -r "$ac_site_file"; then
1831     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833     sed 's/^/| /' "$ac_site_file" >&5
1834     . "$ac_site_file"
1835   fi
1836 done
1837
1838 if test -r "$cache_file"; then
1839   # Some versions of bash will fail to source /dev/null (special
1840   # files actually), so we avoid doing that.
1841   if test -f "$cache_file"; then
1842     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844     case $cache_file in
1845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846       *)                      . "./$cache_file";;
1847     esac
1848   fi
1849 else
1850   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852   >$cache_file
1853 fi
1854
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860   eval ac_new_set=\$ac_env_${ac_var}_set
1861   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862   eval ac_new_val=\$ac_env_${ac_var}_value
1863   case $ac_old_set,$ac_new_set in
1864     set,)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,set)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,);;
1873     *)
1874       if test "x$ac_old_val" != "x$ac_new_val"; then
1875         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1878 echo "$as_me:   former value:  $ac_old_val" >&2;}
1879         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1880 echo "$as_me:   current value: $ac_new_val" >&2;}
1881         ac_cache_corrupted=:
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901    { (exit 1); exit 1; }; }
1902 fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936 cat >>confdefs.h <<\_ACEOF
1937 #define LLVM_VERSION_MAJOR 3
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MINOR 5
1943 _ACEOF
1944
1945
1946 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1947
1948
1949
1950
1951
1952
1953
1954 ac_aux_dir=
1955 for ac_dir in autoconf "$srcdir"/autoconf; do
1956   if test -f "$ac_dir/install-sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install-sh -c"
1959     break
1960   elif test -f "$ac_dir/install.sh"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/install.sh -c"
1963     break
1964   elif test -f "$ac_dir/shtool"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/shtool install -c"
1967     break
1968   fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985
1986 if test ${srcdir} != "." ; then
1987   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990    { (exit 1); exit 1; }; }
1991   fi
1992 fi
1993
1994 : ${CFLAGS=}
1995 : ${CXXFLAGS=}
1996
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003   for ac_prog in clang llvm-gcc gcc
2004   do
2005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$CC"; then
2013   ac_cv_prog_CC="$CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028 IFS=$as_save_IFS
2029
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   { echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6; }
2036 else
2037   { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2039 fi
2040
2041
2042     test -n "$CC" && break
2043   done
2044 fi
2045 if test -z "$CC"; then
2046   ac_ct_CC=$CC
2047   for ac_prog in clang llvm-gcc gcc
2048 do
2049   # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$ac_ct_CC"; then
2057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066     ac_cv_prog_ac_ct_CC="$ac_prog"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072 IFS=$as_save_IFS
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6; }
2080 else
2081   { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2083 fi
2084
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   if test "x$ac_ct_CC" = x; then
2090     CC=""
2091   else
2092     case $cross_compiling:$ac_tool_warned in
2093 yes:)
2094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet.  If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet.  If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2101 esac
2102     CC=$ac_ct_CC
2103   fi
2104 fi
2105
2106
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111    { (exit 1); exit 1; }; }
2112
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO: checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (ac_try="$ac_compiler --version >&5"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122   (eval "$ac_compiler --version >&5") 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (ac_try="$ac_compiler -v >&5"
2127 case "(($ac_try" in
2128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129   *) ac_try_echo=$ac_try;;
2130 esac
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132   (eval "$ac_compiler -v >&5") 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136 { (ac_try="$ac_compiler -V >&5"
2137 case "(($ac_try" in
2138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139   *) ac_try_echo=$ac_try;;
2140 esac
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142   (eval "$ac_compiler -V >&5") 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }
2146
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 #
2171 # List of possible output files, starting from the most likely.
2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173 # only as a last resort.  b.out is created by i960 compilers.
2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2175 #
2176 # The IRIX 6 linker writes into existing files which may not be
2177 # executable, retaining their permissions.  Remove them first so a
2178 # subsequent execution test works.
2179 ac_rmfiles=
2180 for ac_file in $ac_files
2181 do
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185   esac
2186 done
2187 rm -f $ac_rmfiles
2188
2189 if { (ac_try="$ac_link_default"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195   (eval "$ac_link_default") 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2202 # so that the user can short-circuit this test for compilers unknown to
2203 # Autoconf.
2204 for ac_file in $ac_files
2205 do
2206   test -f "$ac_file" || continue
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2216         then :; else
2217            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218         fi
2219         # We set ac_cv_exeext here because the later test for it is not
2220         # safe: cross compilers may not add the suffix if given an `-o'
2221         # argument, so we may need to know it at that point already.
2222         # Even if this section looks crufty: it has the advantage of
2223         # actually working.
2224         break;;
2225     * )
2226         break;;
2227   esac
2228 done
2229 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239    { (exit 77); exit 77; }; }
2240 fi
2241
2242 ac_exeext=$ac_cv_exeext
2243 { echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6; }
2245
2246 # Check that the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253   if { ac_try='./$ac_file'
2254   { (case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_try") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263     cross_compiling=no
2264   else
2265     if test "$cross_compiling" = maybe; then
2266         cross_compiling=yes
2267     else
2268         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275     fi
2276   fi
2277 fi
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2280
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check that the compiler produces executables we can run.  If not, either
2284 # the compiler is broken, or we cross compile.
2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6; }
2289
2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292 if { (ac_try="$ac_link"
2293 case "(($ac_try" in
2294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295   *) ac_try_echo=$ac_try;;
2296 esac
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298   (eval "$ac_link") 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; then
2302   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2304 # work properly (i.e., refer to `conftest.exe'), while it won't with
2305 # `rm'.
2306 for ac_file in conftest.exe conftest conftest.*; do
2307   test -f "$ac_file" || continue
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311           break;;
2312     * ) break;;
2313   esac
2314 done
2315 else
2316   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 rm -f conftest$ac_cv_exeext
2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2326
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332 if test "${ac_cv_objext+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341
2342 int
2343 main ()
2344 {
2345
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.o conftest.obj
2351 if { (ac_try="$ac_compile"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357   (eval "$ac_compile") 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; then
2361   for ac_file in conftest.o conftest.obj conftest.*; do
2362   test -f "$ac_file" || continue;
2363   case $ac_file in
2364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366        break;;
2367   esac
2368 done
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379
2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381 fi
2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383 echo "${ECHO_T}$ac_cv_objext" >&6; }
2384 OBJEXT=$ac_cv_objext
2385 ac_objext=$OBJEXT
2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397
2398 int
2399 main ()
2400 {
2401 #ifndef __GNUC__
2402        choke me
2403 #endif
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_compile") 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424   { (case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429   (eval "$ac_try") 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439   (eval "$ac_try") 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_compiler_gnu=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448         ac_compiler_gnu=no
2449 fi
2450
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454 fi
2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_save_c_werror_flag=$ac_c_werror_flag
2466    ac_c_werror_flag=yes
2467    ac_cv_prog_cc_g=no
2468    CFLAGS="-g"
2469    cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_compile") 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499   { (case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504   (eval "$ac_try") 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; } &&
2508          { ac_try='test -s conftest.$ac_objext'
2509   { (case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_try") 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_prog_cc_g=yes
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523         CFLAGS=""
2524       cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h.  */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h.  */
2530
2531 int
2532 main ()
2533 {
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_compile") 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554   { (case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_try") 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578         ac_c_werror_flag=$ac_save_c_werror_flag
2579          CFLAGS="-g"
2580          cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compile") 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610   { (case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_try") 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_try") 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_cv_prog_cc_g=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644    ac_c_werror_flag=$ac_save_c_werror_flag
2645 fi
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709    inside strings and character constants.  */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 do
2730   CC="$ac_save_CC $ac_arg"
2731   rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746   { (case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_try") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_try") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   ac_cv_prog_cc_c89=$ac_arg
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext
2774   test "x$ac_cv_prog_cc_c89" != "xno" && break
2775 done
2776 rm -f conftest.$ac_ext
2777 CC=$ac_save_CC
2778
2779 fi
2780 # AC_CACHE_VAL
2781 case "x$ac_cv_prog_cc_c89" in
2782   x)
2783     { echo "$as_me:$LINENO: result: none needed" >&5
2784 echo "${ECHO_T}none needed" >&6; } ;;
2785   xno)
2786     { echo "$as_me:$LINENO: result: unsupported" >&5
2787 echo "${ECHO_T}unsupported" >&6; } ;;
2788   *)
2789     CC="$CC $ac_cv_prog_cc_c89"
2790     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 esac
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 ac_ext=cpp
2802 ac_cpp='$CXXCPP $CPPFLAGS'
2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806 if test -z "$CXX"; then
2807   if test -n "$CCC"; then
2808     CXX=$CCC
2809   else
2810     if test -n "$ac_tool_prefix"; then
2811   for ac_prog in clang++ llvm-g++ g++
2812   do
2813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CXX+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CXX"; then
2821   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CXX=$ac_cv_prog_CXX
2841 if test -n "$CXX"; then
2842   { echo "$as_me:$LINENO: result: $CXX" >&5
2843 echo "${ECHO_T}$CXX" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850     test -n "$CXX" && break
2851   done
2852 fi
2853 if test -z "$CXX"; then
2854   ac_ct_CXX=$CXX
2855   for ac_prog in clang++ llvm-g++ g++
2856 do
2857   # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   if test -n "$ac_ct_CXX"; then
2865   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872   for ac_exec_ext in '' $ac_executable_extensions; do
2873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874     ac_cv_prog_ac_ct_CXX="$ac_prog"
2875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885 if test -n "$ac_ct_CXX"; then
2886   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2888 else
2889   { echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6; }
2891 fi
2892
2893
2894   test -n "$ac_ct_CXX" && break
2895 done
2896
2897   if test "x$ac_ct_CXX" = x; then
2898     CXX="g++"
2899   else
2900     case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet.  If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&5
2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908 ac_tool_warned=yes ;;
2909 esac
2910     CXX=$ac_ct_CXX
2911   fi
2912 fi
2913
2914   fi
2915 fi
2916 # Provide some information about the compiler.
2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918 ac_compiler=`set X $ac_compile; echo $2`
2919 { (ac_try="$ac_compiler --version >&5"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925   (eval "$ac_compiler --version >&5") 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compiler -v >&5") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (ac_try="$ac_compiler -V >&5"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compiler -V >&5") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }
2949
2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965 #ifndef __GNUC__
2966        choke me
2967 #endif
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compile") 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988   { (case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_try") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003   (eval "$ac_try") 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }; }; then
3007   ac_compiler_gnu=yes
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012         ac_compiler_gnu=no
3013 fi
3014
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017
3018 fi
3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021 GXX=`test $ac_compiler_gnu = yes && echo yes`
3022 ac_test_CXXFLAGS=${CXXFLAGS+set}
3023 ac_save_CXXFLAGS=$CXXFLAGS
3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030    ac_cxx_werror_flag=yes
3031    ac_cv_prog_cxx_g=no
3032    CXXFLAGS="-g"
3033    cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compile") 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } &&
3062          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_try") 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   ac_cv_prog_cxx_g=yes
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087         CXXFLAGS=""
3088       cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 int
3096 main ()
3097 {
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compile") 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   :
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3143          CXXFLAGS="-g"
3144          cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174   { (case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; } &&
3183          { ac_try='test -s conftest.$ac_objext'
3184   { (case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_try") 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_prog_cxx_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213   CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215   if test "$GXX" = yes; then
3216     CXXFLAGS="-g -O2"
3217   else
3218     CXXFLAGS="-g"
3219   fi
3220 else
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-O2"
3223   else
3224     CXXFLAGS=
3225   fi
3226 fi
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null; then
3286   if test -s conftest.err; then
3287     ac_cpp_err=$ac_c_preproc_warn_flag
3288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307   # OK, works on sane cases.  Now check whether nonexistent headers
3308   # can be detected and how.
3309   cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (ac_try="$ac_cpp conftest.$ac_ext"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } >/dev/null; then
3330   if test -s conftest.err; then
3331     ac_cpp_err=$ac_c_preproc_warn_flag
3332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333   else
3334     ac_cpp_err=
3335   fi
3336 else
3337   ac_cpp_err=yes
3338 fi
3339 if test -z "$ac_cpp_err"; then
3340   # Broken: success on invalid input.
3341 continue
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346   # Passes both tests.
3347 ac_preproc_ok=:
3348 break
3349 fi
3350
3351 rm -f conftest.err conftest.$ac_ext
3352
3353 done
3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355 rm -f conftest.err conftest.$ac_ext
3356 if $ac_preproc_ok; then
3357   break
3358 fi
3359
3360     done
3361     ac_cv_prog_CPP=$CPP
3362
3363 fi
3364   CPP=$ac_cv_prog_CPP
3365 else
3366   ac_cv_prog_CPP=$CPP
3367 fi
3368 { echo "$as_me:$LINENO: result: $CPP" >&5
3369 echo "${ECHO_T}$CPP" >&6; }
3370 ac_preproc_ok=false
3371 for ac_c_preproc_warn_flag in '' yes
3372 do
3373   # Use a header file that comes with gcc, so configuring glibc
3374   # with a fresh cross-compiler works.
3375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376   # <limits.h> exists even on freestanding compilers.
3377   # On the NeXT, cc -E runs the code through the compiler's parser,
3378   # not just through cpp. "Syntax error" is here to catch this case.
3379   cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385 #ifdef __STDC__
3386 # include <limits.h>
3387 #else
3388 # include <assert.h>
3389 #endif
3390                      Syntax error
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } >/dev/null; then
3405   if test -s conftest.err; then
3406     ac_cpp_err=$ac_c_preproc_warn_flag
3407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408   else
3409     ac_cpp_err=
3410   fi
3411 else
3412   ac_cpp_err=yes
3413 fi
3414 if test -z "$ac_cpp_err"; then
3415   :
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Broken: fails on valid input.
3421 continue
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426   # OK, works on sane cases.  Now check whether nonexistent headers
3427   # can be detected and how.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } >/dev/null; then
3449   if test -s conftest.err; then
3450     ac_cpp_err=$ac_c_preproc_warn_flag
3451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452   else
3453     ac_cpp_err=
3454   fi
3455 else
3456   ac_cpp_err=yes
3457 fi
3458 if test -z "$ac_cpp_err"; then
3459   # Broken: success on invalid input.
3460 continue
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465   # Passes both tests.
3466 ac_preproc_ok=:
3467 break
3468 fi
3469
3470 rm -f conftest.err conftest.$ac_ext
3471
3472 done
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3476   :
3477 else
3478   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492 if test "$CXX" = "clang++" ; then
3493   { echo "$as_me:$LINENO: checking whether clang works" >&5
3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3495   ac_ext=cpp
3496 ac_cpp='$CXXCPP $CPPFLAGS'
3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500
3501
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <limits>
3509 #if __has_include (<cxxabi.h>)
3510 #include <cxxabi.h>
3511 #endif
3512 #if __has_include (<unwind.h>)
3513 #include <unwind.h>
3514 #endif
3515
3516 int
3517 main ()
3518 {
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_compile") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539   { (case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_try") 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; } &&
3548          { ac_try='test -s conftest.$ac_objext'
3549   { (case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554   (eval "$ac_try") 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558
3559   { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3561
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566
3567   { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3569   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3570 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3571    { (exit 1); exit 1; }; }
3572
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582 fi
3583
3584
3585
3586 if test -d ${srcdir}/projects/llvm-gcc ; then
3587   subdirs="$subdirs projects/llvm-gcc"
3588
3589 fi
3590
3591 if test -d ${srcdir}/projects/test-suite ; then
3592   subdirs="$subdirs projects/test-suite"
3593
3594 fi
3595
3596 if test -d ${srcdir}/projects/llvm-test ; then
3597   subdirs="$subdirs projects/llvm-test"
3598
3599 fi
3600
3601 if test -d ${srcdir}/projects/poolalloc ; then
3602   subdirs="$subdirs projects/poolalloc"
3603
3604 fi
3605
3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607   subdirs="$subdirs projects/llvm-poolalloc"
3608
3609 fi
3610
3611 for i in `ls ${srcdir}/projects`
3612 do
3613   if test -d ${srcdir}/projects/${i} ; then
3614     case ${i} in
3615       sample)       subdirs="$subdirs projects/sample"
3616     ;;
3617       privbracket)  subdirs="$subdirs projects/privbracket"
3618  ;;
3619       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3620  ;;
3621       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3622 ;;
3623       llvm-java)    subdirs="$subdirs projects/llvm-java"
3624  ;;
3625       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3626    ;;
3627       safecode)     subdirs="$subdirs projects/safecode"
3628  ;;
3629       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3630  ;;
3631       compiler-rt)       ;;
3632       llvm-gcc)       ;;
3633       test-suite)     ;;
3634       llvm-test)      ;;
3635       poolalloc)      ;;
3636       llvm-poolalloc) ;;
3637       *)
3638         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3640         ;;
3641     esac
3642   fi
3643 done
3644
3645 # Check whether --enable-polly was given.
3646 if test "${enable_polly+set}" = set; then
3647   enableval=$enable_polly;
3648 else
3649   enableval=default
3650 fi
3651
3652 case "$enableval" in
3653   yes) ENABLE_POLLY=1
3654  ;;
3655   no)  ENABLE_POLLY=0
3656  ;;
3657   default) ENABLE_POLLY=1
3658  ;;
3659   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661    { (exit 1); exit 1; }; } ;;
3662 esac
3663
3664
3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666   LLVM_HAS_POLLY=1
3667
3668   subdirs="$subdirs tools/polly"
3669
3670 fi
3671
3672
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677    { (exit 1); exit 1; }; }
3678
3679 { echo "$as_me:$LINENO: checking build system type" >&5
3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690    { (exit 1); exit 1; }; }
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694    { (exit 1); exit 1; }; }
3695
3696 fi
3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 echo "${ECHO_T}$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3700 *-*-*) ;;
3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 echo "$as_me: error: invalid value of canonical build" >&2;}
3703    { (exit 1); exit 1; }; };;
3704 esac
3705 build=$ac_cv_build
3706 ac_save_IFS=$IFS; IFS='-'
3707 set x $ac_cv_build
3708 shift
3709 build_cpu=$1
3710 build_vendor=$2
3711 shift; shift
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3714 build_os=$*
3715 IFS=$ac_save_IFS
3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717
3718
3719 { echo "$as_me:$LINENO: checking host system type" >&5
3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if test "x$host_alias" = x; then
3725   ac_cv_host=$ac_cv_build
3726 else
3727   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 case $ac_cv_host in
3737 *-*-*) ;;
3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 echo "$as_me: error: invalid value of canonical host" >&2;}
3740    { (exit 1); exit 1; }; };;
3741 esac
3742 host=$ac_cv_host
3743 ac_save_IFS=$IFS; IFS='-'
3744 set x $ac_cv_host
3745 shift
3746 host_cpu=$1
3747 host_vendor=$2
3748 shift; shift
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3751 host_os=$*
3752 IFS=$ac_save_IFS
3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756 { echo "$as_me:$LINENO: checking target system type" >&5
3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758 if test "${ac_cv_target+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test "x$target_alias" = x; then
3762   ac_cv_target=$ac_cv_host
3763 else
3764   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772 echo "${ECHO_T}$ac_cv_target" >&6; }
3773 case $ac_cv_target in
3774 *-*-*) ;;
3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776 echo "$as_me: error: invalid value of canonical target" >&2;}
3777    { (exit 1); exit 1; }; };;
3778 esac
3779 target=$ac_cv_target
3780 ac_save_IFS=$IFS; IFS='-'
3781 set x $ac_cv_target
3782 shift
3783 target_cpu=$1
3784 target_vendor=$2
3785 shift; shift
3786 # Remember, the first character of IFS is used to create $*,
3787 # except with old shells:
3788 target_os=$*
3789 IFS=$ac_save_IFS
3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791
3792
3793 # The aliases save the names the user supplied, while $host etc.
3794 # will get canonicalized.
3795 test -n "$target_alias" &&
3796   test "$program_prefix$program_suffix$program_transform_name" = \
3797     NONENONEs,x,x, &&
3798   program_prefix=${target_alias}-
3799
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802 if test "${llvm_cv_os_type+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   case $host in
3806   *-*-aix*)
3807     llvm_cv_link_all_option="-Wl,--whole-archive"
3808     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809     llvm_cv_os_type="AIX"
3810     llvm_cv_platform_type="Unix" ;;
3811   *-*-irix*)
3812     llvm_cv_link_all_option="-Wl,--whole-archive"
3813     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814     llvm_cv_os_type="IRIX"
3815     llvm_cv_platform_type="Unix" ;;
3816   *-*-cygwin*)
3817     llvm_cv_link_all_option="-Wl,--whole-archive"
3818     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819     llvm_cv_os_type="Cygwin"
3820     llvm_cv_platform_type="Unix" ;;
3821   *-*-darwin*)
3822     llvm_cv_link_all_option="-Wl,-all_load"
3823     llvm_cv_no_link_all_option="-Wl,-noall_load"
3824     llvm_cv_os_type="Darwin"
3825     llvm_cv_platform_type="Unix" ;;
3826   *-*-minix*)
3827     llvm_cv_link_all_option="-Wl,-all_load"
3828     llvm_cv_no_link_all_option="-Wl,-noall_load"
3829     llvm_cv_os_type="Minix"
3830     llvm_cv_platform_type="Unix" ;;
3831   *-*-freebsd*)
3832     llvm_cv_link_all_option="-Wl,--whole-archive"
3833     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834     llvm_cv_os_type="FreeBSD"
3835     llvm_cv_platform_type="Unix" ;;
3836   *-*-kfreebsd-gnu)
3837     llvm_cv_link_all_option="-Wl,--whole-archive"
3838     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839     llvm_cv_os_type="GNU/kFreeBSD"
3840     llvm_cv_platform_type="Unix" ;;
3841   *-*-openbsd*)
3842     llvm_cv_link_all_option="-Wl,--whole-archive"
3843     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844     llvm_cv_os_type="OpenBSD"
3845     llvm_cv_platform_type="Unix" ;;
3846   *-*-netbsd*)
3847     llvm_cv_link_all_option="-Wl,--whole-archive"
3848     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849     llvm_cv_os_type="NetBSD"
3850     llvm_cv_platform_type="Unix" ;;
3851   *-*-dragonfly*)
3852     llvm_cv_link_all_option="-Wl,--whole-archive"
3853     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854     llvm_cv_os_type="DragonFly"
3855     llvm_cv_platform_type="Unix" ;;
3856   *-*-hpux*)
3857     llvm_cv_link_all_option="-Wl,--whole-archive"
3858     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859     llvm_cv_os_type="HP-UX"
3860     llvm_cv_platform_type="Unix" ;;
3861   *-*-interix*)
3862     llvm_cv_link_all_option="-Wl,--whole-archive"
3863     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864     llvm_cv_os_type="Interix"
3865     llvm_cv_platform_type="Unix" ;;
3866   *-*-linux*)
3867     llvm_cv_link_all_option="-Wl,--whole-archive"
3868     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869     llvm_cv_os_type="Linux"
3870     llvm_cv_platform_type="Unix" ;;
3871   *-*-gnu*)
3872     llvm_cv_link_all_option="-Wl,--whole-archive"
3873     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874     llvm_cv_os_type="GNU"
3875     llvm_cv_platform_type="Unix" ;;
3876   *-*-solaris*)
3877     llvm_cv_link_all_option="-Wl,-z,allextract"
3878     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879     llvm_cv_os_type="SunOS"
3880     llvm_cv_platform_type="Unix" ;;
3881   *-*-auroraux*)
3882     llvm_cv_link_all_option="-Wl,-z,allextract"
3883     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884     llvm_cv_os_type="AuroraUX"
3885     llvm_cv_platform_type="Unix" ;;
3886   *-*-win32*)
3887     llvm_cv_link_all_option="-Wl,--whole-archive"
3888     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889     llvm_cv_os_type="Win32"
3890     llvm_cv_platform_type="Win32" ;;
3891   *-*-mingw*)
3892     llvm_cv_link_all_option="-Wl,--whole-archive"
3893     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894     llvm_cv_os_type="MingW"
3895     llvm_cv_platform_type="Win32" ;;
3896   *-*-haiku*)
3897     llvm_cv_link_all_option="-Wl,--whole-archive"
3898     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899     llvm_cv_os_type="Haiku"
3900     llvm_cv_platform_type="Unix" ;;
3901   *-unknown-eabi*)
3902     llvm_cv_link_all_option="-Wl,--whole-archive"
3903     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904     llvm_cv_os_type="Freestanding"
3905     llvm_cv_platform_type="Unix" ;;
3906   *-unknown-elf*)
3907     llvm_cv_link_all_option="-Wl,--whole-archive"
3908     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909     llvm_cv_os_type="Freestanding"
3910     llvm_cv_platform_type="Unix" ;;
3911   *)
3912     llvm_cv_link_all_option=""
3913     llvm_cv_no_link_all_option=""
3914     llvm_cv_os_type="Unknown"
3915     llvm_cv_platform_type="Unknown" ;;
3916 esac
3917 fi
3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3920
3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923 if test "${llvm_cv_target_os_type+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   case $target in
3927   *-*-aix*)
3928     llvm_cv_target_os_type="AIX" ;;
3929   *-*-irix*)
3930     llvm_cv_target_os_type="IRIX" ;;
3931   *-*-cygwin*)
3932     llvm_cv_target_os_type="Cygwin" ;;
3933   *-*-darwin*)
3934     llvm_cv_target_os_type="Darwin" ;;
3935   *-*-minix*)
3936     llvm_cv_target_os_type="Minix" ;;
3937   *-*-freebsd*)
3938     llvm_cv_target_os_type="FreeBSD" ;;
3939   *-*-kfreebsd-gnu)
3940     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3941   *-*-openbsd*)
3942     llvm_cv_target_os_type="OpenBSD" ;;
3943   *-*-netbsd*)
3944     llvm_cv_target_os_type="NetBSD" ;;
3945   *-*-dragonfly*)
3946     llvm_cv_target_os_type="DragonFly" ;;
3947   *-*-hpux*)
3948     llvm_cv_target_os_type="HP-UX" ;;
3949   *-*-interix*)
3950     llvm_cv_target_os_type="Interix" ;;
3951   *-*-linux*)
3952     llvm_cv_target_os_type="Linux" ;;
3953   *-*-gnu*)
3954     llvm_cv_target_os_type="GNU" ;;
3955   *-*-solaris*)
3956     llvm_cv_target_os_type="SunOS" ;;
3957   *-*-auroraux*)
3958     llvm_cv_target_os_type="AuroraUX" ;;
3959   *-*-win32*)
3960     llvm_cv_target_os_type="Win32" ;;
3961   *-*-mingw*)
3962     llvm_cv_target_os_type="MingW" ;;
3963   *-*-haiku*)
3964     llvm_cv_target_os_type="Haiku" ;;
3965   *-*-rtems*)
3966     llvm_cv_target_os_type="RTEMS" ;;
3967   *-*-nacl*)
3968     llvm_cv_target_os_type="NativeClient" ;;
3969   *-unknown-eabi*)
3970     llvm_cv_target_os_type="Freestanding" ;;
3971   *)
3972     llvm_cv_target_os_type="Unknown" ;;
3973 esac
3974 fi
3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3977
3978 if test "$llvm_cv_os_type" = "Unknown" ; then
3979   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981    { (exit 1); exit 1; }; }
3982 fi
3983
3984 OS=$llvm_cv_os_type
3985
3986 HOST_OS=$llvm_cv_os_type
3987
3988 TARGET_OS=$llvm_cv_target_os_type
3989
3990
3991 LINKALL=$llvm_cv_link_all_option
3992
3993 NOLINKALL=$llvm_cv_no_link_all_option
3994
3995
3996 case $llvm_cv_platform_type in
3997   Unix)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_UNIX 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=1
4004
4005     LLVM_ON_WIN32=0
4006
4007     ;;
4008   Win32)
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LLVM_ON_WIN32 1
4012 _ACEOF
4013
4014     LLVM_ON_UNIX=0
4015
4016     LLVM_ON_WIN32=1
4017
4018     ;;
4019 esac
4020
4021 { echo "$as_me:$LINENO: checking target architecture" >&5
4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023 if test "${llvm_cv_target_arch+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $target in
4027   i?86-*)                 llvm_cv_target_arch="x86" ;;
4028   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4029   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4030   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4031   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4032   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4033   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4034   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4035   xcore-*)                llvm_cv_target_arch="XCore" ;;
4036   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4037   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4038   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4039   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4040   *)                      llvm_cv_target_arch="Unknown" ;;
4041 esac
4042 fi
4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045
4046 if test "$llvm_cv_target_arch" = "Unknown" ; then
4047   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4049 fi
4050
4051 case "$llvm_cv_target_arch" in
4052     x86)     LLVM_NATIVE_ARCH="X86" ;;
4053     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4054     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4055 esac
4056
4057 ARCH=$llvm_cv_target_arch
4058
4059
4060 case $host in
4061   i?86-*)                 host_arch="x86" ;;
4062   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4063   sparc*-*)               host_arch="Sparc" ;;
4064   powerpc*-*)             host_arch="PowerPC" ;;
4065   arm*-*)                 host_arch="ARM" ;;
4066   aarch64*-*)             host_arch="AArch64" ;;
4067   mips-* | mips64-*)      host_arch="Mips" ;;
4068   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4069   xcore-*)                host_arch="XCore" ;;
4070   msp430-*)               host_arch="MSP430" ;;
4071   hexagon-*)              host_arch="Hexagon" ;;
4072   s390x-*)                host_arch="SystemZ" ;;
4073   *)                      host_arch="Unknown" ;;
4074 esac
4075
4076 if test "$host_arch" = "Unknown" ; then
4077   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 fi
4080
4081 HOST_ARCH=$host_arch
4082
4083
4084 if test "$cross_compiling" = yes; then
4085   LLVM_CROSS_COMPILING=1
4086
4087
4088 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4089 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4090 if test "${ac_cv_build_exeext+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4094   ac_cv_build_exeext=.exe
4095 else
4096   ac_build_prefix=${build_alias}-
4097
4098   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4099 set dummy ${ac_build_prefix}gcc; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   if test -n "$BUILD_CC"; then
4106   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113   for ac_exec_ext in '' $ac_executable_extensions; do
4114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4115     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117     break 2
4118   fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 BUILD_CC=$ac_cv_prog_BUILD_CC
4126 if test -n "$BUILD_CC"; then
4127   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4128 echo "${ECHO_T}$BUILD_CC" >&6; }
4129 else
4130   { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4132 fi
4133
4134
4135   if test -z "$BUILD_CC"; then
4136      # Extract the first word of "gcc", so it can be a program name with args.
4137 set dummy gcc; ac_word=$2
4138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4140 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if test -n "$BUILD_CC"; then
4144   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151   for ac_exec_ext in '' $ac_executable_extensions; do
4152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4153     ac_cv_prog_BUILD_CC="gcc"
4154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 BUILD_CC=$ac_cv_prog_BUILD_CC
4164 if test -n "$BUILD_CC"; then
4165   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4166 echo "${ECHO_T}$BUILD_CC" >&6; }
4167 else
4168   { echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6; }
4170 fi
4171
4172
4173      if test -z "$BUILD_CC"; then
4174        # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$BUILD_CC"; then
4182   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4183 else
4184   ac_prog_rejected=no
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193        ac_prog_rejected=yes
4194        continue
4195      fi
4196     ac_cv_prog_BUILD_CC="cc"
4197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 if test $ac_prog_rejected = yes; then
4205   # We found a bogon in the path, so make sure we never use it.
4206   set dummy $ac_cv_prog_BUILD_CC
4207   shift
4208   if test $# != 0; then
4209     # We chose a different compiler from the bogus one.
4210     # However, it has the same basename, so the bogon will be chosen
4211     # first if we set BUILD_CC to just the basename; use the full file name.
4212     shift
4213     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4214   fi
4215 fi
4216 fi
4217 fi
4218 BUILD_CC=$ac_cv_prog_BUILD_CC
4219 if test -n "$BUILD_CC"; then
4220   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4221 echo "${ECHO_T}$BUILD_CC" >&6; }
4222 else
4223   { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4225 fi
4226
4227
4228      fi
4229   fi
4230   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4231 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4232    { (exit 1); exit 1; }; }
4233   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4234   rm -f conftest*
4235   echo 'int main () { return 0; }' > conftest.$ac_ext
4236   ac_cv_build_exeext=
4237   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4238   (eval $ac_build_link) 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; then
4242     for file in conftest.*; do
4243       case $file in
4244       *.c | *.o | *.obj | *.dSYM) ;;
4245       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4246       esac
4247     done
4248   else
4249     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4250 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4251    { (exit 1); exit 1; }; }
4252   fi
4253   rm -f conftest*
4254   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4255 fi
4256 fi
4257
4258 BUILD_EXEEXT=""
4259 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4260 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4261 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4262 ac_build_exeext=$BUILD_EXEEXT
4263
4264   ac_build_prefix=${build_alias}-
4265   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4266 set dummy ${ac_build_prefix}g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   if test -n "$BUILD_CXX"; then
4273   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280   for ac_exec_ext in '' $ac_executable_extensions; do
4281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4282     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4293 if test -n "$BUILD_CXX"; then
4294   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4295 echo "${ECHO_T}$BUILD_CXX" >&6; }
4296 else
4297   { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4299 fi
4300
4301
4302   if test -z "$BUILD_CXX"; then
4303      # Extract the first word of "g++", so it can be a program name with args.
4304 set dummy g++; ac_word=$2
4305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4307 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   if test -n "$BUILD_CXX"; then
4311   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318   for ac_exec_ext in '' $ac_executable_extensions; do
4319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4320     ac_cv_prog_BUILD_CXX="g++"
4321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4331 if test -n "$BUILD_CXX"; then
4332   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4333 echo "${ECHO_T}$BUILD_CXX" >&6; }
4334 else
4335   { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4337 fi
4338
4339
4340      if test -z "$BUILD_CXX"; then
4341        # Extract the first word of "c++", so it can be a program name with args.
4342 set dummy c++; ac_word=$2
4343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4345 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   if test -n "$BUILD_CXX"; then
4349   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4350 else
4351   ac_prog_rejected=no
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_exec_ext in '' $ac_executable_extensions; do
4358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4359     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4360        ac_prog_rejected=yes
4361        continue
4362      fi
4363     ac_cv_prog_BUILD_CXX="c++"
4364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365     break 2
4366   fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 if test $ac_prog_rejected = yes; then
4372   # We found a bogon in the path, so make sure we never use it.
4373   set dummy $ac_cv_prog_BUILD_CXX
4374   shift
4375   if test $# != 0; then
4376     # We chose a different compiler from the bogus one.
4377     # However, it has the same basename, so the bogon will be chosen
4378     # first if we set BUILD_CXX to just the basename; use the full file name.
4379     shift
4380     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4381   fi
4382 fi
4383 fi
4384 fi
4385 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4386 if test -n "$BUILD_CXX"; then
4387   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4388 echo "${ECHO_T}$BUILD_CXX" >&6; }
4389 else
4390   { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4392 fi
4393
4394
4395      fi
4396   fi
4397 else
4398   LLVM_CROSS_COMPILING=0
4399
4400 fi
4401
4402 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4403   cvsbuild="yes"
4404   optimize="no"
4405   CVSBUILD=CVSBUILD=1
4406
4407 else
4408   cvsbuild="no"
4409   optimize="yes"
4410 fi
4411
4412
4413 # Check whether --enable-libcpp was given.
4414 if test "${enable_libcpp+set}" = set; then
4415   enableval=$enable_libcpp;
4416 else
4417   enableval=default
4418 fi
4419
4420 case "$enableval" in
4421   yes) ENABLE_LIBCPP=1
4422  ;;
4423   no)  ENABLE_LIBCPP=0
4424  ;;
4425   default) ENABLE_LIBCPP=0
4426 ;;
4427   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4428 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4429    { (exit 1); exit 1; }; } ;;
4430 esac
4431
4432 # Check whether --enable-cxx11 was given.
4433 if test "${enable_cxx11+set}" = set; then
4434   enableval=$enable_cxx11;
4435 else
4436   enableval=default
4437 fi
4438
4439 case "$enableval" in
4440   yes) ENABLE_CXX11=1
4441  ;;
4442   no)  ENABLE_CXX11=0
4443  ;;
4444   default) ENABLE_CXX11=0
4445 ;;
4446   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4447 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4448    { (exit 1); exit 1; }; } ;;
4449 esac
4450
4451 # Check whether --enable-split-dwarf was given.
4452 if test "${enable_split_dwarf+set}" = set; then
4453   enableval=$enable_split_dwarf;
4454 else
4455   enableval=default
4456 fi
4457
4458 case "$enableval" in
4459   yes) ENABLE_SPLIT_DWARF=1
4460  ;;
4461   no)  ENABLE_SPLIT_DWARF=0
4462  ;;
4463   default) ENABLE_SPLIT_DWARF=0
4464 ;;
4465   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4466 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4467    { (exit 1); exit 1; }; } ;;
4468 esac
4469
4470 clang_arcmt="yes"
4471 # Check whether --enable-clang-arcmt was given.
4472 if test "${enable_clang_arcmt+set}" = set; then
4473   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4474 else
4475   enableval="yes"
4476 fi
4477
4478 case "$enableval" in
4479   yes) ENABLE_CLANG_ARCMT=1
4480  ;;
4481   no)  ENABLE_CLANG_ARCMT=0
4482  ;;
4483   default) ENABLE_CLANG_ARCMT=1
4484 ;;
4485   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4486 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4487    { (exit 1); exit 1; }; } ;;
4488 esac
4489
4490 clang_static_analyzer="yes"
4491 # Check whether --enable-clang-static-analyzer was given.
4492 if test "${enable_clang_static_analyzer+set}" = set; then
4493   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4494 else
4495   enableval="yes"
4496 fi
4497
4498 case "$enableval" in
4499   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4500  ;;
4501   no)
4502     if test ${clang_arcmt} != "no" ; then
4503       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4504 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4505    { (exit 1); exit 1; }; }
4506     fi
4507     ENABLE_CLANG_STATIC_ANALYZER=0
4508
4509     ;;
4510   default) ENABLE_CLANG_STATIC_ANALYZER=1
4511 ;;
4512   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4513 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4514    { (exit 1); exit 1; }; } ;;
4515 esac
4516
4517 # Check whether --enable-clang-rewriter was given.
4518 if test "${enable_clang_rewriter+set}" = set; then
4519   enableval=$enable_clang_rewriter;
4520 else
4521   enableval="yes"
4522 fi
4523
4524 case "$enableval" in
4525   yes) ENABLE_CLANG_REWRITER=1
4526  ;;
4527   no)
4528     if test ${clang_arcmt} != "no" ; then
4529       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4530 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4531    { (exit 1); exit 1; }; }
4532     fi
4533     if test ${clang_static_analyzer} != "no" ; then
4534       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4535 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4536    { (exit 1); exit 1; }; }
4537     fi
4538     ENABLE_CLANG_REWRITER=0
4539
4540     ;;
4541   default) ENABLE_CLANG_REWRITER=1
4542 ;;
4543   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4544 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4545    { (exit 1); exit 1; }; } ;;
4546 esac
4547
4548 # Check whether --enable-optimized was given.
4549 if test "${enable_optimized+set}" = set; then
4550   enableval=$enable_optimized;
4551 else
4552   enableval=$optimize
4553 fi
4554
4555 if test ${enableval} = "no" ; then
4556   ENABLE_OPTIMIZED=
4557
4558 else
4559   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4560
4561 fi
4562
4563 # Check whether --enable-profiling was given.
4564 if test "${enable_profiling+set}" = set; then
4565   enableval=$enable_profiling;
4566 else
4567   enableval="no"
4568 fi
4569
4570 if test ${enableval} = "no" ; then
4571   ENABLE_PROFILING=
4572
4573 else
4574   ENABLE_PROFILING=ENABLE_PROFILING=1
4575
4576 fi
4577
4578 # Check whether --enable-assertions was given.
4579 if test "${enable_assertions+set}" = set; then
4580   enableval=$enable_assertions;
4581 else
4582   enableval="yes"
4583 fi
4584
4585 if test ${enableval} = "yes" ; then
4586   DISABLE_ASSERTIONS=
4587
4588 else
4589   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4590
4591 fi
4592
4593 # Check whether --enable-werror was given.
4594 if test "${enable_werror+set}" = set; then
4595   enableval=$enable_werror;
4596 else
4597   enableval="no"
4598 fi
4599
4600 case "$enableval" in
4601   yes) ENABLE_WERROR=1
4602  ;;
4603   no)  ENABLE_WERROR=0
4604  ;;
4605   default) ENABLE_WERROR=0
4606 ;;
4607   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4608 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4609    { (exit 1); exit 1; }; } ;;
4610 esac
4611
4612 # Check whether --enable-expensive-checks was given.
4613 if test "${enable_expensive_checks+set}" = set; then
4614   enableval=$enable_expensive_checks;
4615 else
4616   enableval="no"
4617 fi
4618
4619 if test ${enableval} = "yes" ; then
4620   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4621
4622   EXPENSIVE_CHECKS=yes
4623
4624 else
4625   ENABLE_EXPENSIVE_CHECKS=
4626
4627   EXPENSIVE_CHECKS=no
4628
4629 fi
4630
4631 # Check whether --enable-debug-runtime was given.
4632 if test "${enable_debug_runtime+set}" = set; then
4633   enableval=$enable_debug_runtime;
4634 else
4635   enableval=no
4636 fi
4637
4638 if test ${enableval} = "no" ; then
4639   DEBUG_RUNTIME=
4640
4641 else
4642   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4643
4644 fi
4645
4646 # Check whether --enable-debug-symbols was given.
4647 if test "${enable_debug_symbols+set}" = set; then
4648   enableval=$enable_debug_symbols;
4649 else
4650   enableval=no
4651 fi
4652
4653 if test ${enableval} = "no" ; then
4654   DEBUG_SYMBOLS=
4655
4656 else
4657   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4658
4659 fi
4660
4661 # Check whether --enable-keep-symbols was given.
4662 if test "${enable_keep_symbols+set}" = set; then
4663   enableval=$enable_keep_symbols;
4664 else
4665   enableval=no
4666 fi
4667
4668 if test ${enableval} = "no" ; then
4669   KEEP_SYMBOLS=
4670
4671 else
4672   KEEP_SYMBOLS=KEEP_SYMBOLS=1
4673
4674 fi
4675
4676 # Check whether --enable-jit was given.
4677 if test "${enable_jit+set}" = set; then
4678   enableval=$enable_jit;
4679 else
4680   enableval=default
4681 fi
4682
4683 if test ${enableval} = "no"
4684 then
4685   JIT=
4686
4687 else
4688   case "$llvm_cv_target_arch" in
4689     x86)         TARGET_HAS_JIT=1
4690  ;;
4691     Sparc)       TARGET_HAS_JIT=0
4692  ;;
4693     PowerPC)     TARGET_HAS_JIT=1
4694  ;;
4695     x86_64)      TARGET_HAS_JIT=1
4696  ;;
4697     ARM)         TARGET_HAS_JIT=1
4698  ;;
4699     AArch64)     TARGET_HAS_JIT=0
4700  ;;
4701     Mips)        TARGET_HAS_JIT=1
4702  ;;
4703     XCore)       TARGET_HAS_JIT=0
4704  ;;
4705     MSP430)      TARGET_HAS_JIT=0
4706  ;;
4707     Hexagon)     TARGET_HAS_JIT=0
4708  ;;
4709     NVPTX)       TARGET_HAS_JIT=0
4710  ;;
4711     SystemZ)     TARGET_HAS_JIT=1
4712  ;;
4713     *)           TARGET_HAS_JIT=0
4714  ;;
4715   esac
4716 fi
4717
4718 # Check whether --enable-docs was given.
4719 if test "${enable_docs+set}" = set; then
4720   enableval=$enable_docs;
4721 else
4722   enableval=default
4723 fi
4724
4725 case "$enableval" in
4726   yes) ENABLE_DOCS=1
4727  ;;
4728   no)  ENABLE_DOCS=0
4729  ;;
4730   default) ENABLE_DOCS=1
4731  ;;
4732   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4733 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4734    { (exit 1); exit 1; }; } ;;
4735 esac
4736
4737 # Check whether --enable-doxygen was given.
4738 if test "${enable_doxygen+set}" = set; then
4739   enableval=$enable_doxygen;
4740 else
4741   enableval=default
4742 fi
4743
4744 case "$enableval" in
4745   yes) ENABLE_DOXYGEN=1
4746  ;;
4747   no)  ENABLE_DOXYGEN=0
4748  ;;
4749   default) ENABLE_DOXYGEN=0
4750  ;;
4751   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4752 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4753    { (exit 1); exit 1; }; } ;;
4754 esac
4755
4756 # Check whether --enable-threads was given.
4757 if test "${enable_threads+set}" = set; then
4758   enableval=$enable_threads;
4759 else
4760   enableval=default
4761 fi
4762
4763 case "$enableval" in
4764   yes) LLVM_ENABLE_THREADS=1
4765  ;;
4766   no)  LLVM_ENABLE_THREADS=0
4767  ;;
4768   default) LLVM_ENABLE_THREADS=1
4769  ;;
4770   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4771 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4772    { (exit 1); exit 1; }; } ;;
4773 esac
4774
4775 cat >>confdefs.h <<_ACEOF
4776 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
4777 _ACEOF
4778
4779
4780 # Check whether --enable-pthreads was given.
4781 if test "${enable_pthreads+set}" = set; then
4782   enableval=$enable_pthreads;
4783 else
4784   enableval=default
4785 fi
4786
4787 case "$enableval" in
4788   yes) ENABLE_PTHREADS=1
4789  ;;
4790   no)  ENABLE_PTHREADS=0
4791  ;;
4792   default) ENABLE_PTHREADS=1
4793  ;;
4794   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4796    { (exit 1); exit 1; }; } ;;
4797 esac
4798
4799 # Check whether --enable-zlib was given.
4800 if test "${enable_zlib+set}" = set; then
4801   enableval=$enable_zlib;
4802 else
4803   enableval=default
4804 fi
4805
4806 case "$enableval" in
4807   yes) LLVM_ENABLE_ZLIB=1
4808  ;;
4809   no)  LLVM_ENABLE_ZLIB=0
4810  ;;
4811   default) LLVM_ENABLE_ZLIB=1
4812  ;;
4813   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
4815    { (exit 1); exit 1; }; } ;;
4816 esac
4817
4818 cat >>confdefs.h <<_ACEOF
4819 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
4820 _ACEOF
4821
4822
4823 # Check whether --enable-pic was given.
4824 if test "${enable_pic+set}" = set; then
4825   enableval=$enable_pic;
4826 else
4827   enableval=default
4828 fi
4829
4830 case "$enableval" in
4831   yes) ENABLE_PIC=1
4832  ;;
4833   no)  ENABLE_PIC=0
4834  ;;
4835   default) ENABLE_PIC=1
4836  ;;
4837   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4838 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4839    { (exit 1); exit 1; }; } ;;
4840 esac
4841
4842 cat >>confdefs.h <<_ACEOF
4843 #define ENABLE_PIC $ENABLE_PIC
4844 _ACEOF
4845
4846
4847 # Check whether --enable-shared was given.
4848 if test "${enable_shared+set}" = set; then
4849   enableval=$enable_shared;
4850 else
4851   enableval=default
4852 fi
4853
4854 case "$enableval" in
4855   yes) ENABLE_SHARED=1
4856  ;;
4857   no)  ENABLE_SHARED=0
4858  ;;
4859   default) ENABLE_SHARED=0
4860  ;;
4861   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4862 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4863    { (exit 1); exit 1; }; } ;;
4864 esac
4865
4866 # Check whether --enable-embed-stdcxx was given.
4867 if test "${enable_embed_stdcxx+set}" = set; then
4868   enableval=$enable_embed_stdcxx;
4869 else
4870   enableval=default
4871 fi
4872
4873 case "$enableval" in
4874   yes) ENABLE_EMBED_STDCXX=1
4875  ;;
4876   no)  ENABLE_EMBED_STDCXX=0
4877  ;;
4878   default) ENABLE_EMBED_STDCXX=0
4879  ;;
4880   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
4881 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
4882    { (exit 1); exit 1; }; } ;;
4883 esac
4884
4885 # Check whether --enable-timestamps was given.
4886 if test "${enable_timestamps+set}" = set; then
4887   enableval=$enable_timestamps;
4888 else
4889   enableval=default
4890 fi
4891
4892 case "$enableval" in
4893   yes) ENABLE_TIMESTAMPS=1
4894  ;;
4895   no)  ENABLE_TIMESTAMPS=0
4896  ;;
4897   default) ENABLE_TIMESTAMPS=1
4898  ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904 cat >>confdefs.h <<_ACEOF
4905 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4906 _ACEOF
4907
4908
4909 # Check whether --enable-backtraces was given.
4910 if test "${enable_backtraces+set}" = set; then
4911   enableval=$enable_backtraces; case "$enableval" in
4912     yes) llvm_cv_enable_backtraces="yes" ;;
4913     no)  llvm_cv_enable_backtraces="no"  ;;
4914     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
4916    { (exit 1); exit 1; }; } ;;
4917   esac
4918 else
4919   llvm_cv_enable_backtraces="yes"
4920 fi
4921
4922 if test "$llvm_cv_enable_backtraces" = "yes" ; then
4923
4924 cat >>confdefs.h <<\_ACEOF
4925 #define ENABLE_BACKTRACES 1
4926 _ACEOF
4927
4928 fi
4929
4930 # Check whether --enable-crash-overrides was given.
4931 if test "${enable_crash_overrides+set}" = set; then
4932   enableval=$enable_crash_overrides; case "$enableval" in
4933     yes) llvm_cv_enable_crash_overrides="yes" ;;
4934     no)  llvm_cv_enable_crash_overrides="no"  ;;
4935     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
4936 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
4937    { (exit 1); exit 1; }; } ;;
4938   esac
4939 else
4940   llvm_cv_enable_crash_overrides="yes"
4941 fi
4942
4943 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define ENABLE_CRASH_OVERRIDES 1
4947 _ACEOF
4948
4949 fi
4950
4951 TARGETS_TO_BUILD=""
4952 # Check whether --enable-targets was given.
4953 if test "${enable_targets+set}" = set; then
4954   enableval=$enable_targets;
4955 else
4956   enableval=all
4957 fi
4958
4959 if test "$enableval" = host-only ; then
4960   enableval=host
4961 fi
4962 case "$enableval" in
4963   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
4964   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4965       case "$a_target" in
4966         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4969         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4970         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4971         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4972         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4973         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4976         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4980         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4981         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4982         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
4983         host) case "$llvm_cv_target_arch" in
4984             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4987             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4988             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4989             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4990             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4991             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4992             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4993             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4994             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4995             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4997 echo "$as_me: error: Can not set target to build" >&2;}
4998    { (exit 1); exit 1; }; } ;;
4999           esac ;;
5000         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5001 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5002    { (exit 1); exit 1; }; } ;;
5003       esac
5004   done
5005   ;;
5006 esac
5007
5008 # Check whether --enable-experimental-targets was given.
5009 if test "${enable_experimental_targets+set}" = set; then
5010   enableval=$enable_experimental_targets;
5011 else
5012   enableval=disable
5013 fi
5014
5015
5016 if test ${enableval} != "disable"
5017 then
5018   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5019 fi
5020
5021 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5022
5023
5024 for a_target in $TARGETS_TO_BUILD; do
5025   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5026
5027 cat >>confdefs.h <<_ACEOF
5028 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5029 _ACEOF
5030
5031     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5032     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5033     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5034     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5035     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5036       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5037     fi
5038     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5039       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5040     fi
5041
5042 cat >>confdefs.h <<_ACEOF
5043 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5044 _ACEOF
5045
5046
5047 cat >>confdefs.h <<_ACEOF
5048 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5049 _ACEOF
5050
5051
5052 cat >>confdefs.h <<_ACEOF
5053 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5054 _ACEOF
5055
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5059 _ACEOF
5060
5061     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5062
5063 cat >>confdefs.h <<_ACEOF
5064 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5065 _ACEOF
5066
5067     fi
5068     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5069
5070 cat >>confdefs.h <<_ACEOF
5071 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5072 _ACEOF
5073
5074     fi
5075   fi
5076 done
5077
5078 LLVM_ENUM_TARGETS=""
5079 LLVM_ENUM_ASM_PRINTERS=""
5080 LLVM_ENUM_ASM_PARSERS=""
5081 LLVM_ENUM_DISASSEMBLERS=""
5082 for target_to_build in $TARGETS_TO_BUILD; do
5083   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5084   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5085     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5086   fi
5087   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5088     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5089   fi
5090   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5091     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5092   fi
5093 done
5094
5095
5096
5097
5098
5099
5100 # Check whether --with-optimize-option was given.
5101 if test "${with_optimize_option+set}" = set; then
5102   withval=$with_optimize_option;
5103 else
5104   withval=default
5105 fi
5106
5107 { echo "$as_me:$LINENO: checking optimization flags" >&5
5108 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5109 case "$withval" in
5110   default)
5111     case "$llvm_cv_os_type" in
5112     FreeBSD) optimize_option=-O2 ;;
5113     MingW) optimize_option=-O2 ;;
5114     *)     optimize_option=-O3 ;;
5115     esac ;;
5116   *) optimize_option="$withval" ;;
5117 esac
5118 OPTIMIZE_OPTION=$optimize_option
5119
5120 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5121 echo "${ECHO_T}$optimize_option" >&6; }
5122
5123
5124 # Check whether --with-extra-options was given.
5125 if test "${with_extra_options+set}" = set; then
5126   withval=$with_extra_options;
5127 else
5128   withval=default
5129 fi
5130
5131 case "$withval" in
5132   default) EXTRA_OPTIONS= ;;
5133   *) EXTRA_OPTIONS=$withval ;;
5134 esac
5135 EXTRA_OPTIONS=$EXTRA_OPTIONS
5136
5137
5138
5139 # Check whether --with-extra-ld-options was given.
5140 if test "${with_extra_ld_options+set}" = set; then
5141   withval=$with_extra_ld_options;
5142 else
5143   withval=default
5144 fi
5145
5146 case "$withval" in
5147   default) EXTRA_LD_OPTIONS= ;;
5148   *) EXTRA_LD_OPTIONS=$withval ;;
5149 esac
5150 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5151
5152
5153 # Check whether --enable-bindings was given.
5154 if test "${enable_bindings+set}" = set; then
5155   enableval=$enable_bindings;
5156 else
5157   enableval=default
5158 fi
5159
5160 BINDINGS_TO_BUILD=""
5161 case "$enableval" in
5162   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5163   all ) BINDINGS_TO_BUILD="ocaml" ;;
5164   none | no) BINDINGS_TO_BUILD="" ;;
5165   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5166       case "$a_binding" in
5167         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5168         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5169 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5170    { (exit 1); exit 1; }; } ;;
5171       esac
5172   done
5173   ;;
5174 esac
5175
5176
5177 # Check whether --with-ocaml-libdir was given.
5178 if test "${with_ocaml_libdir+set}" = set; then
5179   withval=$with_ocaml_libdir;
5180 else
5181   withval=auto
5182 fi
5183
5184 case "$withval" in
5185   auto) with_ocaml_libdir="$withval" ;;
5186   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5187   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5188 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5189    { (exit 1); exit 1; }; } ;;
5190 esac
5191
5192
5193 # Check whether --with-clang-srcdir was given.
5194 if test "${with_clang_srcdir+set}" = set; then
5195   withval=$with_clang_srcdir;
5196 else
5197   withval="-"
5198 fi
5199
5200 case "$withval" in
5201   -) clang_src_root="" ;;
5202   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5203   *) clang_src_root="$ac_pwd/$withval" ;;
5204 esac
5205 CLANG_SRC_ROOT=$clang_src_root
5206
5207
5208
5209 # Check whether --with-clang-resource-dir was given.
5210 if test "${with_clang_resource_dir+set}" = set; then
5211   withval=$with_clang_resource_dir;
5212 else
5213   withval=""
5214 fi
5215
5216
5217 cat >>confdefs.h <<_ACEOF
5218 #define CLANG_RESOURCE_DIR "$withval"
5219 _ACEOF
5220
5221
5222
5223 # Check whether --with-c-include-dirs was given.
5224 if test "${with_c_include_dirs+set}" = set; then
5225   withval=$with_c_include_dirs;
5226 else
5227   withval=""
5228 fi
5229
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define C_INCLUDE_DIRS "$withval"
5233 _ACEOF
5234
5235
5236 # Clang normally uses the system c++ headers and libraries. With this option,
5237 # clang will use the ones provided by a gcc installation instead. This option should
5238 # be passed the same value that was used with --prefix when configuring gcc.
5239
5240 # Check whether --with-gcc-toolchain was given.
5241 if test "${with_gcc_toolchain+set}" = set; then
5242   withval=$with_gcc_toolchain;
5243 else
5244   withval=""
5245 fi
5246
5247
5248 cat >>confdefs.h <<_ACEOF
5249 #define GCC_INSTALL_PREFIX "$withval"
5250 _ACEOF
5251
5252
5253
5254 # Check whether --with-default-sysroot was given.
5255 if test "${with_default_sysroot+set}" = set; then
5256   withval=$with_default_sysroot;
5257 else
5258   withval=""
5259 fi
5260
5261
5262 cat >>confdefs.h <<_ACEOF
5263 #define DEFAULT_SYSROOT "$withval"
5264 _ACEOF
5265
5266
5267
5268 # Check whether --with-binutils-include was given.
5269 if test "${with_binutils_include+set}" = set; then
5270   withval=$with_binutils_include;
5271 else
5272   withval=default
5273 fi
5274
5275 case "$withval" in
5276   default) WITH_BINUTILS_INCDIR=default ;;
5277   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5278   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5279 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5280    { (exit 1); exit 1; }; } ;;
5281 esac
5282 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5283   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5284
5285   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5286      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5287      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5288 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5289    { (exit 1); exit 1; }; };
5290   fi
5291 fi
5292
5293
5294 # Check whether --with-bug-report-url was given.
5295 if test "${with_bug_report_url+set}" = set; then
5296   withval=$with_bug_report_url;
5297 else
5298   withval="http://llvm.org/bugs/"
5299 fi
5300
5301
5302 cat >>confdefs.h <<_ACEOF
5303 #define BUG_REPORT_URL "$withval"
5304 _ACEOF
5305
5306
5307 # Check whether --enable-terminfo was given.
5308 if test "${enable_terminfo+set}" = set; then
5309   enableval=$enable_terminfo; case "$enableval" in
5310     yes) llvm_cv_enable_terminfo="yes" ;;
5311     no)  llvm_cv_enable_terminfo="no"  ;;
5312     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5314    { (exit 1); exit 1; }; } ;;
5315   esac
5316 else
5317   llvm_cv_enable_terminfo="yes"
5318 fi
5319
5320
5321 # Check whether --enable-libffi was given.
5322 if test "${enable_libffi+set}" = set; then
5323   enableval=$enable_libffi; case "$enableval" in
5324     yes) llvm_cv_enable_libffi="yes" ;;
5325     no)  llvm_cv_enable_libffi="no"  ;;
5326     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329   esac
5330 else
5331   llvm_cv_enable_libffi=no
5332 fi
5333
5334
5335
5336 # Check whether --with-internal-prefix was given.
5337 if test "${with_internal_prefix+set}" = set; then
5338   withval=$with_internal_prefix;
5339 else
5340   withval=""
5341 fi
5342
5343 INTERNAL_PREFIX=$withval
5344
5345
5346
5347 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5348 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5349 if test "${lt_cv_path_NM+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   if test -n "$NM"; then
5353   # Let the user override the test.
5354   lt_cv_path_NM="$NM"
5355 else
5356   lt_nm_to_check="${ac_tool_prefix}nm"
5357   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5358     lt_nm_to_check="$lt_nm_to_check nm"
5359   fi
5360   for lt_tmp_nm in $lt_nm_to_check; do
5361     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5362     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5363       IFS="$lt_save_ifs"
5364       test -z "$ac_dir" && ac_dir=.
5365       tmp_nm="$ac_dir/$lt_tmp_nm"
5366       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5367         # Check to see if the nm accepts a BSD-compat flag.
5368         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5369         #   nm: unknown option "B" ignored
5370         # Tru64's nm complains that /dev/null is an invalid object file
5371         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5372         */dev/null* | *'Invalid file or object type'*)
5373           lt_cv_path_NM="$tmp_nm -B"
5374           break
5375           ;;
5376         *)
5377           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5378           */dev/null*)
5379             lt_cv_path_NM="$tmp_nm -p"
5380             break
5381             ;;
5382           *)
5383             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5384             continue # so that we can try to find one that supports BSD flags
5385             ;;
5386           esac
5387           ;;
5388         esac
5389       fi
5390     done
5391     IFS="$lt_save_ifs"
5392   done
5393   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5394 fi
5395 fi
5396 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5397 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5398 NM="$lt_cv_path_NM"
5399
5400
5401
5402 { echo "$as_me:$LINENO: checking for GNU make" >&5
5403 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5404 if test "${llvm_cv_gnu_make_command+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   llvm_cv_gnu_make_command=''
5408  for a in "$MAKE" make gmake gnumake ; do
5409   if test -z "$a" ; then continue ; fi ;
5410   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5411   then
5412    llvm_cv_gnu_make_command=$a ;
5413    break;
5414   fi
5415  done
5416 fi
5417 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5418 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5419  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5420    ifGNUmake='' ;
5421  else
5422    ifGNUmake='#' ;
5423    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5424 echo "${ECHO_T}\"Not found\"" >&6; };
5425  fi
5426
5427
5428 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5429 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5430 LN_S=$as_ln_s
5431 if test "$LN_S" = "ln -s"; then
5432   { echo "$as_me:$LINENO: result: yes" >&5
5433 echo "${ECHO_T}yes" >&6; }
5434 else
5435   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5436 echo "${ECHO_T}no, using $LN_S" >&6; }
5437 fi
5438
5439 # Extract the first word of "cmp", so it can be a program name with args.
5440 set dummy cmp; ac_word=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_path_CMP+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   case $CMP in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5467   ;;
5468 esac
5469 fi
5470 CMP=$ac_cv_path_CMP
5471 if test -n "$CMP"; then
5472   { echo "$as_me:$LINENO: result: $CMP" >&5
5473 echo "${ECHO_T}$CMP" >&6; }
5474 else
5475   { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5477 fi
5478
5479
5480 # Extract the first word of "cp", so it can be a program name with args.
5481 set dummy cp; ac_word=$2
5482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5484 if test "${ac_cv_path_CP+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   case $CP in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5508   ;;
5509 esac
5510 fi
5511 CP=$ac_cv_path_CP
5512 if test -n "$CP"; then
5513   { echo "$as_me:$LINENO: result: $CP" >&5
5514 echo "${ECHO_T}$CP" >&6; }
5515 else
5516   { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5518 fi
5519
5520
5521 # Extract the first word of "date", so it can be a program name with args.
5522 set dummy date; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_path_DATE+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   case $DATE in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538   for ac_exec_ext in '' $ac_executable_extensions; do
5539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5540     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5549   ;;
5550 esac
5551 fi
5552 DATE=$ac_cv_path_DATE
5553 if test -n "$DATE"; then
5554   { echo "$as_me:$LINENO: result: $DATE" >&5
5555 echo "${ECHO_T}$DATE" >&6; }
5556 else
5557   { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559 fi
5560
5561
5562 # Extract the first word of "find", so it can be a program name with args.
5563 set dummy find; ac_word=$2
5564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5566 if test "${ac_cv_path_FIND+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   case $FIND in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579   for ac_exec_ext in '' $ac_executable_extensions; do
5580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5581     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5590   ;;
5591 esac
5592 fi
5593 FIND=$ac_cv_path_FIND
5594 if test -n "$FIND"; then
5595   { echo "$as_me:$LINENO: result: $FIND" >&5
5596 echo "${ECHO_T}$FIND" >&6; }
5597 else
5598   { echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6; }
5600 fi
5601
5602
5603 # Extract the first word of "grep", so it can be a program name with args.
5604 set dummy grep; ac_word=$2
5605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5607 if test "${ac_cv_path_GREP+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   case $GREP in
5611   [\\/]* | ?:[\\/]*)
5612   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5613   ;;
5614   *)
5615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5622     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5631   ;;
5632 esac
5633 fi
5634 GREP=$ac_cv_path_GREP
5635 if test -n "$GREP"; then
5636   { echo "$as_me:$LINENO: result: $GREP" >&5
5637 echo "${ECHO_T}$GREP" >&6; }
5638 else
5639   { echo "$as_me:$LINENO: result: no" >&5
5640 echo "${ECHO_T}no" >&6; }
5641 fi
5642
5643
5644 # Extract the first word of "mkdir", so it can be a program name with args.
5645 set dummy mkdir; ac_word=$2
5646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5648 if test "${ac_cv_path_MKDIR+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   case $MKDIR in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661   for ac_exec_ext in '' $ac_executable_extensions; do
5662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5663     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5672   ;;
5673 esac
5674 fi
5675 MKDIR=$ac_cv_path_MKDIR
5676 if test -n "$MKDIR"; then
5677   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5678 echo "${ECHO_T}$MKDIR" >&6; }
5679 else
5680   { echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6; }
5682 fi
5683
5684
5685 # Extract the first word of "mv", so it can be a program name with args.
5686 set dummy mv; ac_word=$2
5687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689 if test "${ac_cv_path_MV+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   case $MV in
5693   [\\/]* | ?:[\\/]*)
5694   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5695   ;;
5696   *)
5697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702   for ac_exec_ext in '' $ac_executable_extensions; do
5703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5704     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5713   ;;
5714 esac
5715 fi
5716 MV=$ac_cv_path_MV
5717 if test -n "$MV"; then
5718   { echo "$as_me:$LINENO: result: $MV" >&5
5719 echo "${ECHO_T}$MV" >&6; }
5720 else
5721   { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 fi
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731 if test "${ac_cv_prog_RANLIB+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$RANLIB"; then
5735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5757 echo "${ECHO_T}$RANLIB" >&6; }
5758 else
5759   { echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766   ac_ct_RANLIB=$RANLIB
5767   # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   if test -n "$ac_ct_RANLIB"; then
5775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_ac_ct_RANLIB="ranlib"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5798 else
5799   { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_RANLIB" = x; then
5804     RANLIB=":"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5809 whose name does not start with the host triplet.  If you think this
5810 configuration is useful to you, please write to autoconf@gnu.org." >&5
5811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5812 whose name does not start with the host triplet.  If you think this
5813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5814 ac_tool_warned=yes ;;
5815 esac
5816     RANLIB=$ac_ct_RANLIB
5817   fi
5818 else
5819   RANLIB="$ac_cv_prog_RANLIB"
5820 fi
5821
5822 if test -n "$ac_tool_prefix"; then
5823   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}ar; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_AR+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if test -n "$AR"; then
5831   ac_cv_prog_AR="$AR" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840     ac_cv_prog_AR="${ac_tool_prefix}ar"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 AR=$ac_cv_prog_AR
5851 if test -n "$AR"; then
5852   { echo "$as_me:$LINENO: result: $AR" >&5
5853 echo "${ECHO_T}$AR" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859
5860 fi
5861 if test -z "$ac_cv_prog_AR"; then
5862   ac_ct_AR=$AR
5863   # Extract the first word of "ar", so it can be a program name with args.
5864 set dummy ar; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$ac_ct_AR"; then
5871   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_ac_ct_AR="ar"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5891 if test -n "$ac_ct_AR"; then
5892   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5893 echo "${ECHO_T}$ac_ct_AR" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899   if test "x$ac_ct_AR" = x; then
5900     AR="false"
5901   else
5902     case $cross_compiling:$ac_tool_warned in
5903 yes:)
5904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5905 whose name does not start with the host triplet.  If you think this
5906 configuration is useful to you, please write to autoconf@gnu.org." >&5
5907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5910 ac_tool_warned=yes ;;
5911 esac
5912     AR=$ac_ct_AR
5913   fi
5914 else
5915   AR="$ac_cv_prog_AR"
5916 fi
5917
5918 # Extract the first word of "rm", so it can be a program name with args.
5919 set dummy rm; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_path_RM+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   case $RM in
5926   [\\/]* | ?:[\\/]*)
5927   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5928   ;;
5929   *)
5930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5937     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5946   ;;
5947 esac
5948 fi
5949 RM=$ac_cv_path_RM
5950 if test -n "$RM"; then
5951   { echo "$as_me:$LINENO: result: $RM" >&5
5952 echo "${ECHO_T}$RM" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958
5959 # Extract the first word of "sed", so it can be a program name with args.
5960 set dummy sed; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_path_SED+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   case $SED in
5967   [\\/]* | ?:[\\/]*)
5968   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5969   ;;
5970   *)
5971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976   for ac_exec_ext in '' $ac_executable_extensions; do
5977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5987   ;;
5988 esac
5989 fi
5990 SED=$ac_cv_path_SED
5991 if test -n "$SED"; then
5992   { echo "$as_me:$LINENO: result: $SED" >&5
5993 echo "${ECHO_T}$SED" >&6; }
5994 else
5995   { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
5997 fi
5998
5999
6000 # Extract the first word of "tar", so it can be a program name with args.
6001 set dummy tar; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_TAR+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   case $TAR in
6008   [\\/]* | ?:[\\/]*)
6009   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6010   ;;
6011   *)
6012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   test -z "$as_dir" && as_dir=.
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021     break 2
6022   fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6028   ;;
6029 esac
6030 fi
6031 TAR=$ac_cv_path_TAR
6032 if test -n "$TAR"; then
6033   { echo "$as_me:$LINENO: result: $TAR" >&5
6034 echo "${ECHO_T}$TAR" >&6; }
6035 else
6036   { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6038 fi
6039
6040
6041 # Extract the first word of "pwd", so it can be a program name with args.
6042 set dummy pwd; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_path_BINPWD+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   case $BINPWD in
6049   [\\/]* | ?:[\\/]*)
6050   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6051   ;;
6052   *)
6053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058   for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6069   ;;
6070 esac
6071 fi
6072 BINPWD=$ac_cv_path_BINPWD
6073 if test -n "$BINPWD"; then
6074   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6075 echo "${ECHO_T}$BINPWD" >&6; }
6076 else
6077   { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6079 fi
6080
6081
6082
6083 # Extract the first word of "Graphviz", so it can be a program name with args.
6084 set dummy Graphviz; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   case $GRAPHVIZ in
6091   [\\/]* | ?:[\\/]*)
6092   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6093   ;;
6094   *)
6095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100   for ac_exec_ext in '' $ac_executable_extensions; do
6101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6111   ;;
6112 esac
6113 fi
6114 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6115 if test -n "$GRAPHVIZ"; then
6116   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6117 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6125
6126 cat >>confdefs.h <<\_ACEOF
6127 #define HAVE_GRAPHVIZ 1
6128 _ACEOF
6129
6130     if test "$llvm_cv_os_type" = "MingW" ; then
6131     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6132   fi
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6136 _ACEOF
6137
6138 fi
6139 # Extract the first word of "dot", so it can be a program name with args.
6140 set dummy dot; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_path_DOT+set}" = set; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146   case $DOT in
6147   [\\/]* | ?:[\\/]*)
6148   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6149   ;;
6150   *)
6151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6167   ;;
6168 esac
6169 fi
6170 DOT=$ac_cv_path_DOT
6171 if test -n "$DOT"; then
6172   { echo "$as_me:$LINENO: result: $DOT" >&5
6173 echo "${ECHO_T}$DOT" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6177 fi
6178
6179
6180 if test "$DOT" != "echo dot" ; then
6181
6182 cat >>confdefs.h <<\_ACEOF
6183 #define HAVE_DOT 1
6184 _ACEOF
6185
6186     if test "$llvm_cv_os_type" = "MingW" ; then
6187     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6188   fi
6189
6190 cat >>confdefs.h <<_ACEOF
6191 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6192 _ACEOF
6193
6194 fi
6195 # Extract the first word of "fdp", so it can be a program name with args.
6196 set dummy fdp; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_path_FDP+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   case $FDP in
6203   [\\/]* | ?:[\\/]*)
6204   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6205   ;;
6206   *)
6207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212   for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6223   ;;
6224 esac
6225 fi
6226 FDP=$ac_cv_path_FDP
6227 if test -n "$FDP"; then
6228   { echo "$as_me:$LINENO: result: $FDP" >&5
6229 echo "${ECHO_T}$FDP" >&6; }
6230 else
6231   { echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6; }
6233 fi
6234
6235
6236 if test "$FDP" != "echo fdp" ; then
6237
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_FDP 1
6240 _ACEOF
6241
6242     if test "$llvm_cv_os_type" = "MingW" ; then
6243     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6244   fi
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6248 _ACEOF
6249
6250 fi
6251 # Extract the first word of "neato", so it can be a program name with args.
6252 set dummy neato; 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_NEATO+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   case $NEATO in
6259   [\\/]* | ?:[\\/]*)
6260   ac_cv_path_NEATO="$NEATO" # 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_NEATO="$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_NEATO" && ac_cv_path_NEATO="echo neato"
6279   ;;
6280 esac
6281 fi
6282 NEATO=$ac_cv_path_NEATO
6283 if test -n "$NEATO"; then
6284   { echo "$as_me:$LINENO: result: $NEATO" >&5
6285 echo "${ECHO_T}$NEATO" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292 if test "$NEATO" != "echo neato" ; then
6293
6294 cat >>confdefs.h <<\_ACEOF
6295 #define HAVE_NEATO 1
6296 _ACEOF
6297
6298     if test "$llvm_cv_os_type" = "MingW" ; then
6299     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6300   fi
6301
6302 cat >>confdefs.h <<_ACEOF
6303 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6304 _ACEOF
6305
6306 fi
6307 # Extract the first word of "twopi", so it can be a program name with args.
6308 set dummy twopi; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_TWOPI+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $TWOPI in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6335   ;;
6336 esac
6337 fi
6338 TWOPI=$ac_cv_path_TWOPI
6339 if test -n "$TWOPI"; then
6340   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6341 echo "${ECHO_T}$TWOPI" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 if test "$TWOPI" != "echo twopi" ; then
6349
6350 cat >>confdefs.h <<\_ACEOF
6351 #define HAVE_TWOPI 1
6352 _ACEOF
6353
6354     if test "$llvm_cv_os_type" = "MingW" ; then
6355     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6356   fi
6357
6358 cat >>confdefs.h <<_ACEOF
6359 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6360 _ACEOF
6361
6362 fi
6363 # Extract the first word of "circo", so it can be a program name with args.
6364 set dummy circo; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_CIRCO+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $CIRCO in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6391   ;;
6392 esac
6393 fi
6394 CIRCO=$ac_cv_path_CIRCO
6395 if test -n "$CIRCO"; then
6396   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6397 echo "${ECHO_T}$CIRCO" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404 if test "$CIRCO" != "echo circo" ; then
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_CIRCO 1
6408 _ACEOF
6409
6410     if test "$llvm_cv_os_type" = "MingW" ; then
6411     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6412   fi
6413
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6416 _ACEOF
6417
6418 fi
6419 for ac_prog in gv gsview32
6420 do
6421   # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_path_GV+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   case $GV in
6429   [\\/]* | ?:[\\/]*)
6430   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6431   ;;
6432   *)
6433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448   ;;
6449 esac
6450 fi
6451 GV=$ac_cv_path_GV
6452 if test -n "$GV"; then
6453   { echo "$as_me:$LINENO: result: $GV" >&5
6454 echo "${ECHO_T}$GV" >&6; }
6455 else
6456   { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6458 fi
6459
6460
6461   test -n "$GV" && break
6462 done
6463 test -n "$GV" || GV="echo gv"
6464
6465 if test "$GV" != "echo gv" ; then
6466
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_GV 1
6469 _ACEOF
6470
6471     if test "$llvm_cv_os_type" = "MingW" ; then
6472     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473   fi
6474
6475 cat >>confdefs.h <<_ACEOF
6476 #define LLVM_PATH_GV "$GV${EXEEXT}"
6477 _ACEOF
6478
6479 fi
6480 # Extract the first word of "dotty", so it can be a program name with args.
6481 set dummy dotty; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_DOTTY+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   case $DOTTY in
6488   [\\/]* | ?:[\\/]*)
6489   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6490   ;;
6491   *)
6492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497   for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6508   ;;
6509 esac
6510 fi
6511 DOTTY=$ac_cv_path_DOTTY
6512 if test -n "$DOTTY"; then
6513   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6514 echo "${ECHO_T}$DOTTY" >&6; }
6515 else
6516   { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6518 fi
6519
6520
6521 if test "$DOTTY" != "echo dotty" ; then
6522
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_DOTTY 1
6525 _ACEOF
6526
6527     if test "$llvm_cv_os_type" = "MingW" ; then
6528     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529   fi
6530
6531 cat >>confdefs.h <<_ACEOF
6532 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6533 _ACEOF
6534
6535 fi
6536 for ac_prog in xdot xdot.py
6537 do
6538   # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_XDOT+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $XDOT in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   ;;
6566 esac
6567 fi
6568 XDOT=$ac_cv_path_XDOT
6569 if test -n "$XDOT"; then
6570   { echo "$as_me:$LINENO: result: $XDOT" >&5
6571 echo "${ECHO_T}$XDOT" >&6; }
6572 else
6573   { echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6; }
6575 fi
6576
6577
6578   test -n "$XDOT" && break
6579 done
6580 test -n "$XDOT" || XDOT="echo xdot"
6581
6582 if test "$XDOT" != "echo xdot" ; then
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_XDOT 1
6586 _ACEOF
6587
6588     if test "$llvm_cv_os_type" = "MingW" ; then
6589     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6590   fi
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6594 _ACEOF
6595
6596 fi
6597
6598 # Find a good install program.  We prefer a C program (faster),
6599 # so one script is as good as another.  But avoid the broken or
6600 # incompatible versions:
6601 # SysV /etc/install, /usr/sbin/install
6602 # SunOS /usr/etc/install
6603 # IRIX /sbin/install
6604 # AIX /bin/install
6605 # AmigaOS /C/install, which installs bootblocks on floppy discs
6606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6609 # OS/2's system install, which has a completely different semantic
6610 # ./install, which can be erroneously created by make from ./install.sh.
6611 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6612 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6613 if test -z "$INSTALL"; then
6614 if test "${ac_cv_path_install+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   # Account for people who put trailing slashes in PATH elements.
6623 case $as_dir/ in
6624   ./ | .// | /cC/* | \
6625   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6626   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6627   /usr/ucb/* ) ;;
6628   *)
6629     # OSF1 and SCO ODT 3.0 have their own names for install.
6630     # Don't use installbsd from OSF since it installs stuff as root
6631     # by default.
6632     for ac_prog in ginstall scoinst install; do
6633       for ac_exec_ext in '' $ac_executable_extensions; do
6634         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6635           if test $ac_prog = install &&
6636             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6637             # AIX install.  It has an incompatible calling convention.
6638             :
6639           elif test $ac_prog = install &&
6640             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6641             # program-specific install script used by HP pwplus--don't use.
6642             :
6643           else
6644             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6645             break 3
6646           fi
6647         fi
6648       done
6649     done
6650     ;;
6651 esac
6652 done
6653 IFS=$as_save_IFS
6654
6655
6656 fi
6657   if test "${ac_cv_path_install+set}" = set; then
6658     INSTALL=$ac_cv_path_install
6659   else
6660     # As a last resort, use the slow shell script.  Don't cache a
6661     # value for INSTALL within a source directory, because that will
6662     # break other packages using the cache if that directory is
6663     # removed, or if the value is a relative name.
6664     INSTALL=$ac_install_sh
6665   fi
6666 fi
6667 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6668 echo "${ECHO_T}$INSTALL" >&6; }
6669
6670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6671 # It thinks the first close brace ends the variable substitution.
6672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6673
6674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6675
6676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6677
6678 case "$INSTALL" in
6679  [\\/$]* | ?:[\\/]* ) ;;
6680  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6681 esac
6682
6683 # Extract the first word of "bzip2", so it can be a program name with args.
6684 set dummy bzip2; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_BZIP2+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   case $BZIP2 in
6691   [\\/]* | ?:[\\/]*)
6692   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6693   ;;
6694   *)
6695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700   for ac_exec_ext in '' $ac_executable_extensions; do
6701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710   ;;
6711 esac
6712 fi
6713 BZIP2=$ac_cv_path_BZIP2
6714 if test -n "$BZIP2"; then
6715   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6716 echo "${ECHO_T}$BZIP2" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 # Extract the first word of "cat", so it can be a program name with args.
6724 set dummy cat; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_CAT+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $CAT in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   ;;
6751 esac
6752 fi
6753 CAT=$ac_cv_path_CAT
6754 if test -n "$CAT"; then
6755   { echo "$as_me:$LINENO: result: $CAT" >&5
6756 echo "${ECHO_T}$CAT" >&6; }
6757 else
6758   { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763 # Extract the first word of "doxygen", so it can be a program name with args.
6764 set dummy doxygen; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   case $DOXYGEN in
6771   [\\/]* | ?:[\\/]*)
6772   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6773   ;;
6774   *)
6775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780   for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790   ;;
6791 esac
6792 fi
6793 DOXYGEN=$ac_cv_path_DOXYGEN
6794 if test -n "$DOXYGEN"; then
6795   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6796 echo "${ECHO_T}$DOXYGEN" >&6; }
6797 else
6798   { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802
6803 # Extract the first word of "groff", so it can be a program name with args.
6804 set dummy groff; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_GROFF+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   case $GROFF in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820   for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830   ;;
6831 esac
6832 fi
6833 GROFF=$ac_cv_path_GROFF
6834 if test -n "$GROFF"; then
6835   { echo "$as_me:$LINENO: result: $GROFF" >&5
6836 echo "${ECHO_T}$GROFF" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6841
6842
6843 # Extract the first word of "gzip", so it can be a program name with args.
6844 set dummy gzip; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   case $GZIPBIN in
6851   [\\/]* | ?:[\\/]*)
6852   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6853   ;;
6854   *)
6855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860   for ac_exec_ext in '' $ac_executable_extensions; do
6861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870   ;;
6871 esac
6872 fi
6873 GZIPBIN=$ac_cv_path_GZIPBIN
6874 if test -n "$GZIPBIN"; then
6875   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6876 echo "${ECHO_T}$GZIPBIN" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6881
6882
6883 # Extract the first word of "pdfroff", so it can be a program name with args.
6884 set dummy pdfroff; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_PDFROFF+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   case $PDFROFF in
6891   [\\/]* | ?:[\\/]*)
6892   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6893   ;;
6894   *)
6895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900   for ac_exec_ext in '' $ac_executable_extensions; do
6901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910   ;;
6911 esac
6912 fi
6913 PDFROFF=$ac_cv_path_PDFROFF
6914 if test -n "$PDFROFF"; then
6915   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6916 echo "${ECHO_T}$PDFROFF" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 # Extract the first word of "zip", so it can be a program name with args.
6924 set dummy zip; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_ZIP+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $ZIP in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   ;;
6951 esac
6952 fi
6953 ZIP=$ac_cv_path_ZIP
6954 if test -n "$ZIP"; then
6955   { echo "$as_me:$LINENO: result: $ZIP" >&5
6956 echo "${ECHO_T}$ZIP" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 for ac_prog in ocamlc
6964 do
6965   # Extract the first word of "$ac_prog", so it can be a program name with args.
6966 set dummy $ac_prog; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_OCAMLC+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   case $OCAMLC in
6973   [\\/]* | ?:[\\/]*)
6974   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6975   ;;
6976   *)
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992   ;;
6993 esac
6994 fi
6995 OCAMLC=$ac_cv_path_OCAMLC
6996 if test -n "$OCAMLC"; then
6997   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6998 echo "${ECHO_T}$OCAMLC" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005   test -n "$OCAMLC" && break
7006 done
7007
7008 for ac_prog in ocamlopt
7009 do
7010   # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   case $OCAMLOPT in
7018   [\\/]* | ?:[\\/]*)
7019   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7020   ;;
7021   *)
7022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027   for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037   ;;
7038 esac
7039 fi
7040 OCAMLOPT=$ac_cv_path_OCAMLOPT
7041 if test -n "$OCAMLOPT"; then
7042   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7043 echo "${ECHO_T}$OCAMLOPT" >&6; }
7044 else
7045   { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050   test -n "$OCAMLOPT" && break
7051 done
7052
7053 for ac_prog in ocamldep
7054 do
7055   # Extract the first word of "$ac_prog", so it can be a program name with args.
7056 set dummy $ac_prog; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   case $OCAMLDEP in
7063   [\\/]* | ?:[\\/]*)
7064   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7065   ;;
7066   *)
7067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082   ;;
7083 esac
7084 fi
7085 OCAMLDEP=$ac_cv_path_OCAMLDEP
7086 if test -n "$OCAMLDEP"; then
7087   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7088 echo "${ECHO_T}$OCAMLDEP" >&6; }
7089 else
7090   { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7092 fi
7093
7094
7095   test -n "$OCAMLDEP" && break
7096 done
7097
7098 for ac_prog in ocamldoc
7099 do
7100   # Extract the first word of "$ac_prog", so it can be a program name with args.
7101 set dummy $ac_prog; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   case $OCAMLDOC in
7108   [\\/]* | ?:[\\/]*)
7109   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7110   ;;
7111   *)
7112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127   ;;
7128 esac
7129 fi
7130 OCAMLDOC=$ac_cv_path_OCAMLDOC
7131 if test -n "$OCAMLDOC"; then
7132   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7133 echo "${ECHO_T}$OCAMLDOC" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140   test -n "$OCAMLDOC" && break
7141 done
7142
7143 for ac_prog in gas as
7144 do
7145   # Extract the first word of "$ac_prog", so it can be a program name with args.
7146 set dummy $ac_prog; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_GAS+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $GAS in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   ;;
7173 esac
7174 fi
7175 GAS=$ac_cv_path_GAS
7176 if test -n "$GAS"; then
7177   { echo "$as_me:$LINENO: result: $GAS" >&5
7178 echo "${ECHO_T}$GAS" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185   test -n "$GAS" && break
7186 done
7187
7188
7189 { echo "$as_me:$LINENO: checking for linker version" >&5
7190 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7191 if test "${llvm_cv_link_version+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194
7195    version_string="$(ld -v 2>&1 | head -1)"
7196
7197    # Check for ld64.
7198    if (echo "$version_string" | grep -q "ld64"); then
7199      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7200    else
7201      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7202    fi
7203
7204 fi
7205 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7206 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7207
7208 cat >>confdefs.h <<_ACEOF
7209 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7210 _ACEOF
7211
7212
7213
7214
7215 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7216 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7217 if test "${llvm_cv_link_use_r+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220    ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226   oldcflags="$CFLAGS"
7227   CFLAGS="$CFLAGS -Wl,-R."
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234
7235 int
7236 main ()
7237 {
7238
7239   ;
7240   return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (ac_try="$ac_link"
7245 case "(($ac_try" in
7246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247   *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250   (eval "$ac_link") 2>conftest.er1
7251   ac_status=$?
7252   grep -v '^ *+' conftest.er1 >conftest.err
7253   rm -f conftest.er1
7254   cat conftest.err >&5
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } &&
7257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7258   { (case "(($ac_try" in
7259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260   *) ac_try_echo=$ac_try;;
7261 esac
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263   (eval "$ac_try") 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273   (eval "$ac_try") 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   llvm_cv_link_use_r=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282         llvm_cv_link_use_r=no
7283 fi
7284
7285 rm -f core conftest.err conftest.$ac_objext \
7286       conftest$ac_exeext conftest.$ac_ext
7287   CFLAGS="$oldcflags"
7288   ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295 fi
7296 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7297 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7298 if test "$llvm_cv_link_use_r" = yes ; then
7299
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_LINK_R 1
7302 _ACEOF
7303
7304   fi
7305
7306
7307 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7308 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7309 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312    ac_ext=c
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317
7318   oldcflags="$CFLAGS"
7319   CFLAGS="$CFLAGS -rdynamic"
7320   cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326
7327 int
7328 main ()
7329 {
7330
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (ac_try="$ac_link"
7337 case "(($ac_try" in
7338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339   *) ac_try_echo=$ac_try;;
7340 esac
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342   (eval "$ac_link") 2>conftest.er1
7343   ac_status=$?
7344   grep -v '^ *+' conftest.er1 >conftest.err
7345   rm -f conftest.er1
7346   cat conftest.err >&5
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } &&
7349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7350   { (case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_try") 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest$ac_exeext'
7360   { (case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_try") 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; }; then
7369   llvm_cv_link_use_export_dynamic=yes
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374         llvm_cv_link_use_export_dynamic=no
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext \
7378       conftest$ac_exeext conftest.$ac_ext
7379   CFLAGS="$oldcflags"
7380   ac_ext=c
7381 ac_cpp='$CPP $CPPFLAGS'
7382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385
7386
7387 fi
7388 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7389 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7390 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_LINK_EXPORT_DYNAMIC 1
7394 _ACEOF
7395
7396   fi
7397
7398
7399 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7400 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7401 if test "${llvm_cv_link_use_version_script+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404    ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409
7410   oldcflags="$CFLAGS"
7411
7412   # The following code is from the autoconf manual,
7413   # "11.13: Limitations of Usual Tools".
7414   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7415   # Use mktemp if possible; otherwise fall back on mkdir,
7416   # with $RANDOM to make collisions less likely.
7417   : ${TMPDIR=/tmp}
7418   {
7419     tmp=`
7420       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7421     ` &&
7422     test -n "$tmp" && test -d "$tmp"
7423   } || {
7424     tmp=$TMPDIR/foo$$-$RANDOM
7425     (umask 077 && mkdir "$tmp")
7426   } || exit $?
7427
7428   echo "{" > "$tmp/export.map"
7429   echo "  global: main;" >> "$tmp/export.map"
7430   echo "  local: *;" >> "$tmp/export.map"
7431   echo "};" >> "$tmp/export.map"
7432
7433   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7434   cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h.  */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h.  */
7440
7441 int
7442 main ()
7443 {
7444
7445   ;
7446   return 0;
7447 }
7448 _ACEOF
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (ac_try="$ac_link"
7451 case "(($ac_try" in
7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453   *) ac_try_echo=$ac_try;;
7454 esac
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456   (eval "$ac_link") 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7464   { (case "(($ac_try" in
7465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466   *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469   (eval "$ac_try") 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; } &&
7473          { ac_try='test -s conftest$ac_exeext'
7474   { (case "(($ac_try" in
7475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476   *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479   (eval "$ac_try") 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; }; then
7483   llvm_cv_link_use_version_script=yes
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488         llvm_cv_link_use_version_script=no
7489 fi
7490
7491 rm -f core conftest.err conftest.$ac_objext \
7492       conftest$ac_exeext conftest.$ac_ext
7493   rm "$tmp/export.map"
7494   rmdir "$tmp"
7495   CFLAGS="$oldcflags"
7496   ac_ext=c
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502
7503 fi
7504 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7505 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7506 if test "$llvm_cv_link_use_version_script" = yes ; then
7507   HAVE_LINK_VERSION_SCRIPT=1
7508
7509   fi
7510
7511
7512
7513
7514 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7515 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7516 if test "${ac_cv_c_const+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525
7526 int
7527 main ()
7528 {
7529 /* FIXME: Include the comments suggested by Paul. */
7530 #ifndef __cplusplus
7531   /* Ultrix mips cc rejects this.  */
7532   typedef int charset[2];
7533   const charset x;
7534   /* SunOS 4.1.1 cc rejects this.  */
7535   char const *const *ccp;
7536   char **p;
7537   /* NEC SVR4.0.2 mips cc rejects this.  */
7538   struct point {int x, y;};
7539   static struct point const zero = {0,0};
7540   /* AIX XL C 1.02.0.0 rejects this.
7541      It does not let you subtract one const X* pointer from another in
7542      an arm of an if-expression whose if-part is not a constant
7543      expression */
7544   const char *g = "string";
7545   ccp = &g + (g ? g-g : 0);
7546   /* HPUX 7.0 cc rejects these. */
7547   ++ccp;
7548   p = (char**) ccp;
7549   ccp = (char const *const *) p;
7550   { /* SCO 3.2v4 cc rejects this.  */
7551     char *t;
7552     char const *s = 0 ? (char *) 0 : (char const *) 0;
7553
7554     *t++ = 0;
7555     if (s) return 0;
7556   }
7557   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7558     int x[] = {25, 17};
7559     const int *foo = &x[0];
7560     ++foo;
7561   }
7562   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7563     typedef const int *iptr;
7564     iptr p = 0;
7565     ++p;
7566   }
7567   { /* AIX XL C 1.02.0.0 rejects this saying
7568        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7569     struct s { int j; const int *ap[3]; };
7570     struct s *b; b->j = 5;
7571   }
7572   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7573     const int foo = 10;
7574     if (!foo) return 0;
7575   }
7576   return !x[0] && !zero.x;
7577 #endif
7578
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587   *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590   (eval "$ac_compile") 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598   { (case "(($ac_try" in
7599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600   *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603   (eval "$ac_try") 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; } &&
7607          { ac_try='test -s conftest.$ac_objext'
7608   { (case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_try") 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }; }; then
7617   ac_cv_c_const=yes
7618 else
7619   echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622         ac_cv_c_const=no
7623 fi
7624
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7628 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7629 if test $ac_cv_c_const = no; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define const
7633 _ACEOF
7634
7635 fi
7636
7637
7638 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7639 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7640 if test "${ac_cv_path_GREP+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   # Extract the first word of "grep ggrep" to use in msg output
7644 if test -z "$GREP"; then
7645 set dummy grep ggrep; ac_prog_name=$2
7646 if test "${ac_cv_path_GREP+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   ac_path_GREP_found=false
7650 # Loop through the user's path and test for each of PROGNAME-LIST
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_prog in grep ggrep; do
7657   for ac_exec_ext in '' $ac_executable_extensions; do
7658     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7659     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7660     # Check for GNU ac_path_GREP and select it if it is found.
7661   # Check for GNU $ac_path_GREP
7662 case `"$ac_path_GREP" --version 2>&1` in
7663 *GNU*)
7664   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7665 *)
7666   ac_count=0
7667   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7668   while :
7669   do
7670     cat "conftest.in" "conftest.in" >"conftest.tmp"
7671     mv "conftest.tmp" "conftest.in"
7672     cp "conftest.in" "conftest.nl"
7673     echo 'GREP' >> "conftest.nl"
7674     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7676     ac_count=`expr $ac_count + 1`
7677     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7678       # Best one so far, save it but keep looking for a better one
7679       ac_cv_path_GREP="$ac_path_GREP"
7680       ac_path_GREP_max=$ac_count
7681     fi
7682     # 10*(2^10) chars as input seems more than enough
7683     test $ac_count -gt 10 && break
7684   done
7685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7686 esac
7687
7688
7689     $ac_path_GREP_found && break 3
7690   done
7691 done
7692
7693 done
7694 IFS=$as_save_IFS
7695
7696
7697 fi
7698
7699 GREP="$ac_cv_path_GREP"
7700 if test -z "$GREP"; then
7701   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7703    { (exit 1); exit 1; }; }
7704 fi
7705
7706 else
7707   ac_cv_path_GREP=$GREP
7708 fi
7709
7710
7711 fi
7712 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7713 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7714  GREP="$ac_cv_path_GREP"
7715
7716
7717 { echo "$as_me:$LINENO: checking for egrep" >&5
7718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_EGREP+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7723    then ac_cv_path_EGREP="$GREP -E"
7724    else
7725      # Extract the first word of "egrep" to use in msg output
7726 if test -z "$EGREP"; then
7727 set dummy egrep; ac_prog_name=$2
7728 if test "${ac_cv_path_EGREP+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   ac_path_EGREP_found=false
7732 # Loop through the user's path and test for each of PROGNAME-LIST
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738   for ac_prog in egrep; do
7739   for ac_exec_ext in '' $ac_executable_extensions; do
7740     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7741     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7742     # Check for GNU ac_path_EGREP and select it if it is found.
7743   # Check for GNU $ac_path_EGREP
7744 case `"$ac_path_EGREP" --version 2>&1` in
7745 *GNU*)
7746   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7747 *)
7748   ac_count=0
7749   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7750   while :
7751   do
7752     cat "conftest.in" "conftest.in" >"conftest.tmp"
7753     mv "conftest.tmp" "conftest.in"
7754     cp "conftest.in" "conftest.nl"
7755     echo 'EGREP' >> "conftest.nl"
7756     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7758     ac_count=`expr $ac_count + 1`
7759     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7760       # Best one so far, save it but keep looking for a better one
7761       ac_cv_path_EGREP="$ac_path_EGREP"
7762       ac_path_EGREP_max=$ac_count
7763     fi
7764     # 10*(2^10) chars as input seems more than enough
7765     test $ac_count -gt 10 && break
7766   done
7767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7768 esac
7769
7770
7771     $ac_path_EGREP_found && break 3
7772   done
7773 done
7774
7775 done
7776 IFS=$as_save_IFS
7777
7778
7779 fi
7780
7781 EGREP="$ac_cv_path_EGREP"
7782 if test -z "$EGREP"; then
7783   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7784 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7785    { (exit 1); exit 1; }; }
7786 fi
7787
7788 else
7789   ac_cv_path_EGREP=$EGREP
7790 fi
7791
7792
7793    fi
7794 fi
7795 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7796 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7797  EGREP="$ac_cv_path_EGREP"
7798
7799
7800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7802 if test "${ac_cv_header_stdc+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811 #include <stdlib.h>
7812 #include <stdarg.h>
7813 #include <string.h>
7814 #include <float.h>
7815
7816 int
7817 main ()
7818 {
7819
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7826 case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_compile") 2>conftest.er1
7832   ac_status=$?
7833   grep -v '^ *+' conftest.er1 >conftest.err
7834   rm -f conftest.er1
7835   cat conftest.err >&5
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7839   { (case "(($ac_try" in
7840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841   *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844   (eval "$ac_try") 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; } &&
7848          { ac_try='test -s conftest.$ac_objext'
7849   { (case "(($ac_try" in
7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851   *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854   (eval "$ac_try") 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); }; }; then
7858   ac_cv_header_stdc=yes
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863         ac_cv_header_stdc=no
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867
7868 if test $ac_cv_header_stdc = yes; then
7869   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7870   cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876 #include <string.h>
7877
7878 _ACEOF
7879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7880   $EGREP "memchr" >/dev/null 2>&1; then
7881   :
7882 else
7883   ac_cv_header_stdc=no
7884 fi
7885 rm -f conftest*
7886
7887 fi
7888
7889 if test $ac_cv_header_stdc = yes; then
7890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7891   cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h.  */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h.  */
7897 #include <stdlib.h>
7898
7899 _ACEOF
7900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7901   $EGREP "free" >/dev/null 2>&1; then
7902   :
7903 else
7904   ac_cv_header_stdc=no
7905 fi
7906 rm -f conftest*
7907
7908 fi
7909
7910 if test $ac_cv_header_stdc = yes; then
7911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7912   if test "$cross_compiling" = yes; then
7913   :
7914 else
7915   cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h.  */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h.  */
7921 #include <ctype.h>
7922 #include <stdlib.h>
7923 #if ((' ' & 0x0FF) == 0x020)
7924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7926 #else
7927 # define ISLOWER(c) \
7928                    (('a' <= (c) && (c) <= 'i') \
7929                      || ('j' <= (c) && (c) <= 'r') \
7930                      || ('s' <= (c) && (c) <= 'z'))
7931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7932 #endif
7933
7934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7935 int
7936 main ()
7937 {
7938   int i;
7939   for (i = 0; i < 256; i++)
7940     if (XOR (islower (i), ISLOWER (i))
7941         || toupper (i) != TOUPPER (i))
7942       return 2;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_link") 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7957   { (case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_try") 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   :
7967 else
7968   echo "$as_me: program exited with status $ac_status" >&5
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ( exit $ac_status )
7973 ac_cv_header_stdc=no
7974 fi
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7976 fi
7977
7978
7979 fi
7980 fi
7981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7983 if test $ac_cv_header_stdc = yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define STDC_HEADERS 1
7987 _ACEOF
7988
7989 fi
7990
7991
7992
7993
7994
7995
7996 ac_header_dirent=no
7997 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7998   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7999 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8000 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010 #include <sys/types.h>
8011 #include <$ac_hdr>
8012
8013 int
8014 main ()
8015 {
8016 if ((DIR *) 0)
8017 return 0;
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029   (eval "$ac_compile") 2>conftest.er1
8030   ac_status=$?
8031   grep -v '^ *+' conftest.er1 >conftest.err
8032   rm -f conftest.er1
8033   cat conftest.err >&5
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } &&
8036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037   { (case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_try") 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; } &&
8046          { ac_try='test -s conftest.$ac_objext'
8047   { (case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_try") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   eval "$as_ac_Header=yes"
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061         eval "$as_ac_Header=no"
8062 fi
8063
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 ac_res=`eval echo '${'$as_ac_Header'}'`
8067                { echo "$as_me:$LINENO: result: $ac_res" >&5
8068 echo "${ECHO_T}$ac_res" >&6; }
8069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8070   cat >>confdefs.h <<_ACEOF
8071 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8072 _ACEOF
8073
8074 ac_header_dirent=$ac_hdr; break
8075 fi
8076
8077 done
8078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8079 if test $ac_header_dirent = dirent.h; then
8080   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8082 if test "${ac_cv_search_opendir+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   ac_func_search_save_LIBS=$LIBS
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092
8093 /* Override any GCC internal prototype to avoid an error.
8094    Use char because int might match the return type of a GCC
8095    builtin and then its argument prototype would still apply.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char opendir ();
8100 int
8101 main ()
8102 {
8103 return opendir ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 for ac_lib in '' dir; do
8109   if test -z "$ac_lib"; then
8110     ac_res="none required"
8111   else
8112     ac_res=-l$ac_lib
8113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8114   fi
8115   rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122   (eval "$ac_link") 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130   { (case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest$ac_exeext'
8140   { (case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_try") 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); }; }; then
8149   ac_cv_search_opendir=$ac_res
8150 else
8151   echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154
8155 fi
8156
8157 rm -f core conftest.err conftest.$ac_objext \
8158       conftest$ac_exeext
8159   if test "${ac_cv_search_opendir+set}" = set; then
8160   break
8161 fi
8162 done
8163 if test "${ac_cv_search_opendir+set}" = set; then
8164   :
8165 else
8166   ac_cv_search_opendir=no
8167 fi
8168 rm conftest.$ac_ext
8169 LIBS=$ac_func_search_save_LIBS
8170 fi
8171 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8172 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8173 ac_res=$ac_cv_search_opendir
8174 if test "$ac_res" != no; then
8175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8176
8177 fi
8178
8179 else
8180   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8181 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8182 if test "${ac_cv_search_opendir+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   ac_func_search_save_LIBS=$LIBS
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192
8193 /* Override any GCC internal prototype to avoid an error.
8194    Use char because int might match the return type of a GCC
8195    builtin and then its argument prototype would still apply.  */
8196 #ifdef __cplusplus
8197 extern "C"
8198 #endif
8199 char opendir ();
8200 int
8201 main ()
8202 {
8203 return opendir ();
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 for ac_lib in '' x; do
8209   if test -z "$ac_lib"; then
8210     ac_res="none required"
8211   else
8212     ac_res=-l$ac_lib
8213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8214   fi
8215   rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (ac_try="$ac_link"
8217 case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_link") 2>conftest.er1
8223   ac_status=$?
8224   grep -v '^ *+' conftest.er1 >conftest.err
8225   rm -f conftest.er1
8226   cat conftest.err >&5
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); } &&
8229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8230   { (case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235   (eval "$ac_try") 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; } &&
8239          { ac_try='test -s conftest$ac_exeext'
8240   { (case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_try") 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_cv_search_opendir=$ac_res
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254
8255 fi
8256
8257 rm -f core conftest.err conftest.$ac_objext \
8258       conftest$ac_exeext
8259   if test "${ac_cv_search_opendir+set}" = set; then
8260   break
8261 fi
8262 done
8263 if test "${ac_cv_search_opendir+set}" = set; then
8264   :
8265 else
8266   ac_cv_search_opendir=no
8267 fi
8268 rm conftest.$ac_ext
8269 LIBS=$ac_func_search_save_LIBS
8270 fi
8271 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8272 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8273 ac_res=$ac_cv_search_opendir
8274 if test "$ac_res" != no; then
8275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8276
8277 fi
8278
8279 fi
8280
8281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8292                   inttypes.h stdint.h unistd.h
8293 do
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 $ac_includes_default
8307
8308 #include <$ac_header>
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_compile") 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325   { (case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_try") 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; } &&
8334          { ac_try='test -s conftest.$ac_objext'
8335   { (case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_try") 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   eval "$as_ac_Header=yes"
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349         eval "$as_ac_Header=no"
8350 fi
8351
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 fi
8354 ac_res=`eval echo '${'$as_ac_Header'}'`
8355                { echo "$as_me:$LINENO: result: $ac_res" >&5
8356 echo "${ECHO_T}$ac_res" >&6; }
8357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8358   cat >>confdefs.h <<_ACEOF
8359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8360 _ACEOF
8361
8362 fi
8363
8364 done
8365
8366
8367
8368 for ac_header in dlfcn.h
8369 do
8370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 fi
8377 ac_res=`eval echo '${'$as_ac_Header'}'`
8378                { echo "$as_me:$LINENO: result: $ac_res" >&5
8379 echo "${ECHO_T}$ac_res" >&6; }
8380 else
8381   # Is the header compilable?
8382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390 $ac_includes_default
8391 #include <$ac_header>
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_compile") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; } &&
8417          { ac_try='test -s conftest.$ac_objext'
8418   { (case "(($ac_try" in
8419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420   *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423   (eval "$ac_try") 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_header_compiler=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432         ac_header_compiler=no
8433 fi
8434
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8437 echo "${ECHO_T}$ac_header_compiler" >&6; }
8438
8439 # Is the header present?
8440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8448 #include <$ac_header>
8449 _ACEOF
8450 if { (ac_try="$ac_cpp conftest.$ac_ext"
8451 case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } >/dev/null; then
8463   if test -s conftest.err; then
8464     ac_cpp_err=$ac_c_preproc_warn_flag
8465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8466   else
8467     ac_cpp_err=
8468   fi
8469 else
8470   ac_cpp_err=yes
8471 fi
8472 if test -z "$ac_cpp_err"; then
8473   ac_header_preproc=yes
8474 else
8475   echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478   ac_header_preproc=no
8479 fi
8480
8481 rm -f conftest.err conftest.$ac_ext
8482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8483 echo "${ECHO_T}$ac_header_preproc" >&6; }
8484
8485 # So?  What about this header?
8486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8487   yes:no: )
8488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8492     ac_header_preproc=yes
8493     ;;
8494   no:yes:* )
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8507     ( cat <<\_ASBOX
8508 ## ------------------------------------ ##
8509 ## Report this to http://llvm.org/bugs/ ##
8510 ## ------------------------------------ ##
8511 _ASBOX
8512      ) | sed "s/^/$as_me: WARNING:     /" >&2
8513     ;;
8514 esac
8515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   eval "$as_ac_Header=\$ac_header_preproc"
8521 fi
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523                { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525
8526 fi
8527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8528   cat >>confdefs.h <<_ACEOF
8529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8530 _ACEOF
8531
8532 fi
8533
8534 done
8535
8536 # Check whether --enable-ltdl-install was given.
8537 if test "${enable_ltdl_install+set}" = set; then
8538   enableval=$enable_ltdl_install;
8539 fi
8540
8541
8542
8543
8544 if test x"${enable_ltdl_install-no}" != xno; then
8545   INSTALL_LTDL_TRUE=
8546   INSTALL_LTDL_FALSE='#'
8547 else
8548   INSTALL_LTDL_TRUE='#'
8549   INSTALL_LTDL_FALSE=
8550 fi
8551
8552
8553
8554 if test x"${enable_ltdl_convenience-no}" != xno; then
8555   CONVENIENCE_LTDL_TRUE=
8556   CONVENIENCE_LTDL_FALSE='#'
8557 else
8558   CONVENIENCE_LTDL_TRUE='#'
8559   CONVENIENCE_LTDL_FALSE=
8560 fi
8561
8562
8563 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8565 library_names_spec=
8566 libname_spec='lib$name'
8567 soname_spec=
8568 shrext_cmds=".so"
8569 postinstall_cmds=
8570 postuninstall_cmds=
8571 finish_cmds=
8572 finish_eval=
8573 shlibpath_var=
8574 shlibpath_overrides_runpath=unknown
8575 version_type=none
8576 dynamic_linker="$host_os ld.so"
8577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8578 if test "$GCC" = yes; then
8579   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8580   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8581     # if the path contains ";" then we assume it to be the separator
8582     # otherwise default to the standard path separator (i.e. ":") - it is
8583     # assumed that no part of a normal pathname contains ";" but that should
8584     # okay in the real world where ";" in dirpaths is itself problematic.
8585     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8586   else
8587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8588   fi
8589 else
8590   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8591 fi
8592 need_lib_prefix=unknown
8593 hardcode_into_libs=no
8594
8595 # when you set need_version to no, make sure it does not cause -set_version
8596 # flags to be left without arguments
8597 need_version=unknown
8598
8599 case $host_os in
8600 aix3*)
8601   version_type=linux
8602   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8603   shlibpath_var=LIBPATH
8604
8605   # AIX 3 has no versioning support, so we append a major version to the name.
8606   soname_spec='${libname}${release}${shared_ext}$major'
8607   ;;
8608
8609 aix4* | aix5*)
8610   version_type=linux
8611   need_lib_prefix=no
8612   need_version=no
8613   hardcode_into_libs=yes
8614   if test "$host_cpu" = ia64; then
8615     # AIX 5 supports IA64
8616     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8617     shlibpath_var=LD_LIBRARY_PATH
8618   else
8619     # With GCC up to 2.95.x, collect2 would create an import file
8620     # for dependence libraries.  The import file would start with
8621     # the line `#! .'.  This would cause the generated library to
8622     # depend on `.', always an invalid library.  This was fixed in
8623     # development snapshots of GCC prior to 3.0.
8624     case $host_os in
8625       aix4 | aix4.[01] | aix4.[01].*)
8626       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8627            echo ' yes '
8628            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8629         :
8630       else
8631         can_build_shared=no
8632       fi
8633       ;;
8634     esac
8635     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8636     # soname into executable. Probably we can add versioning support to
8637     # collect2, so additional links can be useful in future.
8638     if test "$aix_use_runtimelinking" = yes; then
8639       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8640       # instead of lib<name>.a to let people know that these are not
8641       # typical AIX shared libraries.
8642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643     else
8644       # We preserve .a as extension for shared libraries through AIX4.2
8645       # and later when we are not doing run time linking.
8646       library_names_spec='${libname}${release}.a $libname.a'
8647       soname_spec='${libname}${release}${shared_ext}$major'
8648     fi
8649     shlibpath_var=LIBPATH
8650   fi
8651   ;;
8652
8653 amigaos*)
8654   library_names_spec='$libname.ixlibrary $libname.a'
8655   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8656   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8657   ;;
8658
8659 beos*)
8660   library_names_spec='${libname}${shared_ext}'
8661   dynamic_linker="$host_os ld.so"
8662   shlibpath_var=LIBRARY_PATH
8663   ;;
8664
8665 bsdi[45]*)
8666   version_type=linux
8667   need_version=no
8668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669   soname_spec='${libname}${release}${shared_ext}$major'
8670   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8671   shlibpath_var=LD_LIBRARY_PATH
8672   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8673   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8674   # the default ld.so.conf also contains /usr/contrib/lib and
8675   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8676   # libtool to hard-code these into programs
8677   ;;
8678
8679 cygwin* | mingw* | pw32*)
8680   version_type=windows
8681   shrext_cmds=".dll"
8682   need_version=no
8683   need_lib_prefix=no
8684
8685   case $GCC,$host_os in
8686   yes,cygwin* | yes,mingw* | yes,pw32*)
8687     library_names_spec='$libname.dll.a'
8688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8689     postinstall_cmds='base_file=`basename \${file}`~
8690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8691       dldir=$destdir/`dirname \$dlpath`~
8692       test -d \$dldir || mkdir -p \$dldir~
8693       $install_prog $dir/$dlname \$dldir/$dlname~
8694       chmod a+x \$dldir/$dlname'
8695     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8696       dlpath=$dir/\$dldll~
8697        $rm \$dlpath'
8698     shlibpath_overrides_runpath=yes
8699
8700     case $host_os in
8701     cygwin*)
8702       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8703       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8705       ;;
8706     mingw*)
8707       # MinGW DLLs use traditional 'lib' prefix
8708       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8710       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8711         # It is most probably a Windows format PATH printed by
8712         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8713         # path with ; separators, and with drive letters. We can handle the
8714         # drive letters (cygwin fileutils understands them), so leave them,
8715         # especially as we might pass files found there to a mingw objdump,
8716         # which wouldn't understand a cygwinified path. Ahh.
8717         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8718       else
8719         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8720       fi
8721       ;;
8722     pw32*)
8723       # pw32 DLLs use 'pw' prefix rather than 'lib'
8724       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725       ;;
8726     esac
8727     ;;
8728
8729   *)
8730     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8731     ;;
8732   esac
8733   dynamic_linker='Win32 ld.exe'
8734   # FIXME: first we should search . and the directory the executable is in
8735   shlibpath_var=PATH
8736   ;;
8737
8738 darwin* | rhapsody*)
8739   dynamic_linker="$host_os dyld"
8740   version_type=darwin
8741   need_lib_prefix=no
8742   need_version=no
8743   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8744   soname_spec='${libname}${release}${major}$shared_ext'
8745   shlibpath_overrides_runpath=yes
8746   shlibpath_var=DYLD_LIBRARY_PATH
8747   shrext_cmds='.dylib'
8748   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8749   if test "$GCC" = yes; then
8750     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8751   else
8752     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8753   fi
8754   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8755   ;;
8756
8757 dgux*)
8758   version_type=linux
8759   need_lib_prefix=no
8760   need_version=no
8761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8762   soname_spec='${libname}${release}${shared_ext}$major'
8763   shlibpath_var=LD_LIBRARY_PATH
8764   ;;
8765
8766 freebsd1.*)
8767   dynamic_linker=no
8768   ;;
8769
8770 kfreebsd*-gnu)
8771   version_type=linux
8772   need_lib_prefix=no
8773   need_version=no
8774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775   soname_spec='${libname}${release}${shared_ext}$major'
8776   shlibpath_var=LD_LIBRARY_PATH
8777   shlibpath_overrides_runpath=no
8778   hardcode_into_libs=yes
8779   dynamic_linker='GNU ld.so'
8780   ;;
8781
8782 freebsd* | dragonfly*)
8783   # DragonFly does not have aout.  When/if they implement a new
8784   # versioning mechanism, adjust this.
8785   if test -x /usr/bin/objformat; then
8786     objformat=`/usr/bin/objformat`
8787   else
8788     case $host_os in
8789     freebsd[123].*) objformat=aout ;;
8790     *) objformat=elf ;;
8791     esac
8792   fi
8793   version_type=freebsd-$objformat
8794   case $version_type in
8795     freebsd-elf*)
8796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8797       need_version=no
8798       need_lib_prefix=no
8799       ;;
8800     freebsd-*)
8801       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8802       need_version=yes
8803       ;;
8804   esac
8805   shlibpath_var=LD_LIBRARY_PATH
8806   case $host_os in
8807   freebsd2.*)
8808     shlibpath_overrides_runpath=yes
8809     ;;
8810   freebsd3.[01]* | freebsdelf3.[01]*)
8811     shlibpath_overrides_runpath=yes
8812     hardcode_into_libs=yes
8813     ;;
8814   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8815   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8816     shlibpath_overrides_runpath=no
8817     hardcode_into_libs=yes
8818     ;;
8819   freebsd*) # from 4.6 on
8820     shlibpath_overrides_runpath=yes
8821     hardcode_into_libs=yes
8822     ;;
8823   esac
8824   ;;
8825
8826 gnu*)
8827   version_type=linux
8828   need_lib_prefix=no
8829   need_version=no
8830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8831   soname_spec='${libname}${release}${shared_ext}$major'
8832   shlibpath_var=LD_LIBRARY_PATH
8833   hardcode_into_libs=yes
8834   ;;
8835
8836 hpux9* | hpux10* | hpux11*)
8837   # Give a soname corresponding to the major version so that dld.sl refuses to
8838   # link against other versions.
8839   version_type=sunos
8840   need_lib_prefix=no
8841   need_version=no
8842   case $host_cpu in
8843   ia64*)
8844     shrext_cmds='.so'
8845     hardcode_into_libs=yes
8846     dynamic_linker="$host_os dld.so"
8847     shlibpath_var=LD_LIBRARY_PATH
8848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850     soname_spec='${libname}${release}${shared_ext}$major'
8851     if test "X$HPUX_IA64_MODE" = X32; then
8852       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8853     else
8854       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8855     fi
8856     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8857     ;;
8858    hppa*64*)
8859      shrext_cmds='.sl'
8860      hardcode_into_libs=yes
8861      dynamic_linker="$host_os dld.sl"
8862      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8863      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865      soname_spec='${libname}${release}${shared_ext}$major'
8866      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8867      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8868      ;;
8869    *)
8870     shrext_cmds='.sl'
8871     dynamic_linker="$host_os dld.sl"
8872     shlibpath_var=SHLIB_PATH
8873     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875     soname_spec='${libname}${release}${shared_ext}$major'
8876     ;;
8877   esac
8878   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8879   postinstall_cmds='chmod 555 $lib'
8880   ;;
8881
8882 interix3*)
8883   version_type=linux
8884   need_lib_prefix=no
8885   need_version=no
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8889   shlibpath_var=LD_LIBRARY_PATH
8890   shlibpath_overrides_runpath=no
8891   hardcode_into_libs=yes
8892   ;;
8893
8894 irix5* | irix6* | nonstopux*)
8895   case $host_os in
8896     nonstopux*) version_type=nonstopux ;;
8897     *)
8898         if test "$lt_cv_prog_gnu_ld" = yes; then
8899                 version_type=linux
8900         else
8901                 version_type=irix
8902         fi ;;
8903   esac
8904   need_lib_prefix=no
8905   need_version=no
8906   soname_spec='${libname}${release}${shared_ext}$major'
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8908   case $host_os in
8909   irix5* | nonstopux*)
8910     libsuff= shlibsuff=
8911     ;;
8912   *)
8913     case $LD in # libtool.m4 will add one of these switches to LD
8914     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8915       libsuff= shlibsuff= libmagic=32-bit;;
8916     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8917       libsuff=32 shlibsuff=N32 libmagic=N32;;
8918     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8919       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8920     *) libsuff= shlibsuff= libmagic=never-match;;
8921     esac
8922     ;;
8923   esac
8924   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8925   shlibpath_overrides_runpath=no
8926   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8927   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8928   hardcode_into_libs=yes
8929   ;;
8930
8931 # No shared lib support for Linux oldld, aout, or coff.
8932 linux*oldld* | linux*aout* | linux*coff*)
8933   dynamic_linker=no
8934   ;;
8935
8936 # This must be Linux ELF.
8937 linux*)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8944   shlibpath_var=LD_LIBRARY_PATH
8945   shlibpath_overrides_runpath=no
8946   # This implies no fast_install, which is unacceptable.
8947   # Some rework will be needed to allow for fast_install
8948   # before this can be enabled.
8949   hardcode_into_libs=yes
8950
8951   # Append ld.so.conf contents to the search path
8952   if test -f /etc/ld.so.conf; then
8953     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8954     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8955   fi
8956
8957   # We used to test for /lib/ld.so.1 and disable shared libraries on
8958   # powerpc, because MkLinux only supported shared libraries with the
8959   # GNU dynamic linker.  Since this was broken with cross compilers,
8960   # most powerpc-linux boxes support dynamic linking these days and
8961   # people can always --disable-shared, the test was removed, and we
8962   # assume the GNU/Linux dynamic linker is in use.
8963   dynamic_linker='GNU/Linux ld.so'
8964   ;;
8965
8966 knetbsd*-gnu)
8967   version_type=linux
8968   need_lib_prefix=no
8969   need_version=no
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=no
8974   hardcode_into_libs=yes
8975   dynamic_linker='GNU ld.so'
8976   ;;
8977
8978 netbsd*)
8979   version_type=sunos
8980   need_lib_prefix=no
8981   need_version=no
8982   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985     dynamic_linker='NetBSD (a.out) ld.so'
8986   else
8987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988     soname_spec='${libname}${release}${shared_ext}$major'
8989     dynamic_linker='NetBSD ld.elf_so'
8990   fi
8991   shlibpath_var=LD_LIBRARY_PATH
8992   shlibpath_overrides_runpath=yes
8993   hardcode_into_libs=yes
8994   ;;
8995
8996 newsos6)
8997   version_type=linux
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999   shlibpath_var=LD_LIBRARY_PATH
9000   shlibpath_overrides_runpath=yes
9001   ;;
9002
9003 nto-qnx*)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   soname_spec='${libname}${release}${shared_ext}$major'
9009   shlibpath_var=LD_LIBRARY_PATH
9010   shlibpath_overrides_runpath=yes
9011   ;;
9012
9013 openbsd* | bitrig*)
9014   version_type=sunos
9015   sys_lib_dlsearch_path_spec="/usr/lib"
9016   need_lib_prefix=no
9017   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9018   case $host_os in
9019     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9020     *)                         need_version=no  ;;
9021   esac
9022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9023   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9026     case $host_os in
9027       openbsd2.[89] | openbsd2.[89].*)
9028         shlibpath_overrides_runpath=no
9029         ;;
9030       *)
9031         shlibpath_overrides_runpath=yes
9032         ;;
9033       esac
9034   else
9035     shlibpath_overrides_runpath=yes
9036   fi
9037   ;;
9038
9039 os2*)
9040   libname_spec='$name'
9041   shrext_cmds=".dll"
9042   need_lib_prefix=no
9043   library_names_spec='$libname${shared_ext} $libname.a'
9044   dynamic_linker='OS/2 ld.exe'
9045   shlibpath_var=LIBPATH
9046   ;;
9047
9048 osf3* | osf4* | osf5*)
9049   version_type=osf
9050   need_lib_prefix=no
9051   need_version=no
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9056   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9057   ;;
9058
9059 solaris*)
9060   version_type=linux
9061   need_lib_prefix=no
9062   need_version=no
9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   shlibpath_var=LD_LIBRARY_PATH
9066   shlibpath_overrides_runpath=yes
9067   hardcode_into_libs=yes
9068   # ldd complains unless libraries are executable
9069   postinstall_cmds='chmod +x $lib'
9070   ;;
9071
9072 sunos4*)
9073   version_type=sunos
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9075   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   shlibpath_overrides_runpath=yes
9078   if test "$with_gnu_ld" = yes; then
9079     need_lib_prefix=no
9080   fi
9081   need_version=yes
9082   ;;
9083
9084 sysv4 | sysv4.3*)
9085   version_type=linux
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   shlibpath_var=LD_LIBRARY_PATH
9089   case $host_vendor in
9090     sni)
9091       shlibpath_overrides_runpath=no
9092       need_lib_prefix=no
9093       export_dynamic_flag_spec='${wl}-Blargedynsym'
9094       runpath_var=LD_RUN_PATH
9095       ;;
9096     siemens)
9097       need_lib_prefix=no
9098       ;;
9099     motorola)
9100       need_lib_prefix=no
9101       need_version=no
9102       shlibpath_overrides_runpath=no
9103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9104       ;;
9105   esac
9106   ;;
9107
9108 sysv4*MP*)
9109   if test -d /usr/nec ;then
9110     version_type=linux
9111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9112     soname_spec='$libname${shared_ext}.$major'
9113     shlibpath_var=LD_LIBRARY_PATH
9114   fi
9115   ;;
9116
9117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9118   version_type=freebsd-elf
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   hardcode_into_libs=yes
9125   if test "$with_gnu_ld" = yes; then
9126     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9127     shlibpath_overrides_runpath=no
9128   else
9129     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9130     shlibpath_overrides_runpath=yes
9131     case $host_os in
9132       sco3.2v5*)
9133         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9134         ;;
9135     esac
9136   fi
9137   sys_lib_dlsearch_path_spec='/usr/lib'
9138   ;;
9139
9140 uts4*)
9141   version_type=linux
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143   soname_spec='${libname}${release}${shared_ext}$major'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   ;;
9146
9147 *)
9148   dynamic_linker=no
9149   ;;
9150 esac
9151 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9152 echo "${ECHO_T}$dynamic_linker" >&6; }
9153 test "$dynamic_linker" = no && can_build_shared=no
9154
9155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9156 if test "$GCC" = yes; then
9157   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9158 fi
9159
9160
9161 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9162 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9163 if test "${libltdl_cv_shlibext+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166
9167 module=yes
9168 eval libltdl_cv_shlibext=$shrext_cmds
9169
9170 fi
9171 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9172 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9173 if test -n "$libltdl_cv_shlibext"; then
9174
9175 cat >>confdefs.h <<_ACEOF
9176 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9177 _ACEOF
9178
9179 fi
9180
9181
9182 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9183 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9184 if test "${libltdl_cv_sys_search_path+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9188 fi
9189 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9190 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9191 if test -n "$libltdl_cv_sys_search_path"; then
9192   sys_search_path=
9193   for dir in $libltdl_cv_sys_search_path; do
9194     if test -z "$sys_search_path"; then
9195       sys_search_path="$dir"
9196     else
9197       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9198     fi
9199   done
9200
9201 cat >>confdefs.h <<_ACEOF
9202 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9203 _ACEOF
9204
9205 fi
9206
9207 { echo "$as_me:$LINENO: checking for objdir" >&5
9208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9209 if test "${libltdl_cv_objdir+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   libltdl_cv_objdir="$objdir"
9213   if test -n "$objdir"; then
9214     :
9215   else
9216     rm -f .libs 2>/dev/null
9217     mkdir .libs 2>/dev/null
9218     if test -d .libs; then
9219       libltdl_cv_objdir=.libs
9220     else
9221       # MS-DOS does not allow filenames that begin with a dot.
9222       libltdl_cv_objdir=_libs
9223     fi
9224   rmdir .libs 2>/dev/null
9225   fi
9226
9227 fi
9228 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9229 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9233 _ACEOF
9234
9235
9236
9237
9238
9239
9240 # Check for command to grab the raw symbol name followed by C symbol from nm.
9241 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9242 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9243 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246
9247 # These are sane defaults that work on at least a few old systems.
9248 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9249
9250 # Character class describing NM global symbol codes.
9251 symcode='[BCDEGRST]'
9252
9253 # Regexp to match symbols that can be accessed directly from C.
9254 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9255
9256 # Transform an extracted symbol line into a proper C declaration
9257 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9258
9259 # Transform an extracted symbol line into symbol name and symbol address
9260 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9261
9262 # Define system-specific variables.
9263 case $host_os in
9264 aix*)
9265   symcode='[BCDT]'
9266   ;;
9267 cygwin* | mingw* | pw32*)
9268   symcode='[ABCDGISTW]'
9269   ;;
9270 hpux*) # Its linker distinguishes data from code symbols
9271   if test "$host_cpu" = ia64; then
9272     symcode='[ABCDEGRST]'
9273   fi
9274   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9275   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9276   ;;
9277 linux*)
9278   if test "$host_cpu" = ia64; then
9279     symcode='[ABCDGIRSTW]'
9280     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9281     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9282   fi
9283   ;;
9284 irix* | nonstopux*)
9285   symcode='[BCDEGRST]'
9286   ;;
9287 osf*)
9288   symcode='[BCDEGQRST]'
9289   ;;
9290 solaris*)
9291   symcode='[BDRT]'
9292   ;;
9293 sco3.2v5*)
9294   symcode='[DT]'
9295   ;;
9296 sysv4.2uw2*)
9297   symcode='[DT]'
9298   ;;
9299 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9300   symcode='[ABDT]'
9301   ;;
9302 sysv4)
9303   symcode='[DFNSTU]'
9304   ;;
9305 esac
9306
9307 # Handle CRLF in mingw tool chain
9308 opt_cr=
9309 case $build_os in
9310 mingw*)
9311   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9312   ;;
9313 esac
9314
9315 # If we're using GNU nm, then use its standard symbol codes.
9316 case `$NM -V 2>&1` in
9317 *GNU* | *'with BFD'*)
9318   symcode='[ABCDGIRSTW]' ;;
9319 esac
9320
9321 # Try without a prefix undercore, then with it.
9322 for ac_symprfx in "" "_"; do
9323
9324   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9325   symxfrm="\\1 $ac_symprfx\\2 \\2"
9326
9327   # Write the raw and C identifiers.
9328   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9329
9330   # Check to see that the pipe works correctly.
9331   pipe_works=no
9332
9333   rm -f conftest*
9334   cat > conftest.$ac_ext <<EOF
9335 #ifdef __cplusplus
9336 extern "C" {
9337 #endif
9338 char nm_test_var;
9339 void nm_test_func(){}
9340 #ifdef __cplusplus
9341 }
9342 #endif
9343 int main(){nm_test_var='a';nm_test_func();return(0);}
9344 EOF
9345
9346   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347   (eval $ac_compile) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; then
9351     # Now try to grab the symbols.
9352     nlist=conftest.nm
9353     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9354   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && test -s "$nlist"; then
9358       # Try sorting and uniquifying the output.
9359       if sort "$nlist" | uniq > "$nlist"T; then
9360         mv -f "$nlist"T "$nlist"
9361       else
9362         rm -f "$nlist"T
9363       fi
9364
9365       # Make sure that we snagged all the symbols we need.
9366       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9367         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9368           cat <<EOF > conftest.$ac_ext
9369 #ifdef __cplusplus
9370 extern "C" {
9371 #endif
9372
9373 EOF
9374           # Now generate the symbol file.
9375           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9376
9377           cat <<EOF >> conftest.$ac_ext
9378 #if defined (__STDC__) && __STDC__
9379 # define lt_ptr_t void *
9380 #else
9381 # define lt_ptr_t char *
9382 # define const
9383 #endif
9384
9385 /* The mapping between symbol names and symbols. */
9386 const struct {
9387   const char *name;
9388   lt_ptr_t address;
9389 }
9390 lt_preloaded_symbols[] =
9391 {
9392 EOF
9393           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9394           cat <<\EOF >> conftest.$ac_ext
9395   {0, (lt_ptr_t) 0}
9396 };
9397
9398 #ifdef __cplusplus
9399 }
9400 #endif
9401 EOF
9402           # Now try linking the two files.
9403           mv conftest.$ac_objext conftstm.$ac_objext
9404           lt_save_LIBS="$LIBS"
9405           lt_save_CFLAGS="$CFLAGS"
9406           LIBS="conftstm.$ac_objext"
9407           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9408           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9413             pipe_works=yes
9414           fi
9415           LIBS="$lt_save_LIBS"
9416           CFLAGS="$lt_save_CFLAGS"
9417         else
9418           echo "cannot find nm_test_func in $nlist" >&5
9419         fi
9420       else
9421         echo "cannot find nm_test_var in $nlist" >&5
9422       fi
9423     else
9424       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9425     fi
9426   else
9427     echo "$progname: failed program was:" >&5
9428     cat conftest.$ac_ext >&5
9429   fi
9430   rm -f conftest* conftst*
9431
9432   # Do not use the global_symbol_pipe unless it works.
9433   if test "$pipe_works" = yes; then
9434     break
9435   else
9436     lt_cv_sys_global_symbol_pipe=
9437   fi
9438 done
9439
9440 fi
9441
9442 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9443   lt_cv_sys_global_symbol_to_cdecl=
9444 fi
9445 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9446   { echo "$as_me:$LINENO: result: failed" >&5
9447 echo "${ECHO_T}failed" >&6; }
9448 else
9449   { echo "$as_me:$LINENO: result: ok" >&5
9450 echo "${ECHO_T}ok" >&6; }
9451 fi
9452
9453
9454 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9455 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9456 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9460     libltdl_cv_preloaded_symbols=yes
9461   else
9462     libltdl_cv_preloaded_symbols=no
9463   fi
9464
9465 fi
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9467 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9468 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_PRELOADED_SYMBOLS 1
9472 _ACEOF
9473
9474 fi
9475
9476 LIBADD_DL=
9477
9478 ac_ext=c
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484
9485 { echo "$as_me:$LINENO: checking for shl_load" >&5
9486 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9487 if test "${ac_cv_func_shl_load+set}" = set; then
9488   echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490   cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9498 #define shl_load innocuous_shl_load
9499
9500 /* System header to define __stub macros and hopefully few prototypes,
9501     which can conflict with char shl_load (); below.
9502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503     <limits.h> exists even on freestanding compilers.  */
9504
9505 #ifdef __STDC__
9506 # include <limits.h>
9507 #else
9508 # include <assert.h>
9509 #endif
9510
9511 #undef shl_load
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514    Use char because int might match the return type of a GCC
9515    builtin and then its argument prototype would still apply.  */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char shl_load ();
9520 /* The GNU C library defines this for functions which it implements
9521     to always fail with ENOSYS.  Some functions are actually named
9522     something starting with __ and the normal name is an alias.  */
9523 #if defined __stub_shl_load || defined __stub___shl_load
9524 choke me
9525 #endif
9526
9527 int
9528 main ()
9529 {
9530 return shl_load ();
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542   (eval "$ac_link") 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550   { (case "(($ac_try" in
9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552   *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555   (eval "$ac_try") 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; } &&
9559          { ac_try='test -s conftest$ac_exeext'
9560   { (case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_try") 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   ac_cv_func_shl_load=yes
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574         ac_cv_func_shl_load=no
9575 fi
9576
9577 rm -f core conftest.err conftest.$ac_objext \
9578       conftest$ac_exeext conftest.$ac_ext
9579 fi
9580 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9582 if test $ac_cv_func_shl_load = yes; then
9583
9584 cat >>confdefs.h <<\_ACEOF
9585 #define HAVE_SHL_LOAD 1
9586 _ACEOF
9587
9588 else
9589   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9590 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-ldld  $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602
9603 /* Override any GCC internal prototype to avoid an error.
9604    Use char because int might match the return type of a GCC
9605    builtin and then its argument prototype would still apply.  */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char shl_load ();
9610 int
9611 main ()
9612 {
9613 return shl_load ();
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } &&
9632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633   { (case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_try") 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_try") 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; }; then
9652   ac_cv_lib_dld_shl_load=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657         ac_cv_lib_dld_shl_load=no
9658 fi
9659
9660 rm -f core conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9663 fi
9664 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9665 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9666 if test $ac_cv_lib_dld_shl_load = yes; then
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define HAVE_SHL_LOAD 1
9670 _ACEOF
9671
9672         LIBADD_DL="$LIBADD_DL -ldld"
9673 else
9674   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   ac_check_lib_save_LIBS=$LIBS
9680 LIBS="-ldl  $LIBS"
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char dlopen ();
9695 int
9696 main ()
9697 {
9698 return dlopen ();
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9705 case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710   (eval "$ac_link") 2>conftest.er1
9711   ac_status=$?
9712   grep -v '^ *+' conftest.er1 >conftest.err
9713   rm -f conftest.er1
9714   cat conftest.err >&5
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718   { (case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_try") 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; } &&
9727          { ac_try='test -s conftest$ac_exeext'
9728   { (case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733   (eval "$ac_try") 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; }; then
9737   ac_cv_lib_dl_dlopen=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742         ac_cv_lib_dl_dlopen=no
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext \
9746       conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9748 fi
9749 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9751 if test $ac_cv_lib_dl_dlopen = yes; then
9752
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_LIBDL 1
9755 _ACEOF
9756
9757                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765 #if HAVE_DLFCN_H
9766 #  include <dlfcn.h>
9767 #endif
9768
9769 int
9770 main ()
9771 {
9772 dlopen(0, 0);
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9779 case "(($ac_try" in
9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781   *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784   (eval "$ac_link") 2>conftest.er1
9785   ac_status=$?
9786   grep -v '^ *+' conftest.er1 >conftest.err
9787   rm -f conftest.er1
9788   cat conftest.err >&5
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792   { (case "(($ac_try" in
9793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794   *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797   (eval "$ac_try") 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; } &&
9801          { ac_try='test -s conftest$ac_exeext'
9802   { (case "(($ac_try" in
9803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804   *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807   (eval "$ac_try") 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811
9812 cat >>confdefs.h <<\_ACEOF
9813 #define HAVE_LIBDL 1
9814 _ACEOF
9815  libltdl_cv_func_dlopen="yes"
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9821 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9822 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   ac_check_lib_save_LIBS=$LIBS
9826 LIBS="-lsvld  $LIBS"
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833
9834 /* Override any GCC internal prototype to avoid an error.
9835    Use char because int might match the return type of a GCC
9836    builtin and then its argument prototype would still apply.  */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char dlopen ();
9841 int
9842 main ()
9843 {
9844 return dlopen ();
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9851 case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_link") 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864   { (case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_try") 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; } &&
9873          { ac_try='test -s conftest$ac_exeext'
9874   { (case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_try") 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_lib_svld_dlopen=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888         ac_cv_lib_svld_dlopen=no
9889 fi
9890
9891 rm -f core conftest.err conftest.$ac_objext \
9892       conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9894 fi
9895 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9896 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9897 if test $ac_cv_lib_svld_dlopen = yes; then
9898
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_LIBDL 1
9901 _ACEOF
9902
9903                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9904 else
9905   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9906 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   ac_check_lib_save_LIBS=$LIBS
9911 LIBS="-ldld  $LIBS"
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920    Use char because int might match the return type of a GCC
9921    builtin and then its argument prototype would still apply.  */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char dld_link ();
9926 int
9927 main ()
9928 {
9929 return dld_link ();
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938   *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941   (eval "$ac_link") 2>conftest.er1
9942   ac_status=$?
9943   grep -v '^ *+' conftest.er1 >conftest.err
9944   rm -f conftest.er1
9945   cat conftest.err >&5
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); } &&
9948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9949   { (case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_try") 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; } &&
9958          { ac_try='test -s conftest$ac_exeext'
9959   { (case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_try") 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_cv_lib_dld_dld_link=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_cv_lib_dld_dld_link=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext \
9977       conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9979 fi
9980 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9981 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9982 if test $ac_cv_lib_dld_dld_link = yes; then
9983
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_DLD 1
9986 _ACEOF
9987
9988                 LIBADD_DL="$LIBADD_DL -ldld"
9989 else
9990   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9991 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9992 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10003 #define _dyld_func_lookup innocuous__dyld_func_lookup
10004
10005 /* System header to define __stub macros and hopefully few prototypes,
10006     which can conflict with char _dyld_func_lookup (); below.
10007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008     <limits.h> exists even on freestanding compilers.  */
10009
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10015
10016 #undef _dyld_func_lookup
10017
10018 /* Override any GCC internal prototype to avoid an error.
10019    Use char because int might match the return type of a GCC
10020    builtin and then its argument prototype would still apply.  */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char _dyld_func_lookup ();
10025 /* The GNU C library defines this for functions which it implements
10026     to always fail with ENOSYS.  Some functions are actually named
10027     something starting with __ and the normal name is an alias.  */
10028 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10029 choke me
10030 #endif
10031
10032 int
10033 main ()
10034 {
10035 return _dyld_func_lookup ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_link") 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055   { (case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_try") 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; } &&
10064          { ac_try='test -s conftest$ac_exeext'
10065   { (case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_try") 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_func__dyld_func_lookup=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_func__dyld_func_lookup=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084 fi
10085 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10086 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10087 if test $ac_cv_func__dyld_func_lookup = yes; then
10088
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_DYLD 1
10091 _ACEOF
10092
10093 fi
10094
10095
10096 fi
10097
10098
10099 fi
10100
10101
10102 fi
10103
10104 rm -f core conftest.err conftest.$ac_objext \
10105       conftest$ac_exeext conftest.$ac_ext
10106
10107 fi
10108
10109
10110 fi
10111
10112
10113 fi
10114
10115
10116 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10117 then
10118   lt_save_LIBS="$LIBS"
10119   LIBS="$LIBS $LIBADD_DL"
10120
10121 for ac_func in dlerror
10122 do
10123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h.  */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h.  */
10135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10137 #define $ac_func innocuous_$ac_func
10138
10139 /* System header to define __stub macros and hopefully few prototypes,
10140     which can conflict with char $ac_func (); below.
10141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142     <limits.h> exists even on freestanding compilers.  */
10143
10144 #ifdef __STDC__
10145 # include <limits.h>
10146 #else
10147 # include <assert.h>
10148 #endif
10149
10150 #undef $ac_func
10151
10152 /* Override any GCC internal prototype to avoid an error.
10153    Use char because int might match the return type of a GCC
10154    builtin and then its argument prototype would still apply.  */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char $ac_func ();
10159 /* The GNU C library defines this for functions which it implements
10160     to always fail with ENOSYS.  Some functions are actually named
10161     something starting with __ and the normal name is an alias.  */
10162 #if defined __stub_$ac_func || defined __stub___$ac_func
10163 choke me
10164 #endif
10165
10166 int
10167 main ()
10168 {
10169 return $ac_func ();
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178   *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181   (eval "$ac_link") 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10189   { (case "(($ac_try" in
10190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191   *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194   (eval "$ac_try") 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; } &&
10198          { ac_try='test -s conftest$ac_exeext'
10199   { (case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204   (eval "$ac_try") 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   eval "$as_ac_var=yes"
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213         eval "$as_ac_var=no"
10214 fi
10215
10216 rm -f core conftest.err conftest.$ac_objext \
10217       conftest$ac_exeext conftest.$ac_ext
10218 fi
10219 ac_res=`eval echo '${'$as_ac_var'}'`
10220                { echo "$as_me:$LINENO: result: $ac_res" >&5
10221 echo "${ECHO_T}$ac_res" >&6; }
10222 if test `eval echo '${'$as_ac_var'}'` = yes; then
10223   cat >>confdefs.h <<_ACEOF
10224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225 _ACEOF
10226
10227 fi
10228 done
10229
10230   LIBS="$lt_save_LIBS"
10231 fi
10232 ac_ext=c
10233 ac_cpp='$CPP $CPPFLAGS'
10234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238
10239
10240 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10241 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10242 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   ac_cv_sys_symbol_underscore=no
10246   cat > conftest.$ac_ext <<EOF
10247 void nm_test_func(){}
10248 int main(){nm_test_func;return 0;}
10249 EOF
10250   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; then
10255     # Now try to grab the symbols.
10256     ac_nlist=conftest.nm
10257     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10258   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } && test -s "$ac_nlist"; then
10262       # See whether the symbols have a leading underscore.
10263       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10264         ac_cv_sys_symbol_underscore=yes
10265       else
10266         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10267           :
10268         else
10269           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10270         fi
10271       fi
10272     else
10273       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10274     fi
10275   else
10276     echo "configure: failed program was:" >&5
10277     cat conftest.c >&5
10278   fi
10279   rm -rf conftest*
10280
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10283 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10284
10285
10286 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10287   if test x"$libltdl_cv_func_dlopen" = xyes ||
10288      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10289         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10290 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10291 if test "${libltdl_cv_need_uscore+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   libltdl_cv_need_uscore=unknown
10295           save_LIBS="$LIBS"
10296           LIBS="$LIBS $LIBADD_DL"
10297           if test "$cross_compiling" = yes; then :
10298   libltdl_cv_need_uscore=cross
10299 else
10300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301   lt_status=$lt_dlunknown
10302   cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10305
10306 #if HAVE_DLFCN_H
10307 #include <dlfcn.h>
10308 #endif
10309
10310 #include <stdio.h>
10311
10312 #ifdef RTLD_GLOBAL
10313 #  define LT_DLGLOBAL           RTLD_GLOBAL
10314 #else
10315 #  ifdef DL_GLOBAL
10316 #    define LT_DLGLOBAL         DL_GLOBAL
10317 #  else
10318 #    define LT_DLGLOBAL         0
10319 #  endif
10320 #endif
10321
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323    find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10325 #  ifdef RTLD_LAZY
10326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10327 #  else
10328 #    ifdef DL_LAZY
10329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10330 #    else
10331 #      ifdef RTLD_NOW
10332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10333 #      else
10334 #        ifdef DL_NOW
10335 #          define LT_DLLAZY_OR_NOW      DL_NOW
10336 #        else
10337 #          define LT_DLLAZY_OR_NOW      0
10338 #        endif
10339 #      endif
10340 #    endif
10341 #  endif
10342 #endif
10343
10344 #ifdef __cplusplus
10345 extern "C" void exit (int);
10346 #endif
10347
10348 void fnord() { int i=42;}
10349 int main ()
10350 {
10351   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352   int status = $lt_dlunknown;
10353
10354   if (self)
10355     {
10356       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10357       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358       /* dlclose (self); */
10359     }
10360   else
10361     puts (dlerror ());
10362
10363     exit (status);
10364 }
10365 EOF
10366   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367   (eval $ac_link) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371     (./conftest; exit; ) >&5 2>/dev/null
10372     lt_status=$?
10373     case x$lt_status in
10374       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10375       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10376       x$lt_dlunknown|x*)  ;;
10377     esac
10378   else :
10379     # compilation failed
10380
10381   fi
10382 fi
10383 rm -fr conftest*
10384
10385           LIBS="$save_LIBS"
10386
10387 fi
10388 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10389 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10390   fi
10391 fi
10392
10393 if test x"$libltdl_cv_need_uscore" = xyes; then
10394
10395 cat >>confdefs.h <<\_ACEOF
10396 #define NEED_USCORE 1
10397 _ACEOF
10398
10399 fi
10400
10401
10402 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10403 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10404 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   # PORTME does your system automatically load deplibs for dlopen?
10408   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10409   # For now, we just catch OSes we know something about -- in the
10410   # future, we'll try test this programmatically.
10411   libltdl_cv_sys_dlopen_deplibs=unknown
10412   case "$host_os" in
10413   aix3*|aix4.1.*|aix4.2.*)
10414     # Unknown whether this is true for these versions of AIX, but
10415     # we want this `case' here to explicitly catch those versions.
10416     libltdl_cv_sys_dlopen_deplibs=unknown
10417     ;;
10418   aix[45]*)
10419     libltdl_cv_sys_dlopen_deplibs=yes
10420     ;;
10421   darwin*)
10422     # Assuming the user has installed a libdl from somewhere, this is true
10423     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10424     libltdl_cv_sys_dlopen_deplibs=yes
10425     ;;
10426   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10427     # GNU and its variants, using gnu ld.so (Glibc)
10428     libltdl_cv_sys_dlopen_deplibs=yes
10429     ;;
10430   hpux10*|hpux11*)
10431     libltdl_cv_sys_dlopen_deplibs=yes
10432     ;;
10433   interix*)
10434     libltdl_cv_sys_dlopen_deplibs=yes
10435     ;;
10436   irix[12345]*|irix6.[01]*)
10437     # Catch all versions of IRIX before 6.2, and indicate that we don't
10438     # know how it worked for any of those versions.
10439     libltdl_cv_sys_dlopen_deplibs=unknown
10440     ;;
10441   irix*)
10442     # The case above catches anything before 6.2, and it's known that
10443     # at 6.2 and later dlopen does load deplibs.
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   netbsd*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   openbsd*)
10450     libltdl_cv_sys_dlopen_deplibs=yes
10451     ;;
10452   osf[1234]*)
10453     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10454     # it did *not* use an RPATH in a shared library to find objects the
10455     # library depends on, so we explicitly say `no'.
10456     libltdl_cv_sys_dlopen_deplibs=no
10457     ;;
10458   osf5.0|osf5.0a|osf5.1)
10459     # dlopen *does* load deplibs and with the right loader patch applied
10460     # it even uses RPATH in a shared library to search for shared objects
10461     # that the library depends on, but there's no easy way to know if that
10462     # patch is installed.  Since this is the case, all we can really
10463     # say is unknown -- it depends on the patch being installed.  If
10464     # it is, this changes to `yes'.  Without it, it would be `no'.
10465     libltdl_cv_sys_dlopen_deplibs=unknown
10466     ;;
10467   osf*)
10468     # the two cases above should catch all versions of osf <= 5.1.  Read
10469     # the comments above for what we know about them.
10470     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10471     # is used to find them so we can finally say `yes'.
10472     libltdl_cv_sys_dlopen_deplibs=yes
10473     ;;
10474   solaris*)
10475     libltdl_cv_sys_dlopen_deplibs=yes
10476     ;;
10477   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10478     libltdl_cv_sys_dlopen_deplibs=yes
10479     ;;
10480   esac
10481
10482 fi
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10484 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10485 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10486
10487 cat >>confdefs.h <<\_ACEOF
10488 #define LTDL_DLOPEN_DEPLIBS 1
10489 _ACEOF
10490
10491 fi
10492
10493
10494 for ac_header in argz.h
10495 do
10496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 fi
10503 ac_res=`eval echo '${'$as_ac_Header'}'`
10504                { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10506 else
10507   # Is the header compilable?
10508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516 $ac_includes_default
10517 #include <$ac_header>
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_compile") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } &&
10533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10534   { (case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_try") 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; } &&
10543          { ac_try='test -s conftest.$ac_objext'
10544   { (case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_try") 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_header_compiler=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558         ac_header_compiler=no
10559 fi
10560
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10563 echo "${ECHO_T}$ac_header_compiler" >&6; }
10564
10565 # Is the header present?
10566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 #include <$ac_header>
10575 _ACEOF
10576 if { (ac_try="$ac_cpp conftest.$ac_ext"
10577 case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10583   ac_status=$?
10584   grep -v '^ *+' conftest.er1 >conftest.err
10585   rm -f conftest.er1
10586   cat conftest.err >&5
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } >/dev/null; then
10589   if test -s conftest.err; then
10590     ac_cpp_err=$ac_c_preproc_warn_flag
10591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10592   else
10593     ac_cpp_err=
10594   fi
10595 else
10596   ac_cpp_err=yes
10597 fi
10598 if test -z "$ac_cpp_err"; then
10599   ac_header_preproc=yes
10600 else
10601   echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10603
10604   ac_header_preproc=no
10605 fi
10606
10607 rm -f conftest.err conftest.$ac_ext
10608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10609 echo "${ECHO_T}$ac_header_preproc" >&6; }
10610
10611 # So?  What about this header?
10612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10613   yes:no: )
10614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10618     ac_header_preproc=yes
10619     ;;
10620   no:yes:* )
10621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10633     ( cat <<\_ASBOX
10634 ## ------------------------------------ ##
10635 ## Report this to http://llvm.org/bugs/ ##
10636 ## ------------------------------------ ##
10637 _ASBOX
10638      ) | sed "s/^/$as_me: WARNING:     /" >&2
10639     ;;
10640 esac
10641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   eval "$as_ac_Header=\$ac_header_preproc"
10647 fi
10648 ac_res=`eval echo '${'$as_ac_Header'}'`
10649                { echo "$as_me:$LINENO: result: $ac_res" >&5
10650 echo "${ECHO_T}$ac_res" >&6; }
10651
10652 fi
10653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10654   cat >>confdefs.h <<_ACEOF
10655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656 _ACEOF
10657
10658 fi
10659
10660 done
10661
10662
10663 { echo "$as_me:$LINENO: checking for error_t" >&5
10664 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10665 if test "${ac_cv_type_error_t+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 #if HAVE_ARGZ_H
10675 #  include <argz.h>
10676 #endif
10677
10678 typedef error_t ac__type_new_;
10679 int
10680 main ()
10681 {
10682 if ((ac__type_new_ *) 0)
10683   return 0;
10684 if (sizeof (ac__type_new_))
10685   return 0;
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_compile") 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } &&
10704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705   { (case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_try") 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; } &&
10714          { ac_try='test -s conftest.$ac_objext'
10715   { (case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_try") 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; }; then
10724   ac_cv_type_error_t=yes
10725 else
10726   echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729         ac_cv_type_error_t=no
10730 fi
10731
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10736 if test $ac_cv_type_error_t = yes; then
10737
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_ERROR_T 1
10740 _ACEOF
10741
10742
10743 else
10744
10745 cat >>confdefs.h <<\_ACEOF
10746 #define error_t int
10747 _ACEOF
10748
10749 fi
10750
10751
10752
10753
10754
10755
10756
10757 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10758 do
10759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10763   echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765   cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10773 #define $ac_func innocuous_$ac_func
10774
10775 /* System header to define __stub macros and hopefully few prototypes,
10776     which can conflict with char $ac_func (); below.
10777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10778     <limits.h> exists even on freestanding compilers.  */
10779
10780 #ifdef __STDC__
10781 # include <limits.h>
10782 #else
10783 # include <assert.h>
10784 #endif
10785
10786 #undef $ac_func
10787
10788 /* Override any GCC internal prototype to avoid an error.
10789    Use char because int might match the return type of a GCC
10790    builtin and then its argument prototype would still apply.  */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char $ac_func ();
10795 /* The GNU C library defines this for functions which it implements
10796     to always fail with ENOSYS.  Some functions are actually named
10797     something starting with __ and the normal name is an alias.  */
10798 #if defined __stub_$ac_func || defined __stub___$ac_func
10799 choke me
10800 #endif
10801
10802 int
10803 main ()
10804 {
10805 return $ac_func ();
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext conftest$ac_exeext
10811 if { (ac_try="$ac_link"
10812 case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817   (eval "$ac_link") 2>conftest.er1
10818   ac_status=$?
10819   grep -v '^ *+' conftest.er1 >conftest.err
10820   rm -f conftest.er1
10821   cat conftest.err >&5
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } &&
10824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825   { (case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_try") 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; } &&
10834          { ac_try='test -s conftest$ac_exeext'
10835   { (case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_try") 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   eval "$as_ac_var=yes"
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849         eval "$as_ac_var=no"
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext \
10853       conftest$ac_exeext conftest.$ac_ext
10854 fi
10855 ac_res=`eval echo '${'$as_ac_var'}'`
10856                { echo "$as_me:$LINENO: result: $ac_res" >&5
10857 echo "${ECHO_T}$ac_res" >&6; }
10858 if test `eval echo '${'$as_ac_var'}'` = yes; then
10859   cat >>confdefs.h <<_ACEOF
10860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10861 _ACEOF
10862
10863 fi
10864 done
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888 for ac_header in errno.h malloc.h memory.h unistd.h
10889 do
10890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 fi
10897 ac_res=`eval echo '${'$as_ac_Header'}'`
10898                { echo "$as_me:$LINENO: result: $ac_res" >&5
10899 echo "${ECHO_T}$ac_res" >&6; }
10900 else
10901   # Is the header compilable?
10902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910 $ac_includes_default
10911 #include <$ac_header>
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (ac_try="$ac_compile"
10915 case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_compile") 2>conftest.er1
10921   ac_status=$?
10922   grep -v '^ *+' conftest.er1 >conftest.err
10923   rm -f conftest.er1
10924   cat conftest.err >&5
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } &&
10927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10928   { (case "(($ac_try" in
10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930   *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933   (eval "$ac_try") 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; } &&
10937          { ac_try='test -s conftest.$ac_objext'
10938   { (case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_try") 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); }; }; then
10947   ac_header_compiler=yes
10948 else
10949   echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952         ac_header_compiler=no
10953 fi
10954
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10957 echo "${ECHO_T}$ac_header_compiler" >&6; }
10958
10959 # Is the header present?
10960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #include <$ac_header>
10969 _ACEOF
10970 if { (ac_try="$ac_cpp conftest.$ac_ext"
10971 case "(($ac_try" in
10972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973   *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } >/dev/null; then
10983   if test -s conftest.err; then
10984     ac_cpp_err=$ac_c_preproc_warn_flag
10985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10986   else
10987     ac_cpp_err=
10988   fi
10989 else
10990   ac_cpp_err=yes
10991 fi
10992 if test -z "$ac_cpp_err"; then
10993   ac_header_preproc=yes
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998   ac_header_preproc=no
10999 fi
11000
11001 rm -f conftest.err conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11003 echo "${ECHO_T}$ac_header_preproc" >&6; }
11004
11005 # So?  What about this header?
11006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11007   yes:no: )
11008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11012     ac_header_preproc=yes
11013     ;;
11014   no:yes:* )
11015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11027     ( cat <<\_ASBOX
11028 ## ------------------------------------ ##
11029 ## Report this to http://llvm.org/bugs/ ##
11030 ## ------------------------------------ ##
11031 _ASBOX
11032      ) | sed "s/^/$as_me: WARNING:     /" >&2
11033     ;;
11034 esac
11035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   eval "$as_ac_Header=\$ac_header_preproc"
11041 fi
11042 ac_res=`eval echo '${'$as_ac_Header'}'`
11043                { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11045
11046 fi
11047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11048   cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11050 _ACEOF
11051
11052 fi
11053
11054 done
11055
11056
11057 for ac_header in mach-o/dyld.h
11058 do
11059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064   echo $ECHO_N "(cached) $ECHO_C" >&6
11065 fi
11066 ac_res=`eval echo '${'$as_ac_Header'}'`
11067                { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11069 else
11070   # Is the header compilable?
11071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 $ac_includes_default
11080 #include <$ac_header>
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_compile") 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_try") 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; } &&
11106          { ac_try='test -s conftest.$ac_objext'
11107   { (case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_try") 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   ac_header_compiler=yes
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121         ac_header_compiler=no
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11127
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 #include <$ac_header>
11138 _ACEOF
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } >/dev/null; then
11152   if test -s conftest.err; then
11153     ac_cpp_err=$ac_c_preproc_warn_flag
11154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155   else
11156     ac_cpp_err=
11157   fi
11158 else
11159   ac_cpp_err=yes
11160 fi
11161 if test -z "$ac_cpp_err"; then
11162   ac_header_preproc=yes
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167   ac_header_preproc=no
11168 fi
11169
11170 rm -f conftest.err conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172 echo "${ECHO_T}$ac_header_preproc" >&6; }
11173
11174 # So?  What about this header?
11175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176   yes:no: )
11177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181     ac_header_preproc=yes
11182     ;;
11183   no:yes:* )
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196     ( cat <<\_ASBOX
11197 ## ------------------------------------ ##
11198 ## Report this to http://llvm.org/bugs/ ##
11199 ## ------------------------------------ ##
11200 _ASBOX
11201      ) | sed "s/^/$as_me: WARNING:     /" >&2
11202     ;;
11203 esac
11204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   eval "$as_ac_Header=\$ac_header_preproc"
11210 fi
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212                { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11214
11215 fi
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217   cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11219 _ACEOF
11220
11221 fi
11222
11223 done
11224
11225
11226
11227
11228
11229 for ac_func in closedir opendir readdir
11230 do
11231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11245 #define $ac_func innocuous_$ac_func
11246
11247 /* System header to define __stub macros and hopefully few prototypes,
11248     which can conflict with char $ac_func (); below.
11249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11250     <limits.h> exists even on freestanding compilers.  */
11251
11252 #ifdef __STDC__
11253 # include <limits.h>
11254 #else
11255 # include <assert.h>
11256 #endif
11257
11258 #undef $ac_func
11259
11260 /* Override any GCC internal prototype to avoid an error.
11261    Use char because int might match the return type of a GCC
11262    builtin and then its argument prototype would still apply.  */
11263 #ifdef __cplusplus
11264 extern "C"
11265 #endif
11266 char $ac_func ();
11267 /* The GNU C library defines this for functions which it implements
11268     to always fail with ENOSYS.  Some functions are actually named
11269     something starting with __ and the normal name is an alias.  */
11270 #if defined __stub_$ac_func || defined __stub___$ac_func
11271 choke me
11272 #endif
11273
11274 int
11275 main ()
11276 {
11277 return $ac_func ();
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (ac_try="$ac_link"
11284 case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_link") 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297   { (case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302   (eval "$ac_try") 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; } &&
11306          { ac_try='test -s conftest$ac_exeext'
11307   { (case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_try") 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   eval "$as_ac_var=yes"
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         eval "$as_ac_var=no"
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext \
11325       conftest$ac_exeext conftest.$ac_ext
11326 fi
11327 ac_res=`eval echo '${'$as_ac_var'}'`
11328                { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331   cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 fi
11336 done
11337
11338
11339
11340 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11341 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11342
11343 ICC=no
11344 IXX=no
11345 case $CC in
11346   icc*|icpc*)
11347     ICC=yes
11348     IXX=yes
11349     ;;
11350    *)
11351     ;;
11352 esac
11353
11354 if test "$GCC" != "yes" && test "$ICC" != "yes"
11355 then
11356   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11357 echo "$as_me: error: gcc|icc required but not found" >&2;}
11358    { (exit 1); exit 1; }; }
11359 fi
11360
11361 if test "$GXX" != "yes" && test "$IXX" != "yes"
11362 then
11363   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11364 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11365    { (exit 1); exit 1; }; }
11366 fi
11367
11368 if test "$GCC" = "yes"
11369 then
11370   cat >conftest.$ac_ext <<_ACEOF
11371
11372   /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377
11378     #if !defined(__GNUC__) || __GNUC__ < 3
11379     #error Unsupported GCC version
11380     #endif
11381
11382
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (ac_try="$ac_compile"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_compile") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399   { (case "(($ac_try" in
11400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401   *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404   (eval "$ac_try") 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_try") 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; }; then
11418   :
11419 else
11420   echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11424 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11425    { (exit 1); exit 1; }; }
11426 fi
11427
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 fi
11430
11431 if test -z "$llvm_cv_gnu_make_command"
11432 then
11433   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11434 echo "$as_me: error: GNU Make required but not found" >&2;}
11435    { (exit 1); exit 1; }; }
11436 fi
11437
11438 { echo "$as_me:$LINENO: result: ok" >&5
11439 echo "${ECHO_T}ok" >&6; }
11440
11441 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11442 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11443 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11444
11445 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11446
11447 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11448
11449
11450 NO_UNINITIALIZED=
11451 NO_MAYBE_UNINITIALIZED=
11452 if test "$GXX" = "yes"
11453 then
11454   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11455
11456         if test -z "$NO_MAYBE_UNINITIALIZED"
11457   then
11458     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11459
11460   fi
11461 fi
11462 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11463 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11464
11465
11466 # Check whether --with-python was given.
11467 if test "${with_python+set}" = set; then
11468   withval=$with_python; PYTHON="$withval"
11469 fi
11470
11471
11472 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11473   { echo "$as_me:$LINENO: checking for python" >&5
11474 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11475   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11476 echo "${ECHO_T}user defined: $with_python" >&6; }
11477 else
11478   if test -n "$PYTHON" ; then
11479     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11480 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11481   fi
11482
11483   # Extract the first word of "python python2 python26", so it can be a program name with args.
11484 set dummy python python2 python26; ac_word=$2
11485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11487 if test "${ac_cv_path_PYTHON+set}" = set; then
11488   echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490   case $PYTHON in
11491   [\\/]* | ?:[\\/]*)
11492   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11493   ;;
11494   *)
11495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498   IFS=$as_save_IFS
11499   test -z "$as_dir" && as_dir=.
11500   for ac_exec_ext in '' $ac_executable_extensions; do
11501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11502     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504     break 2
11505   fi
11506 done
11507 done
11508 IFS=$as_save_IFS
11509
11510   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11511 echo "${ECHO_T}not found" >&6; }
11512                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11513 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11514    { (exit 1); exit 1; }; }"
11515   ;;
11516 esac
11517 fi
11518 PYTHON=$ac_cv_path_PYTHON
11519 if test -n "$PYTHON"; then
11520   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11521 echo "${ECHO_T}$PYTHON" >&6; }
11522 else
11523   { echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6; }
11525 fi
11526
11527
11528 fi
11529
11530 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11531 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11532 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11533 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11534 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11535 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11536 if test "$ac_python_version_major" -gt "2" || \
11537    (test "$ac_python_version_major" -eq "2" && \
11538     test "$ac_python_version_minor" -ge "5") ; then
11539   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11540 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11541 else
11542   { echo "$as_me:$LINENO: result: not found" >&5
11543 echo "${ECHO_T}not found" >&6; }
11544   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11545 See \`config.log' for more details." >&5
11546 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11547 See \`config.log' for more details." >&2;}
11548    { (exit 1); exit 1; }; }
11549 fi
11550
11551
11552
11553 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11554 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11555 if test "${ac_cv_lib_m_sin+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-lm  $LIBS"
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566
11567 /* Override any GCC internal prototype to avoid an error.
11568    Use char because int might match the return type of a GCC
11569    builtin and then its argument prototype would still apply.  */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char sin ();
11574 int
11575 main ()
11576 {
11577 return sin ();
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_link") 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11597   { (case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_try") 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; } &&
11606          { ac_try='test -s conftest$ac_exeext'
11607   { (case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_try") 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_lib_m_sin=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621         ac_cv_lib_m_sin=no
11622 fi
11623
11624 rm -f core conftest.err conftest.$ac_objext \
11625       conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11629 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11630 if test $ac_cv_lib_m_sin = yes; then
11631   cat >>confdefs.h <<_ACEOF
11632 #define HAVE_LIBM 1
11633 _ACEOF
11634
11635   LIBS="-lm $LIBS"
11636
11637 fi
11638
11639 if test "$llvm_cv_os_type" = "MingW" ; then
11640
11641 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11642 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11643 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-limagehlp  $LIBS"
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654
11655
11656 int
11657 main ()
11658 {
11659 return main ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_link") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } &&
11678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679   { (case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_try") 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; } &&
11688          { ac_try='test -s conftest$ac_exeext'
11689   { (case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694   (eval "$ac_try") 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); }; }; then
11698   ac_cv_lib_imagehlp_main=yes
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703         ac_cv_lib_imagehlp_main=no
11704 fi
11705
11706 rm -f core conftest.err conftest.$ac_objext \
11707       conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11711 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11712 if test $ac_cv_lib_imagehlp_main = yes; then
11713   cat >>confdefs.h <<_ACEOF
11714 #define HAVE_LIBIMAGEHLP 1
11715 _ACEOF
11716
11717   LIBS="-limagehlp $LIBS"
11718
11719 fi
11720
11721
11722 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11723 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11724 if test "${ac_cv_lib_psapi_main+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   ac_check_lib_save_LIBS=$LIBS
11728 LIBS="-lpsapi  $LIBS"
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735
11736
11737 int
11738 main ()
11739 {
11740 return main ();
11741   ;
11742   return 0;
11743 }
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752   (eval "$ac_link") 2>conftest.er1
11753   ac_status=$?
11754   grep -v '^ *+' conftest.er1 >conftest.err
11755   rm -f conftest.er1
11756   cat conftest.err >&5
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } &&
11759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11760   { (case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_try") 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest$ac_exeext'
11770   { (case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_try") 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   ac_cv_lib_psapi_main=yes
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784         ac_cv_lib_psapi_main=no
11785 fi
11786
11787 rm -f core conftest.err conftest.$ac_objext \
11788       conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
11792 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
11793 if test $ac_cv_lib_psapi_main = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBPSAPI 1
11796 _ACEOF
11797
11798   LIBS="-lpsapi $LIBS"
11799
11800 fi
11801
11802
11803 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
11804 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
11805 if test "${ac_cv_lib_shell32_main+set}" = set; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808   ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-lshell32  $LIBS"
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816
11817
11818 int
11819 main ()
11820 {
11821 return main ();
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_link") 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest$ac_exeext'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }; then
11860   ac_cv_lib_shell32_main=yes
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865         ac_cv_lib_shell32_main=no
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext \
11869       conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
11873 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
11874 if test $ac_cv_lib_shell32_main = yes; then
11875   cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBSHELL32 1
11877 _ACEOF
11878
11879   LIBS="-lshell32 $LIBS"
11880
11881 fi
11882
11883 fi
11884
11885 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11886 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11887 if test "${ac_cv_search_dlopen+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   ac_func_search_save_LIBS=$LIBS
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899    Use char because int might match the return type of a GCC
11900    builtin and then its argument prototype would still apply.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char dlopen ();
11905 int
11906 main ()
11907 {
11908 return dlopen ();
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 for ac_lib in '' dl; do
11914   if test -z "$ac_lib"; then
11915     ac_res="none required"
11916   else
11917     ac_res=-l$ac_lib
11918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11919   fi
11920   rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924   *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927   (eval "$ac_link") 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s conftest$ac_exeext'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   ac_cv_search_dlopen=$ac_res
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959
11960 fi
11961
11962 rm -f core conftest.err conftest.$ac_objext \
11963       conftest$ac_exeext
11964   if test "${ac_cv_search_dlopen+set}" = set; then
11965   break
11966 fi
11967 done
11968 if test "${ac_cv_search_dlopen+set}" = set; then
11969   :
11970 else
11971   ac_cv_search_dlopen=no
11972 fi
11973 rm conftest.$ac_ext
11974 LIBS=$ac_func_search_save_LIBS
11975 fi
11976 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11977 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11978 ac_res=$ac_cv_search_dlopen
11979 if test "$ac_res" != no; then
11980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_DLOPEN 1
11984 _ACEOF
11985
11986 else
11987   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
11988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
11989 fi
11990
11991
11992 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11993 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
11994 if test "${ac_cv_search_clock_gettime+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   ac_func_search_save_LIBS=$LIBS
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006    Use char because int might match the return type of a GCC
12007    builtin and then its argument prototype would still apply.  */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char clock_gettime ();
12012 int
12013 main ()
12014 {
12015 return clock_gettime ();
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 for ac_lib in '' rt; do
12021   if test -z "$ac_lib"; then
12022     ac_res="none required"
12023   else
12024     ac_res=-l$ac_lib
12025     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12026   fi
12027   rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_link") 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042   { (case "(($ac_try" in
12043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044   *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047   (eval "$ac_try") 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest$ac_exeext'
12052   { (case "(($ac_try" in
12053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054   *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057   (eval "$ac_try") 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   ac_cv_search_clock_gettime=$ac_res
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066
12067 fi
12068
12069 rm -f core conftest.err conftest.$ac_objext \
12070       conftest$ac_exeext
12071   if test "${ac_cv_search_clock_gettime+set}" = set; then
12072   break
12073 fi
12074 done
12075 if test "${ac_cv_search_clock_gettime+set}" = set; then
12076   :
12077 else
12078   ac_cv_search_clock_gettime=no
12079 fi
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12082 fi
12083 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12084 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12085 ac_res=$ac_cv_search_clock_gettime
12086 if test "$ac_res" != no; then
12087   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12088
12089 fi
12090
12091
12092 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12093     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12094 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12095 if test "${ac_cv_search_setupterm+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_func_search_save_LIBS=$LIBS
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h.  */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h.  */
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107    Use char because int might match the return type of a GCC
12108    builtin and then its argument prototype would still apply.  */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char setupterm ();
12113 int
12114 main ()
12115 {
12116 return setupterm ();
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12122   if test -z "$ac_lib"; then
12123     ac_res="none required"
12124   else
12125     ac_res=-l$ac_lib
12126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12127   fi
12128   rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_link") 2>conftest.er1
12136   ac_status=$?
12137   grep -v '^ *+' conftest.er1 >conftest.err
12138   rm -f conftest.er1
12139   cat conftest.err >&5
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143   { (case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_try") 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; } &&
12152          { ac_try='test -s conftest$ac_exeext'
12153   { (case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_try") 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   ac_cv_search_setupterm=$ac_res
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167
12168 fi
12169
12170 rm -f core conftest.err conftest.$ac_objext \
12171       conftest$ac_exeext
12172   if test "${ac_cv_search_setupterm+set}" = set; then
12173   break
12174 fi
12175 done
12176 if test "${ac_cv_search_setupterm+set}" = set; then
12177   :
12178 else
12179   ac_cv_search_setupterm=no
12180 fi
12181 rm conftest.$ac_ext
12182 LIBS=$ac_func_search_save_LIBS
12183 fi
12184 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12185 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12186 ac_res=$ac_cv_search_setupterm
12187 if test "$ac_res" != no; then
12188   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12189
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_TERMINFO 1
12192 _ACEOF
12193
12194 fi
12195
12196 fi
12197
12198 if test "$llvm_cv_enable_libffi" = "yes" ; then
12199   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12200 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12201 if test "${ac_cv_search_ffi_call+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   ac_func_search_save_LIBS=$LIBS
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211
12212 /* Override any GCC internal prototype to avoid an error.
12213    Use char because int might match the return type of a GCC
12214    builtin and then its argument prototype would still apply.  */
12215 #ifdef __cplusplus
12216 extern "C"
12217 #endif
12218 char ffi_call ();
12219 int
12220 main ()
12221 {
12222 return ffi_call ();
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 for ac_lib in '' ffi; do
12228   if test -z "$ac_lib"; then
12229     ac_res="none required"
12230   else
12231     ac_res=-l$ac_lib
12232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12233   fi
12234   rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_link") 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249   { (case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_try") 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest$ac_exeext'
12259   { (case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_try") 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   ac_cv_search_ffi_call=$ac_res
12269 else
12270   echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273
12274 fi
12275
12276 rm -f core conftest.err conftest.$ac_objext \
12277       conftest$ac_exeext
12278   if test "${ac_cv_search_ffi_call+set}" = set; then
12279   break
12280 fi
12281 done
12282 if test "${ac_cv_search_ffi_call+set}" = set; then
12283   :
12284 else
12285   ac_cv_search_ffi_call=no
12286 fi
12287 rm conftest.$ac_ext
12288 LIBS=$ac_func_search_save_LIBS
12289 fi
12290 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12291 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12292 ac_res=$ac_cv_search_ffi_call
12293 if test "$ac_res" != no; then
12294   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12295
12296 cat >>confdefs.h <<\_ACEOF
12297 #define HAVE_FFI_CALL 1
12298 _ACEOF
12299
12300 else
12301   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12302 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12303    { (exit 1); exit 1; }; }
12304 fi
12305
12306 fi
12307
12308 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12309 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12310 if test "${ac_cv_search_mallinfo+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   ac_func_search_save_LIBS=$LIBS
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322    Use char because int might match the return type of a GCC
12323    builtin and then its argument prototype would still apply.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char mallinfo ();
12328 int
12329 main ()
12330 {
12331 return mallinfo ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 for ac_lib in '' malloc; do
12337   if test -z "$ac_lib"; then
12338     ac_res="none required"
12339   else
12340     ac_res=-l$ac_lib
12341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12342   fi
12343   rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_link") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest$ac_exeext'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_search_mallinfo=$ac_res
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext \
12386       conftest$ac_exeext
12387   if test "${ac_cv_search_mallinfo+set}" = set; then
12388   break
12389 fi
12390 done
12391 if test "${ac_cv_search_mallinfo+set}" = set; then
12392   :
12393 else
12394   ac_cv_search_mallinfo=no
12395 fi
12396 rm conftest.$ac_ext
12397 LIBS=$ac_func_search_save_LIBS
12398 fi
12399 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12400 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12401 ac_res=$ac_cv_search_mallinfo
12402 if test "$ac_res" != no; then
12403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12404
12405 cat >>confdefs.h <<\_ACEOF
12406 #define HAVE_MALLINFO 1
12407 _ACEOF
12408
12409 fi
12410
12411
12412 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12413
12414 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12415 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12416 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419   ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lpthread  $LIBS"
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427
12428 /* Override any GCC internal prototype to avoid an error.
12429    Use char because int might match the return type of a GCC
12430    builtin and then its argument prototype would still apply.  */
12431 #ifdef __cplusplus
12432 extern "C"
12433 #endif
12434 char pthread_mutex_init ();
12435 int
12436 main ()
12437 {
12438 return pthread_mutex_init ();
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (ac_try="$ac_link"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_link") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458   { (case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_try") 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; } &&
12467          { ac_try='test -s conftest$ac_exeext'
12468   { (case "(($ac_try" in
12469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470   *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473   (eval "$ac_try") 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   ac_cv_lib_pthread_pthread_mutex_init=yes
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482         ac_cv_lib_pthread_pthread_mutex_init=no
12483 fi
12484
12485 rm -f core conftest.err conftest.$ac_objext \
12486       conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12488 fi
12489 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12490 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12491 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12492   cat >>confdefs.h <<_ACEOF
12493 #define HAVE_LIBPTHREAD 1
12494 _ACEOF
12495
12496   LIBS="-lpthread $LIBS"
12497
12498 fi
12499
12500   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12501 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12502 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   ac_func_search_save_LIBS=$LIBS
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char pthread_mutex_lock ();
12520 int
12521 main ()
12522 {
12523 return pthread_mutex_lock ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 for ac_lib in '' pthread; do
12529   if test -z "$ac_lib"; then
12530     ac_res="none required"
12531   else
12532     ac_res=-l$ac_lib
12533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12534   fi
12535   rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12550   { (case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_try") 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; } &&
12559          { ac_try='test -s conftest$ac_exeext'
12560   { (case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_try") 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_search_pthread_mutex_lock=$ac_res
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574
12575 fi
12576
12577 rm -f core conftest.err conftest.$ac_objext \
12578       conftest$ac_exeext
12579   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12580   break
12581 fi
12582 done
12583 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12584   :
12585 else
12586   ac_cv_search_pthread_mutex_lock=no
12587 fi
12588 rm conftest.$ac_ext
12589 LIBS=$ac_func_search_save_LIBS
12590 fi
12591 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12592 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12593 ac_res=$ac_cv_search_pthread_mutex_lock
12594 if test "$ac_res" != no; then
12595   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12596
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_PTHREAD_MUTEX_LOCK 1
12599 _ACEOF
12600
12601 fi
12602
12603   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12604 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12605 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608   ac_func_search_save_LIBS=$LIBS
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615
12616 /* Override any GCC internal prototype to avoid an error.
12617    Use char because int might match the return type of a GCC
12618    builtin and then its argument prototype would still apply.  */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char pthread_rwlock_init ();
12623 int
12624 main ()
12625 {
12626 return pthread_rwlock_init ();
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 for ac_lib in '' pthread; do
12632   if test -z "$ac_lib"; then
12633     ac_res="none required"
12634   else
12635     ac_res=-l$ac_lib
12636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12637   fi
12638   rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_link") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; } &&
12662          { ac_try='test -s conftest$ac_exeext'
12663   { (case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_try") 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_search_pthread_rwlock_init=$ac_res
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677
12678 fi
12679
12680 rm -f core conftest.err conftest.$ac_objext \
12681       conftest$ac_exeext
12682   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12683   break
12684 fi
12685 done
12686 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12687   :
12688 else
12689   ac_cv_search_pthread_rwlock_init=no
12690 fi
12691 rm conftest.$ac_ext
12692 LIBS=$ac_func_search_save_LIBS
12693 fi
12694 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12695 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12696 ac_res=$ac_cv_search_pthread_rwlock_init
12697 if test "$ac_res" != no; then
12698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_PTHREAD_RWLOCK_INIT 1
12702 _ACEOF
12703
12704 fi
12705
12706   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12707 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12708 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   ac_func_search_save_LIBS=$LIBS
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 /* Override any GCC internal prototype to avoid an error.
12720    Use char because int might match the return type of a GCC
12721    builtin and then its argument prototype would still apply.  */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char pthread_getspecific ();
12726 int
12727 main ()
12728 {
12729 return pthread_getspecific ();
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 for ac_lib in '' pthread; do
12735   if test -z "$ac_lib"; then
12736     ac_res="none required"
12737   else
12738     ac_res=-l$ac_lib
12739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12740   fi
12741   rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_link") 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756   { (case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_try") 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; } &&
12765          { ac_try='test -s conftest$ac_exeext'
12766   { (case "(($ac_try" in
12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768   *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771   (eval "$ac_try") 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ac_cv_search_pthread_getspecific=$ac_res
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780
12781 fi
12782
12783 rm -f core conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext
12785   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12786   break
12787 fi
12788 done
12789 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12790   :
12791 else
12792   ac_cv_search_pthread_getspecific=no
12793 fi
12794 rm conftest.$ac_ext
12795 LIBS=$ac_func_search_save_LIBS
12796 fi
12797 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12798 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12799 ac_res=$ac_cv_search_pthread_getspecific
12800 if test "$ac_res" != no; then
12801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12802
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_PTHREAD_GETSPECIFIC 1
12805 _ACEOF
12806
12807 fi
12808
12809 fi
12810
12811 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12812
12813 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12814 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12815 if test "${ac_cv_lib_z_compress2+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   ac_check_lib_save_LIBS=$LIBS
12819 LIBS="-lz  $LIBS"
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 /* Override any GCC internal prototype to avoid an error.
12828    Use char because int might match the return type of a GCC
12829    builtin and then its argument prototype would still apply.  */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char compress2 ();
12834 int
12835 main ()
12836 {
12837 return compress2 ();
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849   (eval "$ac_link") 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; } &&
12866          { ac_try='test -s conftest$ac_exeext'
12867   { (case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_try") 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   ac_cv_lib_z_compress2=yes
12877 else
12878   echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881         ac_cv_lib_z_compress2=no
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext \
12885       conftest$ac_exeext conftest.$ac_ext
12886 LIBS=$ac_check_lib_save_LIBS
12887 fi
12888 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12889 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12890 if test $ac_cv_lib_z_compress2 = yes; then
12891   cat >>confdefs.h <<_ACEOF
12892 #define HAVE_LIBZ 1
12893 _ACEOF
12894
12895   LIBS="-lz $LIBS"
12896
12897 fi
12898
12899 fi
12900
12901
12902 # Check whether --with-udis86 was given.
12903 if test "${with_udis86+set}" = set; then
12904   withval=$with_udis86;
12905       USE_UDIS86=1
12906
12907       case "$withval" in
12908         /usr/lib|yes) ;;
12909         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12910       esac
12911
12912 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12913 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12914 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-ludis86  $LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927    Use char because int might match the return type of a GCC
12928    builtin and then its argument prototype would still apply.  */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char ud_init ();
12933 int
12934 main ()
12935 {
12936 return ud_init ();
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948   (eval "$ac_link") 2>conftest.er1
12949   ac_status=$?
12950   grep -v '^ *+' conftest.er1 >conftest.err
12951   rm -f conftest.er1
12952   cat conftest.err >&5
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } &&
12955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956   { (case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961   (eval "$ac_try") 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; } &&
12965          { ac_try='test -s conftest$ac_exeext'
12966   { (case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_try") 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; }; then
12975   ac_cv_lib_udis86_ud_init=yes
12976 else
12977   echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980         ac_cv_lib_udis86_ud_init=no
12981 fi
12982
12983 rm -f core conftest.err conftest.$ac_objext \
12984       conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12986 fi
12987 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12988 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12989 if test $ac_cv_lib_udis86_ud_init = yes; then
12990   cat >>confdefs.h <<_ACEOF
12991 #define HAVE_LIBUDIS86 1
12992 _ACEOF
12993
12994   LIBS="-ludis86 $LIBS"
12995
12996 else
12997
12998         echo "Error! You need to have libudis86 around."
12999         exit -1
13000
13001 fi
13002
13003
13004 else
13005   USE_UDIS86=0
13006
13007 fi
13008
13009
13010 cat >>confdefs.h <<_ACEOF
13011 #define USE_UDIS86 $USE_UDIS86
13012 _ACEOF
13013
13014
13015
13016 # Check whether --with-oprofile was given.
13017 if test "${with_oprofile+set}" = set; then
13018   withval=$with_oprofile;
13019       USE_OPROFILE=1
13020
13021       case "$withval" in
13022         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13023         no) llvm_cv_oppath=
13024             USE_OPROFILE=0
13025  ;;
13026         *) llvm_cv_oppath="${withval}/lib/oprofile"
13027            CPPFLAGS="-I${withval}/include";;
13028       esac
13029       case $llvm_cv_os_type in
13030         Linux)
13031           if test -n "$llvm_cv_oppath" ; then
13032             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13033                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13034 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13035 if test "${ac_cv_search_bfd_init+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   ac_func_search_save_LIBS=$LIBS
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047    Use char because int might match the return type of a GCC
13048    builtin and then its argument prototype would still apply.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char bfd_init ();
13053 int
13054 main ()
13055 {
13056 return bfd_init ();
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 for ac_lib in '' bfd; do
13062   if test -z "$ac_lib"; then
13063     ac_res="none required"
13064   else
13065     ac_res=-l$ac_lib
13066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13067   fi
13068   rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_link") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } &&
13082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083   { (case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088   (eval "$ac_try") 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; } &&
13092          { ac_try='test -s conftest$ac_exeext'
13093   { (case "(($ac_try" in
13094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095   *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098   (eval "$ac_try") 2>&5
13099   ac_status=$?
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); }; }; then
13102   ac_cv_search_bfd_init=$ac_res
13103 else
13104   echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107
13108 fi
13109
13110 rm -f core conftest.err conftest.$ac_objext \
13111       conftest$ac_exeext
13112   if test "${ac_cv_search_bfd_init+set}" = set; then
13113   break
13114 fi
13115 done
13116 if test "${ac_cv_search_bfd_init+set}" = set; then
13117   :
13118 else
13119   ac_cv_search_bfd_init=no
13120 fi
13121 rm conftest.$ac_ext
13122 LIBS=$ac_func_search_save_LIBS
13123 fi
13124 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13125 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13126 ac_res=$ac_cv_search_bfd_init
13127 if test "$ac_res" != no; then
13128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13129
13130 fi
13131
13132             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13133 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13134 if test "${ac_cv_search_op_open_agent+set}" = set; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137   ac_func_search_save_LIBS=$LIBS
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144
13145 /* Override any GCC internal prototype to avoid an error.
13146    Use char because int might match the return type of a GCC
13147    builtin and then its argument prototype would still apply.  */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char op_open_agent ();
13152 int
13153 main ()
13154 {
13155 return op_open_agent ();
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 for ac_lib in '' opagent; do
13161   if test -z "$ac_lib"; then
13162     ac_res="none required"
13163   else
13164     ac_res=-l$ac_lib
13165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13166   fi
13167   rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_link") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; } &&
13191          { ac_try='test -s conftest$ac_exeext'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   ac_cv_search_op_open_agent=$ac_res
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext \
13210       conftest$ac_exeext
13211   if test "${ac_cv_search_op_open_agent+set}" = set; then
13212   break
13213 fi
13214 done
13215 if test "${ac_cv_search_op_open_agent+set}" = set; then
13216   :
13217 else
13218   ac_cv_search_op_open_agent=no
13219 fi
13220 rm conftest.$ac_ext
13221 LIBS=$ac_func_search_save_LIBS
13222 fi
13223 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13224 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13225 ac_res=$ac_cv_search_op_open_agent
13226 if test "$ac_res" != no; then
13227   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13228
13229 else
13230
13231               echo "Error! You need to have libopagent around."
13232               exit -1
13233
13234 fi
13235
13236             if test "${ac_cv_header_opagent_h+set}" = set; then
13237   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13238 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13239 if test "${ac_cv_header_opagent_h+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 fi
13242 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13243 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13244 else
13245   # Is the header compilable?
13246 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13247 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254 $ac_includes_default
13255 #include <opagent.h>
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261   *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264   (eval "$ac_compile") 2>conftest.er1
13265   ac_status=$?
13266   grep -v '^ *+' conftest.er1 >conftest.err
13267   rm -f conftest.er1
13268   cat conftest.err >&5
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); } &&
13271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13272   { (case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_try") 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; } &&
13281          { ac_try='test -s conftest.$ac_objext'
13282   { (case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_try") 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; }; then
13291   ac_header_compiler=yes
13292 else
13293   echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13295
13296         ac_header_compiler=no
13297 fi
13298
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 echo "${ECHO_T}$ac_header_compiler" >&6; }
13302
13303 # Is the header present?
13304 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13305 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 #include <opagent.h>
13313 _ACEOF
13314 if { (ac_try="$ac_cpp conftest.$ac_ext"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } >/dev/null; then
13327   if test -s conftest.err; then
13328     ac_cpp_err=$ac_c_preproc_warn_flag
13329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13330   else
13331     ac_cpp_err=
13332   fi
13333 else
13334   ac_cpp_err=yes
13335 fi
13336 if test -z "$ac_cpp_err"; then
13337   ac_header_preproc=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342   ac_header_preproc=no
13343 fi
13344
13345 rm -f conftest.err conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13347 echo "${ECHO_T}$ac_header_preproc" >&6; }
13348
13349 # So?  What about this header?
13350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13351   yes:no: )
13352     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13353 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13354     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13355 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13356     ac_header_preproc=yes
13357     ;;
13358   no:yes:* )
13359     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13360 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13361     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13362 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13363     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13364 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13365     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13366 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13367     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13368 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13369     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13370 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13371     ( cat <<\_ASBOX
13372 ## ------------------------------------ ##
13373 ## Report this to http://llvm.org/bugs/ ##
13374 ## ------------------------------------ ##
13375 _ASBOX
13376      ) | sed "s/^/$as_me: WARNING:     /" >&2
13377     ;;
13378 esac
13379 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13380 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13381 if test "${ac_cv_header_opagent_h+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   ac_cv_header_opagent_h=$ac_header_preproc
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13387 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13388
13389 fi
13390 if test $ac_cv_header_opagent_h = yes; then
13391   :
13392 else
13393
13394               echo "Error! You need to have opagent.h around."
13395               exit -1
13396
13397 fi
13398
13399
13400           fi ;;
13401         *)
13402           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13403 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13404    { (exit 1); exit 1; }; } ;;
13405       esac
13406
13407 else
13408
13409       USE_OPROFILE=0
13410
13411
13412 fi
13413
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define LLVM_USE_OPROFILE $USE_OPROFILE
13417 _ACEOF
13418
13419
13420
13421 # Check whether --with-intel-jitevents was given.
13422 if test "${with_intel_jitevents+set}" = set; then
13423   withval=$with_intel_jitevents;
13424        case "$withval" in
13425           yes) USE_INTEL_JITEVENTS=1
13426 ;;
13427           no)  USE_INTEL_JITEVENTS=0
13428 ;;
13429           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13430 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13431    { (exit 1); exit 1; }; };;
13432        esac
13433
13434       case $llvm_cv_os_type in
13435         Linux|Win32|Cygwin|MingW) ;;
13436         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13437 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13438    { (exit 1); exit 1; }; };;
13439       esac
13440
13441       case "$llvm_cv_target_arch" in
13442         x86|x86_64) ;;
13443         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13444 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13445    { (exit 1); exit 1; }; };;
13446       esac
13447
13448 else
13449
13450       USE_INTEL_JITEVENTS=0
13451
13452
13453 fi
13454
13455
13456 cat >>confdefs.h <<_ACEOF
13457 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13458 _ACEOF
13459
13460
13461 for ac_prog in xml2-config
13462 do
13463   # Extract the first word of "$ac_prog", so it can be a program name with args.
13464 set dummy $ac_prog; ac_word=$2
13465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13467 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13468   echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470   if test -n "$XML2CONFIG"; then
13471   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13475 do
13476   IFS=$as_save_IFS
13477   test -z "$as_dir" && as_dir=.
13478   for ac_exec_ext in '' $ac_executable_extensions; do
13479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13480     ac_cv_prog_XML2CONFIG="$ac_prog"
13481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13482     break 2
13483   fi
13484 done
13485 done
13486 IFS=$as_save_IFS
13487
13488 fi
13489 fi
13490 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13491 if test -n "$XML2CONFIG"; then
13492   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13493 echo "${ECHO_T}$XML2CONFIG" >&6; }
13494 else
13495   { echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6; }
13497 fi
13498
13499
13500   test -n "$XML2CONFIG" && break
13501 done
13502
13503
13504 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13505 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13506 if test "x$XML2CONFIG" = "x"; then
13507  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13508 echo "${ECHO_T}xml2-config not found" >&6; }
13509 else
13510  LIBXML2_INC=`$XML2CONFIG --cflags`
13511  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13512 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13513  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13514 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13515 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   ac_check_lib_save_LIBS=$LIBS
13519 LIBS="-lxml2  $LIBS"
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526
13527 /* Override any GCC internal prototype to avoid an error.
13528    Use char because int might match the return type of a GCC
13529    builtin and then its argument prototype would still apply.  */
13530 #ifdef __cplusplus
13531 extern "C"
13532 #endif
13533 char xmlReadFile ();
13534 int
13535 main ()
13536 {
13537 return xmlReadFile ();
13538   ;
13539   return 0;
13540 }
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_link") 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557   { (case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_try") 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest$ac_exeext'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_cv_lib_xml2_xmlReadFile=yes
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581         ac_cv_lib_xml2_xmlReadFile=no
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext \
13585       conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_check_lib_save_LIBS
13587 fi
13588 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13589 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13590 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13591
13592 cat >>confdefs.h <<\_ACEOF
13593 #define CLANG_HAVE_LIBXML 1
13594 _ACEOF
13595
13596                                 LIBXML2_LIBS="-lxml2"
13597 fi
13598
13599 fi
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609 ac_header_dirent=no
13610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13611   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <sys/types.h>
13624 #include <$ac_hdr>
13625
13626 int
13627 main ()
13628 {
13629 if ((DIR *) 0)
13630 return 0;
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (ac_try="$ac_compile"
13637 case "(($ac_try" in
13638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639   *) ac_try_echo=$ac_try;;
13640 esac
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642   (eval "$ac_compile") 2>conftest.er1
13643   ac_status=$?
13644   grep -v '^ *+' conftest.er1 >conftest.err
13645   rm -f conftest.er1
13646   cat conftest.err >&5
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); } &&
13649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13650   { (case "(($ac_try" in
13651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652   *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655   (eval "$ac_try") 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; } &&
13659          { ac_try='test -s conftest.$ac_objext'
13660   { (case "(($ac_try" in
13661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662   *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665   (eval "$ac_try") 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   eval "$as_ac_Header=yes"
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674         eval "$as_ac_Header=no"
13675 fi
13676
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 fi
13679 ac_res=`eval echo '${'$as_ac_Header'}'`
13680                { echo "$as_me:$LINENO: result: $ac_res" >&5
13681 echo "${ECHO_T}$ac_res" >&6; }
13682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13683   cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13685 _ACEOF
13686
13687 ac_header_dirent=$ac_hdr; break
13688 fi
13689
13690 done
13691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13692 if test $ac_header_dirent = dirent.h; then
13693   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13695 if test "${ac_cv_search_opendir+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   ac_func_search_save_LIBS=$LIBS
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707    Use char because int might match the return type of a GCC
13708    builtin and then its argument prototype would still apply.  */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char opendir ();
13713 int
13714 main ()
13715 {
13716 return opendir ();
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 for ac_lib in '' dir; do
13722   if test -z "$ac_lib"; then
13723     ac_res="none required"
13724   else
13725     ac_res=-l$ac_lib
13726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13727   fi
13728   rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (ac_try="$ac_link"
13730 case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735   (eval "$ac_link") 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743   { (case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_try") 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest$ac_exeext'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762   ac_cv_search_opendir=$ac_res
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext \
13771       conftest$ac_exeext
13772   if test "${ac_cv_search_opendir+set}" = set; then
13773   break
13774 fi
13775 done
13776 if test "${ac_cv_search_opendir+set}" = set; then
13777   :
13778 else
13779   ac_cv_search_opendir=no
13780 fi
13781 rm conftest.$ac_ext
13782 LIBS=$ac_func_search_save_LIBS
13783 fi
13784 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13785 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13786 ac_res=$ac_cv_search_opendir
13787 if test "$ac_res" != no; then
13788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13789
13790 fi
13791
13792 else
13793   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13794 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_opendir+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805
13806 /* Override any GCC internal prototype to avoid an error.
13807    Use char because int might match the return type of a GCC
13808    builtin and then its argument prototype would still apply.  */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char opendir ();
13813 int
13814 main ()
13815 {
13816 return opendir ();
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 for ac_lib in '' x; do
13822   if test -z "$ac_lib"; then
13823     ac_res="none required"
13824   else
13825     ac_res=-l$ac_lib
13826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13827   fi
13828   rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_link") 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest$ac_exeext'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_search_opendir=$ac_res
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867
13868 fi
13869
13870 rm -f core conftest.err conftest.$ac_objext \
13871       conftest$ac_exeext
13872   if test "${ac_cv_search_opendir+set}" = set; then
13873   break
13874 fi
13875 done
13876 if test "${ac_cv_search_opendir+set}" = set; then
13877   :
13878 else
13879   ac_cv_search_opendir=no
13880 fi
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13883 fi
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13886 ac_res=$ac_cv_search_opendir
13887 if test "$ac_res" != no; then
13888   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13889
13890 fi
13891
13892 fi
13893
13894 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13895 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13896 if test "${ac_cv_header_mmap_anon+set}" = set; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899    ac_ext=c
13900 ac_cpp='$CPP $CPPFLAGS'
13901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13904
13905   cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 #include <sys/mman.h>
13912 #include <unistd.h>
13913 #include <fcntl.h>
13914 int
13915 main ()
13916 {
13917 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926   *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929   (eval "$ac_compile") 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937   { (case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_try") 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; }; then
13956   ac_cv_header_mmap_anon=yes
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961         ac_cv_header_mmap_anon=no
13962 fi
13963
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965   ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971
13972 fi
13973 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13974 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13975 if test "$ac_cv_header_mmap_anon" = yes; then
13976
13977 cat >>confdefs.h <<\_ACEOF
13978 #define HAVE_MMAP_ANONYMOUS 1
13979 _ACEOF
13980
13981 fi
13982
13983 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13984 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13985 if test "${ac_cv_header_stat_broken+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 #include <sys/types.h>
13995 #include <sys/stat.h>
13996
13997 #if defined S_ISBLK && defined S_IFDIR
13998 # if S_ISBLK (S_IFDIR)
13999 You lose.
14000 # endif
14001 #endif
14002
14003 #if defined S_ISBLK && defined S_IFCHR
14004 # if S_ISBLK (S_IFCHR)
14005 You lose.
14006 # endif
14007 #endif
14008
14009 #if defined S_ISLNK && defined S_IFREG
14010 # if S_ISLNK (S_IFREG)
14011 You lose.
14012 # endif
14013 #endif
14014
14015 #if defined S_ISSOCK && defined S_IFREG
14016 # if S_ISSOCK (S_IFREG)
14017 You lose.
14018 # endif
14019 #endif
14020
14021 _ACEOF
14022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14023   $EGREP "You lose" >/dev/null 2>&1; then
14024   ac_cv_header_stat_broken=yes
14025 else
14026   ac_cv_header_stat_broken=no
14027 fi
14028 rm -f conftest*
14029
14030 fi
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14032 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14033 if test $ac_cv_header_stat_broken = yes; then
14034
14035 cat >>confdefs.h <<\_ACEOF
14036 #define STAT_MACROS_BROKEN 1
14037 _ACEOF
14038
14039 fi
14040
14041 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14042 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 #include <sys/types.h>
14053 #include <sys/wait.h>
14054 #ifndef WEXITSTATUS
14055 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14056 #endif
14057 #ifndef WIFEXITED
14058 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14059 #endif
14060
14061 int
14062 main ()
14063 {
14064   int s;
14065   wait (&s);
14066   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_compile") 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086   { (case "(($ac_try" in
14087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088   *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091   (eval "$ac_try") 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; } &&
14095          { ac_try='test -s conftest.$ac_objext'
14096   { (case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_try") 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_cv_header_sys_wait_h=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110         ac_cv_header_sys_wait_h=no
14111 fi
14112
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 fi
14115 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14116 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14117 if test $ac_cv_header_sys_wait_h = yes; then
14118
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_SYS_WAIT_H 1
14121 _ACEOF
14122
14123 fi
14124
14125 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_time+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136 #include <sys/types.h>
14137 #include <sys/time.h>
14138 #include <time.h>
14139
14140 int
14141 main ()
14142 {
14143 if ((struct tm *) 0)
14144 return 0;
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156   (eval "$ac_compile") 2>conftest.er1
14157   ac_status=$?
14158   grep -v '^ *+' conftest.er1 >conftest.err
14159   rm -f conftest.er1
14160   cat conftest.err >&5
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); } &&
14163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14164   { (case "(($ac_try" in
14165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166   *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169   (eval "$ac_try") 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; } &&
14173          { ac_try='test -s conftest.$ac_objext'
14174   { (case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179   (eval "$ac_try") 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   ac_cv_header_time=yes
14184 else
14185   echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188         ac_cv_header_time=no
14189 fi
14190
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14192 fi
14193 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14194 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14195 if test $ac_cv_header_time = yes; then
14196
14197 cat >>confdefs.h <<\_ACEOF
14198 #define TIME_WITH_SYS_TIME 1
14199 _ACEOF
14200
14201 fi
14202
14203
14204 ac_ext=cpp
14205 ac_cpp='$CXXCPP $CPPFLAGS'
14206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14209
14210 ac_ext=cpp
14211 ac_cpp='$CXXCPP $CPPFLAGS'
14212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14215 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14216 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14217 if test -z "$CXXCPP"; then
14218   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221       # Double quotes because CXXCPP needs to be expanded
14222     for CXXCPP in "$CXX -E" "/lib/cpp"
14223     do
14224       ac_preproc_ok=false
14225 for ac_cxx_preproc_warn_flag in '' yes
14226 do
14227   # Use a header file that comes with gcc, so configuring glibc
14228   # with a fresh cross-compiler works.
14229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230   # <limits.h> exists even on freestanding compilers.
14231   # On the NeXT, cc -E runs the code through the compiler's parser,
14232   # not just through cpp. "Syntax error" is here to catch this case.
14233   cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 #ifdef __STDC__
14240 # include <limits.h>
14241 #else
14242 # include <assert.h>
14243 #endif
14244                      Syntax error
14245 _ACEOF
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } >/dev/null; then
14259   if test -s conftest.err; then
14260     ac_cpp_err=$ac_cxx_preproc_warn_flag
14261     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14262   else
14263     ac_cpp_err=
14264   fi
14265 else
14266   ac_cpp_err=yes
14267 fi
14268 if test -z "$ac_cpp_err"; then
14269   :
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274   # Broken: fails on valid input.
14275 continue
14276 fi
14277
14278 rm -f conftest.err conftest.$ac_ext
14279
14280   # OK, works on sane cases.  Now check whether nonexistent headers
14281   # can be detected and how.
14282   cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288 #include <ac_nonexistent.h>
14289 _ACEOF
14290 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
14303   if test -s conftest.err; then
14304     ac_cpp_err=$ac_cxx_preproc_warn_flag
14305     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14306   else
14307     ac_cpp_err=
14308   fi
14309 else
14310   ac_cpp_err=yes
14311 fi
14312 if test -z "$ac_cpp_err"; then
14313   # Broken: success on invalid input.
14314 continue
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319   # Passes both tests.
14320 ac_preproc_ok=:
14321 break
14322 fi
14323
14324 rm -f conftest.err conftest.$ac_ext
14325
14326 done
14327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14328 rm -f conftest.err conftest.$ac_ext
14329 if $ac_preproc_ok; then
14330   break
14331 fi
14332
14333     done
14334     ac_cv_prog_CXXCPP=$CXXCPP
14335
14336 fi
14337   CXXCPP=$ac_cv_prog_CXXCPP
14338 else
14339   ac_cv_prog_CXXCPP=$CXXCPP
14340 fi
14341 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14342 echo "${ECHO_T}$CXXCPP" >&6; }
14343 ac_preproc_ok=false
14344 for ac_cxx_preproc_warn_flag in '' yes
14345 do
14346   # Use a header file that comes with gcc, so configuring glibc
14347   # with a fresh cross-compiler works.
14348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14349   # <limits.h> exists even on freestanding compilers.
14350   # On the NeXT, cc -E runs the code through the compiler's parser,
14351   # not just through cpp. "Syntax error" is here to catch this case.
14352   cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358 #ifdef __STDC__
14359 # include <limits.h>
14360 #else
14361 # include <assert.h>
14362 #endif
14363                      Syntax error
14364 _ACEOF
14365 if { (ac_try="$ac_cpp conftest.$ac_ext"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } >/dev/null; then
14378   if test -s conftest.err; then
14379     ac_cpp_err=$ac_cxx_preproc_warn_flag
14380     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14381   else
14382     ac_cpp_err=
14383   fi
14384 else
14385   ac_cpp_err=yes
14386 fi
14387 if test -z "$ac_cpp_err"; then
14388   :
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393   # Broken: fails on valid input.
14394 continue
14395 fi
14396
14397 rm -f conftest.err conftest.$ac_ext
14398
14399   # OK, works on sane cases.  Now check whether nonexistent headers
14400   # can be detected and how.
14401   cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407 #include <ac_nonexistent.h>
14408 _ACEOF
14409 if { (ac_try="$ac_cpp conftest.$ac_ext"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14416   ac_status=$?
14417   grep -v '^ *+' conftest.er1 >conftest.err
14418   rm -f conftest.er1
14419   cat conftest.err >&5
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } >/dev/null; then
14422   if test -s conftest.err; then
14423     ac_cpp_err=$ac_cxx_preproc_warn_flag
14424     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14425   else
14426     ac_cpp_err=
14427   fi
14428 else
14429   ac_cpp_err=yes
14430 fi
14431 if test -z "$ac_cpp_err"; then
14432   # Broken: success on invalid input.
14433 continue
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438   # Passes both tests.
14439 ac_preproc_ok=:
14440 break
14441 fi
14442
14443 rm -f conftest.err conftest.$ac_ext
14444
14445 done
14446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14447 rm -f conftest.err conftest.$ac_ext
14448 if $ac_preproc_ok; then
14449   :
14450 else
14451   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14452 See \`config.log' for more details." >&5
14453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14454 See \`config.log' for more details." >&2;}
14455    { (exit 1); exit 1; }; }
14456 fi
14457
14458 ac_ext=cpp
14459 ac_cpp='$CXXCPP $CPPFLAGS'
14460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14463
14464
14465
14466 for ac_header in cxxabi.h
14467 do
14468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473   echo $ECHO_N "(cached) $ECHO_C" >&6
14474 fi
14475 ac_res=`eval echo '${'$as_ac_Header'}'`
14476                { echo "$as_me:$LINENO: result: $ac_res" >&5
14477 echo "${ECHO_T}$ac_res" >&6; }
14478 else
14479   # Is the header compilable?
14480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14482 cat >conftest.$ac_ext <<_ACEOF
14483 /* confdefs.h.  */
14484 _ACEOF
14485 cat confdefs.h >>conftest.$ac_ext
14486 cat >>conftest.$ac_ext <<_ACEOF
14487 /* end confdefs.h.  */
14488 $ac_includes_default
14489 #include <$ac_header>
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495   *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498   (eval "$ac_compile") 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } &&
14505          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14506   { (case "(($ac_try" in
14507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508   *) ac_try_echo=$ac_try;;
14509 esac
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511   (eval "$ac_try") 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521   (eval "$ac_try") 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   ac_header_compiler=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530         ac_header_compiler=no
14531 fi
14532
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14536
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 #include <$ac_header>
14547 _ACEOF
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14555   ac_status=$?
14556   grep -v '^ *+' conftest.er1 >conftest.err
14557   rm -f conftest.er1
14558   cat conftest.err >&5
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } >/dev/null; then
14561   if test -s conftest.err; then
14562     ac_cpp_err=$ac_cxx_preproc_warn_flag
14563     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14564   else
14565     ac_cpp_err=
14566   fi
14567 else
14568   ac_cpp_err=yes
14569 fi
14570 if test -z "$ac_cpp_err"; then
14571   ac_header_preproc=yes
14572 else
14573   echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576   ac_header_preproc=no
14577 fi
14578
14579 rm -f conftest.err conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14581 echo "${ECHO_T}$ac_header_preproc" >&6; }
14582
14583 # So?  What about this header?
14584 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14585   yes:no: )
14586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14590     ac_header_preproc=yes
14591     ;;
14592   no:yes:* )
14593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14605     ( cat <<\_ASBOX
14606 ## ------------------------------------ ##
14607 ## Report this to http://llvm.org/bugs/ ##
14608 ## ------------------------------------ ##
14609 _ASBOX
14610      ) | sed "s/^/$as_me: WARNING:     /" >&2
14611     ;;
14612 esac
14613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   eval "$as_ac_Header=\$ac_header_preproc"
14619 fi
14620 ac_res=`eval echo '${'$as_ac_Header'}'`
14621                { echo "$as_me:$LINENO: result: $ac_res" >&5
14622 echo "${ECHO_T}$ac_res" >&6; }
14623
14624 fi
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626   cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14628 _ACEOF
14629
14630 fi
14631
14632 done
14633
14634 ac_ext=c
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14639
14640
14641
14642
14643
14644
14645 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14646 do
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652   echo $ECHO_N "(cached) $ECHO_C" >&6
14653 fi
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655                { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14657 else
14658   # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 $ac_includes_default
14668 #include <$ac_header>
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_compile") 2>conftest.er1
14678   ac_status=$?
14679   grep -v '^ *+' conftest.er1 >conftest.err
14680   rm -f conftest.er1
14681   cat conftest.err >&5
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } &&
14684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14685   { (case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_try") 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; } &&
14694          { ac_try='test -s conftest.$ac_objext'
14695   { (case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_try") 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_header_compiler=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } >/dev/null; then
14740   if test -s conftest.err; then
14741     ac_cpp_err=$ac_c_preproc_warn_flag
14742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14743   else
14744     ac_cpp_err=
14745   fi
14746 else
14747   ac_cpp_err=yes
14748 fi
14749 if test -z "$ac_cpp_err"; then
14750   ac_header_preproc=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755   ac_header_preproc=no
14756 fi
14757
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14761
14762 # So?  What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14764   yes:no: )
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769     ac_header_preproc=yes
14770     ;;
14771   no:yes:* )
14772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784     ( cat <<\_ASBOX
14785 ## ------------------------------------ ##
14786 ## Report this to http://llvm.org/bugs/ ##
14787 ## ------------------------------------ ##
14788 _ASBOX
14789      ) | sed "s/^/$as_me: WARNING:     /" >&2
14790     ;;
14791 esac
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   eval "$as_ac_Header=\$ac_header_preproc"
14798 fi
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800                { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14802
14803 fi
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805   cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807 _ACEOF
14808
14809 fi
14810
14811 done
14812
14813
14814
14815
14816
14817
14818
14819 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14820 do
14821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14826   echo $ECHO_N "(cached) $ECHO_C" >&6
14827 fi
14828 ac_res=`eval echo '${'$as_ac_Header'}'`
14829                { echo "$as_me:$LINENO: result: $ac_res" >&5
14830 echo "${ECHO_T}$ac_res" >&6; }
14831 else
14832   # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 $ac_includes_default
14842 #include <$ac_header>
14843 _ACEOF
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851   (eval "$ac_compile") 2>conftest.er1
14852   ac_status=$?
14853   grep -v '^ *+' conftest.er1 >conftest.err
14854   rm -f conftest.er1
14855   cat conftest.err >&5
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } &&
14858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14859   { (case "(($ac_try" in
14860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861   *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864   (eval "$ac_try") 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; } &&
14868          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14878   ac_header_compiler=yes
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883         ac_header_compiler=no
14884 fi
14885
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14889
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899 #include <$ac_header>
14900 _ACEOF
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904   *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908   ac_status=$?
14909   grep -v '^ *+' conftest.er1 >conftest.err
14910   rm -f conftest.er1
14911   cat conftest.err >&5
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } >/dev/null; then
14914   if test -s conftest.err; then
14915     ac_cpp_err=$ac_c_preproc_warn_flag
14916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14917   else
14918     ac_cpp_err=
14919   fi
14920 else
14921   ac_cpp_err=yes
14922 fi
14923 if test -z "$ac_cpp_err"; then
14924   ac_header_preproc=yes
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929   ac_header_preproc=no
14930 fi
14931
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14935
14936 # So?  What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938   yes:no: )
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943     ac_header_preproc=yes
14944     ;;
14945   no:yes:* )
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14958     ( cat <<\_ASBOX
14959 ## ------------------------------------ ##
14960 ## Report this to http://llvm.org/bugs/ ##
14961 ## ------------------------------------ ##
14962 _ASBOX
14963      ) | sed "s/^/$as_me: WARNING:     /" >&2
14964     ;;
14965 esac
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   eval "$as_ac_Header=\$ac_header_preproc"
14972 fi
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974                { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14976
14977 fi
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979   cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14981 _ACEOF
14982
14983 fi
14984
14985 done
14986
14987
14988 for ac_header in utime.h
14989 do
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 fi
14997 ac_res=`eval echo '${'$as_ac_Header'}'`
14998                { echo "$as_me:$LINENO: result: $ac_res" >&5
14999 echo "${ECHO_T}$ac_res" >&6; }
15000 else
15001   # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 $ac_includes_default
15011 #include <$ac_header>
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_compile") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; } &&
15037          { ac_try='test -s conftest.$ac_objext'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   ac_header_compiler=yes
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_header_compiler=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15058
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <$ac_header>
15069 _ACEOF
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } >/dev/null; then
15083   if test -s conftest.err; then
15084     ac_cpp_err=$ac_c_preproc_warn_flag
15085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15086   else
15087     ac_cpp_err=
15088   fi
15089 else
15090   ac_cpp_err=yes
15091 fi
15092 if test -z "$ac_cpp_err"; then
15093   ac_header_preproc=yes
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098   ac_header_preproc=no
15099 fi
15100
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104
15105 # So?  What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107   yes:no: )
15108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112     ac_header_preproc=yes
15113     ;;
15114   no:yes:* )
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15127     ( cat <<\_ASBOX
15128 ## ------------------------------------ ##
15129 ## Report this to http://llvm.org/bugs/ ##
15130 ## ------------------------------------ ##
15131 _ASBOX
15132      ) | sed "s/^/$as_me: WARNING:     /" >&2
15133     ;;
15134 esac
15135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140   eval "$as_ac_Header=\$ac_header_preproc"
15141 fi
15142 ac_res=`eval echo '${'$as_ac_Header'}'`
15143                { echo "$as_me:$LINENO: result: $ac_res" >&5
15144 echo "${ECHO_T}$ac_res" >&6; }
15145
15146 fi
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148   cat >>confdefs.h <<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15150 _ACEOF
15151
15152 fi
15153
15154 done
15155
15156
15157
15158
15159
15160
15161 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15162 do
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 fi
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171                { echo "$as_me:$LINENO: result: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15173 else
15174   # Is the header compilable?
15175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 $ac_includes_default
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_compile") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; } &&
15210          { ac_try='test -s conftest.$ac_objext'
15211   { (case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_try") 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   ac_header_compiler=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225         ac_header_compiler=no
15226 fi
15227
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15230 echo "${ECHO_T}$ac_header_compiler" >&6; }
15231
15232 # Is the header present?
15233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 #include <$ac_header>
15242 _ACEOF
15243 if { (ac_try="$ac_cpp conftest.$ac_ext"
15244 case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } >/dev/null; then
15256   if test -s conftest.err; then
15257     ac_cpp_err=$ac_c_preproc_warn_flag
15258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259   else
15260     ac_cpp_err=
15261   fi
15262 else
15263   ac_cpp_err=yes
15264 fi
15265 if test -z "$ac_cpp_err"; then
15266   ac_header_preproc=yes
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271   ac_header_preproc=no
15272 fi
15273
15274 rm -f conftest.err conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276 echo "${ECHO_T}$ac_header_preproc" >&6; }
15277
15278 # So?  What about this header?
15279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15280   yes:no: )
15281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15285     ac_header_preproc=yes
15286     ;;
15287   no:yes:* )
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15300     ( cat <<\_ASBOX
15301 ## ------------------------------------ ##
15302 ## Report this to http://llvm.org/bugs/ ##
15303 ## ------------------------------------ ##
15304 _ASBOX
15305      ) | sed "s/^/$as_me: WARNING:     /" >&2
15306     ;;
15307 esac
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   eval "$as_ac_Header=\$ac_header_preproc"
15314 fi
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316                { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15318
15319 fi
15320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15321   cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15323 _ACEOF
15324
15325 fi
15326
15327 done
15328
15329
15330
15331
15332 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15333 do
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 fi
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342                { echo "$as_me:$LINENO: result: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15344 else
15345   # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 $ac_includes_default
15355 #include <$ac_header>
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361   *) ac_try_echo=$ac_try;;
15362 esac
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364   (eval "$ac_compile") 2>conftest.er1
15365   ac_status=$?
15366   grep -v '^ *+' conftest.er1 >conftest.err
15367   rm -f conftest.er1
15368   cat conftest.err >&5
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); } &&
15371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15372   { (case "(($ac_try" in
15373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374   *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377   (eval "$ac_try") 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_try") 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }; then
15391   ac_header_compiler=yes
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396         ac_header_compiler=no
15397 fi
15398
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402
15403 # Is the header present?
15404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 #include <$ac_header>
15413 _ACEOF
15414 if { (ac_try="$ac_cpp conftest.$ac_ext"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } >/dev/null; then
15427   if test -s conftest.err; then
15428     ac_cpp_err=$ac_c_preproc_warn_flag
15429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430   else
15431     ac_cpp_err=
15432   fi
15433 else
15434   ac_cpp_err=yes
15435 fi
15436 if test -z "$ac_cpp_err"; then
15437   ac_header_preproc=yes
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442   ac_header_preproc=no
15443 fi
15444
15445 rm -f conftest.err conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447 echo "${ECHO_T}$ac_header_preproc" >&6; }
15448
15449 # So?  What about this header?
15450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451   yes:no: )
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15456     ac_header_preproc=yes
15457     ;;
15458   no:yes:* )
15459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15471     ( cat <<\_ASBOX
15472 ## ------------------------------------ ##
15473 ## Report this to http://llvm.org/bugs/ ##
15474 ## ------------------------------------ ##
15475 _ASBOX
15476      ) | sed "s/^/$as_me: WARNING:     /" >&2
15477     ;;
15478 esac
15479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482   echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484   eval "$as_ac_Header=\$ac_header_preproc"
15485 fi
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487                { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489
15490 fi
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492   cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 _ACEOF
15495
15496 fi
15497
15498 done
15499
15500
15501 for ac_header in valgrind/valgrind.h
15502 do
15503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508   echo $ECHO_N "(cached) $ECHO_C" >&6
15509 fi
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511                { echo "$as_me:$LINENO: result: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15513 else
15514   # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 $ac_includes_default
15524 #include <$ac_header>
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_compile") 2>conftest.er1
15534   ac_status=$?
15535   grep -v '^ *+' conftest.er1 >conftest.err
15536   rm -f conftest.er1
15537   cat conftest.err >&5
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); } &&
15540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541   { (case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_try") 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; } &&
15550          { ac_try='test -s conftest.$ac_objext'
15551   { (case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_try") 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   ac_header_compiler=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565         ac_header_compiler=no
15566 fi
15567
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15571
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <$ac_header>
15582 _ACEOF
15583 if { (ac_try="$ac_cpp conftest.$ac_ext"
15584 case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15590   ac_status=$?
15591   grep -v '^ *+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } >/dev/null; then
15596   if test -s conftest.err; then
15597     ac_cpp_err=$ac_c_preproc_warn_flag
15598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15599   else
15600     ac_cpp_err=
15601   fi
15602 else
15603   ac_cpp_err=yes
15604 fi
15605 if test -z "$ac_cpp_err"; then
15606   ac_header_preproc=yes
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611   ac_header_preproc=no
15612 fi
15613
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15617
15618 # So?  What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620   yes:no: )
15621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15625     ac_header_preproc=yes
15626     ;;
15627   no:yes:* )
15628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15640     ( cat <<\_ASBOX
15641 ## ------------------------------------ ##
15642 ## Report this to http://llvm.org/bugs/ ##
15643 ## ------------------------------------ ##
15644 _ASBOX
15645      ) | sed "s/^/$as_me: WARNING:     /" >&2
15646     ;;
15647 esac
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653   eval "$as_ac_Header=\$ac_header_preproc"
15654 fi
15655 ac_res=`eval echo '${'$as_ac_Header'}'`
15656                { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15658
15659 fi
15660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661   cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663 _ACEOF
15664
15665 fi
15666
15667 done
15668
15669
15670 for ac_header in fenv.h
15671 do
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 fi
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680                { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15682 else
15683   # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h.  */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h.  */
15692 $ac_includes_default
15693 #include <$ac_header>
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_compile") 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710   { (case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_try") 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; } &&
15719          { ac_try='test -s conftest.$ac_objext'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   ac_header_compiler=yes
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734         ac_header_compiler=no
15735 fi
15736
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15740
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750 #include <$ac_header>
15751 _ACEOF
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } >/dev/null; then
15765   if test -s conftest.err; then
15766     ac_cpp_err=$ac_c_preproc_warn_flag
15767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768   else
15769     ac_cpp_err=
15770   fi
15771 else
15772   ac_cpp_err=yes
15773 fi
15774 if test -z "$ac_cpp_err"; then
15775   ac_header_preproc=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780   ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786
15787 # So?  What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789   yes:no: )
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794     ac_header_preproc=yes
15795     ;;
15796   no:yes:* )
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809     ( cat <<\_ASBOX
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15813 _ASBOX
15814      ) | sed "s/^/$as_me: WARNING:     /" >&2
15815     ;;
15816 esac
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822   eval "$as_ac_Header=\$ac_header_preproc"
15823 fi
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825                { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15827
15828 fi
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830   cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832 _ACEOF
15833
15834 fi
15835
15836 done
15837
15838 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15839 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15840 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843   cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h.  */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h.  */
15849 #include <fenv.h>
15850
15851 int
15852 main ()
15853 {
15854 #ifndef FE_ALL_EXCEPT
15855   char *p = (char *) FE_ALL_EXCEPT;
15856   return !p;
15857 #endif
15858
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_compile") 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } &&
15877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15878   { (case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883   (eval "$ac_try") 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; } &&
15887          { ac_try='test -s conftest.$ac_objext'
15888   { (case "(($ac_try" in
15889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890   *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893   (eval "$ac_try") 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; }; then
15897   ac_cv_have_decl_FE_ALL_EXCEPT=yes
15898 else
15899   echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902         ac_cv_have_decl_FE_ALL_EXCEPT=no
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 fi
15907 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15908 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15909 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15910
15911 cat >>confdefs.h <<_ACEOF
15912 #define HAVE_DECL_FE_ALL_EXCEPT 1
15913 _ACEOF
15914
15915
15916 else
15917   cat >>confdefs.h <<_ACEOF
15918 #define HAVE_DECL_FE_ALL_EXCEPT 0
15919 _ACEOF
15920
15921
15922 fi
15923 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15924 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15925 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 #include <fenv.h>
15935
15936 int
15937 main ()
15938 {
15939 #ifndef FE_INEXACT
15940   char *p = (char *) FE_INEXACT;
15941   return !p;
15942 #endif
15943
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_compile") 2>conftest.er1
15956   ac_status=$?
15957   grep -v '^ *+' conftest.er1 >conftest.err
15958   rm -f conftest.er1
15959   cat conftest.err >&5
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963   { (case "(($ac_try" in
15964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965   *) ac_try_echo=$ac_try;;
15966 esac
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968   (eval "$ac_try") 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; } &&
15972          { ac_try='test -s conftest.$ac_objext'
15973   { (case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978   (eval "$ac_try") 2>&5
15979   ac_status=$?
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); }; }; then
15982   ac_cv_have_decl_FE_INEXACT=yes
15983 else
15984   echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15986
15987         ac_cv_have_decl_FE_INEXACT=no
15988 fi
15989
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 fi
15992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
15993 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
15994 if test $ac_cv_have_decl_FE_INEXACT = yes; then
15995
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_DECL_FE_INEXACT 1
15998 _ACEOF
15999
16000
16001 else
16002   cat >>confdefs.h <<_ACEOF
16003 #define HAVE_DECL_FE_INEXACT 0
16004 _ACEOF
16005
16006
16007 fi
16008
16009
16010 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16011
16012 for ac_header in pthread.h
16013 do
16014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 fi
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022                { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16024 else
16025   # Is the header compilable?
16026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 $ac_includes_default
16035 #include <$ac_header>
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (ac_try="$ac_compile"
16039 case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_compile") 2>conftest.er1
16045   ac_status=$?
16046   grep -v '^ *+' conftest.er1 >conftest.err
16047   rm -f conftest.er1
16048   cat conftest.err >&5
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } &&
16051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052   { (case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_try") 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; } &&
16061          { ac_try='test -s conftest.$ac_objext'
16062   { (case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_try") 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_header_compiler=yes
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076         ac_header_compiler=no
16077 fi
16078
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081 echo "${ECHO_T}$ac_header_compiler" >&6; }
16082
16083 # Is the header present?
16084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086 cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092 #include <$ac_header>
16093 _ACEOF
16094 if { (ac_try="$ac_cpp conftest.$ac_ext"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101   ac_status=$?
16102   grep -v '^ *+' conftest.er1 >conftest.err
16103   rm -f conftest.er1
16104   cat conftest.err >&5
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } >/dev/null; then
16107   if test -s conftest.err; then
16108     ac_cpp_err=$ac_c_preproc_warn_flag
16109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110   else
16111     ac_cpp_err=
16112   fi
16113 else
16114   ac_cpp_err=yes
16115 fi
16116 if test -z "$ac_cpp_err"; then
16117   ac_header_preproc=yes
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122   ac_header_preproc=no
16123 fi
16124
16125 rm -f conftest.err conftest.$ac_ext
16126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127 echo "${ECHO_T}$ac_header_preproc" >&6; }
16128
16129 # So?  What about this header?
16130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131   yes:no: )
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136     ac_header_preproc=yes
16137     ;;
16138   no:yes:* )
16139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151     ( cat <<\_ASBOX
16152 ## ------------------------------------ ##
16153 ## Report this to http://llvm.org/bugs/ ##
16154 ## ------------------------------------ ##
16155 _ASBOX
16156      ) | sed "s/^/$as_me: WARNING:     /" >&2
16157     ;;
16158 esac
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   eval "$as_ac_Header=\$ac_header_preproc"
16165 fi
16166 ac_res=`eval echo '${'$as_ac_Header'}'`
16167                { echo "$as_me:$LINENO: result: $ac_res" >&5
16168 echo "${ECHO_T}$ac_res" >&6; }
16169
16170 fi
16171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16172   cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16175  HAVE_PTHREAD=1
16176
16177 else
16178   HAVE_PTHREAD=0
16179
16180 fi
16181
16182 done
16183
16184 else
16185   HAVE_PTHREAD=0
16186
16187 fi
16188 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16189
16190 for ac_header in zlib.h
16191 do
16192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 fi
16199 ac_res=`eval echo '${'$as_ac_Header'}'`
16200                { echo "$as_me:$LINENO: result: $ac_res" >&5
16201 echo "${ECHO_T}$ac_res" >&6; }
16202 else
16203   # Is the header compilable?
16204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16206 cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212 $ac_includes_default
16213 #include <$ac_header>
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_compile") 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } &&
16229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230   { (case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_try") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_try") 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ac_header_compiler=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254         ac_header_compiler=no
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 echo "${ECHO_T}$ac_header_compiler" >&6; }
16260
16261 # Is the header present?
16262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h.  */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h.  */
16270 #include <$ac_header>
16271 _ACEOF
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275   *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } >/dev/null; then
16285   if test -s conftest.err; then
16286     ac_cpp_err=$ac_c_preproc_warn_flag
16287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16288   else
16289     ac_cpp_err=
16290   fi
16291 else
16292   ac_cpp_err=yes
16293 fi
16294 if test -z "$ac_cpp_err"; then
16295   ac_header_preproc=yes
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300   ac_header_preproc=no
16301 fi
16302
16303 rm -f conftest.err conftest.$ac_ext
16304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16305 echo "${ECHO_T}$ac_header_preproc" >&6; }
16306
16307 # So?  What about this header?
16308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16309   yes:no: )
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16314     ac_header_preproc=yes
16315     ;;
16316   no:yes:* )
16317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16329     ( cat <<\_ASBOX
16330 ## ------------------------------------ ##
16331 ## Report this to http://llvm.org/bugs/ ##
16332 ## ------------------------------------ ##
16333 _ASBOX
16334      ) | sed "s/^/$as_me: WARNING:     /" >&2
16335     ;;
16336 esac
16337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   eval "$as_ac_Header=\$ac_header_preproc"
16343 fi
16344 ac_res=`eval echo '${'$as_ac_Header'}'`
16345                { echo "$as_me:$LINENO: result: $ac_res" >&5
16346 echo "${ECHO_T}$ac_res" >&6; }
16347
16348 fi
16349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16350   cat >>confdefs.h <<_ACEOF
16351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352 _ACEOF
16353  HAVE_LIBZ=1
16354
16355 else
16356   HAVE_LIBZ=0
16357
16358 fi
16359
16360 done
16361
16362 else
16363   HAVE_LIBZ=0
16364
16365 fi
16366
16367 if test "$llvm_cv_enable_libffi" = "yes" ; then
16368
16369
16370 for ac_header in ffi.h ffi/ffi.h
16371 do
16372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16374   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 fi
16379 ac_res=`eval echo '${'$as_ac_Header'}'`
16380                { echo "$as_me:$LINENO: result: $ac_res" >&5
16381 echo "${ECHO_T}$ac_res" >&6; }
16382 else
16383   # Is the header compilable?
16384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 $ac_includes_default
16393 #include <$ac_header>
16394 _ACEOF
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399   *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402   (eval "$ac_compile") 2>conftest.er1
16403   ac_status=$?
16404   grep -v '^ *+' conftest.er1 >conftest.err
16405   rm -f conftest.er1
16406   cat conftest.err >&5
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); } &&
16409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410   { (case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_try") 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; } &&
16419          { ac_try='test -s conftest.$ac_objext'
16420   { (case "(($ac_try" in
16421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422   *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425   (eval "$ac_try") 2>&5
16426   ac_status=$?
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); }; }; then
16429   ac_header_compiler=yes
16430 else
16431   echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16433
16434         ac_header_compiler=no
16435 fi
16436
16437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16439 echo "${ECHO_T}$ac_header_compiler" >&6; }
16440
16441 # Is the header present?
16442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450 #include <$ac_header>
16451 _ACEOF
16452 if { (ac_try="$ac_cpp conftest.$ac_ext"
16453 case "(($ac_try" in
16454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455   *) ac_try_echo=$ac_try;;
16456 esac
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16459   ac_status=$?
16460   grep -v '^ *+' conftest.er1 >conftest.err
16461   rm -f conftest.er1
16462   cat conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } >/dev/null; then
16465   if test -s conftest.err; then
16466     ac_cpp_err=$ac_c_preproc_warn_flag
16467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16468   else
16469     ac_cpp_err=
16470   fi
16471 else
16472   ac_cpp_err=yes
16473 fi
16474 if test -z "$ac_cpp_err"; then
16475   ac_header_preproc=yes
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480   ac_header_preproc=no
16481 fi
16482
16483 rm -f conftest.err conftest.$ac_ext
16484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 echo "${ECHO_T}$ac_header_preproc" >&6; }
16486
16487 # So?  What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16489   yes:no: )
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494     ac_header_preproc=yes
16495     ;;
16496   no:yes:* )
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16509     ( cat <<\_ASBOX
16510 ## ------------------------------------ ##
16511 ## Report this to http://llvm.org/bugs/ ##
16512 ## ------------------------------------ ##
16513 _ASBOX
16514      ) | sed "s/^/$as_me: WARNING:     /" >&2
16515     ;;
16516 esac
16517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   eval "$as_ac_Header=\$ac_header_preproc"
16523 fi
16524 ac_res=`eval echo '${'$as_ac_Header'}'`
16525                { echo "$as_me:$LINENO: result: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16527
16528 fi
16529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16530   cat >>confdefs.h <<_ACEOF
16531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16532 _ACEOF
16533
16534 fi
16535
16536 done
16537
16538 fi
16539
16540
16541 for ac_header in CrashReporterClient.h
16542 do
16543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 fi
16550 ac_res=`eval echo '${'$as_ac_Header'}'`
16551                { echo "$as_me:$LINENO: result: $ac_res" >&5
16552 echo "${ECHO_T}$ac_res" >&6; }
16553 else
16554   # Is the header compilable?
16555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 $ac_includes_default
16564 #include <$ac_header>
16565 _ACEOF
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_compile") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; } &&
16590          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16600   ac_header_compiler=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605         ac_header_compiler=no
16606 fi
16607
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16610 echo "${ECHO_T}$ac_header_compiler" >&6; }
16611
16612 # Is the header present?
16613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 #include <$ac_header>
16622 _ACEOF
16623 if { (ac_try="$ac_cpp conftest.$ac_ext"
16624 case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } >/dev/null; then
16636   if test -s conftest.err; then
16637     ac_cpp_err=$ac_c_preproc_warn_flag
16638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16639   else
16640     ac_cpp_err=
16641   fi
16642 else
16643   ac_cpp_err=yes
16644 fi
16645 if test -z "$ac_cpp_err"; then
16646   ac_header_preproc=yes
16647 else
16648   echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16650
16651   ac_header_preproc=no
16652 fi
16653
16654 rm -f conftest.err conftest.$ac_ext
16655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16656 echo "${ECHO_T}$ac_header_preproc" >&6; }
16657
16658 # So?  What about this header?
16659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16660   yes:no: )
16661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16665     ac_header_preproc=yes
16666     ;;
16667   no:yes:* )
16668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16680     ( cat <<\_ASBOX
16681 ## ------------------------------------ ##
16682 ## Report this to http://llvm.org/bugs/ ##
16683 ## ------------------------------------ ##
16684 _ASBOX
16685      ) | sed "s/^/$as_me: WARNING:     /" >&2
16686     ;;
16687 esac
16688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16691   echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693   eval "$as_ac_Header=\$ac_header_preproc"
16694 fi
16695 ac_res=`eval echo '${'$as_ac_Header'}'`
16696                { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16698
16699 fi
16700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16701   cat >>confdefs.h <<_ACEOF
16702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16703 _ACEOF
16704
16705 fi
16706
16707 done
16708
16709
16710 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16711 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16713
16714   /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719
16720     extern const char *__crashreporter_info__;
16721     int main() {
16722       __crashreporter_info__ = "test";
16723       return 0;
16724     }
16725
16726
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732   *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735   (eval "$ac_link") 2>conftest.er1
16736   ac_status=$?
16737   grep -v '^ *+' conftest.er1 >conftest.err
16738   rm -f conftest.er1
16739   cat conftest.err >&5
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); } &&
16742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16743   { (case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_try") 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; } &&
16752          { ac_try='test -s conftest$ac_exeext'
16753   { (case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_try") 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; }; then
16762
16763   { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16765
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_CRASHREPORTER_INFO 1
16768 _ACEOF
16769
16770
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775
16776   { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16778
16779 cat >>confdefs.h <<\_ACEOF
16780 #define HAVE_CRASHREPORTER_INFO 0
16781 _ACEOF
16782
16783
16784 fi
16785
16786 rm -f core conftest.err conftest.$ac_objext \
16787       conftest$ac_exeext conftest.$ac_ext
16788
16789
16790
16791   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16792 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16793 if test "${ac_cv_huge_val_sanity+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796
16797     ac_ext=cpp
16798 ac_cpp='$CXXCPP $CPPFLAGS'
16799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16802
16803     ac_save_CXXFLAGS=$CXXFLAGS
16804     CXXFLAGS="$CXXFLAGS -pedantic"
16805     if test "$cross_compiling" = yes; then
16806   ac_cv_huge_val_sanity=yes
16807 else
16808   cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 #include <math.h>
16815 int
16816 main ()
16817 {
16818 double x = HUGE_VAL; return x != x;
16819   ;
16820   return 0;
16821 }
16822 _ACEOF
16823 rm -f conftest$ac_exeext
16824 if { (ac_try="$ac_link"
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_link") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16834   { (case "(($ac_try" in
16835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836   *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839   (eval "$ac_try") 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_cv_huge_val_sanity=yes
16844 else
16845   echo "$as_me: program exited with status $ac_status" >&5
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ( exit $ac_status )
16850 ac_cv_huge_val_sanity=no
16851 fi
16852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16853 fi
16854
16855
16856     CXXFLAGS=$ac_save_CXXFLAGS
16857     ac_ext=c
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16862
16863
16864 fi
16865 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16866 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16867   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16868
16869
16870 { echo "$as_me:$LINENO: checking for pid_t" >&5
16871 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16872 if test "${ac_cv_type_pid_t+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 $ac_includes_default
16882 typedef pid_t ac__type_new_;
16883 int
16884 main ()
16885 {
16886 if ((ac__type_new_ *) 0)
16887   return 0;
16888 if (sizeof (ac__type_new_))
16889   return 0;
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_compile") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909   { (case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_try") 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; } &&
16918          { ac_try='test -s conftest.$ac_objext'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_type_pid_t=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933         ac_cv_type_pid_t=no
16934 fi
16935
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 fi
16938 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16939 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16940 if test $ac_cv_type_pid_t = yes; then
16941   :
16942 else
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define pid_t int
16946 _ACEOF
16947
16948 fi
16949
16950 { echo "$as_me:$LINENO: checking for size_t" >&5
16951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16952 if test "${ac_cv_type_size_t+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961 $ac_includes_default
16962 typedef size_t ac__type_new_;
16963 int
16964 main ()
16965 {
16966 if ((ac__type_new_ *) 0)
16967   return 0;
16968 if (sizeof (ac__type_new_))
16969   return 0;
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_compile") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } &&
16988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989   { (case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_try") 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; } &&
16998          { ac_try='test -s conftest.$ac_objext'
16999   { (case "(($ac_try" in
17000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001   *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004   (eval "$ac_try") 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; }; then
17008   ac_cv_type_size_t=yes
17009 else
17010   echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17012
17013         ac_cv_type_size_t=no
17014 fi
17015
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 fi
17018 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17019 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17020 if test $ac_cv_type_size_t = yes; then
17021   :
17022 else
17023
17024 cat >>confdefs.h <<_ACEOF
17025 #define size_t unsigned int
17026 _ACEOF
17027
17028 fi
17029
17030
17031 cat >>confdefs.h <<_ACEOF
17032 #define RETSIGTYPE void
17033 _ACEOF
17034
17035 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17036 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17037 if test "${ac_cv_struct_tm+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046 #include <sys/types.h>
17047 #include <time.h>
17048
17049 int
17050 main ()
17051 {
17052 struct tm *tp; tp->tm_sec;
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 rm -f conftest.$ac_objext
17058 if { (ac_try="$ac_compile"
17059 case "(($ac_try" in
17060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061   *) ac_try_echo=$ac_try;;
17062 esac
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064   (eval "$ac_compile") 2>conftest.er1
17065   ac_status=$?
17066   grep -v '^ *+' conftest.er1 >conftest.err
17067   rm -f conftest.er1
17068   cat conftest.err >&5
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); } &&
17071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17072   { (case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_try") 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; } &&
17081          { ac_try='test -s conftest.$ac_objext'
17082   { (case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_try") 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; }; then
17091   ac_cv_struct_tm=time.h
17092 else
17093   echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096         ac_cv_struct_tm=sys/time.h
17097 fi
17098
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 fi
17101 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17102 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17103 if test $ac_cv_struct_tm = sys/time.h; then
17104
17105 cat >>confdefs.h <<\_ACEOF
17106 #define TM_IN_SYS_TIME 1
17107 _ACEOF
17108
17109 fi
17110
17111 { echo "$as_me:$LINENO: checking for int64_t" >&5
17112 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17113 if test "${ac_cv_type_int64_t+set}" = set; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 $ac_includes_default
17123 typedef int64_t ac__type_new_;
17124 int
17125 main ()
17126 {
17127 if ((ac__type_new_ *) 0)
17128   return 0;
17129 if (sizeof (ac__type_new_))
17130   return 0;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (ac_try="$ac_compile"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_compile") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } &&
17149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150   { (case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_try") 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest.$ac_objext'
17160   { (case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_try") 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   ac_cv_type_int64_t=yes
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174         ac_cv_type_int64_t=no
17175 fi
17176
17177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 fi
17179 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17180 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17181 if test $ac_cv_type_int64_t = yes; then
17182
17183 cat >>confdefs.h <<_ACEOF
17184 #define HAVE_INT64_T 1
17185 _ACEOF
17186
17187
17188 else
17189   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17190 echo "$as_me: error: Type int64_t required but not found" >&2;}
17191    { (exit 1); exit 1; }; }
17192 fi
17193
17194 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17195 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17196 if test "${ac_cv_type_uint64_t+set}" = set; then
17197   echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199   cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 $ac_includes_default
17206 typedef uint64_t ac__type_new_;
17207 int
17208 main ()
17209 {
17210 if ((ac__type_new_ *) 0)
17211   return 0;
17212 if (sizeof (ac__type_new_))
17213   return 0;
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_compile") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; } &&
17242          { ac_try='test -s conftest.$ac_objext'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ac_cv_type_uint64_t=yes
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257         ac_cv_type_uint64_t=no
17258 fi
17259
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 fi
17262 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17263 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17264 if test $ac_cv_type_uint64_t = yes; then
17265
17266 cat >>confdefs.h <<_ACEOF
17267 #define HAVE_UINT64_T 1
17268 _ACEOF
17269
17270
17271 else
17272   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17273 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17274 if test "${ac_cv_type_u_int64_t+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 $ac_includes_default
17284 typedef u_int64_t ac__type_new_;
17285 int
17286 main ()
17287 {
17288 if ((ac__type_new_ *) 0)
17289   return 0;
17290 if (sizeof (ac__type_new_))
17291   return 0;
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 rm -f conftest.$ac_objext
17297 if { (ac_try="$ac_compile"
17298 case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_compile") 2>conftest.er1
17304   ac_status=$?
17305   grep -v '^ *+' conftest.er1 >conftest.err
17306   rm -f conftest.er1
17307   cat conftest.err >&5
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); } &&
17310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311   { (case "(($ac_try" in
17312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313   *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316   (eval "$ac_try") 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; } &&
17320          { ac_try='test -s conftest.$ac_objext'
17321   { (case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_try") 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; }; then
17330   ac_cv_type_u_int64_t=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         ac_cv_type_u_int64_t=no
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 fi
17340 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17341 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17342 if test $ac_cv_type_u_int64_t = yes; then
17343
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_U_INT64_T 1
17346 _ACEOF
17347
17348
17349 else
17350   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17351 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17352    { (exit 1); exit 1; }; }
17353 fi
17354
17355 fi
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17367 do
17368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374   cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h.  */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h.  */
17380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17382 #define $ac_func innocuous_$ac_func
17383
17384 /* System header to define __stub macros and hopefully few prototypes,
17385     which can conflict with char $ac_func (); below.
17386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17387     <limits.h> exists even on freestanding compilers.  */
17388
17389 #ifdef __STDC__
17390 # include <limits.h>
17391 #else
17392 # include <assert.h>
17393 #endif
17394
17395 #undef $ac_func
17396
17397 /* Override any GCC internal prototype to avoid an error.
17398    Use char because int might match the return type of a GCC
17399    builtin and then its argument prototype would still apply.  */
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 char $ac_func ();
17404 /* The GNU C library defines this for functions which it implements
17405     to always fail with ENOSYS.  Some functions are actually named
17406     something starting with __ and the normal name is an alias.  */
17407 #if defined __stub_$ac_func || defined __stub___$ac_func
17408 choke me
17409 #endif
17410
17411 int
17412 main ()
17413 {
17414 return $ac_func ();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426   (eval "$ac_link") 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } &&
17433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434   { (case "(($ac_try" in
17435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436   *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439   (eval "$ac_try") 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; } &&
17443          { ac_try='test -s conftest$ac_exeext'
17444   { (case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_try") 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); }; }; then
17453   eval "$as_ac_var=yes"
17454 else
17455   echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17457
17458         eval "$as_ac_var=no"
17459 fi
17460
17461 rm -f core conftest.err conftest.$ac_objext \
17462       conftest$ac_exeext conftest.$ac_ext
17463 fi
17464 ac_res=`eval echo '${'$as_ac_var'}'`
17465                { echo "$as_me:$LINENO: result: $ac_res" >&5
17466 echo "${ECHO_T}$ac_res" >&6; }
17467 if test `eval echo '${'$as_ac_var'}'` = yes; then
17468   cat >>confdefs.h <<_ACEOF
17469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17470 _ACEOF
17471
17472 fi
17473 done
17474
17475
17476
17477
17478
17479 for ac_func in powf fmodf strtof round
17480 do
17481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485   echo $ECHO_N "(cached) $ECHO_C" >&6
17486 else
17487   cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17495 #define $ac_func innocuous_$ac_func
17496
17497 /* System header to define __stub macros and hopefully few prototypes,
17498     which can conflict with char $ac_func (); below.
17499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500     <limits.h> exists even on freestanding compilers.  */
17501
17502 #ifdef __STDC__
17503 # include <limits.h>
17504 #else
17505 # include <assert.h>
17506 #endif
17507
17508 #undef $ac_func
17509
17510 /* Override any GCC internal prototype to avoid an error.
17511    Use char because int might match the return type of a GCC
17512    builtin and then its argument prototype would still apply.  */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 char $ac_func ();
17517 /* The GNU C library defines this for functions which it implements
17518     to always fail with ENOSYS.  Some functions are actually named
17519     something starting with __ and the normal name is an alias.  */
17520 #if defined __stub_$ac_func || defined __stub___$ac_func
17521 choke me
17522 #endif
17523
17524 int
17525 main ()
17526 {
17527 return $ac_func ();
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_link") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547   { (case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_try") 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; } &&
17556          { ac_try='test -s conftest$ac_exeext'
17557   { (case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562   (eval "$ac_try") 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; }; then
17566   eval "$as_ac_var=yes"
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571         eval "$as_ac_var=no"
17572 fi
17573
17574 rm -f core conftest.err conftest.$ac_objext \
17575       conftest$ac_exeext conftest.$ac_ext
17576 fi
17577 ac_res=`eval echo '${'$as_ac_var'}'`
17578                { echo "$as_me:$LINENO: result: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
17581   cat >>confdefs.h <<_ACEOF
17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583 _ACEOF
17584
17585 fi
17586 done
17587
17588
17589
17590
17591
17592
17593 for ac_func in log log2 log10 exp exp2
17594 do
17595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17599   echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601   cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17609 #define $ac_func innocuous_$ac_func
17610
17611 /* System header to define __stub macros and hopefully few prototypes,
17612     which can conflict with char $ac_func (); below.
17613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17614     <limits.h> exists even on freestanding compilers.  */
17615
17616 #ifdef __STDC__
17617 # include <limits.h>
17618 #else
17619 # include <assert.h>
17620 #endif
17621
17622 #undef $ac_func
17623
17624 /* Override any GCC internal prototype to avoid an error.
17625    Use char because int might match the return type of a GCC
17626    builtin and then its argument prototype would still apply.  */
17627 #ifdef __cplusplus
17628 extern "C"
17629 #endif
17630 char $ac_func ();
17631 /* The GNU C library defines this for functions which it implements
17632     to always fail with ENOSYS.  Some functions are actually named
17633     something starting with __ and the normal name is an alias.  */
17634 #if defined __stub_$ac_func || defined __stub___$ac_func
17635 choke me
17636 #endif
17637
17638 int
17639 main ()
17640 {
17641 return $ac_func ();
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_link") 2>conftest.er1
17654   ac_status=$?
17655   grep -v '^ *+' conftest.er1 >conftest.err
17656   rm -f conftest.er1
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); } &&
17660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17661   { (case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_try") 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; } &&
17670          { ac_try='test -s conftest$ac_exeext'
17671   { (case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_try") 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; }; then
17680   eval "$as_ac_var=yes"
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17684
17685         eval "$as_ac_var=no"
17686 fi
17687
17688 rm -f core conftest.err conftest.$ac_objext \
17689       conftest$ac_exeext conftest.$ac_ext
17690 fi
17691 ac_res=`eval echo '${'$as_ac_var'}'`
17692                { echo "$as_me:$LINENO: result: $ac_res" >&5
17693 echo "${ECHO_T}$ac_res" >&6; }
17694 if test `eval echo '${'$as_ac_var'}'` = yes; then
17695   cat >>confdefs.h <<_ACEOF
17696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17697 _ACEOF
17698
17699 fi
17700 done
17701
17702
17703
17704
17705
17706
17707 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17708 do
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17723 #define $ac_func innocuous_$ac_func
17724
17725 /* System header to define __stub macros and hopefully few prototypes,
17726     which can conflict with char $ac_func (); below.
17727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728     <limits.h> exists even on freestanding compilers.  */
17729
17730 #ifdef __STDC__
17731 # include <limits.h>
17732 #else
17733 # include <assert.h>
17734 #endif
17735
17736 #undef $ac_func
17737
17738 /* Override any GCC internal prototype to avoid an error.
17739    Use char because int might match the return type of a GCC
17740    builtin and then its argument prototype would still apply.  */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char $ac_func ();
17745 /* The GNU C library defines this for functions which it implements
17746     to always fail with ENOSYS.  Some functions are actually named
17747     something starting with __ and the normal name is an alias.  */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17749 choke me
17750 #endif
17751
17752 int
17753 main ()
17754 {
17755 return $ac_func ();
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764   *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767   (eval "$ac_link") 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775   { (case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_try") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; } &&
17784          { ac_try='test -s conftest$ac_exeext'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   eval "$as_ac_var=yes"
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799         eval "$as_ac_var=no"
17800 fi
17801
17802 rm -f core conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 fi
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806                { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809   cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 _ACEOF
17812
17813 fi
17814 done
17815
17816
17817
17818
17819 for ac_func in isatty mkdtemp mkstemp
17820 do
17821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17825   echo $ECHO_N "(cached) $ECHO_C" >&6
17826 else
17827   cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h.  */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h.  */
17833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17835 #define $ac_func innocuous_$ac_func
17836
17837 /* System header to define __stub macros and hopefully few prototypes,
17838     which can conflict with char $ac_func (); below.
17839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17840     <limits.h> exists even on freestanding compilers.  */
17841
17842 #ifdef __STDC__
17843 # include <limits.h>
17844 #else
17845 # include <assert.h>
17846 #endif
17847
17848 #undef $ac_func
17849
17850 /* Override any GCC internal prototype to avoid an error.
17851    Use char because int might match the return type of a GCC
17852    builtin and then its argument prototype would still apply.  */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char $ac_func ();
17857 /* The GNU C library defines this for functions which it implements
17858     to always fail with ENOSYS.  Some functions are actually named
17859     something starting with __ and the normal name is an alias.  */
17860 #if defined __stub_$ac_func || defined __stub___$ac_func
17861 choke me
17862 #endif
17863
17864 int
17865 main ()
17866 {
17867 return $ac_func ();
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_link") 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887   { (case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_try") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; } &&
17896          { ac_try='test -s conftest$ac_exeext'
17897   { (case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_try") 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; }; then
17906   eval "$as_ac_var=yes"
17907 else
17908   echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911         eval "$as_ac_var=no"
17912 fi
17913
17914 rm -f core conftest.err conftest.$ac_objext \
17915       conftest$ac_exeext conftest.$ac_ext
17916 fi
17917 ac_res=`eval echo '${'$as_ac_var'}'`
17918                { echo "$as_me:$LINENO: result: $ac_res" >&5
17919 echo "${ECHO_T}$ac_res" >&6; }
17920 if test `eval echo '${'$as_ac_var'}'` = yes; then
17921   cat >>confdefs.h <<_ACEOF
17922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17923 _ACEOF
17924
17925 fi
17926 done
17927
17928
17929
17930
17931
17932
17933
17934 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17935 do
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17950 #define $ac_func innocuous_$ac_func
17951
17952 /* System header to define __stub macros and hopefully few prototypes,
17953     which can conflict with char $ac_func (); below.
17954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955     <limits.h> exists even on freestanding compilers.  */
17956
17957 #ifdef __STDC__
17958 # include <limits.h>
17959 #else
17960 # include <assert.h>
17961 #endif
17962
17963 #undef $ac_func
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966    Use char because int might match the return type of a GCC
17967    builtin and then its argument prototype would still apply.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char $ac_func ();
17972 /* The GNU C library defines this for functions which it implements
17973     to always fail with ENOSYS.  Some functions are actually named
17974     something starting with __ and the normal name is an alias.  */
17975 #if defined __stub_$ac_func || defined __stub___$ac_func
17976 choke me
17977 #endif
17978
17979 int
17980 main ()
17981 {
17982 return $ac_func ();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_link") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002   { (case "(($ac_try" in
18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004   *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; } &&
18011          { ac_try='test -s conftest$ac_exeext'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   eval "$as_ac_var=yes"
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         eval "$as_ac_var=no"
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext \
18030       conftest$ac_exeext conftest.$ac_ext
18031 fi
18032 ac_res=`eval echo '${'$as_ac_var'}'`
18033                { echo "$as_me:$LINENO: result: $ac_res" >&5
18034 echo "${ECHO_T}$ac_res" >&6; }
18035 if test `eval echo '${'$as_ac_var'}'` = yes; then
18036   cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18038 _ACEOF
18039
18040 fi
18041 done
18042
18043
18044
18045
18046
18047 for ac_func in strerror strerror_r setenv arc4random
18048 do
18049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055   cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18063 #define $ac_func innocuous_$ac_func
18064
18065 /* System header to define __stub macros and hopefully few prototypes,
18066     which can conflict with char $ac_func (); below.
18067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068     <limits.h> exists even on freestanding compilers.  */
18069
18070 #ifdef __STDC__
18071 # include <limits.h>
18072 #else
18073 # include <assert.h>
18074 #endif
18075
18076 #undef $ac_func
18077
18078 /* Override any GCC internal prototype to avoid an error.
18079    Use char because int might match the return type of a GCC
18080    builtin and then its argument prototype would still apply.  */
18081 #ifdef __cplusplus
18082 extern "C"
18083 #endif
18084 char $ac_func ();
18085 /* The GNU C library defines this for functions which it implements
18086     to always fail with ENOSYS.  Some functions are actually named
18087     something starting with __ and the normal name is an alias.  */
18088 #if defined __stub_$ac_func || defined __stub___$ac_func
18089 choke me
18090 #endif
18091
18092 int
18093 main ()
18094 {
18095 return $ac_func ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104   *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107   (eval "$ac_link") 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18115   { (case "(($ac_try" in
18116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117   *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120   (eval "$ac_try") 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; } &&
18124          { ac_try='test -s conftest$ac_exeext'
18125   { (case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_try") 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; }; then
18134   eval "$as_ac_var=yes"
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139         eval "$as_ac_var=no"
18140 fi
18141
18142 rm -f core conftest.err conftest.$ac_objext \
18143       conftest$ac_exeext conftest.$ac_ext
18144 fi
18145 ac_res=`eval echo '${'$as_ac_var'}'`
18146                { echo "$as_me:$LINENO: result: $ac_res" >&5
18147 echo "${ECHO_T}$ac_res" >&6; }
18148 if test `eval echo '${'$as_ac_var'}'` = yes; then
18149   cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18151 _ACEOF
18152
18153 fi
18154 done
18155
18156
18157
18158
18159
18160 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18161 do
18162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166   echo $ECHO_N "(cached) $ECHO_C" >&6
18167 else
18168   cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18176 #define $ac_func innocuous_$ac_func
18177
18178 /* System header to define __stub macros and hopefully few prototypes,
18179     which can conflict with char $ac_func (); below.
18180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181     <limits.h> exists even on freestanding compilers.  */
18182
18183 #ifdef __STDC__
18184 # include <limits.h>
18185 #else
18186 # include <assert.h>
18187 #endif
18188
18189 #undef $ac_func
18190
18191 /* Override any GCC internal prototype to avoid an error.
18192    Use char because int might match the return type of a GCC
18193    builtin and then its argument prototype would still apply.  */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char $ac_func ();
18198 /* The GNU C library defines this for functions which it implements
18199     to always fail with ENOSYS.  Some functions are actually named
18200     something starting with __ and the normal name is an alias.  */
18201 #if defined __stub_$ac_func || defined __stub___$ac_func
18202 choke me
18203 #endif
18204
18205 int
18206 main ()
18207 {
18208 return $ac_func ();
18209   ;
18210   return 0;
18211 }
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_link") 2>conftest.er1
18221   ac_status=$?
18222   grep -v '^ *+' conftest.er1 >conftest.err
18223   rm -f conftest.er1
18224   cat conftest.err >&5
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); } &&
18227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228   { (case "(($ac_try" in
18229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230   *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233   (eval "$ac_try") 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest$ac_exeext'
18238   { (case "(($ac_try" in
18239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240   *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243   (eval "$ac_try") 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   eval "$as_ac_var=yes"
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252         eval "$as_ac_var=no"
18253 fi
18254
18255 rm -f core conftest.err conftest.$ac_objext \
18256       conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259                { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262   cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18265
18266 fi
18267 done
18268
18269
18270
18271
18272
18273
18274 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18275 do
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18290 #define $ac_func innocuous_$ac_func
18291
18292 /* System header to define __stub macros and hopefully few prototypes,
18293     which can conflict with char $ac_func (); below.
18294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295     <limits.h> exists even on freestanding compilers.  */
18296
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302
18303 #undef $ac_func
18304
18305 /* Override any GCC internal prototype to avoid an error.
18306    Use char because int might match the return type of a GCC
18307    builtin and then its argument prototype would still apply.  */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char $ac_func ();
18312 /* The GNU C library defines this for functions which it implements
18313     to always fail with ENOSYS.  Some functions are actually named
18314     something starting with __ and the normal name is an alias.  */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18316 choke me
18317 #endif
18318
18319 int
18320 main ()
18321 {
18322 return $ac_func ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_link") 2>conftest.er1
18335   ac_status=$?
18336   grep -v '^ *+' conftest.er1 >conftest.err
18337   rm -f conftest.er1
18338   cat conftest.err >&5
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); } &&
18341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342   { (case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_try") 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; } &&
18351          { ac_try='test -s conftest$ac_exeext'
18352   { (case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_try") 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   eval "$as_ac_var=yes"
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366         eval "$as_ac_var=no"
18367 fi
18368
18369 rm -f core conftest.err conftest.$ac_objext \
18370       conftest$ac_exeext conftest.$ac_ext
18371 fi
18372 ac_res=`eval echo '${'$as_ac_var'}'`
18373                { echo "$as_me:$LINENO: result: $ac_res" >&5
18374 echo "${ECHO_T}$ac_res" >&6; }
18375 if test `eval echo '${'$as_ac_var'}'` = yes; then
18376   cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18378 _ACEOF
18379
18380 fi
18381 done
18382
18383
18384
18385 for ac_func in futimes futimens
18386 do
18387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18391   echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393   cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18401 #define $ac_func innocuous_$ac_func
18402
18403 /* System header to define __stub macros and hopefully few prototypes,
18404     which can conflict with char $ac_func (); below.
18405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18406     <limits.h> exists even on freestanding compilers.  */
18407
18408 #ifdef __STDC__
18409 # include <limits.h>
18410 #else
18411 # include <assert.h>
18412 #endif
18413
18414 #undef $ac_func
18415
18416 /* Override any GCC internal prototype to avoid an error.
18417    Use char because int might match the return type of a GCC
18418    builtin and then its argument prototype would still apply.  */
18419 #ifdef __cplusplus
18420 extern "C"
18421 #endif
18422 char $ac_func ();
18423 /* The GNU C library defines this for functions which it implements
18424     to always fail with ENOSYS.  Some functions are actually named
18425     something starting with __ and the normal name is an alias.  */
18426 #if defined __stub_$ac_func || defined __stub___$ac_func
18427 choke me
18428 #endif
18429
18430 int
18431 main ()
18432 {
18433 return $ac_func ();
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_link") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   eval "$as_ac_var=yes"
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         eval "$as_ac_var=no"
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext \
18481       conftest$ac_exeext conftest.$ac_ext
18482 fi
18483 ac_res=`eval echo '${'$as_ac_var'}'`
18484                { echo "$as_me:$LINENO: result: $ac_res" >&5
18485 echo "${ECHO_T}$ac_res" >&6; }
18486 if test `eval echo '${'$as_ac_var'}'` = yes; then
18487   cat >>confdefs.h <<_ACEOF
18488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18489 _ACEOF
18490
18491 fi
18492 done
18493
18494 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18495 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18496 if test "${llvm_cv_c_printf_a+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_ext=c
18500 ac_cpp='$CPP $CPPFLAGS'
18501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18504
18505  if test "$cross_compiling" = yes; then
18506   llvmac_cv_c_printf_a=no
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509
18510   /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515
18516 #include <stdio.h>
18517 #include <stdlib.h>
18518
18519 int
18520 main ()
18521 {
18522
18523 volatile double A, B;
18524 char Buffer[100];
18525 A = 1;
18526 A /= 10.0;
18527 sprintf(Buffer, "%a", A);
18528 B = atof(Buffer);
18529 if (A != B)
18530   return (1);
18531 if (A != 0x1.999999999999ap-4)
18532   return (1);
18533 return (0);
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest$ac_exeext
18539 if { (ac_try="$ac_link"
18540 case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_link") 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18549   { (case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_try") 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; }; then
18558   llvm_cv_c_printf_a=yes
18559 else
18560   echo "$as_me: program exited with status $ac_status" >&5
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ( exit $ac_status )
18565 llvmac_cv_c_printf_a=no
18566 fi
18567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18568 fi
18569
18570
18571  ac_ext=c
18572 ac_cpp='$CPP $CPPFLAGS'
18573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18576
18577 fi
18578 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18579 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18580  if test "$llvm_cv_c_printf_a" = "yes"; then
18581
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE_PRINTF_A 1
18584 _ACEOF
18585
18586  fi
18587
18588
18589
18590   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18591 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18592 if test "${ac_cv_func_rand48+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595
18596     ac_ext=cpp
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18601
18602     cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608 #include <stdlib.h>
18609 int
18610 main ()
18611 {
18612 srand48(0);lrand48();drand48();
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621   *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624   (eval "$ac_compile") 2>conftest.er1
18625   ac_status=$?
18626   grep -v '^ *+' conftest.er1 >conftest.err
18627   rm -f conftest.er1
18628   cat conftest.err >&5
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); } &&
18631          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632   { (case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_try") 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest.$ac_objext'
18642   { (case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_try") 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; }; then
18651   ac_cv_func_rand48=yes
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656         ac_cv_func_rand48=no
18657 fi
18658
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660     ac_ext=c
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665
18666
18667 fi
18668 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18669 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18670
18671 if test "$ac_cv_func_rand48" = "yes" ; then
18672
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_RAND48 1
18675 _ACEOF
18676
18677 fi
18678
18679
18680 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18681 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18682 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691 $ac_includes_default
18692 int
18693 main ()
18694 {
18695 #ifndef strerror_s
18696   char *p = (char *) strerror_s;
18697   return !p;
18698 #endif
18699
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_compile") 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } &&
18718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719   { (case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_try") 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; } &&
18728          { ac_try='test -s conftest.$ac_objext'
18729   { (case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734   (eval "$ac_try") 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   ac_cv_have_decl_strerror_s=yes
18739 else
18740   echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743         ac_cv_have_decl_strerror_s=no
18744 fi
18745
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747 fi
18748 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18749 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18750 if test $ac_cv_have_decl_strerror_s = yes; then
18751
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_DECL_STRERROR_S 1
18754 _ACEOF
18755
18756
18757 else
18758   cat >>confdefs.h <<_ACEOF
18759 #define HAVE_DECL_STRERROR_S 0
18760 _ACEOF
18761
18762
18763 fi
18764
18765
18766
18767 if test "$llvm_cv_os_type" = "MingW" ; then
18768   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18769 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18770 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18771   echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773   ac_check_lib_save_LIBS=$LIBS
18774 LIBS="-lgcc  $LIBS"
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h.  */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h.  */
18781
18782 /* Override any GCC internal prototype to avoid an error.
18783    Use char because int might match the return type of a GCC
18784    builtin and then its argument prototype would still apply.  */
18785 #ifdef __cplusplus
18786 extern "C"
18787 #endif
18788 char _alloca ();
18789 int
18790 main ()
18791 {
18792 return _alloca ();
18793   ;
18794   return 0;
18795 }
18796 _ACEOF
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (ac_try="$ac_link"
18799 case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_link") 2>conftest.er1
18805   ac_status=$?
18806   grep -v '^ *+' conftest.er1 >conftest.err
18807   rm -f conftest.er1
18808   cat conftest.err >&5
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } &&
18811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18812   { (case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_try") 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; } &&
18821          { ac_try='test -s conftest$ac_exeext'
18822   { (case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_try") 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; }; then
18831   ac_cv_lib_gcc__alloca=yes
18832 else
18833   echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836         ac_cv_lib_gcc__alloca=no
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext \
18840       conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18842 fi
18843 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18844 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18845 if test $ac_cv_lib_gcc__alloca = yes; then
18846
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE__ALLOCA 1
18849 _ACEOF
18850
18851 fi
18852
18853   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18854 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18855 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18856   echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858   ac_check_lib_save_LIBS=$LIBS
18859 LIBS="-lgcc  $LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866
18867 /* Override any GCC internal prototype to avoid an error.
18868    Use char because int might match the return type of a GCC
18869    builtin and then its argument prototype would still apply.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char __alloca ();
18874 int
18875 main ()
18876 {
18877 return __alloca ();
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (ac_try="$ac_link"
18884 case "(($ac_try" in
18885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886   *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889   (eval "$ac_link") 2>conftest.er1
18890   ac_status=$?
18891   grep -v '^ *+' conftest.er1 >conftest.err
18892   rm -f conftest.er1
18893   cat conftest.err >&5
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } &&
18896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897   { (case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_try") 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; } &&
18906          { ac_try='test -s conftest$ac_exeext'
18907   { (case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_try") 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); }; }; then
18916   ac_cv_lib_gcc___alloca=yes
18917 else
18918   echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921         ac_cv_lib_gcc___alloca=no
18922 fi
18923
18924 rm -f core conftest.err conftest.$ac_objext \
18925       conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18927 fi
18928 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18929 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18930 if test $ac_cv_lib_gcc___alloca = yes; then
18931
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE___ALLOCA 1
18934 _ACEOF
18935
18936 fi
18937
18938   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18939 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18940 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lgcc  $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951
18952 /* Override any GCC internal prototype to avoid an error.
18953    Use char because int might match the return type of a GCC
18954    builtin and then its argument prototype would still apply.  */
18955 #ifdef __cplusplus
18956 extern "C"
18957 #endif
18958 char __chkstk ();
18959 int
18960 main ()
18961 {
18962 return __chkstk ();
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974   (eval "$ac_link") 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } &&
18981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18982   { (case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_try") 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; } &&
18991          { ac_try='test -s conftest$ac_exeext'
18992   { (case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_try") 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001   ac_cv_lib_gcc___chkstk=yes
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006         ac_cv_lib_gcc___chkstk=no
19007 fi
19008
19009 rm -f core conftest.err conftest.$ac_objext \
19010       conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19012 fi
19013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19014 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19015 if test $ac_cv_lib_gcc___chkstk = yes; then
19016
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE___CHKSTK 1
19019 _ACEOF
19020
19021 fi
19022
19023   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19024 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19025 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19026   echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028   ac_check_lib_save_LIBS=$LIBS
19029 LIBS="-lgcc  $LIBS"
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036
19037 /* Override any GCC internal prototype to avoid an error.
19038    Use char because int might match the return type of a GCC
19039    builtin and then its argument prototype would still apply.  */
19040 #ifdef __cplusplus
19041 extern "C"
19042 #endif
19043 char ___chkstk ();
19044 int
19045 main ()
19046 {
19047 return ___chkstk ();
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056   *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059   (eval "$ac_link") 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } &&
19066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19067   { (case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072   (eval "$ac_try") 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_try") 2>&5
19083   ac_status=$?
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); }; }; then
19086   ac_cv_lib_gcc____chkstk=yes
19087 else
19088   echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19090
19091         ac_cv_lib_gcc____chkstk=no
19092 fi
19093
19094 rm -f core conftest.err conftest.$ac_objext \
19095       conftest$ac_exeext conftest.$ac_ext
19096 LIBS=$ac_check_lib_save_LIBS
19097 fi
19098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19099 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19100 if test $ac_cv_lib_gcc____chkstk = yes; then
19101
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE____CHKSTK 1
19104 _ACEOF
19105
19106 fi
19107
19108
19109   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19110 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19111 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   ac_check_lib_save_LIBS=$LIBS
19115 LIBS="-lgcc  $LIBS"
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122
19123 /* Override any GCC internal prototype to avoid an error.
19124    Use char because int might match the return type of a GCC
19125    builtin and then its argument prototype would still apply.  */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 char __ashldi3 ();
19130 int
19131 main ()
19132 {
19133 return __ashldi3 ();
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (ac_try="$ac_link"
19140 case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_link") 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153   { (case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_try") 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; } &&
19162          { ac_try='test -s conftest$ac_exeext'
19163   { (case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_cv_lib_gcc___ashldi3=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177         ac_cv_lib_gcc___ashldi3=no
19178 fi
19179
19180 rm -f core conftest.err conftest.$ac_objext \
19181       conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19183 fi
19184 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19185 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19186 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE___ASHLDI3 1
19190 _ACEOF
19191
19192 fi
19193
19194   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19195 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19196 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199   ac_check_lib_save_LIBS=$LIBS
19200 LIBS="-lgcc  $LIBS"
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207
19208 /* Override any GCC internal prototype to avoid an error.
19209    Use char because int might match the return type of a GCC
19210    builtin and then its argument prototype would still apply.  */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char __ashrdi3 ();
19215 int
19216 main ()
19217 {
19218 return __ashrdi3 ();
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_link") 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } &&
19237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238   { (case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_try") 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; } &&
19247          { ac_try='test -s conftest$ac_exeext'
19248   { (case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_try") 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   ac_cv_lib_gcc___ashrdi3=yes
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         ac_cv_lib_gcc___ashrdi3=no
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext \
19266       conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19270 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19271 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19272
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE___ASHRDI3 1
19275 _ACEOF
19276
19277 fi
19278
19279   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19280 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19281 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19282   echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284   ac_check_lib_save_LIBS=$LIBS
19285 LIBS="-lgcc  $LIBS"
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292
19293 /* Override any GCC internal prototype to avoid an error.
19294    Use char because int might match the return type of a GCC
19295    builtin and then its argument prototype would still apply.  */
19296 #ifdef __cplusplus
19297 extern "C"
19298 #endif
19299 char __divdi3 ();
19300 int
19301 main ()
19302 {
19303 return __divdi3 ();
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_link") 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } &&
19322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19323   { (case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_try") 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest$ac_exeext'
19333   { (case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_try") 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_cv_lib_gcc___divdi3=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347         ac_cv_lib_gcc___divdi3=no
19348 fi
19349
19350 rm -f core conftest.err conftest.$ac_objext \
19351       conftest$ac_exeext conftest.$ac_ext
19352 LIBS=$ac_check_lib_save_LIBS
19353 fi
19354 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19355 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19356 if test $ac_cv_lib_gcc___divdi3 = yes; then
19357
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE___DIVDI3 1
19360 _ACEOF
19361
19362 fi
19363
19364   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19365 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19366 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   ac_check_lib_save_LIBS=$LIBS
19370 LIBS="-lgcc  $LIBS"
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377
19378 /* Override any GCC internal prototype to avoid an error.
19379    Use char because int might match the return type of a GCC
19380    builtin and then its argument prototype would still apply.  */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 char __fixdfdi ();
19385 int
19386 main ()
19387 {
19388 return __fixdfdi ();
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext conftest$ac_exeext
19394 if { (ac_try="$ac_link"
19395 case "(($ac_try" in
19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397   *) ac_try_echo=$ac_try;;
19398 esac
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400   (eval "$ac_link") 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } &&
19407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19408   { (case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_try") 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest$ac_exeext'
19418   { (case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_try") 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   ac_cv_lib_gcc___fixdfdi=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432         ac_cv_lib_gcc___fixdfdi=no
19433 fi
19434
19435 rm -f core conftest.err conftest.$ac_objext \
19436       conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19438 fi
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19440 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19441 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19442
19443 cat >>confdefs.h <<\_ACEOF
19444 #define HAVE___FIXDFDI 1
19445 _ACEOF
19446
19447 fi
19448
19449   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19450 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19451 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19452   echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454   ac_check_lib_save_LIBS=$LIBS
19455 LIBS="-lgcc  $LIBS"
19456 cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462
19463 /* Override any GCC internal prototype to avoid an error.
19464    Use char because int might match the return type of a GCC
19465    builtin and then its argument prototype would still apply.  */
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 char __fixsfdi ();
19470 int
19471 main ()
19472 {
19473 return __fixsfdi ();
19474   ;
19475   return 0;
19476 }
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482   *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485   (eval "$ac_link") 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493   { (case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_try") 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest$ac_exeext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   ac_cv_lib_gcc___fixsfdi=yes
19513 else
19514   echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517         ac_cv_lib_gcc___fixsfdi=no
19518 fi
19519
19520 rm -f core conftest.err conftest.$ac_objext \
19521       conftest$ac_exeext conftest.$ac_ext
19522 LIBS=$ac_check_lib_save_LIBS
19523 fi
19524 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19525 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19526 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19527
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE___FIXSFDI 1
19530 _ACEOF
19531
19532 fi
19533
19534   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19535 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19536 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   ac_check_lib_save_LIBS=$LIBS
19540 LIBS="-lgcc  $LIBS"
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h.  */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h.  */
19547
19548 /* Override any GCC internal prototype to avoid an error.
19549    Use char because int might match the return type of a GCC
19550    builtin and then its argument prototype would still apply.  */
19551 #ifdef __cplusplus
19552 extern "C"
19553 #endif
19554 char __floatdidf ();
19555 int
19556 main ()
19557 {
19558 return __floatdidf ();
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_link") 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } &&
19577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19578   { (case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_try") 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest$ac_exeext'
19588   { (case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_try") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   ac_cv_lib_gcc___floatdidf=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602         ac_cv_lib_gcc___floatdidf=no
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext \
19606       conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19608 fi
19609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19610 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19611 if test $ac_cv_lib_gcc___floatdidf = yes; then
19612
19613 cat >>confdefs.h <<\_ACEOF
19614 #define HAVE___FLOATDIDF 1
19615 _ACEOF
19616
19617 fi
19618
19619   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19620 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19621 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624   ac_check_lib_save_LIBS=$LIBS
19625 LIBS="-lgcc  $LIBS"
19626 cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632
19633 /* Override any GCC internal prototype to avoid an error.
19634    Use char because int might match the return type of a GCC
19635    builtin and then its argument prototype would still apply.  */
19636 #ifdef __cplusplus
19637 extern "C"
19638 #endif
19639 char __lshrdi3 ();
19640 int
19641 main ()
19642 {
19643 return __lshrdi3 ();
19644   ;
19645   return 0;
19646 }
19647 _ACEOF
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652   *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655   (eval "$ac_link") 2>conftest.er1
19656   ac_status=$?
19657   grep -v '^ *+' conftest.er1 >conftest.err
19658   rm -f conftest.er1
19659   cat conftest.err >&5
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); } &&
19662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663   { (case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_try") 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; } &&
19672          { ac_try='test -s conftest$ac_exeext'
19673   { (case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_try") 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_cv_lib_gcc___lshrdi3=yes
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687         ac_cv_lib_gcc___lshrdi3=no
19688 fi
19689
19690 rm -f core conftest.err conftest.$ac_objext \
19691       conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19693 fi
19694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19695 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19696 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19697
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE___LSHRDI3 1
19700 _ACEOF
19701
19702 fi
19703
19704   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19705 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19706 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19707   echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709   ac_check_lib_save_LIBS=$LIBS
19710 LIBS="-lgcc  $LIBS"
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717
19718 /* Override any GCC internal prototype to avoid an error.
19719    Use char because int might match the return type of a GCC
19720    builtin and then its argument prototype would still apply.  */
19721 #ifdef __cplusplus
19722 extern "C"
19723 #endif
19724 char __moddi3 ();
19725 int
19726 main ()
19727 {
19728 return __moddi3 ();
19729   ;
19730   return 0;
19731 }
19732 _ACEOF
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737   *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740   (eval "$ac_link") 2>conftest.er1
19741   ac_status=$?
19742   grep -v '^ *+' conftest.er1 >conftest.err
19743   rm -f conftest.er1
19744   cat conftest.err >&5
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } &&
19747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19748   { (case "(($ac_try" in
19749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750   *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753   (eval "$ac_try") 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; } &&
19757          { ac_try='test -s conftest$ac_exeext'
19758   { (case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_try") 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; }; then
19767   ac_cv_lib_gcc___moddi3=yes
19768 else
19769   echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772         ac_cv_lib_gcc___moddi3=no
19773 fi
19774
19775 rm -f core conftest.err conftest.$ac_objext \
19776       conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19778 fi
19779 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19780 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19781 if test $ac_cv_lib_gcc___moddi3 = yes; then
19782
19783 cat >>confdefs.h <<\_ACEOF
19784 #define HAVE___MODDI3 1
19785 _ACEOF
19786
19787 fi
19788
19789   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19790 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19791 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794   ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lgcc  $LIBS"
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h.  */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h.  */
19802
19803 /* Override any GCC internal prototype to avoid an error.
19804    Use char because int might match the return type of a GCC
19805    builtin and then its argument prototype would still apply.  */
19806 #ifdef __cplusplus
19807 extern "C"
19808 #endif
19809 char __udivdi3 ();
19810 int
19811 main ()
19812 {
19813 return __udivdi3 ();
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_link") 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } &&
19832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833   { (case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_try") 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; } &&
19842          { ac_try='test -s conftest$ac_exeext'
19843   { (case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_try") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); }; }; then
19852   ac_cv_lib_gcc___udivdi3=yes
19853 else
19854   echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857         ac_cv_lib_gcc___udivdi3=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext \
19861       conftest$ac_exeext conftest.$ac_ext
19862 LIBS=$ac_check_lib_save_LIBS
19863 fi
19864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19865 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19866 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19867
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE___UDIVDI3 1
19870 _ACEOF
19871
19872 fi
19873
19874   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19875 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19876 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879   ac_check_lib_save_LIBS=$LIBS
19880 LIBS="-lgcc  $LIBS"
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887
19888 /* Override any GCC internal prototype to avoid an error.
19889    Use char because int might match the return type of a GCC
19890    builtin and then its argument prototype would still apply.  */
19891 #ifdef __cplusplus
19892 extern "C"
19893 #endif
19894 char __umoddi3 ();
19895 int
19896 main ()
19897 {
19898 return __umoddi3 ();
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907   *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910   (eval "$ac_link") 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19918   { (case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_try") 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; } &&
19927          { ac_try='test -s conftest$ac_exeext'
19928   { (case "(($ac_try" in
19929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930   *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933   (eval "$ac_try") 2>&5
19934   ac_status=$?
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); }; }; then
19937   ac_cv_lib_gcc___umoddi3=yes
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942         ac_cv_lib_gcc___umoddi3=no
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext \
19946       conftest$ac_exeext conftest.$ac_ext
19947 LIBS=$ac_check_lib_save_LIBS
19948 fi
19949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19950 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19951 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19952
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE___UMODDI3 1
19955 _ACEOF
19956
19957 fi
19958
19959
19960   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19961 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19962 if test "${ac_cv_lib_gcc___main+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lgcc  $LIBS"
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973
19974 /* Override any GCC internal prototype to avoid an error.
19975    Use char because int might match the return type of a GCC
19976    builtin and then its argument prototype would still apply.  */
19977 #ifdef __cplusplus
19978 extern "C"
19979 #endif
19980 char __main ();
19981 int
19982 main ()
19983 {
19984 return __main ();
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_link") 2>conftest.er1
19997   ac_status=$?
19998   grep -v '^ *+' conftest.er1 >conftest.err
19999   rm -f conftest.er1
20000   cat conftest.err >&5
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } &&
20003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20004   { (case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_try") 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest$ac_exeext'
20014   { (case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_try") 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; }; then
20023   ac_cv_lib_gcc___main=yes
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028         ac_cv_lib_gcc___main=no
20029 fi
20030
20031 rm -f core conftest.err conftest.$ac_objext \
20032       conftest$ac_exeext conftest.$ac_ext
20033 LIBS=$ac_check_lib_save_LIBS
20034 fi
20035 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20036 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20037 if test $ac_cv_lib_gcc___main = yes; then
20038
20039 cat >>confdefs.h <<\_ACEOF
20040 #define HAVE___MAIN 1
20041 _ACEOF
20042
20043 fi
20044
20045   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20046 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20047 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   ac_check_lib_save_LIBS=$LIBS
20051 LIBS="-lgcc  $LIBS"
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058
20059 /* Override any GCC internal prototype to avoid an error.
20060    Use char because int might match the return type of a GCC
20061    builtin and then its argument prototype would still apply.  */
20062 #ifdef __cplusplus
20063 extern "C"
20064 #endif
20065 char __cmpdi2 ();
20066 int
20067 main ()
20068 {
20069 return __cmpdi2 ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081   (eval "$ac_link") 2>conftest.er1
20082   ac_status=$?
20083   grep -v '^ *+' conftest.er1 >conftest.err
20084   rm -f conftest.er1
20085   cat conftest.err >&5
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } &&
20088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20089   { (case "(($ac_try" in
20090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091   *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094   (eval "$ac_try") 2>&5
20095   ac_status=$?
20096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097   (exit $ac_status); }; } &&
20098          { ac_try='test -s conftest$ac_exeext'
20099   { (case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104   (eval "$ac_try") 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; }; then
20108   ac_cv_lib_gcc___cmpdi2=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_lib_gcc___cmpdi2=no
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext \
20117       conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20119 fi
20120 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20121 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20122 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE___CMPDI2 1
20126 _ACEOF
20127
20128 fi
20129
20130 fi
20131
20132 if test "$llvm_cv_os_type" = "MingW" ; then
20133   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20134 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20135   cat >conftest.$ac_ext <<_ACEOF
20136
20137   /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142
20143     #include <windows.h>
20144     #include <imagehlp.h>
20145     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20146     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20147
20148
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } &&
20164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; } &&
20174          { ac_try='test -s conftest.$ac_objext'
20175   { (case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_try") 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184
20185   { echo "$as_me:$LINENO: result: yes" >&5
20186 echo "${ECHO_T}yes" >&6; }
20187   llvm_cv_win32_elmcb_pcstr="PCSTR"
20188
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193
20194   { echo "$as_me:$LINENO: result: no" >&5
20195 echo "${ECHO_T}no" >&6; }
20196   llvm_cv_win32_elmcb_pcstr="PSTR"
20197
20198 fi
20199
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201
20202 cat >>confdefs.h <<_ACEOF
20203 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20204 _ACEOF
20205
20206 fi
20207
20208
20209
20210   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20211 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20212 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215
20216     ac_ext=cpp
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20221
20222     cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 #include <math.h>
20229 int
20230 main ()
20231 {
20232 float f; isnan(f);
20233   ;
20234   return 0;
20235 }
20236 _ACEOF
20237 rm -f conftest.$ac_objext
20238 if { (ac_try="$ac_compile"
20239 case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_compile") 2>conftest.er1
20245   ac_status=$?
20246   grep -v '^ *+' conftest.er1 >conftest.err
20247   rm -f conftest.er1
20248   cat conftest.err >&5
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } &&
20251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20252   { (case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257   (eval "$ac_try") 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; } &&
20261          { ac_try='test -s conftest.$ac_objext'
20262   { (case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_try") 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; }; then
20271   ac_cv_func_isnan_in_math_h=yes
20272 else
20273   echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276         ac_cv_func_isnan_in_math_h=no
20277 fi
20278
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280     ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286
20287 fi
20288 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20289 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20290
20291
20292 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20293
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_ISNAN_IN_MATH_H 1
20296 _ACEOF
20297
20298 fi
20299
20300
20301   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20302 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20303 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306
20307     ac_ext=cpp
20308 ac_cpp='$CXXCPP $CPPFLAGS'
20309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20312
20313     cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319 #include <cmath>
20320 int
20321 main ()
20322 {
20323 float f; isnan(f);
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_compile") 2>conftest.er1
20336   ac_status=$?
20337   grep -v '^ *+' conftest.er1 >conftest.err
20338   rm -f conftest.er1
20339   cat conftest.err >&5
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); } &&
20342          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20343   { (case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_try") 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; } &&
20352          { ac_try='test -s conftest.$ac_objext'
20353   { (case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_try") 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   ac_cv_func_isnan_in_cmath=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         ac_cv_func_isnan_in_cmath=no
20368 fi
20369
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371     ac_ext=c
20372 ac_cpp='$CPP $CPPFLAGS'
20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376
20377
20378 fi
20379 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20380 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20381
20382 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20383
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_ISNAN_IN_CMATH 1
20386 _ACEOF
20387
20388 fi
20389
20390
20391   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20392 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20393 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20394   echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396
20397     ac_ext=cpp
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20402
20403     cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 #include <cmath>
20410 int
20411 main ()
20412 {
20413 float f; std::isnan(f);
20414   ;
20415   return 0;
20416 }
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_compile") 2>conftest.er1
20426   ac_status=$?
20427   grep -v '^ *+' conftest.er1 >conftest.err
20428   rm -f conftest.er1
20429   cat conftest.err >&5
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } &&
20432          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20433   { (case "(($ac_try" in
20434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435   *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438   (eval "$ac_try") 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; } &&
20442          { ac_try='test -s conftest.$ac_objext'
20443   { (case "(($ac_try" in
20444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445   *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448   (eval "$ac_try") 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); }; }; then
20452   ac_cv_func_std_isnan_in_cmath=yes
20453 else
20454   echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457         ac_cv_func_std_isnan_in_cmath=no
20458 fi
20459
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461     ac_ext=c
20462 ac_cpp='$CPP $CPPFLAGS'
20463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20466
20467
20468 fi
20469 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20470 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20471
20472 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20473
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE_STD_ISNAN_IN_CMATH 1
20476 _ACEOF
20477
20478 fi
20479
20480
20481
20482
20483   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20484 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20485 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488
20489     ac_ext=cpp
20490 ac_cpp='$CXXCPP $CPPFLAGS'
20491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20494
20495     cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h.  */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h.  */
20501 #include <math.h>
20502 int
20503 main ()
20504 {
20505 float f; isinf(f);
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_compile") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } &&
20524          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20525   { (case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_try") 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; } &&
20534          { ac_try='test -s conftest.$ac_objext'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_try") 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   ac_cv_func_isinf_in_math_h=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549         ac_cv_func_isinf_in_math_h=no
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553     ac_ext=c
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559
20560 fi
20561 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20562 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20563
20564 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_ISINF_IN_MATH_H 1
20568 _ACEOF
20569
20570 fi
20571
20572
20573   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20574 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20575 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578
20579     ac_ext=cpp
20580 ac_cpp='$CXXCPP $CPPFLAGS'
20581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20584
20585     cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 #include <cmath>
20592 int
20593 main ()
20594 {
20595 float f; isinf(f);
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_compile") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20615   { (case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_try") 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; } &&
20624          { ac_try='test -s conftest.$ac_objext'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_cv_func_isinf_in_cmath=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639         ac_cv_func_isinf_in_cmath=no
20640 fi
20641
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643     ac_ext=c
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648
20649
20650 fi
20651 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20652 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20653
20654 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20655
20656 cat >>confdefs.h <<\_ACEOF
20657 #define HAVE_ISINF_IN_CMATH 1
20658 _ACEOF
20659
20660 fi
20661
20662
20663   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20664 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20665 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668
20669     ac_ext=cpp
20670 ac_cpp='$CXXCPP $CPPFLAGS'
20671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20674
20675     cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h.  */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h.  */
20681 #include <cmath>
20682 int
20683 main ()
20684 {
20685 float f; std::isinf(f);
20686   ;
20687   return 0;
20688 }
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694   *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697   (eval "$ac_compile") 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } &&
20704          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20705   { (case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_try") 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; } &&
20714          { ac_try='test -s conftest.$ac_objext'
20715   { (case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_try") 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   ac_cv_func_std_isinf_in_cmath=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729         ac_cv_func_std_isinf_in_cmath=no
20730 fi
20731
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733     ac_ext=c
20734 ac_cpp='$CPP $CPPFLAGS'
20735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20738
20739
20740 fi
20741 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20742 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20743
20744 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20745
20746 cat >>confdefs.h <<\_ACEOF
20747 #define HAVE_STD_ISINF_IN_CMATH 1
20748 _ACEOF
20749
20750 fi
20751
20752
20753   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20754 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20755 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758
20759     ac_ext=cpp
20760 ac_cpp='$CXXCPP $CPPFLAGS'
20761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20764
20765     cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <ieeefp.h>
20772 int
20773 main ()
20774 {
20775 float f; finite(f);
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_compile") 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20795   { (case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_try") 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest.$ac_objext'
20805   { (case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_try") 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   ac_cv_func_finite_in_ieeefp_h=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819         ac_cv_func_finite_in_ieeefp_h=no
20820 fi
20821
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823     ac_ext=c
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829
20830 fi
20831 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20832 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20833
20834 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20835
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_FINITE_IN_IEEEFP_H 1
20838 _ACEOF
20839
20840 fi
20841
20842
20843
20844 if test "$llvm_cv_platform_type" = "Unix" ; then
20845
20846
20847 for ac_header in stdlib.h unistd.h
20848 do
20849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20851   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 fi
20856 ac_res=`eval echo '${'$as_ac_Header'}'`
20857                { echo "$as_me:$LINENO: result: $ac_res" >&5
20858 echo "${ECHO_T}$ac_res" >&6; }
20859 else
20860   # Is the header compilable?
20861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 $ac_includes_default
20870 #include <$ac_header>
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20887   { (case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_try") 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest.$ac_objext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_header_compiler=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         ac_header_compiler=no
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20917
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h.  */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h.  */
20927 #include <$ac_header>
20928 _ACEOF
20929 if { (ac_try="$ac_cpp conftest.$ac_ext"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } >/dev/null; then
20942   if test -s conftest.err; then
20943     ac_cpp_err=$ac_c_preproc_warn_flag
20944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20945   else
20946     ac_cpp_err=
20947   fi
20948 else
20949   ac_cpp_err=yes
20950 fi
20951 if test -z "$ac_cpp_err"; then
20952   ac_header_preproc=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957   ac_header_preproc=no
20958 fi
20959
20960 rm -f conftest.err conftest.$ac_ext
20961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20962 echo "${ECHO_T}$ac_header_preproc" >&6; }
20963
20964 # So?  What about this header?
20965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20966   yes:no: )
20967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20971     ac_header_preproc=yes
20972     ;;
20973   no:yes:* )
20974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20986     ( cat <<\_ASBOX
20987 ## ------------------------------------ ##
20988 ## Report this to http://llvm.org/bugs/ ##
20989 ## ------------------------------------ ##
20990 _ASBOX
20991      ) | sed "s/^/$as_me: WARNING:     /" >&2
20992     ;;
20993 esac
20994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   eval "$as_ac_Header=\$ac_header_preproc"
21000 fi
21001 ac_res=`eval echo '${'$as_ac_Header'}'`
21002                { echo "$as_me:$LINENO: result: $ac_res" >&5
21003 echo "${ECHO_T}$ac_res" >&6; }
21004
21005 fi
21006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21007   cat >>confdefs.h <<_ACEOF
21008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21009 _ACEOF
21010
21011 fi
21012
21013 done
21014
21015
21016 for ac_func in getpagesize
21017 do
21018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21032 #define $ac_func innocuous_$ac_func
21033
21034 /* System header to define __stub macros and hopefully few prototypes,
21035     which can conflict with char $ac_func (); below.
21036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21037     <limits.h> exists even on freestanding compilers.  */
21038
21039 #ifdef __STDC__
21040 # include <limits.h>
21041 #else
21042 # include <assert.h>
21043 #endif
21044
21045 #undef $ac_func
21046
21047 /* Override any GCC internal prototype to avoid an error.
21048    Use char because int might match the return type of a GCC
21049    builtin and then its argument prototype would still apply.  */
21050 #ifdef __cplusplus
21051 extern "C"
21052 #endif
21053 char $ac_func ();
21054 /* The GNU C library defines this for functions which it implements
21055     to always fail with ENOSYS.  Some functions are actually named
21056     something starting with __ and the normal name is an alias.  */
21057 #if defined __stub_$ac_func || defined __stub___$ac_func
21058 choke me
21059 #endif
21060
21061 int
21062 main ()
21063 {
21064 return $ac_func ();
21065   ;
21066   return 0;
21067 }
21068 _ACEOF
21069 rm -f conftest.$ac_objext conftest$ac_exeext
21070 if { (ac_try="$ac_link"
21071 case "(($ac_try" in
21072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073   *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076   (eval "$ac_link") 2>conftest.er1
21077   ac_status=$?
21078   grep -v '^ *+' conftest.er1 >conftest.err
21079   rm -f conftest.er1
21080   cat conftest.err >&5
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } &&
21083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21084   { (case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_try") 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; } &&
21093          { ac_try='test -s conftest$ac_exeext'
21094   { (case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_try") 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; }; then
21103   eval "$as_ac_var=yes"
21104 else
21105   echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108         eval "$as_ac_var=no"
21109 fi
21110
21111 rm -f core conftest.err conftest.$ac_objext \
21112       conftest$ac_exeext conftest.$ac_ext
21113 fi
21114 ac_res=`eval echo '${'$as_ac_var'}'`
21115                { echo "$as_me:$LINENO: result: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21117 if test `eval echo '${'$as_ac_var'}'` = yes; then
21118   cat >>confdefs.h <<_ACEOF
21119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21120 _ACEOF
21121
21122 fi
21123 done
21124
21125 { echo "$as_me:$LINENO: checking for working mmap" >&5
21126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130   if test "$cross_compiling" = yes; then
21131   ac_cv_func_mmap_fixed_mapped=no
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 $ac_includes_default
21140 /* malloc might have been renamed as rpl_malloc. */
21141 #undef malloc
21142
21143 /* Thanks to Mike Haertel and Jim Avera for this test.
21144    Here is a matrix of mmap possibilities:
21145         mmap private not fixed
21146         mmap private fixed at somewhere currently unmapped
21147         mmap private fixed at somewhere already mapped
21148         mmap shared not fixed
21149         mmap shared fixed at somewhere currently unmapped
21150         mmap shared fixed at somewhere already mapped
21151    For private mappings, we should verify that changes cannot be read()
21152    back from the file, nor mmap's back from the file at a different
21153    address.  (There have been systems where private was not correctly
21154    implemented like the infamous i386 svr4.0, and systems where the
21155    VM page cache was not coherent with the file system buffer cache
21156    like early versions of FreeBSD and possibly contemporary NetBSD.)
21157    For shared mappings, we should conversely verify that changes get
21158    propagated back to all the places they're supposed to be.
21159
21160    Grep wants private fixed already mapped.
21161    The main things grep needs to know about mmap are:
21162    * does it exist and is it safe to write into the mmap'd area
21163    * how to use it (BSD variants)  */
21164
21165 #include <fcntl.h>
21166 #include <sys/mman.h>
21167
21168 #if !STDC_HEADERS && !HAVE_STDLIB_H
21169 char *malloc ();
21170 #endif
21171
21172 /* This mess was copied from the GNU getpagesize.h.  */
21173 #if !HAVE_GETPAGESIZE
21174 /* Assume that all systems that can run configure have sys/param.h.  */
21175 # if !HAVE_SYS_PARAM_H
21176 #  define HAVE_SYS_PARAM_H 1
21177 # endif
21178
21179 # ifdef _SC_PAGESIZE
21180 #  define getpagesize() sysconf(_SC_PAGESIZE)
21181 # else /* no _SC_PAGESIZE */
21182 #  if HAVE_SYS_PARAM_H
21183 #   include <sys/param.h>
21184 #   ifdef EXEC_PAGESIZE
21185 #    define getpagesize() EXEC_PAGESIZE
21186 #   else /* no EXEC_PAGESIZE */
21187 #    ifdef NBPG
21188 #     define getpagesize() NBPG * CLSIZE
21189 #     ifndef CLSIZE
21190 #      define CLSIZE 1
21191 #     endif /* no CLSIZE */
21192 #    else /* no NBPG */
21193 #     ifdef NBPC
21194 #      define getpagesize() NBPC
21195 #     else /* no NBPC */
21196 #      ifdef PAGESIZE
21197 #       define getpagesize() PAGESIZE
21198 #      endif /* PAGESIZE */
21199 #     endif /* no NBPC */
21200 #    endif /* no NBPG */
21201 #   endif /* no EXEC_PAGESIZE */
21202 #  else /* no HAVE_SYS_PARAM_H */
21203 #   define getpagesize() 8192   /* punt totally */
21204 #  endif /* no HAVE_SYS_PARAM_H */
21205 # endif /* no _SC_PAGESIZE */
21206
21207 #endif /* no HAVE_GETPAGESIZE */
21208
21209 int
21210 main ()
21211 {
21212   char *data, *data2, *data3;
21213   int i, pagesize;
21214   int fd;
21215
21216   pagesize = getpagesize ();
21217
21218   /* First, make a file with some known garbage in it. */
21219   data = (char *) malloc (pagesize);
21220   if (!data)
21221     return 1;
21222   for (i = 0; i < pagesize; ++i)
21223     *(data + i) = rand ();
21224   umask (0);
21225   fd = creat ("conftest.mmap", 0600);
21226   if (fd < 0)
21227     return 1;
21228   if (write (fd, data, pagesize) != pagesize)
21229     return 1;
21230   close (fd);
21231
21232   /* Next, try to mmap the file at a fixed address which already has
21233      something else allocated at it.  If we can, also make sure that
21234      we see the same garbage.  */
21235   fd = open ("conftest.mmap", O_RDWR);
21236   if (fd < 0)
21237     return 1;
21238   data2 = (char *) malloc (2 * pagesize);
21239   if (!data2)
21240     return 1;
21241   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21242   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21243                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21244     return 1;
21245   for (i = 0; i < pagesize; ++i)
21246     if (*(data + i) != *(data2 + i))
21247       return 1;
21248
21249   /* Finally, make sure that changes to the mapped area do not
21250      percolate back to the file as seen by read().  (This is a bug on
21251      some variants of i386 svr4.0.)  */
21252   for (i = 0; i < pagesize; ++i)
21253     *(data2 + i) = *(data2 + i) + 1;
21254   data3 = (char *) malloc (pagesize);
21255   if (!data3)
21256     return 1;
21257   if (read (fd, data3, pagesize) != pagesize)
21258     return 1;
21259   for (i = 0; i < pagesize; ++i)
21260     if (*(data + i) != *(data3 + i))
21261       return 1;
21262   close (fd);
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest$ac_exeext
21267 if { (ac_try="$ac_link"
21268 case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_link") 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21277   { (case "(($ac_try" in
21278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279   *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282   (eval "$ac_try") 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); }; }; then
21286   ac_cv_func_mmap_fixed_mapped=yes
21287 else
21288   echo "$as_me: program exited with status $ac_status" >&5
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292 ( exit $ac_status )
21293 ac_cv_func_mmap_fixed_mapped=no
21294 fi
21295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21296 fi
21297
21298
21299 fi
21300 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21301 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21302 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21303
21304 cat >>confdefs.h <<\_ACEOF
21305 #define HAVE_MMAP 1
21306 _ACEOF
21307
21308 fi
21309 rm -f conftest.mmap
21310
21311   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21312 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21313 if test "${ac_cv_func_mmap_file+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316    ac_ext=c
21317 ac_cpp='$CPP $CPPFLAGS'
21318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21321
21322   if test "$cross_compiling" = yes; then
21323   ac_cv_func_mmap_file=no
21324 else
21325   cat >conftest.$ac_ext <<_ACEOF
21326
21327     /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332
21333 #include <sys/types.h>
21334 #include <sys/mman.h>
21335 #include <fcntl.h>
21336
21337 int
21338 main ()
21339 {
21340
21341   int fd;
21342   fd = creat ("foo",0777);
21343   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21344   unlink ("foo");
21345   return (fd != (int) MAP_FAILED);
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_link") 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21361   { (case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_try") 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ac_cv_func_mmap_file=yes
21371 else
21372   echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ( exit $ac_status )
21377 ac_cv_func_mmap_file=no
21378 fi
21379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 fi
21381
21382
21383   ac_ext=c
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388
21389
21390 fi
21391 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21392 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21393 if test "$ac_cv_func_mmap_file" = yes; then
21394
21395 cat >>confdefs.h <<\_ACEOF
21396 #define HAVE_MMAP_FILE
21397 _ACEOF
21398
21399    MMAP_FILE=yes
21400
21401 fi
21402
21403   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21404 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21405 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21406   echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408   if test "$llvm_cv_os_type" = "Interix" ; then
21409    ac_cv_need_dev_zero_for_mmap=yes
21410  else
21411    ac_cv_need_dev_zero_for_mmap=no
21412  fi
21413
21414 fi
21415 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21416 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21417 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21418
21419 cat >>confdefs.h <<\_ACEOF
21420 #define NEED_DEV_ZERO_FOR_MMAP 1
21421 _ACEOF
21422
21423 fi
21424
21425   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21426   then
21427     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21428 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21429   fi
21430   if test "$ac_cv_func_mmap_file" = "no"
21431   then
21432     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21433 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21434   fi
21435 fi
21436
21437 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21438 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21439 ac_ext=cpp
21440 ac_cpp='$CXXCPP $CPPFLAGS'
21441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21444
21445 cat >conftest.$ac_ext <<_ACEOF
21446
21447   /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452
21453     int main() {
21454       volatile unsigned long val = 1;
21455       __sync_synchronize();
21456       __sync_val_compare_and_swap(&val, 1, 0);
21457       __sync_add_and_fetch(&val, 1);
21458       __sync_sub_and_fetch(&val, 1);
21459       return 0;
21460     }
21461
21462
21463 _ACEOF
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468   *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471   (eval "$ac_link") 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21479   { (case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_try") 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; } &&
21488          { ac_try='test -s conftest$ac_exeext'
21489   { (case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_try") 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498
21499   { echo "$as_me:$LINENO: result: yes" >&5
21500 echo "${ECHO_T}yes" >&6; }
21501
21502 cat >>confdefs.h <<\_ACEOF
21503 #define LLVM_HAS_ATOMICS 1
21504 _ACEOF
21505
21506
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511
21512   { echo "$as_me:$LINENO: result: no" >&5
21513 echo "${ECHO_T}no" >&6; }
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define LLVM_HAS_ATOMICS 0
21517 _ACEOF
21518
21519   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21520 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21521
21522 fi
21523
21524 rm -f core conftest.err conftest.$ac_objext \
21525       conftest$ac_exeext conftest.$ac_ext
21526 ac_ext=c
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21531
21532
21533
21534 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21535   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21536 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21537 if test "${llvm_cv_linux_mixed+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540    ac_ext=c
21541 ac_cpp='$CPP $CPPFLAGS'
21542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21545
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 #ifndef __x86_64__
21553        error: Not x86-64 even if uname says so!
21554       #endif
21555
21556 int
21557 main ()
21558 {
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_compile") 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } &&
21578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21579   { (case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_try") 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; } &&
21588          { ac_try='test -s conftest.$ac_objext'
21589   { (case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_try") 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; }; then
21598   llvm_cv_linux_mixed=no
21599 else
21600   echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21602
21603         llvm_cv_linux_mixed=yes
21604 fi
21605
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607   ac_ext=c
21608 ac_cpp='$CPP $CPPFLAGS'
21609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21612
21613
21614 fi
21615 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21616 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21617
21618   if test "$llvm_cv_linux_mixed" = "yes"; then
21619     llvm_cv_target_arch="x86"
21620     ARCH="x86"
21621   fi
21622 fi
21623
21624
21625 for ac_func in __dso_handle
21626 do
21627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21641 #define $ac_func innocuous_$ac_func
21642
21643 /* System header to define __stub macros and hopefully few prototypes,
21644     which can conflict with char $ac_func (); below.
21645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646     <limits.h> exists even on freestanding compilers.  */
21647
21648 #ifdef __STDC__
21649 # include <limits.h>
21650 #else
21651 # include <assert.h>
21652 #endif
21653
21654 #undef $ac_func
21655
21656 /* Override any GCC internal prototype to avoid an error.
21657    Use char because int might match the return type of a GCC
21658    builtin and then its argument prototype would still apply.  */
21659 #ifdef __cplusplus
21660 extern "C"
21661 #endif
21662 char $ac_func ();
21663 /* The GNU C library defines this for functions which it implements
21664     to always fail with ENOSYS.  Some functions are actually named
21665     something starting with __ and the normal name is an alias.  */
21666 #if defined __stub_$ac_func || defined __stub___$ac_func
21667 choke me
21668 #endif
21669
21670 int
21671 main ()
21672 {
21673 return $ac_func ();
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 rm -f conftest.$ac_objext conftest$ac_exeext
21679 if { (ac_try="$ac_link"
21680 case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685   (eval "$ac_link") 2>conftest.er1
21686   ac_status=$?
21687   grep -v '^ *+' conftest.er1 >conftest.err
21688   rm -f conftest.er1
21689   cat conftest.err >&5
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); } &&
21692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21693   { (case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_try") 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; } &&
21702          { ac_try='test -s conftest$ac_exeext'
21703   { (case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708   (eval "$ac_try") 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; }; then
21712   eval "$as_ac_var=yes"
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         eval "$as_ac_var=no"
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext \
21721       conftest$ac_exeext conftest.$ac_ext
21722 fi
21723 ac_res=`eval echo '${'$as_ac_var'}'`
21724                { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727   cat >>confdefs.h <<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21729 _ACEOF
21730
21731 fi
21732 done
21733
21734
21735 SHLIBEXT=$libltdl_cv_shlibext
21736
21737
21738 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21739
21740
21741 if test "${prefix}" = "NONE" ; then
21742   prefix="/usr/local"
21743 fi
21744 eval LLVM_PREFIX="${prefix}";
21745 eval LLVM_BINDIR="${prefix}/bin";
21746 eval LLVM_DATADIR="${prefix}/share/llvm";
21747 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21748 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21749 eval LLVM_INCLUDEDIR="${prefix}/include";
21750 eval LLVM_INFODIR="${prefix}/info";
21751 eval LLVM_MANDIR="${prefix}/man";
21752 LLVM_CONFIGTIME=`date`
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21764   LLVM_CONFIGTIME="(timestamp not enabled)"
21765 fi
21766
21767
21768 cat >>confdefs.h <<_ACEOF
21769 #define LLVM_PREFIX "$LLVM_PREFIX"
21770 _ACEOF
21771
21772
21773 cat >>confdefs.h <<_ACEOF
21774 #define LLVM_BINDIR "$LLVM_BINDIR"
21775 _ACEOF
21776
21777
21778 cat >>confdefs.h <<_ACEOF
21779 #define LLVM_DATADIR "$LLVM_DATADIR"
21780 _ACEOF
21781
21782
21783 cat >>confdefs.h <<_ACEOF
21784 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21785 _ACEOF
21786
21787
21788 cat >>confdefs.h <<_ACEOF
21789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21790 _ACEOF
21791
21792
21793 cat >>confdefs.h <<_ACEOF
21794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21795 _ACEOF
21796
21797
21798 cat >>confdefs.h <<_ACEOF
21799 #define LLVM_INFODIR "$LLVM_INFODIR"
21800 _ACEOF
21801
21802
21803 cat >>confdefs.h <<_ACEOF
21804 #define LLVM_MANDIR "$LLVM_MANDIR"
21805 _ACEOF
21806
21807
21808 cat >>confdefs.h <<_ACEOF
21809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21810 _ACEOF
21811
21812
21813 cat >>confdefs.h <<_ACEOF
21814 #define LLVM_HOST_TRIPLE "$host"
21815 _ACEOF
21816
21817
21818 cat >>confdefs.h <<_ACEOF
21819 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21820 _ACEOF
21821
21822
21823 if test "$BINDINGS_TO_BUILD" = auto ; then
21824   BINDINGS_TO_BUILD=""
21825   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21826     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21827   fi
21828 fi
21829 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21830
21831
21832 ALL_BINDINGS=ocaml
21833
21834
21835 binding_prereqs_failed=0
21836 for a_binding in $BINDINGS_TO_BUILD ; do
21837   case "$a_binding" in
21838   ocaml)
21839     if test "x$OCAMLC" = x ; then
21840       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21841 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21842       binding_prereqs_failed=1
21843     fi
21844     if test "x$OCAMLDEP" = x ; then
21845       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21846 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21847       binding_prereqs_failed=1
21848     fi
21849     if test "x$OCAMLOPT" = x ; then
21850       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21851 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21852           fi
21853     if test "x$with_ocaml_libdir" != xauto ; then
21854       OCAML_LIBDIR=$with_ocaml_libdir
21855
21856     else
21857       ocaml_stdlib="`"$OCAMLC" -where`"
21858       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21859       then
21860         # ocaml stdlib is beneath our prefix; use stdlib
21861         OCAML_LIBDIR=$ocaml_stdlib
21862
21863       else
21864         # ocaml stdlib is outside our prefix; use libdir/ocaml
21865         OCAML_LIBDIR=${prefix}/lib/ocaml
21866
21867       fi
21868     fi
21869     ;;
21870   esac
21871 done
21872 if test "$binding_prereqs_failed" = 1 ; then
21873   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21874 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21875    { (exit 1); exit 1; }; }
21876 fi
21877
21878 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21879 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21880 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21881   echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883    ac_ext=cpp
21884 ac_cpp='$CXXCPP $CPPFLAGS'
21885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21888
21889   oldcxxflags="$CXXFLAGS"
21890   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21891   cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h.  */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h.  */
21897 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21898 int
21899 main ()
21900 {
21901 X<int>().f();
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_compile") 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } &&
21920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21921   { (case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_try") 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; } &&
21930          { ac_try='test -s conftest.$ac_objext'
21931   { (case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936   (eval "$ac_try") 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; }; then
21940   llvm_cv_cxx_visibility_inlines_hidden=yes
21941 else
21942   echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945         llvm_cv_cxx_visibility_inlines_hidden=no
21946 fi
21947
21948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949   CXXFLAGS="$oldcxxflags"
21950   ac_ext=c
21951 ac_cpp='$CPP $CPPFLAGS'
21952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21955
21956
21957 fi
21958 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21959 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21960 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21961   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21962
21963 else
21964   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21965
21966 fi
21967
21968
21969 if test "$llvm_cv_link_use_r" = "yes" ; then
21970   RPATH="-Wl,-R"
21971 else
21972   RPATH="-Wl,-rpath"
21973 fi
21974
21975
21976 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21977   RDYNAMIC="-rdynamic"
21978 else
21979   RDYNAMIC=""
21980 fi
21981
21982
21983
21984 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21985
21986
21987
21988
21989
21990
21991 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21992
21993 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21994
21995 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21996
21997 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21998
21999 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22000
22001
22002 ac_config_files="$ac_config_files Makefile.config"
22003
22004
22005 ac_config_files="$ac_config_files llvm.spec"
22006
22007
22008 ac_config_files="$ac_config_files docs/doxygen.cfg"
22009
22010
22011 if test "${clang_src_root}" = ""; then
22012   clang_src_root="$srcdir/tools/clang"
22013 fi
22014 if test -f ${clang_src_root}/README.txt; then
22015     configh="include/clang/Config/config.h"
22016   doxy="docs/doxygen.cfg"
22017   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22018
22019   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22020
22021 fi
22022
22023 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22024
22025
22026 test "x$program_prefix" = "xNONE" && program_prefix=""
22027
22028
22029
22030 ac_config_commands="$ac_config_commands setup"
22031
22032 ac_config_commands="$ac_config_commands Makefile"
22033
22034
22035 ac_config_commands="$ac_config_commands Makefile.common"
22036
22037
22038 ac_config_commands="$ac_config_commands examples/Makefile"
22039
22040
22041 ac_config_commands="$ac_config_commands lib/Makefile"
22042
22043
22044 ac_config_commands="$ac_config_commands test/Makefile"
22045
22046
22047 ac_config_commands="$ac_config_commands test/Makefile.tests"
22048
22049
22050 ac_config_commands="$ac_config_commands unittests/Makefile"
22051
22052
22053 ac_config_commands="$ac_config_commands tools/Makefile"
22054
22055
22056 ac_config_commands="$ac_config_commands utils/Makefile"
22057
22058
22059 ac_config_commands="$ac_config_commands projects/Makefile"
22060
22061
22062 ac_config_commands="$ac_config_commands bindings/Makefile"
22063
22064
22065 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22066
22067
22068
22069 cat >confcache <<\_ACEOF
22070 # This file is a shell script that caches the results of configure
22071 # tests run on this system so they can be shared between configure
22072 # scripts and configure runs, see configure's option --config-cache.
22073 # It is not useful on other systems.  If it contains results you don't
22074 # want to keep, you may remove or edit it.
22075 #
22076 # config.status only pays attention to the cache file if you give it
22077 # the --recheck option to rerun configure.
22078 #
22079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22081 # following values.
22082
22083 _ACEOF
22084
22085 # The following way of writing the cache mishandles newlines in values,
22086 # but we know of no workaround that is simple, portable, and efficient.
22087 # So, we kill variables containing newlines.
22088 # Ultrix sh set writes to stderr and can't be redirected directly,
22089 # and sets the high bit in the cache file unless we assign to the vars.
22090 (
22091   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22092     eval ac_val=\$$ac_var
22093     case $ac_val in #(
22094     *${as_nl}*)
22095       case $ac_var in #(
22096       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22098       esac
22099       case $ac_var in #(
22100       _ | IFS | as_nl) ;; #(
22101       *) $as_unset $ac_var ;;
22102       esac ;;
22103     esac
22104   done
22105
22106   (set) 2>&1 |
22107     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22108     *${as_nl}ac_space=\ *)
22109       # `set' does not quote correctly, so add quotes (double-quote
22110       # substitution turns \\\\ into \\, and sed turns \\ into \).
22111       sed -n \
22112         "s/'/'\\\\''/g;
22113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22114       ;; #(
22115     *)
22116       # `set' quotes correctly as required by POSIX, so do not add quotes.
22117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22118       ;;
22119     esac |
22120     sort
22121 ) |
22122   sed '
22123      /^ac_cv_env_/b end
22124      t clear
22125      :clear
22126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22127      t end
22128      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22129      :end' >>confcache
22130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22131   if test -w "$cache_file"; then
22132     test "x$cache_file" != "x/dev/null" &&
22133       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22134 echo "$as_me: updating cache $cache_file" >&6;}
22135     cat confcache >$cache_file
22136   else
22137     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22139   fi
22140 fi
22141 rm -f confcache
22142
22143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22144 # Let make expand exec_prefix.
22145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22146
22147 DEFS=-DHAVE_CONFIG_H
22148
22149 ac_libobjs=
22150 ac_ltlibobjs=
22151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22152   # 1. Remove the extension, and $U if already installed.
22153   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22154   ac_i=`echo "$ac_i" | sed "$ac_script"`
22155   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22156   #    will be set to the directory where LIBOBJS objects are built.
22157   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22158   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22159 done
22160 LIBOBJS=$ac_libobjs
22161
22162 LTLIBOBJS=$ac_ltlibobjs
22163
22164
22165 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22166   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22167 Usually this means the macro was only invoked conditionally." >&5
22168 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22169 Usually this means the macro was only invoked conditionally." >&2;}
22170    { (exit 1); exit 1; }; }
22171 fi
22172 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22173   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22174 Usually this means the macro was only invoked conditionally." >&5
22175 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22176 Usually this means the macro was only invoked conditionally." >&2;}
22177    { (exit 1); exit 1; }; }
22178 fi
22179
22180 : ${CONFIG_STATUS=./config.status}
22181 ac_clean_files_save=$ac_clean_files
22182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22185 cat >$CONFIG_STATUS <<_ACEOF
22186 #! $SHELL
22187 # Generated by $as_me.
22188 # Run this file to recreate the current configuration.
22189 # Compiler output produced by configure, useful for debugging
22190 # configure, is in config.log if it exists.
22191
22192 debug=false
22193 ac_cs_recheck=false
22194 ac_cs_silent=false
22195 SHELL=\${CONFIG_SHELL-$SHELL}
22196 _ACEOF
22197
22198 cat >>$CONFIG_STATUS <<\_ACEOF
22199 ## --------------------- ##
22200 ## M4sh Initialization.  ##
22201 ## --------------------- ##
22202
22203 # Be Bourne compatible
22204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22205   emulate sh
22206   NULLCMD=:
22207   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22208   # is contrary to our usage.  Disable this feature.
22209   alias -g '${1+"$@"}'='"$@"'
22210   setopt NO_GLOB_SUBST
22211 else
22212   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22213 fi
22214 BIN_SH=xpg4; export BIN_SH # for Tru64
22215 DUALCASE=1; export DUALCASE # for MKS sh
22216
22217
22218 # PATH needs CR
22219 # Avoid depending upon Character Ranges.
22220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22223 as_cr_digits='0123456789'
22224 as_cr_alnum=$as_cr_Letters$as_cr_digits
22225
22226 # The user is always right.
22227 if test "${PATH_SEPARATOR+set}" != set; then
22228   echo "#! /bin/sh" >conf$$.sh
22229   echo  "exit 0"   >>conf$$.sh
22230   chmod +x conf$$.sh
22231   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22232     PATH_SEPARATOR=';'
22233   else
22234     PATH_SEPARATOR=:
22235   fi
22236   rm -f conf$$.sh
22237 fi
22238
22239 # Support unset when possible.
22240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22241   as_unset=unset
22242 else
22243   as_unset=false
22244 fi
22245
22246
22247 # IFS
22248 # We need space, tab and new line, in precisely that order.  Quoting is
22249 # there to prevent editors from complaining about space-tab.
22250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22251 # splitting by setting IFS to empty value.)
22252 as_nl='
22253 '
22254 IFS=" ""        $as_nl"
22255
22256 # Find who we are.  Look in the path if we contain no directory separator.
22257 case $0 in
22258   *[\\/]* ) as_myself=$0 ;;
22259   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22260 for as_dir in $PATH
22261 do
22262   IFS=$as_save_IFS
22263   test -z "$as_dir" && as_dir=.
22264   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22265 done
22266 IFS=$as_save_IFS
22267
22268      ;;
22269 esac
22270 # We did not find ourselves, most probably we were run as `sh COMMAND'
22271 # in which case we are not to be found in the path.
22272 if test "x$as_myself" = x; then
22273   as_myself=$0
22274 fi
22275 if test ! -f "$as_myself"; then
22276   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22277   { (exit 1); exit 1; }
22278 fi
22279
22280 # Work around bugs in pre-3.0 UWIN ksh.
22281 for as_var in ENV MAIL MAILPATH
22282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22283 done
22284 PS1='$ '
22285 PS2='> '
22286 PS4='+ '
22287
22288 # NLS nuisances.
22289 for as_var in \
22290   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22291   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22292   LC_TELEPHONE LC_TIME
22293 do
22294   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22295     eval $as_var=C; export $as_var
22296   else
22297     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22298   fi
22299 done
22300
22301 # Required to use basename.
22302 if expr a : '\(a\)' >/dev/null 2>&1 &&
22303    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22304   as_expr=expr
22305 else
22306   as_expr=false
22307 fi
22308
22309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22310   as_basename=basename
22311 else
22312   as_basename=false
22313 fi
22314
22315
22316 # Name of the executable.
22317 as_me=`$as_basename -- "$0" ||
22318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22319          X"$0" : 'X\(//\)$' \| \
22320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22321 echo X/"$0" |
22322     sed '/^.*\/\([^/][^/]*\)\/*$/{
22323             s//\1/
22324             q
22325           }
22326           /^X\/\(\/\/\)$/{
22327             s//\1/
22328             q
22329           }
22330           /^X\/\(\/\).*/{
22331             s//\1/
22332             q
22333           }
22334           s/.*/./; q'`
22335
22336 # CDPATH.
22337 $as_unset CDPATH
22338
22339
22340
22341   as_lineno_1=$LINENO
22342   as_lineno_2=$LINENO
22343   test "x$as_lineno_1" != "x$as_lineno_2" &&
22344   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22345
22346   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22347   # uniformly replaced by the line number.  The first 'sed' inserts a
22348   # line-number line after each line using $LINENO; the second 'sed'
22349   # does the real work.  The second script uses 'N' to pair each
22350   # line-number line with the line containing $LINENO, and appends
22351   # trailing '-' during substitution so that $LINENO is not a special
22352   # case at line end.
22353   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22354   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22355   # E. McMahon (1931-1989) for sed's syntax.  :-)
22356   sed -n '
22357     p
22358     /[$]LINENO/=
22359   ' <$as_myself |
22360     sed '
22361       s/[$]LINENO.*/&-/
22362       t lineno
22363       b
22364       :lineno
22365       N
22366       :loop
22367       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22368       t loop
22369       s/-\n.*//
22370     ' >$as_me.lineno &&
22371   chmod +x "$as_me.lineno" ||
22372     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22373    { (exit 1); exit 1; }; }
22374
22375   # Don't try to exec as it changes $[0], causing all sort of problems
22376   # (the dirname of $[0] is not the place where we might find the
22377   # original and so on.  Autoconf is especially sensitive to this).
22378   . "./$as_me.lineno"
22379   # Exit status is that of the last command.
22380   exit
22381 }
22382
22383
22384 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22385   as_dirname=dirname
22386 else
22387   as_dirname=false
22388 fi
22389
22390 ECHO_C= ECHO_N= ECHO_T=
22391 case `echo -n x` in
22392 -n*)
22393   case `echo 'x\c'` in
22394   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22395   *)   ECHO_C='\c';;
22396   esac;;
22397 *)
22398   ECHO_N='-n';;
22399 esac
22400
22401 if expr a : '\(a\)' >/dev/null 2>&1 &&
22402    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22403   as_expr=expr
22404 else
22405   as_expr=false
22406 fi
22407
22408 rm -f conf$$ conf$$.exe conf$$.file
22409 if test -d conf$$.dir; then
22410   rm -f conf$$.dir/conf$$.file
22411 else
22412   rm -f conf$$.dir
22413   mkdir conf$$.dir
22414 fi
22415 echo >conf$$.file
22416 if ln -s conf$$.file conf$$ 2>/dev/null; then
22417   as_ln_s='ln -s'
22418   # ... but there are two gotchas:
22419   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22420   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22421   # In both cases, we have to default to `cp -p'.
22422   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22423     as_ln_s='cp -p'
22424 elif ln conf$$.file conf$$ 2>/dev/null; then
22425   as_ln_s=ln
22426 else
22427   as_ln_s='cp -p'
22428 fi
22429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22430 rmdir conf$$.dir 2>/dev/null
22431
22432 if mkdir -p . 2>/dev/null; then
22433   as_mkdir_p=:
22434 else
22435   test -d ./-p && rmdir ./-p
22436   as_mkdir_p=false
22437 fi
22438
22439 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22440 # systems may use methods other than mode bits to determine executability.
22441 cat >conf$$.file <<_ASEOF
22442 #! /bin/sh
22443 exit 0
22444 _ASEOF
22445 chmod +x conf$$.file
22446 if test -x conf$$.file >/dev/null 2>&1; then
22447   as_executable_p="test -x"
22448 else
22449   as_executable_p=:
22450 fi
22451 rm -f conf$$.file
22452
22453 # Sed expression to map a string onto a valid CPP name.
22454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22455
22456 # Sed expression to map a string onto a valid variable name.
22457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22458
22459
22460 exec 6>&1
22461
22462 # Save the log message, to keep $[0] and so on meaningful, and to
22463 # report actual input values of CONFIG_FILES etc. instead of their
22464 # values after options handling.
22465 ac_log="
22466 This file was extended by LLVM $as_me 3.5svn, which was
22467 generated by GNU Autoconf 2.60.  Invocation command line was
22468
22469   CONFIG_FILES    = $CONFIG_FILES
22470   CONFIG_HEADERS  = $CONFIG_HEADERS
22471   CONFIG_LINKS    = $CONFIG_LINKS
22472   CONFIG_COMMANDS = $CONFIG_COMMANDS
22473   $ $0 $@
22474
22475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22476 "
22477
22478 _ACEOF
22479
22480 cat >>$CONFIG_STATUS <<_ACEOF
22481 # Files that config.status was made for.
22482 config_files="$ac_config_files"
22483 config_headers="$ac_config_headers"
22484 config_commands="$ac_config_commands"
22485
22486 _ACEOF
22487
22488 cat >>$CONFIG_STATUS <<\_ACEOF
22489 ac_cs_usage="\
22490 \`$as_me' instantiates files from templates according to the
22491 current configuration.
22492
22493 Usage: $0 [OPTIONS] [FILE]...
22494
22495   -h, --help       print this help, then exit
22496   -V, --version    print version number, then exit
22497   -q, --quiet      do not print progress messages
22498   -d, --debug      don't remove temporary files
22499       --recheck    update $as_me by reconfiguring in the same conditions
22500   --file=FILE[:TEMPLATE]
22501                    instantiate the configuration file FILE
22502   --header=FILE[:TEMPLATE]
22503                    instantiate the configuration header FILE
22504
22505 Configuration files:
22506 $config_files
22507
22508 Configuration headers:
22509 $config_headers
22510
22511 Configuration commands:
22512 $config_commands
22513
22514 Report bugs to <bug-autoconf@gnu.org>."
22515
22516 _ACEOF
22517 cat >>$CONFIG_STATUS <<_ACEOF
22518 ac_cs_version="\\
22519 LLVM config.status 3.5svn
22520 configured by $0, generated by GNU Autoconf 2.60,
22521   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22522
22523 Copyright (C) 2006 Free Software Foundation, Inc.
22524 This config.status script is free software; the Free Software Foundation
22525 gives unlimited permission to copy, distribute and modify it."
22526
22527 ac_pwd='$ac_pwd'
22528 srcdir='$srcdir'
22529 INSTALL='$INSTALL'
22530 _ACEOF
22531
22532 cat >>$CONFIG_STATUS <<\_ACEOF
22533 # If no file are specified by the user, then we need to provide default
22534 # value.  By we need to know if files were specified by the user.
22535 ac_need_defaults=:
22536 while test $# != 0
22537 do
22538   case $1 in
22539   --*=*)
22540     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22541     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22542     ac_shift=:
22543     ;;
22544   *)
22545     ac_option=$1
22546     ac_optarg=$2
22547     ac_shift=shift
22548     ;;
22549   esac
22550
22551   case $ac_option in
22552   # Handling of the options.
22553   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22554     ac_cs_recheck=: ;;
22555   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22556     echo "$ac_cs_version"; exit ;;
22557   --debug | --debu | --deb | --de | --d | -d )
22558     debug=: ;;
22559   --file | --fil | --fi | --f )
22560     $ac_shift
22561     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22562     ac_need_defaults=false;;
22563   --header | --heade | --head | --hea )
22564     $ac_shift
22565     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22566     ac_need_defaults=false;;
22567   --he | --h)
22568     # Conflict between --help and --header
22569     { echo "$as_me: error: ambiguous option: $1
22570 Try \`$0 --help' for more information." >&2
22571    { (exit 1); exit 1; }; };;
22572   --help | --hel | -h )
22573     echo "$ac_cs_usage"; exit ;;
22574   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22575   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22576     ac_cs_silent=: ;;
22577
22578   # This is an error.
22579   -*) { echo "$as_me: error: unrecognized option: $1
22580 Try \`$0 --help' for more information." >&2
22581    { (exit 1); exit 1; }; } ;;
22582
22583   *) ac_config_targets="$ac_config_targets $1"
22584      ac_need_defaults=false ;;
22585
22586   esac
22587   shift
22588 done
22589
22590 ac_configure_extra_args=
22591
22592 if $ac_cs_silent; then
22593   exec 6>/dev/null
22594   ac_configure_extra_args="$ac_configure_extra_args --silent"
22595 fi
22596
22597 _ACEOF
22598 cat >>$CONFIG_STATUS <<_ACEOF
22599 if \$ac_cs_recheck; then
22600   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22601   CONFIG_SHELL=$SHELL
22602   export CONFIG_SHELL
22603   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22604 fi
22605
22606 _ACEOF
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608 exec 5>>config.log
22609 {
22610   echo
22611   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22612 ## Running $as_me. ##
22613 _ASBOX
22614   echo "$ac_log"
22615 } >&5
22616
22617 _ACEOF
22618 cat >>$CONFIG_STATUS <<_ACEOF
22619 #
22620 # INIT-COMMANDS
22621 #
22622 llvm_src="${srcdir}"
22623
22624 _ACEOF
22625
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22627
22628 # Handling of arguments.
22629 for ac_config_target in $ac_config_targets
22630 do
22631   case $ac_config_target in
22632     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22633     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22634     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22635     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22636     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22637     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22638     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22639     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22640     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22641     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22642     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22643     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22644     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22645     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22646     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22647     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22648     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22649     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22650     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22651     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22652     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22653     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22654     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22655     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22656     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22657     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22658
22659   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22661    { (exit 1); exit 1; }; };;
22662   esac
22663 done
22664
22665
22666 # If the user did not use the arguments to specify the items to instantiate,
22667 # then the envvar interface is used.  Set only those that are not.
22668 # We use the long form for the default assignment because of an extremely
22669 # bizarre bug on SunOS 4.1.3.
22670 if $ac_need_defaults; then
22671   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22672   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22673   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22674 fi
22675
22676 # Have a temporary directory for convenience.  Make it in the build tree
22677 # simply because there is no reason against having it here, and in addition,
22678 # creating and moving files from /tmp can sometimes cause problems.
22679 # Hook for its removal unless debugging.
22680 # Note that there is a small window in which the directory will not be cleaned:
22681 # after its creation but before its name has been assigned to `$tmp'.
22682 $debug ||
22683 {
22684   tmp=
22685   trap 'exit_status=$?
22686   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22687 ' 0
22688   trap '{ (exit 1); exit 1; }' 1 2 13 15
22689 }
22690 # Create a (secure) tmp directory for tmp files.
22691
22692 {
22693   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22694   test -n "$tmp" && test -d "$tmp"
22695 }  ||
22696 {
22697   tmp=./conf$$-$RANDOM
22698   (umask 077 && mkdir "$tmp")
22699 } ||
22700 {
22701    echo "$me: cannot create a temporary directory in ." >&2
22702    { (exit 1); exit 1; }
22703 }
22704
22705 #
22706 # Set up the sed scripts for CONFIG_FILES section.
22707 #
22708
22709 # No need to generate the scripts if there are no CONFIG_FILES.
22710 # This happens for instance when ./config.status config.h
22711 if test -n "$CONFIG_FILES"; then
22712
22713 _ACEOF
22714
22715
22716
22717 ac_delim='%!_!# '
22718 for ac_last_try in false false false false false :; do
22719   cat >conf$$subs.sed <<_ACEOF
22720 SHELL!$SHELL$ac_delim
22721 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22722 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22723 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22724 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22725 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22726 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22727 exec_prefix!$exec_prefix$ac_delim
22728 prefix!$prefix$ac_delim
22729 program_transform_name!$program_transform_name$ac_delim
22730 bindir!$bindir$ac_delim
22731 sbindir!$sbindir$ac_delim
22732 libexecdir!$libexecdir$ac_delim
22733 datarootdir!$datarootdir$ac_delim
22734 datadir!$datadir$ac_delim
22735 sysconfdir!$sysconfdir$ac_delim
22736 sharedstatedir!$sharedstatedir$ac_delim
22737 localstatedir!$localstatedir$ac_delim
22738 includedir!$includedir$ac_delim
22739 oldincludedir!$oldincludedir$ac_delim
22740 docdir!$docdir$ac_delim
22741 infodir!$infodir$ac_delim
22742 htmldir!$htmldir$ac_delim
22743 dvidir!$dvidir$ac_delim
22744 pdfdir!$pdfdir$ac_delim
22745 psdir!$psdir$ac_delim
22746 libdir!$libdir$ac_delim
22747 localedir!$localedir$ac_delim
22748 mandir!$mandir$ac_delim
22749 DEFS!$DEFS$ac_delim
22750 ECHO_C!$ECHO_C$ac_delim
22751 ECHO_N!$ECHO_N$ac_delim
22752 ECHO_T!$ECHO_T$ac_delim
22753 LIBS!$LIBS$ac_delim
22754 build_alias!$build_alias$ac_delim
22755 host_alias!$host_alias$ac_delim
22756 target_alias!$target_alias$ac_delim
22757 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22758 CC!$CC$ac_delim
22759 CFLAGS!$CFLAGS$ac_delim
22760 LDFLAGS!$LDFLAGS$ac_delim
22761 CPPFLAGS!$CPPFLAGS$ac_delim
22762 ac_ct_CC!$ac_ct_CC$ac_delim
22763 EXEEXT!$EXEEXT$ac_delim
22764 OBJEXT!$OBJEXT$ac_delim
22765 CXX!$CXX$ac_delim
22766 CXXFLAGS!$CXXFLAGS$ac_delim
22767 ac_ct_CXX!$ac_ct_CXX$ac_delim
22768 CPP!$CPP$ac_delim
22769 subdirs!$subdirs$ac_delim
22770 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22771 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22772 build!$build$ac_delim
22773 build_cpu!$build_cpu$ac_delim
22774 build_vendor!$build_vendor$ac_delim
22775 build_os!$build_os$ac_delim
22776 host!$host$ac_delim
22777 host_cpu!$host_cpu$ac_delim
22778 host_vendor!$host_vendor$ac_delim
22779 host_os!$host_os$ac_delim
22780 target!$target$ac_delim
22781 target_cpu!$target_cpu$ac_delim
22782 target_vendor!$target_vendor$ac_delim
22783 target_os!$target_os$ac_delim
22784 OS!$OS$ac_delim
22785 HOST_OS!$HOST_OS$ac_delim
22786 TARGET_OS!$TARGET_OS$ac_delim
22787 LINKALL!$LINKALL$ac_delim
22788 NOLINKALL!$NOLINKALL$ac_delim
22789 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22790 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22791 ARCH!$ARCH$ac_delim
22792 HOST_ARCH!$HOST_ARCH$ac_delim
22793 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22794 BUILD_CC!$BUILD_CC$ac_delim
22795 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22796 BUILD_CXX!$BUILD_CXX$ac_delim
22797 CVSBUILD!$CVSBUILD$ac_delim
22798 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22799 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22800 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22801 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22802 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22803 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22804 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22805 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22806 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22807 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22808 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22809 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22810 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22811 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22812 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22813 JIT!$JIT$ac_delim
22814 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22815 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22816 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22817 _ACEOF
22818
22819   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22820     break
22821   elif $ac_last_try; then
22822     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22824    { (exit 1); exit 1; }; }
22825   else
22826     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22827   fi
22828 done
22829
22830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22831 if test -n "$ac_eof"; then
22832   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22833   ac_eof=`expr $ac_eof + 1`
22834 fi
22835
22836 cat >>$CONFIG_STATUS <<_ACEOF
22837 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22839 _ACEOF
22840 sed '
22841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22842 s/^/s,@/; s/!/@,|#_!!_#|/
22843 :n
22844 t n
22845 s/'"$ac_delim"'$/,g/; t
22846 s/$/\\/; p
22847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22848 ' >>$CONFIG_STATUS <conf$$subs.sed
22849 rm -f conf$$subs.sed
22850 cat >>$CONFIG_STATUS <<_ACEOF
22851 CEOF$ac_eof
22852 _ACEOF
22853
22854
22855 ac_delim='%!_!# '
22856 for ac_last_try in false false false false false :; do
22857   cat >conf$$subs.sed <<_ACEOF
22858 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22859 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22860 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22861 ENABLE_PIC!$ENABLE_PIC$ac_delim
22862 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22863 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22864 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22865 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22866 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22867 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22868 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22869 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22870 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22871 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22872 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22873 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22874 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22875 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22876 NM!$NM$ac_delim
22877 ifGNUmake!$ifGNUmake$ac_delim
22878 LN_S!$LN_S$ac_delim
22879 CMP!$CMP$ac_delim
22880 CP!$CP$ac_delim
22881 DATE!$DATE$ac_delim
22882 FIND!$FIND$ac_delim
22883 GREP!$GREP$ac_delim
22884 MKDIR!$MKDIR$ac_delim
22885 MV!$MV$ac_delim
22886 RANLIB!$RANLIB$ac_delim
22887 AR!$AR$ac_delim
22888 RM!$RM$ac_delim
22889 SED!$SED$ac_delim
22890 TAR!$TAR$ac_delim
22891 BINPWD!$BINPWD$ac_delim
22892 GRAPHVIZ!$GRAPHVIZ$ac_delim
22893 DOT!$DOT$ac_delim
22894 FDP!$FDP$ac_delim
22895 NEATO!$NEATO$ac_delim
22896 TWOPI!$TWOPI$ac_delim
22897 CIRCO!$CIRCO$ac_delim
22898 GV!$GV$ac_delim
22899 DOTTY!$DOTTY$ac_delim
22900 XDOT!$XDOT$ac_delim
22901 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22902 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22903 INSTALL_DATA!$INSTALL_DATA$ac_delim
22904 BZIP2!$BZIP2$ac_delim
22905 CAT!$CAT$ac_delim
22906 DOXYGEN!$DOXYGEN$ac_delim
22907 GROFF!$GROFF$ac_delim
22908 GZIPBIN!$GZIPBIN$ac_delim
22909 PDFROFF!$PDFROFF$ac_delim
22910 ZIP!$ZIP$ac_delim
22911 OCAMLC!$OCAMLC$ac_delim
22912 OCAMLOPT!$OCAMLOPT$ac_delim
22913 OCAMLDEP!$OCAMLDEP$ac_delim
22914 OCAMLDOC!$OCAMLDOC$ac_delim
22915 GAS!$GAS$ac_delim
22916 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22917 EGREP!$EGREP$ac_delim
22918 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22919 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22920 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22921 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22922 LIBADD_DL!$LIBADD_DL$ac_delim
22923 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22924 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22925 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22926 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22927 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22928 PYTHON!$PYTHON$ac_delim
22929 USE_UDIS86!$USE_UDIS86$ac_delim
22930 USE_OPROFILE!$USE_OPROFILE$ac_delim
22931 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22932 XML2CONFIG!$XML2CONFIG$ac_delim
22933 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22934 LIBXML2_INC!$LIBXML2_INC$ac_delim
22935 CXXCPP!$CXXCPP$ac_delim
22936 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22937 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22938 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22939 MMAP_FILE!$MMAP_FILE$ac_delim
22940 SHLIBEXT!$SHLIBEXT$ac_delim
22941 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22942 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22943 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22944 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22945 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22946 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22947 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22948 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22949 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22950 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22951 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22952 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22953 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22954 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22955 _ACEOF
22956
22957   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22958     break
22959   elif $ac_last_try; then
22960     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22961 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22962    { (exit 1); exit 1; }; }
22963   else
22964     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22965   fi
22966 done
22967
22968 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22969 if test -n "$ac_eof"; then
22970   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22971   ac_eof=`expr $ac_eof + 1`
22972 fi
22973
22974 cat >>$CONFIG_STATUS <<_ACEOF
22975 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22977 _ACEOF
22978 sed '
22979 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22980 s/^/s,@/; s/!/@,|#_!!_#|/
22981 :n
22982 t n
22983 s/'"$ac_delim"'$/,g/; t
22984 s/$/\\/; p
22985 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22986 ' >>$CONFIG_STATUS <conf$$subs.sed
22987 rm -f conf$$subs.sed
22988 cat >>$CONFIG_STATUS <<_ACEOF
22989 CEOF$ac_eof
22990 _ACEOF
22991
22992
22993 ac_delim='%!_!# '
22994 for ac_last_try in false false false false false :; do
22995   cat >conf$$subs.sed <<_ACEOF
22996 RPATH!$RPATH$ac_delim
22997 RDYNAMIC!$RDYNAMIC$ac_delim
22998 program_prefix!$program_prefix$ac_delim
22999 LIBOBJS!$LIBOBJS$ac_delim
23000 LTLIBOBJS!$LTLIBOBJS$ac_delim
23001 _ACEOF
23002
23003   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23004     break
23005   elif $ac_last_try; then
23006     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23007 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23008    { (exit 1); exit 1; }; }
23009   else
23010     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23011   fi
23012 done
23013
23014 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23015 if test -n "$ac_eof"; then
23016   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23017   ac_eof=`expr $ac_eof + 1`
23018 fi
23019
23020 cat >>$CONFIG_STATUS <<_ACEOF
23021 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23023 _ACEOF
23024 sed '
23025 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23026 s/^/s,@/; s/!/@,|#_!!_#|/
23027 :n
23028 t n
23029 s/'"$ac_delim"'$/,g/; t
23030 s/$/\\/; p
23031 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23032 ' >>$CONFIG_STATUS <conf$$subs.sed
23033 rm -f conf$$subs.sed
23034 cat >>$CONFIG_STATUS <<_ACEOF
23035 :end
23036 s/|#_!!_#|//g
23037 CEOF$ac_eof
23038 _ACEOF
23039
23040
23041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23043 # trailing colons and then remove the whole line if VPATH becomes empty
23044 # (actually we leave an empty line to preserve line numbers).
23045 if test "x$srcdir" = x.; then
23046   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23047 s/:*\$(srcdir):*/:/
23048 s/:*\${srcdir}:*/:/
23049 s/:*@srcdir@:*/:/
23050 s/^\([^=]*=[     ]*\):*/\1/
23051 s/:*$//
23052 s/^[^=]*=[       ]*$//
23053 }'
23054 fi
23055
23056 cat >>$CONFIG_STATUS <<\_ACEOF
23057 fi # test -n "$CONFIG_FILES"
23058
23059
23060 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23061 do
23062   case $ac_tag in
23063   :[FHLC]) ac_mode=$ac_tag; continue;;
23064   esac
23065   case $ac_mode$ac_tag in
23066   :[FHL]*:*);;
23067   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23068 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23069    { (exit 1); exit 1; }; };;
23070   :[FH]-) ac_tag=-:-;;
23071   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23072   esac
23073   ac_save_IFS=$IFS
23074   IFS=:
23075   set x $ac_tag
23076   IFS=$ac_save_IFS
23077   shift
23078   ac_file=$1
23079   shift
23080
23081   case $ac_mode in
23082   :L) ac_source=$1;;
23083   :[FH])
23084     ac_file_inputs=
23085     for ac_f
23086     do
23087       case $ac_f in
23088       -) ac_f="$tmp/stdin";;
23089       *) # Look for the file first in the build tree, then in the source tree
23090          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23091          # because $ac_f cannot contain `:'.
23092          test -f "$ac_f" ||
23093            case $ac_f in
23094            [\\/$]*) false;;
23095            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23096            esac ||
23097            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23098 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23099    { (exit 1); exit 1; }; };;
23100       esac
23101       ac_file_inputs="$ac_file_inputs $ac_f"
23102     done
23103
23104     # Let's still pretend it is `configure' which instantiates (i.e., don't
23105     # use $as_me), people would be surprised to read:
23106     #    /* config.h.  Generated by config.status.  */
23107     configure_input="Generated from "`IFS=:
23108           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23109     if test x"$ac_file" != x-; then
23110       configure_input="$ac_file.  $configure_input"
23111       { echo "$as_me:$LINENO: creating $ac_file" >&5
23112 echo "$as_me: creating $ac_file" >&6;}
23113     fi
23114
23115     case $ac_tag in
23116     *:-:* | *:-) cat >"$tmp/stdin";;
23117     esac
23118     ;;
23119   esac
23120
23121   ac_dir=`$as_dirname -- "$ac_file" ||
23122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123          X"$ac_file" : 'X\(//\)[^/]' \| \
23124          X"$ac_file" : 'X\(//\)$' \| \
23125          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23126 echo X"$ac_file" |
23127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23128             s//\1/
23129             q
23130           }
23131           /^X\(\/\/\)[^/].*/{
23132             s//\1/
23133             q
23134           }
23135           /^X\(\/\/\)$/{
23136             s//\1/
23137             q
23138           }
23139           /^X\(\/\).*/{
23140             s//\1/
23141             q
23142           }
23143           s/.*/./; q'`
23144   { as_dir="$ac_dir"
23145   case $as_dir in #(
23146   -*) as_dir=./$as_dir;;
23147   esac
23148   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23149     as_dirs=
23150     while :; do
23151       case $as_dir in #(
23152       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23153       *) as_qdir=$as_dir;;
23154       esac
23155       as_dirs="'$as_qdir' $as_dirs"
23156       as_dir=`$as_dirname -- "$as_dir" ||
23157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158          X"$as_dir" : 'X\(//\)[^/]' \| \
23159          X"$as_dir" : 'X\(//\)$' \| \
23160          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23161 echo X"$as_dir" |
23162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23163             s//\1/
23164             q
23165           }
23166           /^X\(\/\/\)[^/].*/{
23167             s//\1/
23168             q
23169           }
23170           /^X\(\/\/\)$/{
23171             s//\1/
23172             q
23173           }
23174           /^X\(\/\).*/{
23175             s//\1/
23176             q
23177           }
23178           s/.*/./; q'`
23179       test -d "$as_dir" && break
23180     done
23181     test -z "$as_dirs" || eval "mkdir $as_dirs"
23182   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23183 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23184    { (exit 1); exit 1; }; }; }
23185   ac_builddir=.
23186
23187 case "$ac_dir" in
23188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23189 *)
23190   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23191   # A ".." for each directory in $ac_dir_suffix.
23192   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23193   case $ac_top_builddir_sub in
23194   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23195   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23196   esac ;;
23197 esac
23198 ac_abs_top_builddir=$ac_pwd
23199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23200 # for backward compatibility:
23201 ac_top_builddir=$ac_top_build_prefix
23202
23203 case $srcdir in
23204   .)  # We are building in place.
23205     ac_srcdir=.
23206     ac_top_srcdir=$ac_top_builddir_sub
23207     ac_abs_top_srcdir=$ac_pwd ;;
23208   [\\/]* | ?:[\\/]* )  # Absolute name.
23209     ac_srcdir=$srcdir$ac_dir_suffix;
23210     ac_top_srcdir=$srcdir
23211     ac_abs_top_srcdir=$srcdir ;;
23212   *) # Relative name.
23213     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23214     ac_top_srcdir=$ac_top_build_prefix$srcdir
23215     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23216 esac
23217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23218
23219
23220   case $ac_mode in
23221   :F)
23222   #
23223   # CONFIG_FILE
23224   #
23225
23226   case $INSTALL in
23227   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23228   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23229   esac
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 # If the template does not know about datarootdir, expand it.
23234 # FIXME: This hack should be removed a few years after 2.60.
23235 ac_datarootdir_hack=; ac_datarootdir_seen=
23236
23237 case `sed -n '/datarootdir/ {
23238   p
23239   q
23240 }
23241 /@datadir@/p
23242 /@docdir@/p
23243 /@infodir@/p
23244 /@localedir@/p
23245 /@mandir@/p
23246 ' $ac_file_inputs` in
23247 *datarootdir*) ac_datarootdir_seen=yes;;
23248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23249   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23251 _ACEOF
23252 cat >>$CONFIG_STATUS <<_ACEOF
23253   ac_datarootdir_hack='
23254   s&@datadir@&$datadir&g
23255   s&@docdir@&$docdir&g
23256   s&@infodir@&$infodir&g
23257   s&@localedir@&$localedir&g
23258   s&@mandir@&$mandir&g
23259     s&\\\${datarootdir}&$datarootdir&g' ;;
23260 esac
23261 _ACEOF
23262
23263 # Neutralize VPATH when `$srcdir' = `.'.
23264 # Shell code in configure.ac might set extrasub.
23265 # FIXME: do we really want to maintain this feature?
23266 cat >>$CONFIG_STATUS <<_ACEOF
23267   sed "$ac_vpsub
23268 $extrasub
23269 _ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23271 :t
23272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23273 s&@configure_input@&$configure_input&;t t
23274 s&@top_builddir@&$ac_top_builddir_sub&;t t
23275 s&@srcdir@&$ac_srcdir&;t t
23276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23277 s&@top_srcdir@&$ac_top_srcdir&;t t
23278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23279 s&@builddir@&$ac_builddir&;t t
23280 s&@abs_builddir@&$ac_abs_builddir&;t t
23281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23282 s&@INSTALL@&$ac_INSTALL&;t t
23283 $ac_datarootdir_hack
23284 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23285
23286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23287   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23288   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23289   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23290 which seems to be undefined.  Please make sure it is defined." >&5
23291 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23292 which seems to be undefined.  Please make sure it is defined." >&2;}
23293
23294   rm -f "$tmp/stdin"
23295   case $ac_file in
23296   -) cat "$tmp/out"; rm -f "$tmp/out";;
23297   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23298   esac
23299  ;;
23300   :H)
23301   #
23302   # CONFIG_HEADER
23303   #
23304 _ACEOF
23305
23306 # Transform confdefs.h into a sed script `conftest.defines', that
23307 # substitutes the proper values into config.h.in to produce config.h.
23308 rm -f conftest.defines conftest.tail
23309 # First, append a space to every undef/define line, to ease matching.
23310 echo 's/$/ /' >conftest.defines
23311 # Then, protect against being on the right side of a sed subst, or in
23312 # an unquoted here document, in config.status.  If some macros were
23313 # called several times there might be several #defines for the same
23314 # symbol, which is useless.  But do not sort them, since the last
23315 # AC_DEFINE must be honored.
23316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23317 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23318 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23319 # PARAMS is the parameter list in the macro definition--in most cases, it's
23320 # just an empty string.
23321 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23322 ac_dB='\\)[      (].*,\\1define\\2'
23323 ac_dC=' '
23324 ac_dD=' ,'
23325
23326 uniq confdefs.h |
23327   sed -n '
23328         t rset
23329         :rset
23330         s/^[     ]*#[    ]*define[       ][      ]*//
23331         t ok
23332         d
23333         :ok
23334         s/[\\&,]/\\&/g
23335         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23336         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23337   ' >>conftest.defines
23338
23339 # Remove the space that was appended to ease matching.
23340 # Then replace #undef with comments.  This is necessary, for
23341 # example, in the case of _POSIX_SOURCE, which is predefined and required
23342 # on some systems where configure will not decide to define it.
23343 # (The regexp can be short, since the line contains either #define or #undef.)
23344 echo 's/ $//
23345 s,^[     #]*u.*,/* & */,' >>conftest.defines
23346
23347 # Break up conftest.defines:
23348 ac_max_sed_lines=50
23349
23350 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23351 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23352 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23353 # et cetera.
23354 ac_in='$ac_file_inputs'
23355 ac_out='"$tmp/out1"'
23356 ac_nxt='"$tmp/out2"'
23357
23358 while :
23359 do
23360   # Write a here document:
23361     cat >>$CONFIG_STATUS <<_ACEOF
23362     # First, check the format of the line:
23363     cat >"\$tmp/defines.sed" <<\\CEOF
23364 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23365 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23366 b
23367 :def
23368 _ACEOF
23369   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23370   echo 'CEOF
23371     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23372   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23373   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23374   grep . conftest.tail >/dev/null || break
23375   rm -f conftest.defines
23376   mv conftest.tail conftest.defines
23377 done
23378 rm -f conftest.defines conftest.tail
23379
23380 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23382   if test x"$ac_file" != x-; then
23383     echo "/* $configure_input  */" >"$tmp/config.h"
23384     cat "$ac_result" >>"$tmp/config.h"
23385     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23386       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23387 echo "$as_me: $ac_file is unchanged" >&6;}
23388     else
23389       rm -f $ac_file
23390       mv "$tmp/config.h" $ac_file
23391     fi
23392   else
23393     echo "/* $configure_input  */"
23394     cat "$ac_result"
23395   fi
23396   rm -f "$tmp/out12"
23397  ;;
23398
23399   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23400 echo "$as_me: executing $ac_file commands" >&6;}
23401  ;;
23402   esac
23403
23404
23405   case $ac_file$ac_mode in
23406     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23407    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23408     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23409    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23410     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23411    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23412     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23414     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23416     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23418     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23420     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23422     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23424     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23426     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23428     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23429    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23430
23431   esac
23432 done # for ac_tag
23433
23434
23435 { (exit 0); exit 0; }
23436 _ACEOF
23437 chmod +x $CONFIG_STATUS
23438 ac_clean_files=$ac_clean_files_save
23439
23440
23441 # configure is writing to config.log, and then calls config.status.
23442 # config.status does its own redirection, appending to config.log.
23443 # Unfortunately, on DOS this fails, as config.log is still kept open
23444 # by configure, so config.status won't be able to write to it; its
23445 # output is simply discarded.  So we exec the FD to /dev/null,
23446 # effectively closing config.log, so it can be properly (re)opened and
23447 # appended to by config.status.  When coming back to configure, we
23448 # need to make the FD available again.
23449 if test "$no_create" != yes; then
23450   ac_cs_success=:
23451   ac_config_status_args=
23452   test "$silent" = yes &&
23453     ac_config_status_args="$ac_config_status_args --quiet"
23454   exec 5>/dev/null
23455   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23456   exec 5>>config.log
23457   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23458   # would make configure fail if this is the last instruction.
23459   $ac_cs_success || { (exit 1); exit 1; }
23460 fi
23461
23462 #
23463 # CONFIG_SUBDIRS section.
23464 #
23465 if test "$no_recursion" != yes; then
23466
23467   # Remove --cache-file and --srcdir arguments so they do not pile up.
23468   ac_sub_configure_args=
23469   ac_prev=
23470   eval "set x $ac_configure_args"
23471   shift
23472   for ac_arg
23473   do
23474     if test -n "$ac_prev"; then
23475       ac_prev=
23476       continue
23477     fi
23478     case $ac_arg in
23479     -cache-file | --cache-file | --cache-fil | --cache-fi \
23480     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23481       ac_prev=cache_file ;;
23482     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23483     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23484     | --c=*)
23485       ;;
23486     --config-cache | -C)
23487       ;;
23488     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23489       ac_prev=srcdir ;;
23490     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23491       ;;
23492     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23493       ac_prev=prefix ;;
23494     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23495       ;;
23496     *)
23497       case $ac_arg in
23498       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23499       esac
23500       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23501     esac
23502   done
23503
23504   # Always prepend --prefix to ensure using the same prefix
23505   # in subdir configurations.
23506   ac_arg="--prefix=$prefix"
23507   case $ac_arg in
23508   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23509   esac
23510   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23511
23512   ac_popdir=`pwd`
23513   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23514
23515     # Do not complain, so a configure script can configure whichever
23516     # parts of a large source tree are present.
23517     test -d "$srcdir/$ac_dir" || continue
23518
23519     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23520     echo "$as_me:$LINENO: $ac_msg" >&5
23521     echo "$ac_msg" >&6
23522     { as_dir="$ac_dir"
23523   case $as_dir in #(
23524   -*) as_dir=./$as_dir;;
23525   esac
23526   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23527     as_dirs=
23528     while :; do
23529       case $as_dir in #(
23530       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23531       *) as_qdir=$as_dir;;
23532       esac
23533       as_dirs="'$as_qdir' $as_dirs"
23534       as_dir=`$as_dirname -- "$as_dir" ||
23535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23536          X"$as_dir" : 'X\(//\)[^/]' \| \
23537          X"$as_dir" : 'X\(//\)$' \| \
23538          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23539 echo X"$as_dir" |
23540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23541             s//\1/
23542             q
23543           }
23544           /^X\(\/\/\)[^/].*/{
23545             s//\1/
23546             q
23547           }
23548           /^X\(\/\/\)$/{
23549             s//\1/
23550             q
23551           }
23552           /^X\(\/\).*/{
23553             s//\1/
23554             q
23555           }
23556           s/.*/./; q'`
23557       test -d "$as_dir" && break
23558     done
23559     test -z "$as_dirs" || eval "mkdir $as_dirs"
23560   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23561 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23562    { (exit 1); exit 1; }; }; }
23563     ac_builddir=.
23564
23565 case "$ac_dir" in
23566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23567 *)
23568   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23569   # A ".." for each directory in $ac_dir_suffix.
23570   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23571   case $ac_top_builddir_sub in
23572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23574   esac ;;
23575 esac
23576 ac_abs_top_builddir=$ac_pwd
23577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23578 # for backward compatibility:
23579 ac_top_builddir=$ac_top_build_prefix
23580
23581 case $srcdir in
23582   .)  # We are building in place.
23583     ac_srcdir=.
23584     ac_top_srcdir=$ac_top_builddir_sub
23585     ac_abs_top_srcdir=$ac_pwd ;;
23586   [\\/]* | ?:[\\/]* )  # Absolute name.
23587     ac_srcdir=$srcdir$ac_dir_suffix;
23588     ac_top_srcdir=$srcdir
23589     ac_abs_top_srcdir=$srcdir ;;
23590   *) # Relative name.
23591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23592     ac_top_srcdir=$ac_top_build_prefix$srcdir
23593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23594 esac
23595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23596
23597
23598     cd "$ac_dir"
23599
23600     # Check for guested configure; otherwise get Cygnus style configure.
23601     if test -f "$ac_srcdir/configure.gnu"; then
23602       ac_sub_configure=$ac_srcdir/configure.gnu
23603     elif test -f "$ac_srcdir/configure"; then
23604       ac_sub_configure=$ac_srcdir/configure
23605     elif test -f "$ac_srcdir/configure.in"; then
23606       # This should be Cygnus configure.
23607       ac_sub_configure=$ac_aux_dir/configure
23608     else
23609       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23611       ac_sub_configure=
23612     fi
23613
23614     # The recursion is here.
23615     if test -n "$ac_sub_configure"; then
23616       # Make the cache file name correct relative to the subdirectory.
23617       case $cache_file in
23618       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23619       *) # Relative name.
23620         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23621       esac
23622
23623       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23624 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23625       # The eval makes quoting arguments work.
23626       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23627            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23628         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23629 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23630    { (exit 1); exit 1; }; }
23631     fi
23632
23633     cd "$ac_popdir"
23634   done
23635 fi
23636