This patch reworks how llvm targets set
[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.3svn.
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-2013 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
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 USE_UDIS86
773 USE_OPROFILE
774 USE_INTEL_JITEVENTS
775 XML2CONFIG
776 LIBXML2_LIBS
777 LIBXML2_INC
778 HAVE_PTHREAD
779 HUGE_VAL_SANITY
780 MMAP_FILE
781 SHLIBEXT
782 SHLIBPATH_VAR
783 LLVM_PREFIX
784 LLVM_BINDIR
785 LLVM_LIBDIR
786 LLVM_DATADIR
787 LLVM_DOCSDIR
788 LLVM_ETCDIR
789 LLVM_INCLUDEDIR
790 LLVM_INFODIR
791 LLVM_MANDIR
792 LLVM_CONFIGTIME
793 BINDINGS_TO_BUILD
794 ALL_BINDINGS
795 OCAML_LIBDIR
796 ENABLE_VISIBILITY_INLINES_HIDDEN
797 RPATH
798 RDYNAMIC
799 program_prefix
800 LIBOBJS
801 LTLIBOBJS'
802 ac_subst_files=''
803       ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 CPPFLAGS
810 CXX
811 CXXFLAGS
812 CCC
813 CPP'
814 ac_subdirs_all='projects/llvm-gcc
815 projects/test-suite
816 projects/llvm-test
817 projects/poolalloc
818 projects/llvm-poolalloc
819 projects/sample
820 projects/privbracket
821 projects/llvm-stacker
822 projects/llvm-reopt
823 projects/llvm-java
824 projects/llvm-tv
825 projects/safecode
826 projects/llvm-kernel
827 tools/polly'
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *)    ac_optarg=yes ;;
889   esac
890
891   # Accept the important Cygnus configure options, so we can diagnose typos.
892
893   case $ac_dashdash$ac_option in
894   --)
895     ac_dashdash=yes ;;
896
897   -bindir | --bindir | --bindi | --bind | --bin | --bi)
898     ac_prev=bindir ;;
899   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900     bindir=$ac_optarg ;;
901
902   -build | --build | --buil | --bui | --bu)
903     ac_prev=build_alias ;;
904   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905     build_alias=$ac_optarg ;;
906
907   -cache-file | --cache-file | --cache-fil | --cache-fi \
908   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909     ac_prev=cache_file ;;
910   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912     cache_file=$ac_optarg ;;
913
914   --config-cache | -C)
915     cache_file=config.cache ;;
916
917   -datadir | --datadir | --datadi | --datad)
918     ac_prev=datadir ;;
919   -datadir=* | --datadir=* | --datadi=* | --datad=*)
920     datadir=$ac_optarg ;;
921
922   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923   | --dataroo | --dataro | --datar)
924     ac_prev=datarootdir ;;
925   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927     datarootdir=$ac_optarg ;;
928
929   -disable-* | --disable-*)
930     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934    { (exit 1); exit 1; }; }
935     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936     eval enable_$ac_feature=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953    { (exit 1); exit 1; }; }
954     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955     eval enable_$ac_feature=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package| sed 's/-/_/g'`
1152     eval with_$ac_package=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_package=`echo $ac_package | sed 's/-/_/g'`
1161     eval with_$ac_package=no ;;
1162
1163   --x)
1164     # Obsolete; use --with-x.
1165     with_x=yes ;;
1166
1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168   | --x-incl | --x-inc | --x-in | --x-i)
1169     ac_prev=x_includes ;;
1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172     x_includes=$ac_optarg ;;
1173
1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176     ac_prev=x_libraries ;;
1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179     x_libraries=$ac_optarg ;;
1180
1181   -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183    { (exit 1); exit 1; }; }
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191    { (exit 1); exit 1; }; }
1192     eval $ac_envvar=\$ac_optarg
1193     export $ac_envvar ;;
1194
1195   *)
1196     # FIXME: should be removed in autoconf 3.0.
1197     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201     ;;
1202
1203   esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208   { echo "$as_me: error: missing argument to $ac_option" >&2
1209    { (exit 1); exit 1; }; }
1210 fi
1211
1212 # Be sure to have absolute directory names.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224    { (exit 1); exit 1; }; }
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used." >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   { echo "$as_me: error: Working directory cannot be determined" >&2
1255    { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   { echo "$as_me: error: pwd does not report name of working directory" >&2
1258    { (exit 1); exit 1; }; }
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$0" : 'X\(//\)[^/]' \| \
1268          X"$0" : 'X\(//\)$' \| \
1269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 echo X"$0" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303    { (exit 1); exit 1; }; }
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR           user executables [EPREFIX/bin]
1364   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR       program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR           object code libraries [EPREFIX/lib]
1370   --includedir=DIR       C header files [PREFIX/include]
1371   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR          info documentation [DATAROOTDIR/info]
1375   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR           man documentation [DATAROOTDIR/man]
1377   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1378   --htmldir=DIR          html documentation [DOCDIR]
1379   --dvidir=DIR           dvi documentation [DOCDIR]
1380   --pdfdir=DIR           pdf documentation [DOCDIR]
1381   --psdir=DIR            ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-libcpp         Use libc++ if available (default is NO)
1404   --enable-cxx11          Use c++11 if available (default is NO)
1405   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1406   --enable-clang-static-analyzer
1407                           Enable building of clang Static Analyzer (default is
1408                           YES)
1409   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410   --enable-optimized      Compile with optimizations enabled (default is NO)
1411   --enable-profiling      Compile with profiling enabled (default is NO)
1412   --enable-assertions     Compile with assertion checks enabled (default is
1413                           YES)
1414   --enable-werror         Compile with -Werror enabled (default is NO)
1415   --enable-expensive-checks
1416                           Compile with expensive debug checks enabled (default
1417                           is NO)
1418   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1419                           NO)
1420   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1421                           optimization is on and YES if it's off)
1422   --enable-keep-symbols   Do not strip installed executables)
1423   --enable-jit            Enable Just In Time Compiling (default is YES)
1424   --enable-docs           Build documents (default is YES)
1425   --enable-doxygen        Build doxygen documentation (default is NO)
1426   --enable-threads        Use threads if available (default is YES)
1427   --enable-pthreads       Use pthreads if available (default is YES)
1428   --enable-pic            Build LLVM with Position Independent Code (default
1429                           is YES)
1430   --enable-shared         Build a shared library and link tools against it
1431                           (default is NO)
1432   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1433                           Win32 DLL (default is NO)
1434   --enable-timestamps     Enable embedding timestamp information in build
1435                           (default is YES)
1436   --enable-backtraces     Enable embedding backtraces on crash (default is
1437                           YES)
1438   --enable-targets        Build specific host targets: all or
1439                           target1,target2,... Valid targets are: host, x86,
1440                           x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1441                           msp430, nvptx, and cpp (default=all)
1442   --enable-experimental-targets
1443                           Build experimental host targets: disable or
1444                           target1,target2,... (default=disable)
1445   --enable-bindings       Build specific language bindings:
1446                           all,auto,none,{binding-name} (default=auto)
1447   --enable-libffi         Check for the presence of libffi (default is NO)
1448   --enable-ltdl-install   install libltdl
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-optimize-option  Select the compiler options to use for optimized
1454                           builds
1455   --with-extra-options    Specify additional options to compile LLVM with
1456   --with-extra-ld-options Specify additional options to link LLVM with
1457   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                           is stdlib)
1459   --with-clang-srcdir     Directory to the out-of-tree Clang source
1460   --with-clang-resource-dir
1461                           Relative directory from the Clang binary for
1462                           resource files
1463   --with-c-include-dirs   Colon separated list of directories clang will
1464                           search for headers
1465   --with-gcc-toolchain    Directory where gcc is installed.
1466   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1467   --with-binutils-include Specify path to binutils/include/ containing
1468                           plugin-api.h file for gold plugin.
1469   --with-bug-report-url   Specify the URL where bug reports should be
1470                           submitted (default=http://llvm.org/bugs/)
1471   --with-internal-prefix  Installation directory for internal files
1472   --with-udis86=<path>    Use udis86 external x86 disassembler library
1473   --with-oprofile=<prefix>
1474                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1475   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1476
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   CPP         C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <http://llvm.org/bugs/>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" || continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 LLVM configure 3.3svn
1554 generated by GNU Autoconf 2.60
1555
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560
1561 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by LLVM $as_me 3.3svn, which was
1570 generated by GNU Autoconf 2.60.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       *) $as_unset $ac_var ;;
1699       esac ;;
1700     esac
1701   done
1702   (set) 2>&1 |
1703     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704     *${as_nl}ac_space=\ *)
1705       sed -n \
1706         "s/'\''/'\''\\\\'\'''\''/g;
1707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708       ;; #(
1709     *)
1710       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711       ;;
1712     esac |
1713     sort
1714 )
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722     echo
1723     for ac_var in $ac_subst_vars
1724     do
1725       eval ac_val=\$$ac_var
1726       case $ac_val in
1727       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728       esac
1729       echo "$ac_var='\''$ac_val'\''"
1730     done | sort
1731     echo
1732
1733     if test -n "$ac_subst_files"; then
1734       cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739       echo
1740       for ac_var in $ac_subst_files
1741       do
1742         eval ac_val=\$$ac_var
1743         case $ac_val in
1744         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745         esac
1746         echo "$ac_var='\''$ac_val'\''"
1747       done | sort
1748       echo
1749     fi
1750
1751     if test -s confdefs.h; then
1752       cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757       echo
1758       cat confdefs.h
1759       echo
1760     fi
1761     test "$ac_signal" != 0 &&
1762       echo "$as_me: caught signal $ac_signal"
1763     echo "$as_me: exit $exit_status"
1764   } >&5
1765   rm -f core *.core core.conftest.* &&
1766     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767     exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807   set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811   set x "$ac_default_prefix/share/config.site" \
1812         "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817   if test -r "$ac_site_file"; then
1818     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820     sed 's/^/| /' "$ac_site_file" >&5
1821     . "$ac_site_file"
1822   fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826   # Some versions of bash will fail to source /dev/null (special
1827   # files actually), so we avoid doing that.
1828   if test -f "$cache_file"; then
1829     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831     case $cache_file in
1832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833       *)                      . "./$cache_file";;
1834     esac
1835   fi
1836 else
1837   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839   >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847   eval ac_new_set=\$ac_env_${ac_var}_set
1848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849   eval ac_new_val=\$ac_env_${ac_var}_value
1850   case $ac_old_set,$ac_new_set in
1851     set,)
1852       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854       ac_cache_corrupted=: ;;
1855     ,set)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,);;
1860     *)
1861       if test "x$ac_old_val" != "x$ac_new_val"; then
1862         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865 echo "$as_me:   former value:  $ac_old_val" >&2;}
1866         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867 echo "$as_me:   current value: $ac_new_val" >&2;}
1868         ac_cache_corrupted=:
1869       fi;;
1870   esac
1871   # Pass precious variables to config.status.
1872   if test "$ac_new_set" = set; then
1873     case $ac_new_val in
1874     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875     *) ac_arg=$ac_var=$ac_new_val ;;
1876     esac
1877     case " $ac_configure_args " in
1878       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880     esac
1881   fi
1882 done
1883 if $ac_cache_corrupted; then
1884   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 cat >>confdefs.h <<\_ACEOF
1924 #define LLVM_VERSION_MAJOR 3
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<\_ACEOF
1929 #define LLVM_VERSION_MINOR 3
1930 _ACEOF
1931
1932
1933 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1934
1935
1936
1937
1938
1939
1940
1941 ac_aux_dir=
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943   if test -f "$ac_dir/install-sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install-sh -c"
1946     break
1947   elif test -f "$ac_dir/install.sh"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/install.sh -c"
1950     break
1951   elif test -f "$ac_dir/shtool"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/shtool install -c"
1954     break
1955   fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1970
1971
1972
1973 if test ${srcdir} != "." ; then
1974   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1975     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1976 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1977    { (exit 1); exit 1; }; }
1978   fi
1979 fi
1980
1981 ac_ext=c
1982 ac_cpp='$CPP $CPPFLAGS'
1983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986 if test -n "$ac_tool_prefix"; then
1987   for ac_prog in clang llvm-gcc gcc
1988   do
1989     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$CC"; then
1997   ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2006     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012 IFS=$as_save_IFS
2013
2014 fi
2015 fi
2016 CC=$ac_cv_prog_CC
2017 if test -n "$CC"; then
2018   { echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6; }
2020 else
2021   { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2023 fi
2024
2025
2026     test -n "$CC" && break
2027   done
2028 fi
2029 if test -z "$CC"; then
2030   ac_ct_CC=$CC
2031   for ac_prog in clang llvm-gcc gcc
2032 do
2033   # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$ac_ct_CC"; then
2041   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2050     ac_cv_prog_ac_ct_CC="$ac_prog"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056 IFS=$as_save_IFS
2057
2058 fi
2059 fi
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070   test -n "$ac_ct_CC" && break
2071 done
2072
2073   if test "x$ac_ct_CC" = x; then
2074     CC=""
2075   else
2076     case $cross_compiling:$ac_tool_warned in
2077 yes:)
2078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2079 whose name does not start with the host triplet.  If you think this
2080 configuration is useful to you, please write to autoconf@gnu.org." >&5
2081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2082 whose name does not start with the host triplet.  If you think this
2083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2084 ac_tool_warned=yes ;;
2085 esac
2086     CC=$ac_ct_CC
2087   fi
2088 fi
2089
2090
2091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&2;}
2095    { (exit 1); exit 1; }; }
2096
2097 # Provide some information about the compiler.
2098 echo "$as_me:$LINENO: checking for C compiler version" >&5
2099 ac_compiler=`set X $ac_compile; echo $2`
2100 { (ac_try="$ac_compiler --version >&5"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106   (eval "$ac_compiler --version >&5") 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110 { (ac_try="$ac_compiler -v >&5"
2111 case "(($ac_try" in
2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113   *) ac_try_echo=$ac_try;;
2114 esac
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116   (eval "$ac_compiler -v >&5") 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120 { (ac_try="$ac_compiler -V >&5"
2121 case "(($ac_try" in
2122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123   *) ac_try_echo=$ac_try;;
2124 esac
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126   (eval "$ac_compiler -V >&5") 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }
2130
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137
2138 int
2139 main ()
2140 {
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2152 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 #
2155 # List of possible output files, starting from the most likely.
2156 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2157 # only as a last resort.  b.out is created by i960 compilers.
2158 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2159 #
2160 # The IRIX 6 linker writes into existing files which may not be
2161 # executable, retaining their permissions.  Remove them first so a
2162 # subsequent execution test works.
2163 ac_rmfiles=
2164 for ac_file in $ac_files
2165 do
2166   case $ac_file in
2167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2168     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2169   esac
2170 done
2171 rm -f $ac_rmfiles
2172
2173 if { (ac_try="$ac_link_default"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179   (eval "$ac_link_default") 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2185 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2186 # so that the user can short-circuit this test for compilers unknown to
2187 # Autoconf.
2188 for ac_file in $ac_files
2189 do
2190   test -f "$ac_file" || continue
2191   case $ac_file in
2192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2193         ;;
2194     [ab].out )
2195         # We found the default executable, but exeext='' is most
2196         # certainly right.
2197         break;;
2198     *.* )
2199         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2200         then :; else
2201            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202         fi
2203         # We set ac_cv_exeext here because the later test for it is not
2204         # safe: cross compilers may not add the suffix if given an `-o'
2205         # argument, so we may need to know it at that point already.
2206         # Even if this section looks crufty: it has the advantage of
2207         # actually working.
2208         break;;
2209     * )
2210         break;;
2211   esac
2212 done
2213 test "$ac_cv_exeext" = no && ac_cv_exeext=
2214
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223    { (exit 77); exit 77; }; }
2224 fi
2225
2226 ac_exeext=$ac_cv_exeext
2227 { echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6; }
2229
2230 # Check that the compiler produces executables we can run.  If not, either
2231 # the compiler is broken, or we cross compile.
2232 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237   if { ac_try='./$ac_file'
2238   { (case "(($ac_try" in
2239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240   *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243   (eval "$ac_try") 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247     cross_compiling=no
2248   else
2249     if test "$cross_compiling" = maybe; then
2250         cross_compiling=yes
2251     else
2252         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259     fi
2260   fi
2261 fi
2262 { echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6; }
2264
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check that the compiler produces executables we can run.  If not, either
2268 # the compiler is broken, or we cross compile.
2269 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2271 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6; }
2273
2274 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2276 if { (ac_try="$ac_link"
2277 case "(($ac_try" in
2278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279   *) ac_try_echo=$ac_try;;
2280 esac
2281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2282   (eval "$ac_link") 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; then
2286   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288 # work properly (i.e., refer to `conftest.exe'), while it won't with
2289 # `rm'.
2290 for ac_file in conftest.exe conftest conftest.*; do
2291   test -f "$ac_file" || continue
2292   case $ac_file in
2293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2294     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295           break;;
2296     * ) break;;
2297   esac
2298 done
2299 else
2300   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&2;}
2304    { (exit 1); exit 1; }; }
2305 fi
2306
2307 rm -f conftest$ac_cv_exeext
2308 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2310
2311 rm -f conftest.$ac_ext
2312 EXEEXT=$ac_cv_exeext
2313 ac_exeext=$EXEEXT
2314 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2316 if test "${ac_cv_objext+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h.  */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h.  */
2325
2326 int
2327 main ()
2328 {
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.o conftest.obj
2335 if { (ac_try="$ac_compile"
2336 case "(($ac_try" in
2337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338   *) ac_try_echo=$ac_try;;
2339 esac
2340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341   (eval "$ac_compile") 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; then
2345   for ac_file in conftest.o conftest.obj conftest.*; do
2346   test -f "$ac_file" || continue;
2347   case $ac_file in
2348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350        break;;
2351   esac
2352 done
2353 else
2354   echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365 fi
2366 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367 echo "${ECHO_T}$ac_cv_objext" >&6; }
2368 OBJEXT=$ac_cv_objext
2369 ac_objext=$OBJEXT
2370 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381
2382 int
2383 main ()
2384 {
2385 #ifndef __GNUC__
2386        choke me
2387 #endif
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (ac_try="$ac_compile"
2395 case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400   (eval "$ac_compile") 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2408   { (case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_try") 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423   (eval "$ac_try") 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; }; then
2427   ac_compiler_gnu=yes
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432         ac_compiler_gnu=no
2433 fi
2434
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2437
2438 fi
2439 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2440 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2441 GCC=`test $ac_compiler_gnu = yes && echo yes`
2442 ac_test_CFLAGS=${CFLAGS+set}
2443 ac_save_CFLAGS=$CFLAGS
2444 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2445 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_cc_g+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   ac_save_c_werror_flag=$ac_c_werror_flag
2450    ac_c_werror_flag=yes
2451    ac_cv_prog_cc_g=no
2452    CFLAGS="-g"
2453    cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (ac_try="$ac_compile"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_compile") 2>conftest.er1
2476   ac_status=$?
2477   grep -v '^ *+' conftest.er1 >conftest.err
2478   rm -f conftest.er1
2479   cat conftest.err >&5
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2483   { (case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_try") 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; } &&
2492          { ac_try='test -s conftest.$ac_objext'
2493   { (case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498   (eval "$ac_try") 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; }; then
2502   ac_cv_prog_cc_g=yes
2503 else
2504   echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507         CFLAGS=""
2508       cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_compile") 2>conftest.er1
2531   ac_status=$?
2532   grep -v '^ *+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } &&
2537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538   { (case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_try") 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; } &&
2547          { ac_try='test -s conftest.$ac_objext'
2548   { (case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_try") 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; }; then
2557   :
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562         ac_c_werror_flag=$ac_save_c_werror_flag
2563          CFLAGS="-g"
2564          cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 int
2572 main ()
2573 {
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_compile") 2>conftest.er1
2587   ac_status=$?
2588   grep -v '^ *+' conftest.er1 >conftest.err
2589   rm -f conftest.er1
2590   cat conftest.err >&5
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2594   { (case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_try") 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_try") 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613   ac_cv_prog_cc_g=yes
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618
2619 fi
2620
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 fi
2623
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 fi
2626
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628    ac_c_werror_flag=$ac_save_c_werror_flag
2629 fi
2630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2631 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2632 if test "$ac_test_CFLAGS" = set; then
2633   CFLAGS=$ac_save_CFLAGS
2634 elif test $ac_cv_prog_cc_g = yes; then
2635   if test "$GCC" = yes; then
2636     CFLAGS="-g -O2"
2637   else
2638     CFLAGS="-g"
2639   fi
2640 else
2641   if test "$GCC" = yes; then
2642     CFLAGS="-O2"
2643   else
2644     CFLAGS=
2645   fi
2646 fi
2647 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2648 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_cc_c89+set}" = set; then
2650   echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652   ac_cv_prog_cc_c89=no
2653 ac_save_CC=$CC
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660 #include <stdarg.h>
2661 #include <stdio.h>
2662 #include <sys/types.h>
2663 #include <sys/stat.h>
2664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2665 struct buf { int x; };
2666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2667 static char *e (p, i)
2668      char **p;
2669      int i;
2670 {
2671   return p[i];
2672 }
2673 static char *f (char * (*g) (char **, int), char **p, ...)
2674 {
2675   char *s;
2676   va_list v;
2677   va_start (v,p);
2678   s = g (p, va_arg (v,int));
2679   va_end (v);
2680   return s;
2681 }
2682
2683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2684    function prototypes and stuff, but not '\xHH' hex character constants.
2685    These don't provoke an error unfortunately, instead are silently treated
2686    as 'x'.  The following induces an error, until -std is added to get
2687    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2688    array size at least.  It's necessary to write '\x00'==0 to get something
2689    that's true only with -std.  */
2690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2691
2692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2693    inside strings and character constants.  */
2694 #define FOO(x) 'x'
2695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2696
2697 int test (int i, double x);
2698 struct s1 {int (*f) (int a);};
2699 struct s2 {int (*f) (double a);};
2700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 int argc;
2702 char **argv;
2703 int
2704 main ()
2705 {
2706 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2712         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2713 do
2714   CC="$ac_save_CC $ac_arg"
2715   rm -f conftest.$ac_objext
2716 if { (ac_try="$ac_compile"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compile") 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2730   { (case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_try") 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; } &&
2739          { ac_try='test -s conftest.$ac_objext'
2740   { (case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_try") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   ac_cv_prog_cc_c89=$ac_arg
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754
2755 fi
2756
2757 rm -f core conftest.err conftest.$ac_objext
2758   test "x$ac_cv_prog_cc_c89" != "xno" && break
2759 done
2760 rm -f conftest.$ac_ext
2761 CC=$ac_save_CC
2762
2763 fi
2764 # AC_CACHE_VAL
2765 case "x$ac_cv_prog_cc_c89" in
2766   x)
2767     { echo "$as_me:$LINENO: result: none needed" >&5
2768 echo "${ECHO_T}none needed" >&6; } ;;
2769   xno)
2770     { echo "$as_me:$LINENO: result: unsupported" >&5
2771 echo "${ECHO_T}unsupported" >&6; } ;;
2772   *)
2773     CC="$CC $ac_cv_prog_cc_c89"
2774     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2775 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2776 esac
2777
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785 ac_ext=cpp
2786 ac_cpp='$CXXCPP $CPPFLAGS'
2787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790 if test -z "$CXX"; then
2791   if test -n "$CCC"; then
2792     CXX=$CCC
2793   else
2794     if test -n "$ac_tool_prefix"; then
2795   for ac_prog in clang++ llvm-g++ g++
2796   do
2797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CXX+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   if test -n "$CXX"; then
2805   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816     break 2
2817   fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 CXX=$ac_cv_prog_CXX
2825 if test -n "$CXX"; then
2826   { echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6; }
2828 else
2829   { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2831 fi
2832
2833
2834     test -n "$CXX" && break
2835   done
2836 fi
2837 if test -z "$CXX"; then
2838   ac_ct_CXX=$CXX
2839   for ac_prog in clang++ llvm-g++ g++
2840 do
2841   # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   if test -n "$ac_ct_CXX"; then
2849   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856   for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_ac_ct_CXX="$ac_prog"
2859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2869 if test -n "$ac_ct_CXX"; then
2870   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2871 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2872 else
2873   { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2875 fi
2876
2877
2878   test -n "$ac_ct_CXX" && break
2879 done
2880
2881   if test "x$ac_ct_CXX" = x; then
2882     CXX="g++"
2883   else
2884     case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet.  If you think this
2888 configuration is useful to you, please write to autoconf@gnu.org." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet.  If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894     CXX=$ac_ct_CXX
2895   fi
2896 fi
2897
2898   fi
2899 fi
2900 # Provide some information about the compiler.
2901 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2902 ac_compiler=`set X $ac_compile; echo $2`
2903 { (ac_try="$ac_compiler --version >&5"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_compiler --version >&5") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913 { (ac_try="$ac_compiler -v >&5"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_compiler -v >&5") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }
2923 { (ac_try="$ac_compiler -V >&5"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_compiler -V >&5") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }
2933
2934 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2935 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949 #ifndef __GNUC__
2950        choke me
2951 #endif
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964   (eval "$ac_compile") 2>conftest.er1
2965   ac_status=$?
2966   grep -v '^ *+' conftest.er1 >conftest.err
2967   rm -f conftest.er1
2968   cat conftest.err >&5
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } &&
2971          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2972   { (case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_try") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_try") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   ac_compiler_gnu=yes
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996         ac_compiler_gnu=no
2997 fi
2998
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3001
3002 fi
3003 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3005 GXX=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CXXFLAGS=${CXXFLAGS+set}
3007 ac_save_CXXFLAGS=$CXXFLAGS
3008 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3009 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_cxx_g+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3014    ac_cxx_werror_flag=yes
3015    ac_cv_prog_cxx_g=no
3016    CXXFLAGS="-g"
3017    cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027
3028   ;
3029   return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_compile") 2>conftest.er1
3040   ac_status=$?
3041   grep -v '^ *+' conftest.er1 >conftest.err
3042   rm -f conftest.er1
3043   cat conftest.err >&5
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } &&
3046          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3047   { (case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_try") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; } &&
3056          { ac_try='test -s conftest.$ac_objext'
3057   { (case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   ac_cv_prog_cxx_g=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071         CXXFLAGS=""
3072       cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102   { (case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_try") 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; } &&
3111          { ac_try='test -s conftest.$ac_objext'
3112   { (case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_try") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   :
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3127          CXXFLAGS="-g"
3128          cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3158   { (case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_try") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; } &&
3167          { ac_try='test -s conftest.$ac_objext'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   ac_cv_prog_cxx_g=yes
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182
3183 fi
3184
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3187
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3193 fi
3194 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3195 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3196 if test "$ac_test_CXXFLAGS" = set; then
3197   CXXFLAGS=$ac_save_CXXFLAGS
3198 elif test $ac_cv_prog_cxx_g = yes; then
3199   if test "$GXX" = yes; then
3200     CXXFLAGS="-g -O2"
3201   else
3202     CXXFLAGS="-g"
3203   fi
3204 else
3205   if test "$GXX" = yes; then
3206     CXXFLAGS="-O2"
3207   else
3208     CXXFLAGS=
3209   fi
3210 fi
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3224 # On Suns, sometimes $CPP names a directory.
3225 if test -n "$CPP" && test -d "$CPP"; then
3226   CPP=
3227 fi
3228 if test -z "$CPP"; then
3229   if test "${ac_cv_prog_CPP+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232       # Double quotes because CPP needs to be expanded
3233     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234     do
3235       ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3237 do
3238   # Use a header file that comes with gcc, so configuring glibc
3239   # with a fresh cross-compiler works.
3240   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241   # <limits.h> exists even on freestanding compilers.
3242   # On the NeXT, cc -E runs the code through the compiler's parser,
3243   # not just through cpp. "Syntax error" is here to catch this case.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #ifdef __STDC__
3251 # include <limits.h>
3252 #else
3253 # include <assert.h>
3254 #endif
3255                      Syntax error
3256 _ACEOF
3257 if { (ac_try="$ac_cpp conftest.$ac_ext"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3264   ac_status=$?
3265   grep -v '^ *+' conftest.er1 >conftest.err
3266   rm -f conftest.er1
3267   cat conftest.err >&5
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); } >/dev/null; then
3270   if test -s conftest.err; then
3271     ac_cpp_err=$ac_c_preproc_warn_flag
3272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273   else
3274     ac_cpp_err=
3275   fi
3276 else
3277   ac_cpp_err=yes
3278 fi
3279 if test -z "$ac_cpp_err"; then
3280   :
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285   # Broken: fails on valid input.
3286 continue
3287 fi
3288
3289 rm -f conftest.err conftest.$ac_ext
3290
3291   # OK, works on sane cases.  Now check whether nonexistent headers
3292   # can be detected and how.
3293   cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <ac_nonexistent.h>
3300 _ACEOF
3301 if { (ac_try="$ac_cpp conftest.$ac_ext"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3308   ac_status=$?
3309   grep -v '^ *+' conftest.er1 >conftest.err
3310   rm -f conftest.er1
3311   cat conftest.err >&5
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } >/dev/null; then
3314   if test -s conftest.err; then
3315     ac_cpp_err=$ac_c_preproc_warn_flag
3316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3317   else
3318     ac_cpp_err=
3319   fi
3320 else
3321   ac_cpp_err=yes
3322 fi
3323 if test -z "$ac_cpp_err"; then
3324   # Broken: success on invalid input.
3325 continue
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330   # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3333 fi
3334
3335 rm -f conftest.err conftest.$ac_ext
3336
3337 done
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3341   break
3342 fi
3343
3344     done
3345     ac_cv_prog_CPP=$CPP
3346
3347 fi
3348   CPP=$ac_cv_prog_CPP
3349 else
3350   ac_cv_prog_CPP=$CPP
3351 fi
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
3354 ac_preproc_ok=false
3355 for ac_c_preproc_warn_flag in '' yes
3356 do
3357   # Use a header file that comes with gcc, so configuring glibc
3358   # with a fresh cross-compiler works.
3359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360   # <limits.h> exists even on freestanding compilers.
3361   # On the NeXT, cc -E runs the code through the compiler's parser,
3362   # not just through cpp. "Syntax error" is here to catch this case.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #ifdef __STDC__
3370 # include <limits.h>
3371 #else
3372 # include <assert.h>
3373 #endif
3374                      Syntax error
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383   ac_status=$?
3384   grep -v '^ *+' conftest.er1 >conftest.err
3385   rm -f conftest.er1
3386   cat conftest.err >&5
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } >/dev/null; then
3389   if test -s conftest.err; then
3390     ac_cpp_err=$ac_c_preproc_warn_flag
3391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3392   else
3393     ac_cpp_err=
3394   fi
3395 else
3396   ac_cpp_err=yes
3397 fi
3398 if test -z "$ac_cpp_err"; then
3399   :
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404   # Broken: fails on valid input.
3405 continue
3406 fi
3407
3408 rm -f conftest.err conftest.$ac_ext
3409
3410   # OK, works on sane cases.  Now check whether nonexistent headers
3411   # can be detected and how.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <ac_nonexistent.h>
3419 _ACEOF
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } >/dev/null; then
3433   if test -s conftest.err; then
3434     ac_cpp_err=$ac_c_preproc_warn_flag
3435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436   else
3437     ac_cpp_err=
3438   fi
3439 else
3440   ac_cpp_err=yes
3441 fi
3442 if test -z "$ac_cpp_err"; then
3443   # Broken: success on invalid input.
3444 continue
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449   # Passes both tests.
3450 ac_preproc_ok=:
3451 break
3452 fi
3453
3454 rm -f conftest.err conftest.$ac_ext
3455
3456 done
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.err conftest.$ac_ext
3459 if $ac_preproc_ok; then
3460   :
3461 else
3462   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&2;}
3466    { (exit 1); exit 1; }; }
3467 fi
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474
3475
3476 if test "$CXX" = "clang++" ; then
3477   { echo "$as_me:$LINENO: checking whether clang works" >&5
3478 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3479   ac_ext=cpp
3480 ac_cpp='$CXXCPP $CPPFLAGS'
3481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3484
3485
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492 #include <limits>
3493 #if __has_include (<cxxabi.h>)
3494 #include <cxxabi.h>
3495 #endif
3496 #if __has_include (<unwind.h>)
3497 #include <unwind.h>
3498 #endif
3499
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3510 case "(($ac_try" in
3511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512   *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515   (eval "$ac_compile") 2>conftest.er1
3516   ac_status=$?
3517   grep -v '^ *+' conftest.er1 >conftest.err
3518   rm -f conftest.er1
3519   cat conftest.err >&5
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } &&
3522          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3523   { (case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528   (eval "$ac_try") 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); }; } &&
3532          { ac_try='test -s conftest.$ac_objext'
3533   { (case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_try") 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542
3543   { echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6; }
3545
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550
3551   { echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6; }
3553   { { 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
3554 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;}
3555    { (exit 1); exit 1; }; }
3556
3557 fi
3558
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560   ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566 fi
3567
3568
3569
3570 if test -d ${srcdir}/projects/llvm-gcc ; then
3571   subdirs="$subdirs projects/llvm-gcc"
3572
3573 fi
3574
3575 if test -d ${srcdir}/projects/test-suite ; then
3576   subdirs="$subdirs projects/test-suite"
3577
3578 fi
3579
3580 if test -d ${srcdir}/projects/llvm-test ; then
3581   subdirs="$subdirs projects/llvm-test"
3582
3583 fi
3584
3585 if test -d ${srcdir}/projects/poolalloc ; then
3586   subdirs="$subdirs projects/poolalloc"
3587
3588 fi
3589
3590 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3591   subdirs="$subdirs projects/llvm-poolalloc"
3592
3593 fi
3594
3595 for i in `ls ${srcdir}/projects`
3596 do
3597   if test -d ${srcdir}/projects/${i} ; then
3598     case ${i} in
3599       sample)       subdirs="$subdirs projects/sample"
3600     ;;
3601       privbracket)  subdirs="$subdirs projects/privbracket"
3602  ;;
3603       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3604  ;;
3605       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3606 ;;
3607       llvm-java)    subdirs="$subdirs projects/llvm-java"
3608  ;;
3609       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3610    ;;
3611       safecode)     subdirs="$subdirs projects/safecode"
3612  ;;
3613       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3614  ;;
3615       compiler-rt)       ;;
3616       llvm-gcc)       ;;
3617       test-suite)     ;;
3618       llvm-test)      ;;
3619       poolalloc)      ;;
3620       llvm-poolalloc) ;;
3621       *)
3622         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3624         ;;
3625     esac
3626   fi
3627 done
3628
3629 # Check whether --enable-polly was given.
3630 if test "${enable_polly+set}" = set; then
3631   enableval=$enable_polly;
3632 else
3633   enableval=default
3634 fi
3635
3636 case "$enableval" in
3637   yes) ENABLE_POLLY=1
3638  ;;
3639   no)  ENABLE_POLLY=0
3640  ;;
3641   default) ENABLE_POLLY=1
3642  ;;
3643   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3644 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3645    { (exit 1); exit 1; }; } ;;
3646 esac
3647
3648
3649 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3650   LLVM_HAS_POLLY=1
3651
3652   subdirs="$subdirs tools/polly"
3653
3654 fi
3655
3656
3657 # Make sure we can run config.sub.
3658 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3659   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3660 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3661    { (exit 1); exit 1; }; }
3662
3663 { echo "$as_me:$LINENO: checking build system type" >&5
3664 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3665 if test "${ac_cv_build+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_build_alias=$build_alias
3669 test "x$ac_build_alias" = x &&
3670   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3671 test "x$ac_build_alias" = x &&
3672   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3673 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3674    { (exit 1); exit 1; }; }
3675 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3676   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3677 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3678    { (exit 1); exit 1; }; }
3679
3680 fi
3681 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3682 echo "${ECHO_T}$ac_cv_build" >&6; }
3683 case $ac_cv_build in
3684 *-*-*) ;;
3685 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3686 echo "$as_me: error: invalid value of canonical build" >&2;}
3687    { (exit 1); exit 1; }; };;
3688 esac
3689 build=$ac_cv_build
3690 ac_save_IFS=$IFS; IFS='-'
3691 set x $ac_cv_build
3692 shift
3693 build_cpu=$1
3694 build_vendor=$2
3695 shift; shift
3696 # Remember, the first character of IFS is used to create $*,
3697 # except with old shells:
3698 build_os=$*
3699 IFS=$ac_save_IFS
3700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3701
3702
3703 { echo "$as_me:$LINENO: checking host system type" >&5
3704 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3705 if test "${ac_cv_host+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   if test "x$host_alias" = x; then
3709   ac_cv_host=$ac_cv_build
3710 else
3711   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3712     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3713 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716
3717 fi
3718 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3719 echo "${ECHO_T}$ac_cv_host" >&6; }
3720 case $ac_cv_host in
3721 *-*-*) ;;
3722 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3723 echo "$as_me: error: invalid value of canonical host" >&2;}
3724    { (exit 1); exit 1; }; };;
3725 esac
3726 host=$ac_cv_host
3727 ac_save_IFS=$IFS; IFS='-'
3728 set x $ac_cv_host
3729 shift
3730 host_cpu=$1
3731 host_vendor=$2
3732 shift; shift
3733 # Remember, the first character of IFS is used to create $*,
3734 # except with old shells:
3735 host_os=$*
3736 IFS=$ac_save_IFS
3737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3738
3739
3740 { echo "$as_me:$LINENO: checking target system type" >&5
3741 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3742 if test "${ac_cv_target+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   if test "x$target_alias" = x; then
3746   ac_cv_target=$ac_cv_host
3747 else
3748   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3749     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3750 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3751    { (exit 1); exit 1; }; }
3752 fi
3753
3754 fi
3755 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3756 echo "${ECHO_T}$ac_cv_target" >&6; }
3757 case $ac_cv_target in
3758 *-*-*) ;;
3759 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3760 echo "$as_me: error: invalid value of canonical target" >&2;}
3761    { (exit 1); exit 1; }; };;
3762 esac
3763 target=$ac_cv_target
3764 ac_save_IFS=$IFS; IFS='-'
3765 set x $ac_cv_target
3766 shift
3767 target_cpu=$1
3768 target_vendor=$2
3769 shift; shift
3770 # Remember, the first character of IFS is used to create $*,
3771 # except with old shells:
3772 target_os=$*
3773 IFS=$ac_save_IFS
3774 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3775
3776
3777 # The aliases save the names the user supplied, while $host etc.
3778 # will get canonicalized.
3779 test -n "$target_alias" &&
3780   test "$program_prefix$program_suffix$program_transform_name" = \
3781     NONENONEs,x,x, &&
3782   program_prefix=${target_alias}-
3783
3784 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3785 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3786 if test "${llvm_cv_os_type+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   case $host in
3790   *-*-aix*)
3791     llvm_cv_link_all_option="-Wl,--whole-archive"
3792     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3793     llvm_cv_os_type="AIX"
3794     llvm_cv_platform_type="Unix" ;;
3795   *-*-irix*)
3796     llvm_cv_link_all_option="-Wl,--whole-archive"
3797     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798     llvm_cv_os_type="IRIX"
3799     llvm_cv_platform_type="Unix" ;;
3800   *-*-cygwin*)
3801     llvm_cv_link_all_option="-Wl,--whole-archive"
3802     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803     llvm_cv_os_type="Cygwin"
3804     llvm_cv_platform_type="Unix" ;;
3805   *-*-darwin*)
3806     llvm_cv_link_all_option="-Wl,-all_load"
3807     llvm_cv_no_link_all_option="-Wl,-noall_load"
3808     llvm_cv_os_type="Darwin"
3809     llvm_cv_platform_type="Unix" ;;
3810   *-*-minix*)
3811     llvm_cv_link_all_option="-Wl,-all_load"
3812     llvm_cv_no_link_all_option="-Wl,-noall_load"
3813     llvm_cv_os_type="Minix"
3814     llvm_cv_platform_type="Unix" ;;
3815   *-*-freebsd* | *-*-kfreebsd-gnu)
3816     llvm_cv_link_all_option="-Wl,--whole-archive"
3817     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3818     llvm_cv_os_type="FreeBSD"
3819     llvm_cv_platform_type="Unix" ;;
3820   *-*-openbsd*)
3821     llvm_cv_link_all_option="-Wl,--whole-archive"
3822     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823     llvm_cv_os_type="OpenBSD"
3824     llvm_cv_platform_type="Unix" ;;
3825   *-*-netbsd*)
3826     llvm_cv_link_all_option="-Wl,--whole-archive"
3827     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828     llvm_cv_os_type="NetBSD"
3829     llvm_cv_platform_type="Unix" ;;
3830   *-*-dragonfly*)
3831     llvm_cv_link_all_option="-Wl,--whole-archive"
3832     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833     llvm_cv_os_type="DragonFly"
3834     llvm_cv_platform_type="Unix" ;;
3835   *-*-hpux*)
3836     llvm_cv_link_all_option="-Wl,--whole-archive"
3837     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838     llvm_cv_os_type="HP-UX"
3839     llvm_cv_platform_type="Unix" ;;
3840   *-*-interix*)
3841     llvm_cv_link_all_option="-Wl,--whole-archive"
3842     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843     llvm_cv_os_type="Interix"
3844     llvm_cv_platform_type="Unix" ;;
3845   *-*-linux*)
3846     llvm_cv_link_all_option="-Wl,--whole-archive"
3847     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848     llvm_cv_os_type="Linux"
3849     llvm_cv_platform_type="Unix" ;;
3850   *-*-gnu*)
3851     llvm_cv_link_all_option="-Wl,--whole-archive"
3852     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853     llvm_cv_os_type="GNU"
3854     llvm_cv_platform_type="Unix" ;;
3855   *-*-solaris*)
3856     llvm_cv_link_all_option="-Wl,-z,allextract"
3857     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3858     llvm_cv_os_type="SunOS"
3859     llvm_cv_platform_type="Unix" ;;
3860   *-*-auroraux*)
3861     llvm_cv_link_all_option="-Wl,-z,allextract"
3862     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3863     llvm_cv_os_type="AuroraUX"
3864     llvm_cv_platform_type="Unix" ;;
3865   *-*-win32*)
3866     llvm_cv_link_all_option="-Wl,--whole-archive"
3867     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3868     llvm_cv_os_type="Win32"
3869     llvm_cv_platform_type="Win32" ;;
3870   *-*-mingw*)
3871     llvm_cv_link_all_option="-Wl,--whole-archive"
3872     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873     llvm_cv_os_type="MingW"
3874     llvm_cv_platform_type="Win32" ;;
3875   *-*-haiku*)
3876     llvm_cv_link_all_option="-Wl,--whole-archive"
3877     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878     llvm_cv_os_type="Haiku"
3879     llvm_cv_platform_type="Unix" ;;
3880   *-unknown-eabi*)
3881     llvm_cv_link_all_option="-Wl,--whole-archive"
3882     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883     llvm_cv_os_type="Freestanding"
3884     llvm_cv_platform_type="Unix" ;;
3885   *-unknown-elf*)
3886     llvm_cv_link_all_option="-Wl,--whole-archive"
3887     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888     llvm_cv_os_type="Freestanding"
3889     llvm_cv_platform_type="Unix" ;;
3890   *)
3891     llvm_cv_link_all_option=""
3892     llvm_cv_no_link_all_option=""
3893     llvm_cv_os_type="Unknown"
3894     llvm_cv_platform_type="Unknown" ;;
3895 esac
3896 fi
3897 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3898 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3899
3900 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3901 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3902 if test "${llvm_cv_target_os_type+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   case $target in
3906   *-*-aix*)
3907     llvm_cv_target_os_type="AIX" ;;
3908   *-*-irix*)
3909     llvm_cv_target_os_type="IRIX" ;;
3910   *-*-cygwin*)
3911     llvm_cv_target_os_type="Cygwin" ;;
3912   *-*-darwin*)
3913     llvm_cv_target_os_type="Darwin" ;;
3914   *-*-minix*)
3915     llvm_cv_target_os_type="Minix" ;;
3916   *-*-freebsd* | *-*-kfreebsd-gnu)
3917     llvm_cv_target_os_type="FreeBSD" ;;
3918   *-*-openbsd*)
3919     llvm_cv_target_os_type="OpenBSD" ;;
3920   *-*-netbsd*)
3921     llvm_cv_target_os_type="NetBSD" ;;
3922   *-*-dragonfly*)
3923     llvm_cv_target_os_type="DragonFly" ;;
3924   *-*-hpux*)
3925     llvm_cv_target_os_type="HP-UX" ;;
3926   *-*-interix*)
3927     llvm_cv_target_os_type="Interix" ;;
3928   *-*-linux*)
3929     llvm_cv_target_os_type="Linux" ;;
3930   *-*-gnu*)
3931     llvm_cv_target_os_type="GNU" ;;
3932   *-*-solaris*)
3933     llvm_cv_target_os_type="SunOS" ;;
3934   *-*-auroraux*)
3935     llvm_cv_target_os_type="AuroraUX" ;;
3936   *-*-win32*)
3937     llvm_cv_target_os_type="Win32" ;;
3938   *-*-mingw*)
3939     llvm_cv_target_os_type="MingW" ;;
3940   *-*-haiku*)
3941     llvm_cv_target_os_type="Haiku" ;;
3942   *-*-rtems*)
3943     llvm_cv_target_os_type="RTEMS" ;;
3944   *-*-nacl*)
3945     llvm_cv_target_os_type="NativeClient" ;;
3946   *-unknown-eabi*)
3947     llvm_cv_target_os_type="Freestanding" ;;
3948   *)
3949     llvm_cv_target_os_type="Unknown" ;;
3950 esac
3951 fi
3952 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3953 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3954
3955 if test "$llvm_cv_os_type" = "Unknown" ; then
3956   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3957 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3958    { (exit 1); exit 1; }; }
3959 fi
3960
3961 OS=$llvm_cv_os_type
3962
3963 HOST_OS=$llvm_cv_os_type
3964
3965 TARGET_OS=$llvm_cv_target_os_type
3966
3967
3968 LINKALL=$llvm_cv_link_all_option
3969
3970 NOLINKALL=$llvm_cv_no_link_all_option
3971
3972
3973 case $llvm_cv_platform_type in
3974   Unix)
3975
3976 cat >>confdefs.h <<\_ACEOF
3977 #define LLVM_ON_UNIX 1
3978 _ACEOF
3979
3980     LLVM_ON_UNIX=1
3981
3982     LLVM_ON_WIN32=0
3983
3984     ;;
3985   Win32)
3986
3987 cat >>confdefs.h <<\_ACEOF
3988 #define LLVM_ON_WIN32 1
3989 _ACEOF
3990
3991     LLVM_ON_UNIX=0
3992
3993     LLVM_ON_WIN32=1
3994
3995     ;;
3996 esac
3997
3998 { echo "$as_me:$LINENO: checking target architecture" >&5
3999 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4000 if test "${llvm_cv_target_arch+set}" = set; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   case $target in
4004   i?86-*)                 llvm_cv_target_arch="x86" ;;
4005   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4006   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4007   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4008   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4009   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4010   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4011   xcore-*)                llvm_cv_target_arch="XCore" ;;
4012   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4013   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4014   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4015   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4016   *)                      llvm_cv_target_arch="Unknown" ;;
4017 esac
4018 fi
4019 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4020 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4021
4022 if test "$llvm_cv_target_arch" = "Unknown" ; then
4023   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4024 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4025 fi
4026
4027 case "$llvm_cv_target_arch" in
4028     x86)     LLVM_NATIVE_ARCH="X86" ;;
4029     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4030     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4031 esac
4032
4033 ARCH=$llvm_cv_target_arch
4034
4035
4036 case $host in
4037   i?86-*)                 host_arch="x86" ;;
4038   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4039   sparc*-*)               host_arch="Sparc" ;;
4040   powerpc*-*)             host_arch="PowerPC" ;;
4041   arm*-*)                 host_arch="ARM" ;;
4042   mips-* | mips64-*)      host_arch="Mips" ;;
4043   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4044   xcore-*)                host_arch="XCore" ;;
4045   msp430-*)               host_arch="MSP430" ;;
4046   hexagon-*)              host_arch="Hexagon" ;;
4047   mblaze-*)               host_arch="MBlaze" ;;
4048   *)                      host_arch="Unknown" ;;
4049 esac
4050
4051 if test "$host_arch" = "Unknown" ; then
4052   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4053 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4054 fi
4055
4056 HOST_ARCH=$host_arch
4057
4058
4059
4060
4061 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   # Extract the first word of "grep ggrep" to use in msg output
4067 if test -z "$GREP"; then
4068 set dummy grep ggrep; ac_prog_name=$2
4069 if test "${ac_cv_path_GREP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   ac_path_GREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_prog in grep ggrep; do
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4083     # Check for GNU ac_path_GREP and select it if it is found.
4084   # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4086 *GNU*)
4087   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088 *)
4089   ac_count=0
4090   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091   while :
4092   do
4093     cat "conftest.in" "conftest.in" >"conftest.tmp"
4094     mv "conftest.tmp" "conftest.in"
4095     cp "conftest.in" "conftest.nl"
4096     echo 'GREP' >> "conftest.nl"
4097     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099     ac_count=`expr $ac_count + 1`
4100     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101       # Best one so far, save it but keep looking for a better one
4102       ac_cv_path_GREP="$ac_path_GREP"
4103       ac_path_GREP_max=$ac_count
4104     fi
4105     # 10*(2^10) chars as input seems more than enough
4106     test $ac_count -gt 10 && break
4107   done
4108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111
4112     $ac_path_GREP_found && break 3
4113   done
4114 done
4115
4116 done
4117 IFS=$as_save_IFS
4118
4119
4120 fi
4121
4122 GREP="$ac_cv_path_GREP"
4123 if test -z "$GREP"; then
4124   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4128
4129 else
4130   ac_cv_path_GREP=$GREP
4131 fi
4132
4133
4134 fi
4135 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4136 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4137  GREP="$ac_cv_path_GREP"
4138
4139
4140 { echo "$as_me:$LINENO: checking for egrep" >&5
4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4142 if test "${ac_cv_path_EGREP+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146    then ac_cv_path_EGREP="$GREP -E"
4147    else
4148      # Extract the first word of "egrep" to use in msg output
4149 if test -z "$EGREP"; then
4150 set dummy egrep; ac_prog_name=$2
4151 if test "${ac_cv_path_EGREP+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   ac_path_EGREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158 do
4159   IFS=$as_save_IFS
4160   test -z "$as_dir" && as_dir=.
4161   for ac_prog in egrep; do
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4165     # Check for GNU ac_path_EGREP and select it if it is found.
4166   # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4168 *GNU*)
4169   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4170 *)
4171   ac_count=0
4172   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4173   while :
4174   do
4175     cat "conftest.in" "conftest.in" >"conftest.tmp"
4176     mv "conftest.tmp" "conftest.in"
4177     cp "conftest.in" "conftest.nl"
4178     echo 'EGREP' >> "conftest.nl"
4179     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181     ac_count=`expr $ac_count + 1`
4182     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183       # Best one so far, save it but keep looking for a better one
4184       ac_cv_path_EGREP="$ac_path_EGREP"
4185       ac_path_EGREP_max=$ac_count
4186     fi
4187     # 10*(2^10) chars as input seems more than enough
4188     test $ac_count -gt 10 && break
4189   done
4190   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4192
4193
4194     $ac_path_EGREP_found && break 3
4195   done
4196 done
4197
4198 done
4199 IFS=$as_save_IFS
4200
4201
4202 fi
4203
4204 EGREP="$ac_cv_path_EGREP"
4205 if test -z "$EGREP"; then
4206   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4208    { (exit 1); exit 1; }; }
4209 fi
4210
4211 else
4212   ac_cv_path_EGREP=$EGREP
4213 fi
4214
4215
4216    fi
4217 fi
4218 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4219 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4220  EGREP="$ac_cv_path_EGREP"
4221
4222
4223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4225 if test "${ac_cv_header_stdc+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <stdlib.h>
4235 #include <stdarg.h>
4236 #include <string.h>
4237 #include <float.h>
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4249 case "(($ac_try" in
4250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251   *) ac_try_echo=$ac_try;;
4252 esac
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254   (eval "$ac_compile") 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262   { (case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_try") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_try") 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_cv_header_stdc=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286         ac_cv_header_stdc=no
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290
4291 if test $ac_cv_header_stdc = yes; then
4292   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #include <string.h>
4300
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303   $EGREP "memchr" >/dev/null 2>&1; then
4304   :
4305 else
4306   ac_cv_header_stdc=no
4307 fi
4308 rm -f conftest*
4309
4310 fi
4311
4312 if test $ac_cv_header_stdc = yes; then
4313   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314   cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #include <stdlib.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324   $EGREP "free" >/dev/null 2>&1; then
4325   :
4326 else
4327   ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335   if test "$cross_compiling" = yes; then
4336   :
4337 else
4338   cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 #include <ctype.h>
4345 #include <stdlib.h>
4346 #if ((' ' & 0x0FF) == 0x020)
4347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349 #else
4350 # define ISLOWER(c) \
4351                    (('a' <= (c) && (c) <= 'i') \
4352                      || ('j' <= (c) && (c) <= 'r') \
4353                      || ('s' <= (c) && (c) <= 'z'))
4354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355 #endif
4356
4357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 int
4359 main ()
4360 {
4361   int i;
4362   for (i = 0; i < 256; i++)
4363     if (XOR (islower (i), ISLOWER (i))
4364         || toupper (i) != TOUPPER (i))
4365       return 2;
4366   return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4371 case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376   (eval "$ac_link") 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380   { (case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385   (eval "$ac_try") 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   :
4390 else
4391   echo "$as_me: program exited with status $ac_status" >&5
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ( exit $ac_status )
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4399 fi
4400
4401
4402 fi
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define STDC_HEADERS 1
4410 _ACEOF
4411
4412 fi
4413
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425                   inttypes.h stdint.h unistd.h
4426 do
4427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440
4441 #include <$ac_header>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_compile") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } &&
4457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458   { (case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463   (eval "$ac_try") 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_try") 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; }; then
4477   eval "$as_ac_Header=yes"
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482         eval "$as_ac_Header=no"
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 fi
4487 ac_res=`eval echo '${'$as_ac_Header'}'`
4488                { echo "$as_me:$LINENO: result: $ac_res" >&5
4489 echo "${ECHO_T}$ac_res" >&6; }
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491   cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4501 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4502 if test "${ac_cv_c_bigendian+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   # See if sys/param.h defines the BYTE_ORDER macro.
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512 #include <sys/types.h>
4513 #include <sys/param.h>
4514
4515 int
4516 main ()
4517 {
4518 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4519  bogus endian macros
4520 #endif
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_compile") 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } &&
4540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541   { (case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_try") 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
4551   { (case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_try") 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   # It does; now see whether it defined to BIG_ENDIAN or not.
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #include <sys/types.h>
4568 #include <sys/param.h>
4569
4570 int
4571 main ()
4572 {
4573 #if BYTE_ORDER != BIG_ENDIAN
4574  not big endian
4575 #endif
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (ac_try="$ac_compile"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_compile") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596   { (case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601   (eval "$ac_try") 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; } &&
4605          { ac_try='test -s conftest.$ac_objext'
4606   { (case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_try") 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; }; then
4615   ac_cv_c_bigendian=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620         ac_cv_c_bigendian=no
4621 fi
4622
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628         # It does not; compile a test program.
4629 if test "$cross_compiling" = yes; then
4630   # try to guess the endianness by grepping values into an object file
4631   ac_cv_c_bigendian=unknown
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4639 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4640 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4641 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4642 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4643 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4644 int
4645 main ()
4646 {
4647  _ascii (); _ebcdic ();
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659   (eval "$ac_compile") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4687   ac_cv_c_bigendian=yes
4688 fi
4689 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4690   if test "$ac_cv_c_bigendian" = unknown; then
4691     ac_cv_c_bigendian=no
4692   else
4693     # finding both strings is unlikely to happen, but who knows?
4694     ac_cv_c_bigendian=unknown
4695   fi
4696 fi
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 else
4706   cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h.  */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h.  */
4712 $ac_includes_default
4713 int
4714 main ()
4715 {
4716
4717   /* Are we little or big endian?  From Harbison&Steele.  */
4718   union
4719   {
4720     long int l;
4721     char c[sizeof (long int)];
4722   } u;
4723   u.l = 1;
4724   return u.c[sizeof (long int) - 1] == 1;
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest$ac_exeext
4731 if { (ac_try="$ac_link"
4732 case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737   (eval "$ac_link") 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4741   { (case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746   (eval "$ac_try") 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; }; then
4750   ac_cv_c_bigendian=no
4751 else
4752   echo "$as_me: program exited with status $ac_status" >&5
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ( exit $ac_status )
4757 ac_cv_c_bigendian=yes
4758 fi
4759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4760 fi
4761
4762
4763 fi
4764
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4768 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4769 case $ac_cv_c_bigendian in
4770   yes)
4771     ENDIAN=big
4772  ;;
4773   no)
4774     ENDIAN=little
4775  ;;
4776   *)
4777     { { echo "$as_me:$LINENO: error: unknown endianness
4778 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4779 echo "$as_me: error: unknown endianness
4780 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4781    { (exit 1); exit 1; }; } ;;
4782 esac
4783
4784
4785 if test "$cross_compiling" = yes; then
4786   LLVM_CROSS_COMPILING=1
4787
4788
4789 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4790 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4791 if test "${ac_cv_build_exeext+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4795   ac_cv_build_exeext=.exe
4796 else
4797   ac_build_prefix=${build_alias}-
4798
4799   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4800 set dummy ${ac_build_prefix}gcc; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$BUILD_CC"; then
4807   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 BUILD_CC=$ac_cv_prog_BUILD_CC
4827 if test -n "$BUILD_CC"; then
4828   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4829 echo "${ECHO_T}$BUILD_CC" >&6; }
4830 else
4831   { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833 fi
4834
4835
4836   if test -z "$BUILD_CC"; then
4837      # Extract the first word of "gcc", so it can be a program name with args.
4838 set dummy gcc; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   if test -n "$BUILD_CC"; then
4845   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4854     ac_cv_prog_BUILD_CC="gcc"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862 fi
4863 fi
4864 BUILD_CC=$ac_cv_prog_BUILD_CC
4865 if test -n "$BUILD_CC"; then
4866   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4867 echo "${ECHO_T}$BUILD_CC" >&6; }
4868 else
4869   { echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6; }
4871 fi
4872
4873
4874      if test -z "$BUILD_CC"; then
4875        # Extract the first word of "cc", so it can be a program name with args.
4876 set dummy cc; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   if test -n "$BUILD_CC"; then
4883   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4884 else
4885   ac_prog_rejected=no
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4893     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4894        ac_prog_rejected=yes
4895        continue
4896      fi
4897     ac_cv_prog_BUILD_CC="cc"
4898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 if test $ac_prog_rejected = yes; then
4906   # We found a bogon in the path, so make sure we never use it.
4907   set dummy $ac_cv_prog_BUILD_CC
4908   shift
4909   if test $# != 0; then
4910     # We chose a different compiler from the bogus one.
4911     # However, it has the same basename, so the bogon will be chosen
4912     # first if we set BUILD_CC to just the basename; use the full file name.
4913     shift
4914     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4915   fi
4916 fi
4917 fi
4918 fi
4919 BUILD_CC=$ac_cv_prog_BUILD_CC
4920 if test -n "$BUILD_CC"; then
4921   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4922 echo "${ECHO_T}$BUILD_CC" >&6; }
4923 else
4924   { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4926 fi
4927
4928
4929      fi
4930   fi
4931   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4932 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4933    { (exit 1); exit 1; }; }
4934   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4935   rm -f conftest*
4936   echo 'int main () { return 0; }' > conftest.$ac_ext
4937   ac_cv_build_exeext=
4938   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4939   (eval $ac_build_link) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); }; then
4943     for file in conftest.*; do
4944       case $file in
4945       *.c | *.o | *.obj | *.dSYM) ;;
4946       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4947       esac
4948     done
4949   else
4950     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4951 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4952    { (exit 1); exit 1; }; }
4953   fi
4954   rm -f conftest*
4955   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4956 fi
4957 fi
4958
4959 BUILD_EXEEXT=""
4960 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4961 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4962 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4963 ac_build_exeext=$BUILD_EXEEXT
4964
4965   ac_build_prefix=${build_alias}-
4966   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4967 set dummy ${ac_build_prefix}g++; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$BUILD_CXX"; then
4974   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4983     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4994 if test -n "$BUILD_CXX"; then
4995   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4996 echo "${ECHO_T}$BUILD_CXX" >&6; }
4997 else
4998   { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002
5003   if test -z "$BUILD_CXX"; then
5004      # Extract the first word of "g++", so it can be a program name with args.
5005 set dummy g++; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   if test -n "$BUILD_CXX"; then
5012   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_prog_BUILD_CXX="g++"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5032 if test -n "$BUILD_CXX"; then
5033   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5034 echo "${ECHO_T}$BUILD_CXX" >&6; }
5035 else
5036   { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5038 fi
5039
5040
5041      if test -z "$BUILD_CXX"; then
5042        # Extract the first word of "c++", so it can be a program name with args.
5043 set dummy c++; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   if test -n "$BUILD_CXX"; then
5050   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5051 else
5052   ac_prog_rejected=no
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5061        ac_prog_rejected=yes
5062        continue
5063      fi
5064     ac_cv_prog_BUILD_CXX="c++"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 if test $ac_prog_rejected = yes; then
5073   # We found a bogon in the path, so make sure we never use it.
5074   set dummy $ac_cv_prog_BUILD_CXX
5075   shift
5076   if test $# != 0; then
5077     # We chose a different compiler from the bogus one.
5078     # However, it has the same basename, so the bogon will be chosen
5079     # first if we set BUILD_CXX to just the basename; use the full file name.
5080     shift
5081     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5082   fi
5083 fi
5084 fi
5085 fi
5086 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5087 if test -n "$BUILD_CXX"; then
5088   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5089 echo "${ECHO_T}$BUILD_CXX" >&6; }
5090 else
5091   { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5093 fi
5094
5095
5096      fi
5097   fi
5098 else
5099   LLVM_CROSS_COMPILING=0
5100
5101 fi
5102
5103 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5104   cvsbuild="yes"
5105   optimize="no"
5106   CVSBUILD=CVSBUILD=1
5107
5108 else
5109   cvsbuild="no"
5110   optimize="yes"
5111 fi
5112
5113
5114 # Check whether --enable-libcpp was given.
5115 if test "${enable_libcpp+set}" = set; then
5116   enableval=$enable_libcpp;
5117 else
5118   enableval=default
5119 fi
5120
5121 case "$enableval" in
5122   yes) ENABLE_LIBCPP=1
5123  ;;
5124   no)  ENABLE_LIBCPP=0
5125  ;;
5126   default) ENABLE_LIBCPP=0
5127 ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133 # Check whether --enable-cxx11 was given.
5134 if test "${enable_cxx11+set}" = set; then
5135   enableval=$enable_cxx11;
5136 else
5137   enableval=default
5138 fi
5139
5140 case "$enableval" in
5141   yes) ENABLE_CXX11=1
5142  ;;
5143   no)  ENABLE_CXX11=0
5144  ;;
5145   default) ENABLE_CXX11=0
5146 ;;
5147   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5149    { (exit 1); exit 1; }; } ;;
5150 esac
5151
5152 clang_arcmt="yes"
5153 # Check whether --enable-clang-arcmt was given.
5154 if test "${enable_clang_arcmt+set}" = set; then
5155   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5156 else
5157   enableval="yes"
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_CLANG_ARCMT=1
5162  ;;
5163   no)  ENABLE_CLANG_ARCMT=0
5164  ;;
5165   default) ENABLE_CLANG_ARCMT=1
5166 ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 clang_static_analyzer="yes"
5173 # Check whether --enable-clang-static-analyzer was given.
5174 if test "${enable_clang_static_analyzer+set}" = set; then
5175   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5176 else
5177   enableval="yes"
5178 fi
5179
5180 case "$enableval" in
5181   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5182  ;;
5183   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5184  ;;
5185   default) ENABLE_CLANG_STATIC_ANALYZER=1
5186 ;;
5187   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5189    { (exit 1); exit 1; }; } ;;
5190 esac
5191
5192 # Check whether --enable-clang-rewriter was given.
5193 if test "${enable_clang_rewriter+set}" = set; then
5194   enableval=$enable_clang_rewriter;
5195 else
5196   enableval="yes"
5197 fi
5198
5199 case "$enableval" in
5200   yes) ENABLE_CLANG_REWRITER=1
5201  ;;
5202   no)
5203     if test ${clang_arcmt} != "no" ; then
5204       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5205 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5206    { (exit 1); exit 1; }; }
5207     fi
5208     if test ${clang_static_analyzer} != "no" ; then
5209       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5210 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5211    { (exit 1); exit 1; }; }
5212     fi
5213     ENABLE_CLANG_REWRITER=0
5214
5215     ;;
5216   default) ENABLE_CLANG_REWRITER=1
5217 ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 # Check whether --enable-optimized was given.
5224 if test "${enable_optimized+set}" = set; then
5225   enableval=$enable_optimized;
5226 else
5227   enableval=$optimize
5228 fi
5229
5230 if test ${enableval} = "no" ; then
5231   ENABLE_OPTIMIZED=
5232
5233 else
5234   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5235
5236 fi
5237
5238 # Check whether --enable-profiling was given.
5239 if test "${enable_profiling+set}" = set; then
5240   enableval=$enable_profiling;
5241 else
5242   enableval="no"
5243 fi
5244
5245 if test ${enableval} = "no" ; then
5246   ENABLE_PROFILING=
5247
5248 else
5249   ENABLE_PROFILING=ENABLE_PROFILING=1
5250
5251 fi
5252
5253 # Check whether --enable-assertions was given.
5254 if test "${enable_assertions+set}" = set; then
5255   enableval=$enable_assertions;
5256 else
5257   enableval="yes"
5258 fi
5259
5260 if test ${enableval} = "yes" ; then
5261   DISABLE_ASSERTIONS=
5262
5263 else
5264   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5265
5266 fi
5267
5268 # Check whether --enable-werror was given.
5269 if test "${enable_werror+set}" = set; then
5270   enableval=$enable_werror;
5271 else
5272   enableval="no"
5273 fi
5274
5275 case "$enableval" in
5276   yes) ENABLE_WERROR=1
5277  ;;
5278   no)  ENABLE_WERROR=0
5279  ;;
5280   default) ENABLE_WERROR=0
5281 ;;
5282   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5283 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5284    { (exit 1); exit 1; }; } ;;
5285 esac
5286
5287 # Check whether --enable-expensive-checks was given.
5288 if test "${enable_expensive_checks+set}" = set; then
5289   enableval=$enable_expensive_checks;
5290 else
5291   enableval="no"
5292 fi
5293
5294 if test ${enableval} = "yes" ; then
5295   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5296
5297   EXPENSIVE_CHECKS=yes
5298
5299 else
5300   ENABLE_EXPENSIVE_CHECKS=
5301
5302   EXPENSIVE_CHECKS=no
5303
5304 fi
5305
5306 # Check whether --enable-debug-runtime was given.
5307 if test "${enable_debug_runtime+set}" = set; then
5308   enableval=$enable_debug_runtime;
5309 else
5310   enableval=no
5311 fi
5312
5313 if test ${enableval} = "no" ; then
5314   DEBUG_RUNTIME=
5315
5316 else
5317   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5318
5319 fi
5320
5321 # Check whether --enable-debug-symbols was given.
5322 if test "${enable_debug_symbols+set}" = set; then
5323   enableval=$enable_debug_symbols;
5324 else
5325   enableval=no
5326 fi
5327
5328 if test ${enableval} = "no" ; then
5329   DEBUG_SYMBOLS=
5330
5331 else
5332   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5333
5334 fi
5335
5336 # Check whether --enable-keep-symbols was given.
5337 if test "${enable_keep_symbols+set}" = set; then
5338   enableval=$enable_keep_symbols;
5339 else
5340   enableval=no
5341 fi
5342
5343 if test ${enableval} = "no" ; then
5344   KEEP_SYMBOLS=
5345
5346 else
5347   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5348
5349 fi
5350
5351 # Check whether --enable-jit was given.
5352 if test "${enable_jit+set}" = set; then
5353   enableval=$enable_jit;
5354 else
5355   enableval=default
5356 fi
5357
5358 if test ${enableval} = "no"
5359 then
5360   JIT=
5361
5362 else
5363   case "$llvm_cv_target_arch" in
5364     x86)         TARGET_HAS_JIT=1
5365  ;;
5366     Sparc)       TARGET_HAS_JIT=0
5367  ;;
5368     PowerPC)     TARGET_HAS_JIT=1
5369  ;;
5370     x86_64)      TARGET_HAS_JIT=1
5371  ;;
5372     ARM)         TARGET_HAS_JIT=1
5373  ;;
5374     Mips)        TARGET_HAS_JIT=1
5375  ;;
5376     XCore)       TARGET_HAS_JIT=0
5377  ;;
5378     MSP430)      TARGET_HAS_JIT=0
5379  ;;
5380     Hexagon)     TARGET_HAS_JIT=0
5381  ;;
5382     MBlaze)      TARGET_HAS_JIT=0
5383  ;;
5384     NVPTX)       TARGET_HAS_JIT=0
5385  ;;
5386     *)           TARGET_HAS_JIT=0
5387  ;;
5388   esac
5389 fi
5390
5391 # Check whether --enable-docs was given.
5392 if test "${enable_docs+set}" = set; then
5393   enableval=$enable_docs;
5394 else
5395   enableval=default
5396 fi
5397
5398 case "$enableval" in
5399   yes) ENABLE_DOCS=1
5400  ;;
5401   no)  ENABLE_DOCS=0
5402  ;;
5403   default) ENABLE_DOCS=1
5404  ;;
5405   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5406 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5407    { (exit 1); exit 1; }; } ;;
5408 esac
5409
5410 # Check whether --enable-doxygen was given.
5411 if test "${enable_doxygen+set}" = set; then
5412   enableval=$enable_doxygen;
5413 else
5414   enableval=default
5415 fi
5416
5417 case "$enableval" in
5418   yes) ENABLE_DOXYGEN=1
5419  ;;
5420   no)  ENABLE_DOXYGEN=0
5421  ;;
5422   default) ENABLE_DOXYGEN=0
5423  ;;
5424   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5425 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5426    { (exit 1); exit 1; }; } ;;
5427 esac
5428
5429 # Check whether --enable-threads was given.
5430 if test "${enable_threads+set}" = set; then
5431   enableval=$enable_threads;
5432 else
5433   enableval=default
5434 fi
5435
5436 case "$enableval" in
5437   yes) LLVM_ENABLE_THREADS=1
5438  ;;
5439   no)  LLVM_ENABLE_THREADS=0
5440  ;;
5441   default) LLVM_ENABLE_THREADS=1
5442  ;;
5443   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5444 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5445    { (exit 1); exit 1; }; } ;;
5446 esac
5447
5448 cat >>confdefs.h <<_ACEOF
5449 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5450 _ACEOF
5451
5452
5453 # Check whether --enable-pthreads was given.
5454 if test "${enable_pthreads+set}" = set; then
5455   enableval=$enable_pthreads;
5456 else
5457   enableval=default
5458 fi
5459
5460 case "$enableval" in
5461   yes) ENABLE_PTHREADS=1
5462  ;;
5463   no)  ENABLE_PTHREADS=0
5464  ;;
5465   default) ENABLE_PTHREADS=1
5466  ;;
5467   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5468 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5469    { (exit 1); exit 1; }; } ;;
5470 esac
5471
5472 # Check whether --enable-pic was given.
5473 if test "${enable_pic+set}" = set; then
5474   enableval=$enable_pic;
5475 else
5476   enableval=default
5477 fi
5478
5479 case "$enableval" in
5480   yes) ENABLE_PIC=1
5481  ;;
5482   no)  ENABLE_PIC=0
5483  ;;
5484   default) ENABLE_PIC=1
5485  ;;
5486   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5487 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5488    { (exit 1); exit 1; }; } ;;
5489 esac
5490
5491 cat >>confdefs.h <<_ACEOF
5492 #define ENABLE_PIC $ENABLE_PIC
5493 _ACEOF
5494
5495
5496 # Check whether --enable-shared was given.
5497 if test "${enable_shared+set}" = set; then
5498   enableval=$enable_shared;
5499 else
5500   enableval=default
5501 fi
5502
5503 case "$enableval" in
5504   yes) ENABLE_SHARED=1
5505  ;;
5506   no)  ENABLE_SHARED=0
5507  ;;
5508   default) ENABLE_SHARED=0
5509  ;;
5510   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5511 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5512    { (exit 1); exit 1; }; } ;;
5513 esac
5514
5515 # Check whether --enable-embed-stdcxx was given.
5516 if test "${enable_embed_stdcxx+set}" = set; then
5517   enableval=$enable_embed_stdcxx;
5518 else
5519   enableval=default
5520 fi
5521
5522 case "$enableval" in
5523   yes) ENABLE_EMBED_STDCXX=1
5524  ;;
5525   no)  ENABLE_EMBED_STDCXX=0
5526  ;;
5527   default) ENABLE_EMBED_STDCXX=0
5528  ;;
5529   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5530 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532 esac
5533
5534 # Check whether --enable-timestamps was given.
5535 if test "${enable_timestamps+set}" = set; then
5536   enableval=$enable_timestamps;
5537 else
5538   enableval=default
5539 fi
5540
5541 case "$enableval" in
5542   yes) ENABLE_TIMESTAMPS=1
5543  ;;
5544   no)  ENABLE_TIMESTAMPS=0
5545  ;;
5546   default) ENABLE_TIMESTAMPS=1
5547  ;;
5548   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5549 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553 cat >>confdefs.h <<_ACEOF
5554 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5555 _ACEOF
5556
5557
5558
5559 # Check whether --enable-backtraces was given.
5560 if test "${enable_backtraces+set}" = set; then
5561   enableval=$enable_backtraces;
5562 else
5563   enableval=default
5564 fi
5565
5566 case "$enableval" in
5567   yes) ENABLE_BACKTRACES=1
5568  ;;
5569   no)  ENABLE_BACKTRACES=0
5570  ;;
5571   default) ENABLE_BACKTRACES=1
5572  ;;
5573   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5575    { (exit 1); exit 1; }; } ;;
5576 esac
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5580 _ACEOF
5581
5582
5583 TARGETS_TO_BUILD=""
5584 # Check whether --enable-targets was given.
5585 if test "${enable_targets+set}" = set; then
5586   enableval=$enable_targets;
5587 else
5588   enableval=all
5589 fi
5590
5591 if test "$enableval" = host-only ; then
5592   enableval=host
5593 fi
5594 case "$enableval" in
5595   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5596   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5597       case "$a_target" in
5598         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5599         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5600         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5601         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5602         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5603         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5604         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5605         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5606         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5607         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5608         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5609         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5610         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5611         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5612         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5613         host) case "$llvm_cv_target_arch" in
5614             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5615             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5616             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5617             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5618             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5619             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5620             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5621             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5622             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5623             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5624             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5625             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5626 echo "$as_me: error: Can not set target to build" >&2;}
5627    { (exit 1); exit 1; }; } ;;
5628           esac ;;
5629         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5630 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5631    { (exit 1); exit 1; }; } ;;
5632       esac
5633   done
5634   ;;
5635 esac
5636
5637 # Check whether --enable-experimental-targets was given.
5638 if test "${enable_experimental_targets+set}" = set; then
5639   enableval=$enable_experimental_targets;
5640 else
5641   enableval=disable
5642 fi
5643
5644
5645 if test ${enableval} != "disable"
5646 then
5647   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5648 fi
5649
5650 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5651
5652
5653 for a_target in $TARGETS_TO_BUILD; do
5654   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5655
5656 cat >>confdefs.h <<_ACEOF
5657 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5658 _ACEOF
5659
5660     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5661     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5662     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5663     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5664     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5665       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5666     fi
5667     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5668       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5669     fi
5670
5671 cat >>confdefs.h <<_ACEOF
5672 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5673 _ACEOF
5674
5675
5676 cat >>confdefs.h <<_ACEOF
5677 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5678 _ACEOF
5679
5680
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5683 _ACEOF
5684
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5688 _ACEOF
5689
5690     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5694 _ACEOF
5695
5696     fi
5697     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5701 _ACEOF
5702
5703     fi
5704   fi
5705 done
5706
5707 LLVM_ENUM_TARGETS=""
5708 LLVM_ENUM_ASM_PRINTERS=""
5709 LLVM_ENUM_ASM_PARSERS=""
5710 LLVM_ENUM_DISASSEMBLERS=""
5711 for target_to_build in $TARGETS_TO_BUILD; do
5712   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5713   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5714     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5715   fi
5716   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5717     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5718   fi
5719   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5720     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5721   fi
5722 done
5723
5724
5725
5726
5727
5728
5729 # Check whether --with-optimize-option was given.
5730 if test "${with_optimize_option+set}" = set; then
5731   withval=$with_optimize_option;
5732 else
5733   withval=default
5734 fi
5735
5736 { echo "$as_me:$LINENO: checking optimization flags" >&5
5737 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5738 case "$withval" in
5739   default)
5740     case "$llvm_cv_os_type" in
5741     FreeBSD) optimize_option=-O2 ;;
5742     MingW) optimize_option=-O2 ;;
5743     *)     optimize_option=-O3 ;;
5744     esac ;;
5745   *) optimize_option="$withval" ;;
5746 esac
5747 OPTIMIZE_OPTION=$optimize_option
5748
5749 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5750 echo "${ECHO_T}$optimize_option" >&6; }
5751
5752
5753 # Check whether --with-extra-options was given.
5754 if test "${with_extra_options+set}" = set; then
5755   withval=$with_extra_options;
5756 else
5757   withval=default
5758 fi
5759
5760 case "$withval" in
5761   default) EXTRA_OPTIONS= ;;
5762   *) EXTRA_OPTIONS=$withval ;;
5763 esac
5764 EXTRA_OPTIONS=$EXTRA_OPTIONS
5765
5766
5767
5768 # Check whether --with-extra-ld-options was given.
5769 if test "${with_extra_ld_options+set}" = set; then
5770   withval=$with_extra_ld_options;
5771 else
5772   withval=default
5773 fi
5774
5775 case "$withval" in
5776   default) EXTRA_LD_OPTIONS= ;;
5777   *) EXTRA_LD_OPTIONS=$withval ;;
5778 esac
5779 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5780
5781
5782 # Check whether --enable-bindings was given.
5783 if test "${enable_bindings+set}" = set; then
5784   enableval=$enable_bindings;
5785 else
5786   enableval=default
5787 fi
5788
5789 BINDINGS_TO_BUILD=""
5790 case "$enableval" in
5791   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5792   all ) BINDINGS_TO_BUILD="ocaml" ;;
5793   none | no) BINDINGS_TO_BUILD="" ;;
5794   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5795       case "$a_binding" in
5796         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5797         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5798 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5799    { (exit 1); exit 1; }; } ;;
5800       esac
5801   done
5802   ;;
5803 esac
5804
5805
5806 # Check whether --with-ocaml-libdir was given.
5807 if test "${with_ocaml_libdir+set}" = set; then
5808   withval=$with_ocaml_libdir;
5809 else
5810   withval=auto
5811 fi
5812
5813 case "$withval" in
5814   auto) with_ocaml_libdir="$withval" ;;
5815   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5816   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5817 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5818    { (exit 1); exit 1; }; } ;;
5819 esac
5820
5821
5822 # Check whether --with-clang-srcdir was given.
5823 if test "${with_clang_srcdir+set}" = set; then
5824   withval=$with_clang_srcdir;
5825 else
5826   withval="-"
5827 fi
5828
5829 case "$withval" in
5830   -) clang_src_root="" ;;
5831   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5832   *) clang_src_root="$ac_pwd/$withval" ;;
5833 esac
5834 CLANG_SRC_ROOT=$clang_src_root
5835
5836
5837
5838 # Check whether --with-clang-resource-dir was given.
5839 if test "${with_clang_resource_dir+set}" = set; then
5840   withval=$with_clang_resource_dir;
5841 else
5842   withval=""
5843 fi
5844
5845
5846 cat >>confdefs.h <<_ACEOF
5847 #define CLANG_RESOURCE_DIR "$withval"
5848 _ACEOF
5849
5850
5851
5852 # Check whether --with-c-include-dirs was given.
5853 if test "${with_c_include_dirs+set}" = set; then
5854   withval=$with_c_include_dirs;
5855 else
5856   withval=""
5857 fi
5858
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define C_INCLUDE_DIRS "$withval"
5862 _ACEOF
5863
5864
5865 # Clang normally uses the system c++ headers and libraries. With this option,
5866 # clang will use the ones provided by a gcc installation instead. This option should
5867 # be passed the same value that was used with --prefix when configuring gcc.
5868
5869 # Check whether --with-gcc-toolchain was given.
5870 if test "${with_gcc_toolchain+set}" = set; then
5871   withval=$with_gcc_toolchain;
5872 else
5873   withval=""
5874 fi
5875
5876
5877 cat >>confdefs.h <<_ACEOF
5878 #define GCC_INSTALL_PREFIX "$withval"
5879 _ACEOF
5880
5881
5882
5883 # Check whether --with-default-sysroot was given.
5884 if test "${with_default_sysroot+set}" = set; then
5885   withval=$with_default_sysroot;
5886 else
5887   withval=""
5888 fi
5889
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define DEFAULT_SYSROOT "$withval"
5893 _ACEOF
5894
5895
5896
5897 # Check whether --with-binutils-include was given.
5898 if test "${with_binutils_include+set}" = set; then
5899   withval=$with_binutils_include;
5900 else
5901   withval=default
5902 fi
5903
5904 case "$withval" in
5905   default) WITH_BINUTILS_INCDIR=default ;;
5906   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5907   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5908 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5909    { (exit 1); exit 1; }; } ;;
5910 esac
5911 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5912   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5913
5914   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5915      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5916      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5917 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5918    { (exit 1); exit 1; }; };
5919   fi
5920 fi
5921
5922
5923 # Check whether --with-bug-report-url was given.
5924 if test "${with_bug_report_url+set}" = set; then
5925   withval=$with_bug_report_url;
5926 else
5927   withval="http://llvm.org/bugs/"
5928 fi
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define BUG_REPORT_URL "$withval"
5933 _ACEOF
5934
5935
5936 # Check whether --enable-libffi was given.
5937 if test "${enable_libffi+set}" = set; then
5938   enableval=$enable_libffi; case "$enableval" in
5939     yes) llvm_cv_enable_libffi="yes" ;;
5940     no)  llvm_cv_enable_libffi="no"  ;;
5941     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5942 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5943    { (exit 1); exit 1; }; } ;;
5944   esac
5945 else
5946   llvm_cv_enable_libffi=no
5947 fi
5948
5949
5950
5951 # Check whether --with-internal-prefix was given.
5952 if test "${with_internal_prefix+set}" = set; then
5953   withval=$with_internal_prefix;
5954 else
5955   withval=""
5956 fi
5957
5958 INTERNAL_PREFIX=$withval
5959
5960
5961
5962 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5963 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5964 if test "${lt_cv_path_NM+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   if test -n "$NM"; then
5968   # Let the user override the test.
5969   lt_cv_path_NM="$NM"
5970 else
5971   lt_nm_to_check="${ac_tool_prefix}nm"
5972   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973     lt_nm_to_check="$lt_nm_to_check nm"
5974   fi
5975   for lt_tmp_nm in $lt_nm_to_check; do
5976     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5978       IFS="$lt_save_ifs"
5979       test -z "$ac_dir" && ac_dir=.
5980       tmp_nm="$ac_dir/$lt_tmp_nm"
5981       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982         # Check to see if the nm accepts a BSD-compat flag.
5983         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984         #   nm: unknown option "B" ignored
5985         # Tru64's nm complains that /dev/null is an invalid object file
5986         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987         */dev/null* | *'Invalid file or object type'*)
5988           lt_cv_path_NM="$tmp_nm -B"
5989           break
5990           ;;
5991         *)
5992           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993           */dev/null*)
5994             lt_cv_path_NM="$tmp_nm -p"
5995             break
5996             ;;
5997           *)
5998             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999             continue # so that we can try to find one that supports BSD flags
6000             ;;
6001           esac
6002           ;;
6003         esac
6004       fi
6005     done
6006     IFS="$lt_save_ifs"
6007   done
6008   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6009 fi
6010 fi
6011 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6012 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6013 NM="$lt_cv_path_NM"
6014
6015
6016
6017 { echo "$as_me:$LINENO: checking for GNU make" >&5
6018 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6019 if test "${llvm_cv_gnu_make_command+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   llvm_cv_gnu_make_command=''
6023  for a in "$MAKE" make gmake gnumake ; do
6024   if test -z "$a" ; then continue ; fi ;
6025   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6026   then
6027    llvm_cv_gnu_make_command=$a ;
6028    break;
6029   fi
6030  done
6031 fi
6032 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6033 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6034  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6035    ifGNUmake='' ;
6036  else
6037    ifGNUmake='#' ;
6038    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6039 echo "${ECHO_T}\"Not found\"" >&6; };
6040  fi
6041
6042
6043 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6044 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6045 LN_S=$as_ln_s
6046 if test "$LN_S" = "ln -s"; then
6047   { echo "$as_me:$LINENO: result: yes" >&5
6048 echo "${ECHO_T}yes" >&6; }
6049 else
6050   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6051 echo "${ECHO_T}no, using $LN_S" >&6; }
6052 fi
6053
6054 # Extract the first word of "cmp", so it can be a program name with args.
6055 set dummy cmp; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_CMP+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   case $CMP in
6062   [\\/]* | ?:[\\/]*)
6063   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6064   ;;
6065   *)
6066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071   for ac_exec_ext in '' $ac_executable_extensions; do
6072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6082   ;;
6083 esac
6084 fi
6085 CMP=$ac_cv_path_CMP
6086 if test -n "$CMP"; then
6087   { echo "$as_me:$LINENO: result: $CMP" >&5
6088 echo "${ECHO_T}$CMP" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095 # Extract the first word of "cp", so it can be a program name with args.
6096 set dummy cp; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_path_CP+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   case $CP in
6103   [\\/]* | ?:[\\/]*)
6104   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6105   ;;
6106   *)
6107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112   for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6123   ;;
6124 esac
6125 fi
6126 CP=$ac_cv_path_CP
6127 if test -n "$CP"; then
6128   { echo "$as_me:$LINENO: result: $CP" >&5
6129 echo "${ECHO_T}$CP" >&6; }
6130 else
6131   { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6133 fi
6134
6135
6136 # Extract the first word of "date", so it can be a program name with args.
6137 set dummy date; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_path_DATE+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   case $DATE in
6144   [\\/]* | ?:[\\/]*)
6145   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6146   ;;
6147   *)
6148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153   for ac_exec_ext in '' $ac_executable_extensions; do
6154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6164   ;;
6165 esac
6166 fi
6167 DATE=$ac_cv_path_DATE
6168 if test -n "$DATE"; then
6169   { echo "$as_me:$LINENO: result: $DATE" >&5
6170 echo "${ECHO_T}$DATE" >&6; }
6171 else
6172   { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 fi
6175
6176
6177 # Extract the first word of "find", so it can be a program name with args.
6178 set dummy find; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_FIND+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   case $FIND in
6185   [\\/]* | ?:[\\/]*)
6186   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6187   ;;
6188   *)
6189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194   for ac_exec_ext in '' $ac_executable_extensions; do
6195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6205   ;;
6206 esac
6207 fi
6208 FIND=$ac_cv_path_FIND
6209 if test -n "$FIND"; then
6210   { echo "$as_me:$LINENO: result: $FIND" >&5
6211 echo "${ECHO_T}$FIND" >&6; }
6212 else
6213   { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6215 fi
6216
6217
6218 # Extract the first word of "grep", so it can be a program name with args.
6219 set dummy grep; ac_word=$2
6220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222 if test "${ac_cv_path_GREP+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   case $GREP in
6226   [\\/]* | ?:[\\/]*)
6227   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6228   ;;
6229   *)
6230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235   for ac_exec_ext in '' $ac_executable_extensions; do
6236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6237     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6246   ;;
6247 esac
6248 fi
6249 GREP=$ac_cv_path_GREP
6250 if test -n "$GREP"; then
6251   { echo "$as_me:$LINENO: result: $GREP" >&5
6252 echo "${ECHO_T}$GREP" >&6; }
6253 else
6254   { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6256 fi
6257
6258
6259 # Extract the first word of "mkdir", so it can be a program name with args.
6260 set dummy mkdir; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_MKDIR+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   case $MKDIR in
6267   [\\/]* | ?:[\\/]*)
6268   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6269   ;;
6270   *)
6271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276   for ac_exec_ext in '' $ac_executable_extensions; do
6277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6287   ;;
6288 esac
6289 fi
6290 MKDIR=$ac_cv_path_MKDIR
6291 if test -n "$MKDIR"; then
6292   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6293 echo "${ECHO_T}$MKDIR" >&6; }
6294 else
6295   { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6297 fi
6298
6299
6300 # Extract the first word of "mv", so it can be a program name with args.
6301 set dummy mv; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_MV+set}" = set; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   case $MV in
6308   [\\/]* | ?:[\\/]*)
6309   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6310   ;;
6311   *)
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6328   ;;
6329 esac
6330 fi
6331 MV=$ac_cv_path_MV
6332 if test -n "$MV"; then
6333   { echo "$as_me:$LINENO: result: $MV" >&5
6334 echo "${ECHO_T}$MV" >&6; }
6335 else
6336   { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340
6341 if test -n "$ac_tool_prefix"; then
6342   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_RANLIB+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   if test -n "$RANLIB"; then
6350   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 RANLIB=$ac_cv_prog_RANLIB
6370 if test -n "$RANLIB"; then
6371   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6372 echo "${ECHO_T}$RANLIB" >&6; }
6373 else
6374   { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6376 fi
6377
6378
6379 fi
6380 if test -z "$ac_cv_prog_RANLIB"; then
6381   ac_ct_RANLIB=$RANLIB
6382   # Extract the first word of "ranlib", so it can be a program name with args.
6383 set dummy ranlib; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test -n "$ac_ct_RANLIB"; then
6390   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_prog_ac_ct_RANLIB="ranlib"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410 if test -n "$ac_ct_RANLIB"; then
6411   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6412 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6416 fi
6417
6418   if test "x$ac_ct_RANLIB" = x; then
6419     RANLIB=":"
6420   else
6421     case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet.  If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&5
6426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6427 whose name does not start with the host triplet.  If you think this
6428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431     RANLIB=$ac_ct_RANLIB
6432   fi
6433 else
6434   RANLIB="$ac_cv_prog_RANLIB"
6435 fi
6436
6437 if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}ar; ac_word=$2
6440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442 if test "${ac_cv_prog_AR+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   if test -n "$AR"; then
6446   ac_cv_prog_AR="$AR" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_AR="${ac_tool_prefix}ar"
6456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 AR=$ac_cv_prog_AR
6466 if test -n "$AR"; then
6467   { echo "$as_me:$LINENO: result: $AR" >&5
6468 echo "${ECHO_T}$AR" >&6; }
6469 else
6470   { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_AR"; then
6477   ac_ct_AR=$AR
6478   # Extract the first word of "ar", so it can be a program name with args.
6479 set dummy ar; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test -n "$ac_ct_AR"; then
6486   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493   for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_ac_ct_AR="ar"
6496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6506 if test -n "$ac_ct_AR"; then
6507   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6508 echo "${ECHO_T}$ac_ct_AR" >&6; }
6509 else
6510   { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_AR" = x; then
6515     AR="false"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet.  If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&5
6522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6523 whose name does not start with the host triplet.  If you think this
6524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527     AR=$ac_ct_AR
6528   fi
6529 else
6530   AR="$ac_cv_prog_AR"
6531 fi
6532
6533 # Extract the first word of "rm", so it can be a program name with args.
6534 set dummy rm; ac_word=$2
6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_RM+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   case $RM in
6541   [\\/]* | ?:[\\/]*)
6542   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6543   ;;
6544   *)
6545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550   for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6561   ;;
6562 esac
6563 fi
6564 RM=$ac_cv_path_RM
6565 if test -n "$RM"; then
6566   { echo "$as_me:$LINENO: result: $RM" >&5
6567 echo "${ECHO_T}$RM" >&6; }
6568 else
6569   { echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6; }
6571 fi
6572
6573
6574 # Extract the first word of "sed", so it can be a program name with args.
6575 set dummy sed; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_path_SED+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   case $SED in
6582   [\\/]* | ?:[\\/]*)
6583   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6584   ;;
6585   *)
6586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589   IFS=$as_save_IFS
6590   test -z "$as_dir" && as_dir=.
6591   for ac_exec_ext in '' $ac_executable_extensions; do
6592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595     break 2
6596   fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6602   ;;
6603 esac
6604 fi
6605 SED=$ac_cv_path_SED
6606 if test -n "$SED"; then
6607   { echo "$as_me:$LINENO: result: $SED" >&5
6608 echo "${ECHO_T}$SED" >&6; }
6609 else
6610   { echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6; }
6612 fi
6613
6614
6615 # Extract the first word of "tar", so it can be a program name with args.
6616 set dummy tar; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_TAR+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   case $TAR in
6623   [\\/]* | ?:[\\/]*)
6624   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6625   ;;
6626   *)
6627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6643   ;;
6644 esac
6645 fi
6646 TAR=$ac_cv_path_TAR
6647 if test -n "$TAR"; then
6648   { echo "$as_me:$LINENO: result: $TAR" >&5
6649 echo "${ECHO_T}$TAR" >&6; }
6650 else
6651   { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6653 fi
6654
6655
6656 # Extract the first word of "pwd", so it can be a program name with args.
6657 set dummy pwd; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_BINPWD+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   case $BINPWD in
6664   [\\/]* | ?:[\\/]*)
6665   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6666   ;;
6667   *)
6668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673   for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6684   ;;
6685 esac
6686 fi
6687 BINPWD=$ac_cv_path_BINPWD
6688 if test -n "$BINPWD"; then
6689   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6690 echo "${ECHO_T}$BINPWD" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696
6697
6698 # Extract the first word of "Graphviz", so it can be a program name with args.
6699 set dummy Graphviz; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   case $GRAPHVIZ in
6706   [\\/]* | ?:[\\/]*)
6707   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6708   ;;
6709   *)
6710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6726   ;;
6727 esac
6728 fi
6729 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6730 if test -n "$GRAPHVIZ"; then
6731   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6732 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6740
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_GRAPHVIZ 1
6743 _ACEOF
6744
6745     if test "$llvm_cv_os_type" = "MingW" ; then
6746     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747   fi
6748
6749 cat >>confdefs.h <<_ACEOF
6750 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6751 _ACEOF
6752
6753 fi
6754 # Extract the first word of "dot", so it can be a program name with args.
6755 set dummy dot; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_DOT+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   case $DOT in
6762   [\\/]* | ?:[\\/]*)
6763   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6764   ;;
6765   *)
6766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6782   ;;
6783 esac
6784 fi
6785 DOT=$ac_cv_path_DOT
6786 if test -n "$DOT"; then
6787   { echo "$as_me:$LINENO: result: $DOT" >&5
6788 echo "${ECHO_T}$DOT" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 if test "$DOT" != "echo dot" ; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_DOT 1
6799 _ACEOF
6800
6801     if test "$llvm_cv_os_type" = "MingW" ; then
6802     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803   fi
6804
6805 cat >>confdefs.h <<_ACEOF
6806 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6807 _ACEOF
6808
6809 fi
6810 # Extract the first word of "fdp", so it can be a program name with args.
6811 set dummy fdp; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_FDP+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   case $FDP in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6838   ;;
6839 esac
6840 fi
6841 FDP=$ac_cv_path_FDP
6842 if test -n "$FDP"; then
6843   { echo "$as_me:$LINENO: result: $FDP" >&5
6844 echo "${ECHO_T}$FDP" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 if test "$FDP" != "echo fdp" ; then
6852
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_FDP 1
6855 _ACEOF
6856
6857     if test "$llvm_cv_os_type" = "MingW" ; then
6858     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859   fi
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6863 _ACEOF
6864
6865 fi
6866 # Extract the first word of "neato", so it can be a program name with args.
6867 set dummy neato; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_NEATO+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   case $NEATO in
6874   [\\/]* | ?:[\\/]*)
6875   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6876   ;;
6877   *)
6878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6894   ;;
6895 esac
6896 fi
6897 NEATO=$ac_cv_path_NEATO
6898 if test -n "$NEATO"; then
6899   { echo "$as_me:$LINENO: result: $NEATO" >&5
6900 echo "${ECHO_T}$NEATO" >&6; }
6901 else
6902   { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6905
6906
6907 if test "$NEATO" != "echo neato" ; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_NEATO 1
6911 _ACEOF
6912
6913     if test "$llvm_cv_os_type" = "MingW" ; then
6914     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915   fi
6916
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6919 _ACEOF
6920
6921 fi
6922 # Extract the first word of "twopi", so it can be a program name with args.
6923 set dummy twopi; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_TWOPI+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   case $TWOPI in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6950   ;;
6951 esac
6952 fi
6953 TWOPI=$ac_cv_path_TWOPI
6954 if test -n "$TWOPI"; then
6955   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6956 echo "${ECHO_T}$TWOPI" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 if test "$TWOPI" != "echo twopi" ; then
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_TWOPI 1
6967 _ACEOF
6968
6969     if test "$llvm_cv_os_type" = "MingW" ; then
6970     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971   fi
6972
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6975 _ACEOF
6976
6977 fi
6978 # Extract the first word of "circo", so it can be a program name with args.
6979 set dummy circo; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_CIRCO+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $CIRCO in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7006   ;;
7007 esac
7008 fi
7009 CIRCO=$ac_cv_path_CIRCO
7010 if test -n "$CIRCO"; then
7011   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7012 echo "${ECHO_T}$CIRCO" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 if test "$CIRCO" != "echo circo" ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_CIRCO 1
7023 _ACEOF
7024
7025     if test "$llvm_cv_os_type" = "MingW" ; then
7026     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027   fi
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7031 _ACEOF
7032
7033 fi
7034 for ac_prog in gv gsview32
7035 do
7036   # Extract the first word of "$ac_prog", so it can be a program name with args.
7037 set dummy $ac_prog; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_GV+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   case $GV in
7044   [\\/]* | ?:[\\/]*)
7045   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7046   ;;
7047   *)
7048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063   ;;
7064 esac
7065 fi
7066 GV=$ac_cv_path_GV
7067 if test -n "$GV"; then
7068   { echo "$as_me:$LINENO: result: $GV" >&5
7069 echo "${ECHO_T}$GV" >&6; }
7070 else
7071   { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7073 fi
7074
7075
7076   test -n "$GV" && break
7077 done
7078 test -n "$GV" || GV="echo gv"
7079
7080 if test "$GV" != "echo gv" ; then
7081
7082 cat >>confdefs.h <<\_ACEOF
7083 #define HAVE_GV 1
7084 _ACEOF
7085
7086     if test "$llvm_cv_os_type" = "MingW" ; then
7087     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7088   fi
7089
7090 cat >>confdefs.h <<_ACEOF
7091 #define LLVM_PATH_GV "$GV${EXEEXT}"
7092 _ACEOF
7093
7094 fi
7095 # Extract the first word of "dotty", so it can be a program name with args.
7096 set dummy dotty; ac_word=$2
7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099 if test "${ac_cv_path_DOTTY+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   case $DOTTY in
7103   [\\/]* | ?:[\\/]*)
7104   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7105   ;;
7106   *)
7107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112   for ac_exec_ext in '' $ac_executable_extensions; do
7113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7114     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7123   ;;
7124 esac
7125 fi
7126 DOTTY=$ac_cv_path_DOTTY
7127 if test -n "$DOTTY"; then
7128   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7129 echo "${ECHO_T}$DOTTY" >&6; }
7130 else
7131   { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7133 fi
7134
7135
7136 if test "$DOTTY" != "echo dotty" ; then
7137
7138 cat >>confdefs.h <<\_ACEOF
7139 #define HAVE_DOTTY 1
7140 _ACEOF
7141
7142     if test "$llvm_cv_os_type" = "MingW" ; then
7143     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7144   fi
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7148 _ACEOF
7149
7150 fi
7151 # Extract the first word of "xdot.py", so it can be a program name with args.
7152 set dummy xdot.py; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   case $XDOT_PY in
7159   [\\/]* | ?:[\\/]*)
7160   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7161   ;;
7162   *)
7163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168   for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7179   ;;
7180 esac
7181 fi
7182 XDOT_PY=$ac_cv_path_XDOT_PY
7183 if test -n "$XDOT_PY"; then
7184   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7185 echo "${ECHO_T}$XDOT_PY" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191
7192 if test "$XDOT_PY" != "echo xdot.py" ; then
7193
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_XDOT_PY 1
7196 _ACEOF
7197
7198     if test "$llvm_cv_os_type" = "MingW" ; then
7199     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200   fi
7201
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7204 _ACEOF
7205
7206 fi
7207
7208 # Find a good install program.  We prefer a C program (faster),
7209 # so one script is as good as another.  But avoid the broken or
7210 # incompatible versions:
7211 # SysV /etc/install, /usr/sbin/install
7212 # SunOS /usr/etc/install
7213 # IRIX /sbin/install
7214 # AIX /bin/install
7215 # AmigaOS /C/install, which installs bootblocks on floppy discs
7216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # OS/2's system install, which has a completely different semantic
7220 # ./install, which can be erroneously created by make from ./install.sh.
7221 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7222 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7223 if test -z "$INSTALL"; then
7224 if test "${ac_cv_path_install+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232   # Account for people who put trailing slashes in PATH elements.
7233 case $as_dir/ in
7234   ./ | .// | /cC/* | \
7235   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7236   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7237   /usr/ucb/* ) ;;
7238   *)
7239     # OSF1 and SCO ODT 3.0 have their own names for install.
7240     # Don't use installbsd from OSF since it installs stuff as root
7241     # by default.
7242     for ac_prog in ginstall scoinst install; do
7243       for ac_exec_ext in '' $ac_executable_extensions; do
7244         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7245           if test $ac_prog = install &&
7246             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7247             # AIX install.  It has an incompatible calling convention.
7248             :
7249           elif test $ac_prog = install &&
7250             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7251             # program-specific install script used by HP pwplus--don't use.
7252             :
7253           else
7254             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7255             break 3
7256           fi
7257         fi
7258       done
7259     done
7260     ;;
7261 esac
7262 done
7263 IFS=$as_save_IFS
7264
7265
7266 fi
7267   if test "${ac_cv_path_install+set}" = set; then
7268     INSTALL=$ac_cv_path_install
7269   else
7270     # As a last resort, use the slow shell script.  Don't cache a
7271     # value for INSTALL within a source directory, because that will
7272     # break other packages using the cache if that directory is
7273     # removed, or if the value is a relative name.
7274     INSTALL=$ac_install_sh
7275   fi
7276 fi
7277 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7278 echo "${ECHO_T}$INSTALL" >&6; }
7279
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281 # It thinks the first close brace ends the variable substitution.
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7283
7284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7285
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7287
7288 case "$INSTALL" in
7289  [\\/$]* | ?:[\\/]* ) ;;
7290  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7291 esac
7292
7293 # Extract the first word of "bzip2", so it can be a program name with args.
7294 set dummy bzip2; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_BZIP2+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   case $BZIP2 in
7301   [\\/]* | ?:[\\/]*)
7302   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7303   ;;
7304   *)
7305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310   for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320   ;;
7321 esac
7322 fi
7323 BZIP2=$ac_cv_path_BZIP2
7324 if test -n "$BZIP2"; then
7325   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7326 echo "${ECHO_T}$BZIP2" >&6; }
7327 else
7328   { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7330 fi
7331
7332
7333 # Extract the first word of "cat", so it can be a program name with args.
7334 set dummy cat; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_CAT+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   case $CAT in
7341   [\\/]* | ?:[\\/]*)
7342   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7343   ;;
7344   *)
7345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350   for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360   ;;
7361 esac
7362 fi
7363 CAT=$ac_cv_path_CAT
7364 if test -n "$CAT"; then
7365   { echo "$as_me:$LINENO: result: $CAT" >&5
7366 echo "${ECHO_T}$CAT" >&6; }
7367 else
7368   { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7371
7372
7373 # Extract the first word of "doxygen", so it can be a program name with args.
7374 set dummy doxygen; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   case $DOXYGEN in
7381   [\\/]* | ?:[\\/]*)
7382   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390   for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400   ;;
7401 esac
7402 fi
7403 DOXYGEN=$ac_cv_path_DOXYGEN
7404 if test -n "$DOXYGEN"; then
7405   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7406 echo "${ECHO_T}$DOXYGEN" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7411
7412
7413 # Extract the first word of "groff", so it can be a program name with args.
7414 set dummy groff; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_GROFF+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   case $GROFF in
7421   [\\/]* | ?:[\\/]*)
7422   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7423   ;;
7424   *)
7425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440   ;;
7441 esac
7442 fi
7443 GROFF=$ac_cv_path_GROFF
7444 if test -n "$GROFF"; then
7445   { echo "$as_me:$LINENO: result: $GROFF" >&5
7446 echo "${ECHO_T}$GROFF" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 # Extract the first word of "gzip", so it can be a program name with args.
7454 set dummy gzip; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   case $GZIPBIN in
7461   [\\/]* | ?:[\\/]*)
7462   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7463   ;;
7464   *)
7465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480   ;;
7481 esac
7482 fi
7483 GZIPBIN=$ac_cv_path_GZIPBIN
7484 if test -n "$GZIPBIN"; then
7485   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7486 echo "${ECHO_T}$GZIPBIN" >&6; }
7487 else
7488   { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7490 fi
7491
7492
7493 # Extract the first word of "pdfroff", so it can be a program name with args.
7494 set dummy pdfroff; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_PDFROFF+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   case $PDFROFF in
7501   [\\/]* | ?:[\\/]*)
7502   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7503   ;;
7504   *)
7505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520   ;;
7521 esac
7522 fi
7523 PDFROFF=$ac_cv_path_PDFROFF
7524 if test -n "$PDFROFF"; then
7525   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7526 echo "${ECHO_T}$PDFROFF" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533 # Extract the first word of "zip", so it can be a program name with args.
7534 set dummy zip; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_ZIP+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   case $ZIP in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560   ;;
7561 esac
7562 fi
7563 ZIP=$ac_cv_path_ZIP
7564 if test -n "$ZIP"; then
7565   { echo "$as_me:$LINENO: result: $ZIP" >&5
7566 echo "${ECHO_T}$ZIP" >&6; }
7567 else
7568   { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7570 fi
7571
7572
7573 for ac_prog in ocamlc
7574 do
7575   # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_OCAMLC+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   case $OCAMLC in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592   for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602   ;;
7603 esac
7604 fi
7605 OCAMLC=$ac_cv_path_OCAMLC
7606 if test -n "$OCAMLC"; then
7607   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7608 echo "${ECHO_T}$OCAMLC" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7613
7614
7615   test -n "$OCAMLC" && break
7616 done
7617
7618 for ac_prog in ocamlopt
7619 do
7620   # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   case $OCAMLOPT in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637   for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647   ;;
7648 esac
7649 fi
7650 OCAMLOPT=$ac_cv_path_OCAMLOPT
7651 if test -n "$OCAMLOPT"; then
7652   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7653 echo "${ECHO_T}$OCAMLOPT" >&6; }
7654 else
7655   { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7657 fi
7658
7659
7660   test -n "$OCAMLOPT" && break
7661 done
7662
7663 for ac_prog in ocamldep
7664 do
7665   # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   case $OCAMLDEP in
7673   [\\/]* | ?:[\\/]*)
7674   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7675   ;;
7676   *)
7677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682   for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692   ;;
7693 esac
7694 fi
7695 OCAMLDEP=$ac_cv_path_OCAMLDEP
7696 if test -n "$OCAMLDEP"; then
7697   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7698 echo "${ECHO_T}$OCAMLDEP" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705   test -n "$OCAMLDEP" && break
7706 done
7707
7708 for ac_prog in ocamldoc
7709 do
7710   # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   case $OCAMLDOC in
7718   [\\/]* | ?:[\\/]*)
7719   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7720   ;;
7721   *)
7722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725   IFS=$as_save_IFS
7726   test -z "$as_dir" && as_dir=.
7727   for ac_exec_ext in '' $ac_executable_extensions; do
7728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7729     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731     break 2
7732   fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737   ;;
7738 esac
7739 fi
7740 OCAMLDOC=$ac_cv_path_OCAMLDOC
7741 if test -n "$OCAMLDOC"; then
7742   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7743 echo "${ECHO_T}$OCAMLDOC" >&6; }
7744 else
7745   { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7747 fi
7748
7749
7750   test -n "$OCAMLDOC" && break
7751 done
7752
7753 for ac_prog in gas as
7754 do
7755   # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759 if test "${ac_cv_path_GAS+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   case $GAS in
7763   [\\/]* | ?:[\\/]*)
7764   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7765   ;;
7766   *)
7767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772   for ac_exec_ext in '' $ac_executable_extensions; do
7773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7774     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782   ;;
7783 esac
7784 fi
7785 GAS=$ac_cv_path_GAS
7786 if test -n "$GAS"; then
7787   { echo "$as_me:$LINENO: result: $GAS" >&5
7788 echo "${ECHO_T}$GAS" >&6; }
7789 else
7790   { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7792 fi
7793
7794
7795   test -n "$GAS" && break
7796 done
7797
7798
7799 { echo "$as_me:$LINENO: checking for linker version" >&5
7800 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7801 if test "${llvm_cv_link_version+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804
7805    version_string="$(ld -v 2>&1 | head -1)"
7806
7807    # Check for ld64.
7808    if (echo "$version_string" | grep -q "ld64"); then
7809      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7810    else
7811      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7812    fi
7813
7814 fi
7815 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7816 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7817
7818 cat >>confdefs.h <<_ACEOF
7819 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7820 _ACEOF
7821
7822
7823
7824 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7825 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7826 if test "${llvm_cv_link_use_r+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829    ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835   oldcflags="$CFLAGS"
7836   CFLAGS="$CFLAGS -Wl,-R."
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } &&
7866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867   { (case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872   (eval "$ac_try") 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; } &&
7876          { ac_try='test -s conftest$ac_exeext'
7877   { (case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_try") 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   llvm_cv_link_use_r=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891         llvm_cv_link_use_r=no
7892 fi
7893
7894 rm -f core conftest.err conftest.$ac_objext \
7895       conftest$ac_exeext conftest.$ac_ext
7896   CFLAGS="$oldcflags"
7897   ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904 fi
7905 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7906 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7907 if test "$llvm_cv_link_use_r" = yes ; then
7908
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LINK_R 1
7911 _ACEOF
7912
7913   fi
7914
7915
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921    ac_ext=c
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927   oldcflags="$CFLAGS"
7928   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935
7936 int
7937 main ()
7938 {
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_link") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959   { (case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_try") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   llvm_cv_link_use_export_dynamic=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         llvm_cv_link_use_export_dynamic=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext \
7987       conftest$ac_exeext conftest.$ac_ext
7988   CFLAGS="$oldcflags"
7989   ac_ext=c
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995
7996 fi
7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7999 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_EXPORT_DYNAMIC 1
8003 _ACEOF
8004
8005   fi
8006
8007
8008 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8009 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8010 if test "${llvm_cv_link_use_version_script+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013    ac_ext=c
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019   oldcflags="$CFLAGS"
8020
8021   # The following code is from the autoconf manual,
8022   # "11.13: Limitations of Usual Tools".
8023   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8024   # Use mktemp if possible; otherwise fall back on mkdir,
8025   # with $RANDOM to make collisions less likely.
8026   : ${TMPDIR=/tmp}
8027   {
8028     tmp=`
8029       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8030     ` &&
8031     test -n "$tmp" && test -d "$tmp"
8032   } || {
8033     tmp=$TMPDIR/foo$$-$RANDOM
8034     (umask 077 && mkdir "$tmp")
8035   } || exit $?
8036
8037   echo "{" > "$tmp/export.map"
8038   echo "  global: main;" >> "$tmp/export.map"
8039   echo "  local: *;" >> "$tmp/export.map"
8040   echo "};" >> "$tmp/export.map"
8041
8042   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049
8050 int
8051 main ()
8052 {
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (ac_try="$ac_link"
8060 case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_link") 2>conftest.er1
8066   ac_status=$?
8067   grep -v '^ *+' conftest.er1 >conftest.err
8068   rm -f conftest.er1
8069   cat conftest.err >&5
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; } &&
8082          { ac_try='test -s conftest$ac_exeext'
8083   { (case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_try") 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   llvm_cv_link_use_version_script=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         llvm_cv_link_use_version_script=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext \
8101       conftest$ac_exeext conftest.$ac_ext
8102   rm "$tmp/export.map"
8103   rmdir "$tmp"
8104   CFLAGS="$oldcflags"
8105   ac_ext=c
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111
8112 fi
8113 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8114 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8115 if test "$llvm_cv_link_use_version_script" = yes ; then
8116   HAVE_LINK_VERSION_SCRIPT=1
8117
8118   fi
8119
8120
8121
8122
8123 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8124 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8125 if test "${ac_cv_c_const+set}" = set; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134
8135 int
8136 main ()
8137 {
8138 /* FIXME: Include the comments suggested by Paul. */
8139 #ifndef __cplusplus
8140   /* Ultrix mips cc rejects this.  */
8141   typedef int charset[2];
8142   const charset x;
8143   /* SunOS 4.1.1 cc rejects this.  */
8144   char const *const *ccp;
8145   char **p;
8146   /* NEC SVR4.0.2 mips cc rejects this.  */
8147   struct point {int x, y;};
8148   static struct point const zero = {0,0};
8149   /* AIX XL C 1.02.0.0 rejects this.
8150      It does not let you subtract one const X* pointer from another in
8151      an arm of an if-expression whose if-part is not a constant
8152      expression */
8153   const char *g = "string";
8154   ccp = &g + (g ? g-g : 0);
8155   /* HPUX 7.0 cc rejects these. */
8156   ++ccp;
8157   p = (char**) ccp;
8158   ccp = (char const *const *) p;
8159   { /* SCO 3.2v4 cc rejects this.  */
8160     char *t;
8161     char const *s = 0 ? (char *) 0 : (char const *) 0;
8162
8163     *t++ = 0;
8164     if (s) return 0;
8165   }
8166   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8167     int x[] = {25, 17};
8168     const int *foo = &x[0];
8169     ++foo;
8170   }
8171   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8172     typedef const int *iptr;
8173     iptr p = 0;
8174     ++p;
8175   }
8176   { /* AIX XL C 1.02.0.0 rejects this saying
8177        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8178     struct s { int j; const int *ap[3]; };
8179     struct s *b; b->j = 5;
8180   }
8181   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8182     const int foo = 10;
8183     if (!foo) return 0;
8184   }
8185   return !x[0] && !zero.x;
8186 #endif
8187
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207   { (case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_try") 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; } &&
8216          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   ac_cv_c_const=yes
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231         ac_cv_c_const=no
8232 fi
8233
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8237 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8238 if test $ac_cv_c_const = no; then
8239
8240 cat >>confdefs.h <<\_ACEOF
8241 #define const
8242 _ACEOF
8243
8244 fi
8245
8246
8247
8248
8249
8250
8251 ac_header_dirent=no
8252 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8253   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8254 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8255 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h.  */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h.  */
8265 #include <sys/types.h>
8266 #include <$ac_hdr>
8267
8268 int
8269 main ()
8270 {
8271 if ((DIR *) 0)
8272 return 0;
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284   (eval "$ac_compile") 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; } &&
8301          { ac_try='test -s conftest.$ac_objext'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   eval "$as_ac_Header=yes"
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316         eval "$as_ac_Header=no"
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 ac_res=`eval echo '${'$as_ac_Header'}'`
8322                { echo "$as_me:$LINENO: result: $ac_res" >&5
8323 echo "${ECHO_T}$ac_res" >&6; }
8324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325   cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 ac_header_dirent=$ac_hdr; break
8330 fi
8331
8332 done
8333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8334 if test $ac_header_dirent = dirent.h; then
8335   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_func_search_save_LIBS=$LIBS
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347
8348 /* Override any GCC internal prototype to avoid an error.
8349    Use char because int might match the return type of a GCC
8350    builtin and then its argument prototype would still apply.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 char opendir ();
8355 int
8356 main ()
8357 {
8358 return opendir ();
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 for ac_lib in '' dir; do
8364   if test -z "$ac_lib"; then
8365     ac_res="none required"
8366   else
8367     ac_res=-l$ac_lib
8368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8369   fi
8370   rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8372 case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_link") 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385   { (case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_try") 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   ac_cv_search_opendir=$ac_res
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409
8410 fi
8411
8412 rm -f core conftest.err conftest.$ac_objext \
8413       conftest$ac_exeext
8414   if test "${ac_cv_search_opendir+set}" = set; then
8415   break
8416 fi
8417 done
8418 if test "${ac_cv_search_opendir+set}" = set; then
8419   :
8420 else
8421   ac_cv_search_opendir=no
8422 fi
8423 rm conftest.$ac_ext
8424 LIBS=$ac_func_search_save_LIBS
8425 fi
8426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8428 ac_res=$ac_cv_search_opendir
8429 if test "$ac_res" != no; then
8430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8431
8432 fi
8433
8434 else
8435   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8436 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8437 if test "${ac_cv_search_opendir+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   ac_func_search_save_LIBS=$LIBS
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447
8448 /* Override any GCC internal prototype to avoid an error.
8449    Use char because int might match the return type of a GCC
8450    builtin and then its argument prototype would still apply.  */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char opendir ();
8455 int
8456 main ()
8457 {
8458 return opendir ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 for ac_lib in '' x; do
8464   if test -z "$ac_lib"; then
8465     ac_res="none required"
8466   else
8467     ac_res=-l$ac_lib
8468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8469   fi
8470   rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_link") 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485   { (case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_try") 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_try") 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_search_opendir=$ac_res
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509
8510 fi
8511
8512 rm -f core conftest.err conftest.$ac_objext \
8513       conftest$ac_exeext
8514   if test "${ac_cv_search_opendir+set}" = set; then
8515   break
8516 fi
8517 done
8518 if test "${ac_cv_search_opendir+set}" = set; then
8519   :
8520 else
8521   ac_cv_search_opendir=no
8522 fi
8523 rm conftest.$ac_ext
8524 LIBS=$ac_func_search_save_LIBS
8525 fi
8526 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8527 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8528 ac_res=$ac_cv_search_opendir
8529 if test "$ac_res" != no; then
8530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8531
8532 fi
8533
8534 fi
8535
8536
8537 for ac_header in dlfcn.h
8538 do
8539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 fi
8546 ac_res=`eval echo '${'$as_ac_Header'}'`
8547                { echo "$as_me:$LINENO: result: $ac_res" >&5
8548 echo "${ECHO_T}$ac_res" >&6; }
8549 else
8550   # Is the header compilable?
8551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559 $ac_includes_default
8560 #include <$ac_header>
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8564 case "(($ac_try" in
8565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566   *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569   (eval "$ac_compile") 2>conftest.er1
8570   ac_status=$?
8571   grep -v '^ *+' conftest.er1 >conftest.err
8572   rm -f conftest.er1
8573   cat conftest.err >&5
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577   { (case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_try") 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; } &&
8586          { ac_try='test -s conftest.$ac_objext'
8587   { (case "(($ac_try" in
8588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589   *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592   (eval "$ac_try") 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; }; then
8596   ac_header_compiler=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601         ac_header_compiler=no
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606 echo "${ECHO_T}$ac_header_compiler" >&6; }
8607
8608 # Is the header present?
8609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 #include <$ac_header>
8618 _ACEOF
8619 if { (ac_try="$ac_cpp conftest.$ac_ext"
8620 case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } >/dev/null; then
8632   if test -s conftest.err; then
8633     ac_cpp_err=$ac_c_preproc_warn_flag
8634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8635   else
8636     ac_cpp_err=
8637   fi
8638 else
8639   ac_cpp_err=yes
8640 fi
8641 if test -z "$ac_cpp_err"; then
8642   ac_header_preproc=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647   ac_header_preproc=no
8648 fi
8649
8650 rm -f conftest.err conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652 echo "${ECHO_T}$ac_header_preproc" >&6; }
8653
8654 # So?  What about this header?
8655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8656   yes:no: )
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661     ac_header_preproc=yes
8662     ;;
8663   no:yes:* )
8664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8676     ( cat <<\_ASBOX
8677 ## ------------------------------------ ##
8678 ## Report this to http://llvm.org/bugs/ ##
8679 ## ------------------------------------ ##
8680 _ASBOX
8681      ) | sed "s/^/$as_me: WARNING:     /" >&2
8682     ;;
8683 esac
8684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   eval "$as_ac_Header=\$ac_header_preproc"
8690 fi
8691 ac_res=`eval echo '${'$as_ac_Header'}'`
8692                { echo "$as_me:$LINENO: result: $ac_res" >&5
8693 echo "${ECHO_T}$ac_res" >&6; }
8694
8695 fi
8696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8697   cat >>confdefs.h <<_ACEOF
8698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8699 _ACEOF
8700
8701 fi
8702
8703 done
8704
8705 # Check whether --enable-ltdl-install was given.
8706 if test "${enable_ltdl_install+set}" = set; then
8707   enableval=$enable_ltdl_install;
8708 fi
8709
8710
8711
8712
8713 if test x"${enable_ltdl_install-no}" != xno; then
8714   INSTALL_LTDL_TRUE=
8715   INSTALL_LTDL_FALSE='#'
8716 else
8717   INSTALL_LTDL_TRUE='#'
8718   INSTALL_LTDL_FALSE=
8719 fi
8720
8721
8722
8723 if test x"${enable_ltdl_convenience-no}" != xno; then
8724   CONVENIENCE_LTDL_TRUE=
8725   CONVENIENCE_LTDL_FALSE='#'
8726 else
8727   CONVENIENCE_LTDL_TRUE='#'
8728   CONVENIENCE_LTDL_FALSE=
8729 fi
8730
8731
8732 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8733 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8734 library_names_spec=
8735 libname_spec='lib$name'
8736 soname_spec=
8737 shrext_cmds=".so"
8738 postinstall_cmds=
8739 postuninstall_cmds=
8740 finish_cmds=
8741 finish_eval=
8742 shlibpath_var=
8743 shlibpath_overrides_runpath=unknown
8744 version_type=none
8745 dynamic_linker="$host_os ld.so"
8746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747 if test "$GCC" = yes; then
8748   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8749   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8750     # if the path contains ";" then we assume it to be the separator
8751     # otherwise default to the standard path separator (i.e. ":") - it is
8752     # assumed that no part of a normal pathname contains ";" but that should
8753     # okay in the real world where ";" in dirpaths is itself problematic.
8754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8755   else
8756     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8757   fi
8758 else
8759   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8760 fi
8761 need_lib_prefix=unknown
8762 hardcode_into_libs=no
8763
8764 # when you set need_version to no, make sure it does not cause -set_version
8765 # flags to be left without arguments
8766 need_version=unknown
8767
8768 case $host_os in
8769 aix3*)
8770   version_type=linux
8771   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8772   shlibpath_var=LIBPATH
8773
8774   # AIX 3 has no versioning support, so we append a major version to the name.
8775   soname_spec='${libname}${release}${shared_ext}$major'
8776   ;;
8777
8778 aix4* | aix5*)
8779   version_type=linux
8780   need_lib_prefix=no
8781   need_version=no
8782   hardcode_into_libs=yes
8783   if test "$host_cpu" = ia64; then
8784     # AIX 5 supports IA64
8785     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8786     shlibpath_var=LD_LIBRARY_PATH
8787   else
8788     # With GCC up to 2.95.x, collect2 would create an import file
8789     # for dependence libraries.  The import file would start with
8790     # the line `#! .'.  This would cause the generated library to
8791     # depend on `.', always an invalid library.  This was fixed in
8792     # development snapshots of GCC prior to 3.0.
8793     case $host_os in
8794       aix4 | aix4.[01] | aix4.[01].*)
8795       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8796            echo ' yes '
8797            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8798         :
8799       else
8800         can_build_shared=no
8801       fi
8802       ;;
8803     esac
8804     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8805     # soname into executable. Probably we can add versioning support to
8806     # collect2, so additional links can be useful in future.
8807     if test "$aix_use_runtimelinking" = yes; then
8808       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8809       # instead of lib<name>.a to let people know that these are not
8810       # typical AIX shared libraries.
8811       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812     else
8813       # We preserve .a as extension for shared libraries through AIX4.2
8814       # and later when we are not doing run time linking.
8815       library_names_spec='${libname}${release}.a $libname.a'
8816       soname_spec='${libname}${release}${shared_ext}$major'
8817     fi
8818     shlibpath_var=LIBPATH
8819   fi
8820   ;;
8821
8822 amigaos*)
8823   library_names_spec='$libname.ixlibrary $libname.a'
8824   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8825   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'
8826   ;;
8827
8828 beos*)
8829   library_names_spec='${libname}${shared_ext}'
8830   dynamic_linker="$host_os ld.so"
8831   shlibpath_var=LIBRARY_PATH
8832   ;;
8833
8834 bsdi[45]*)
8835   version_type=linux
8836   need_version=no
8837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838   soname_spec='${libname}${release}${shared_ext}$major'
8839   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843   # the default ld.so.conf also contains /usr/contrib/lib and
8844   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845   # libtool to hard-code these into programs
8846   ;;
8847
8848 cygwin* | mingw* | pw32*)
8849   version_type=windows
8850   shrext_cmds=".dll"
8851   need_version=no
8852   need_lib_prefix=no
8853
8854   case $GCC,$host_os in
8855   yes,cygwin* | yes,mingw* | yes,pw32*)
8856     library_names_spec='$libname.dll.a'
8857     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858     postinstall_cmds='base_file=`basename \${file}`~
8859       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8860       dldir=$destdir/`dirname \$dlpath`~
8861       test -d \$dldir || mkdir -p \$dldir~
8862       $install_prog $dir/$dlname \$dldir/$dlname~
8863       chmod a+x \$dldir/$dlname'
8864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8865       dlpath=$dir/\$dldll~
8866        $rm \$dlpath'
8867     shlibpath_overrides_runpath=yes
8868
8869     case $host_os in
8870     cygwin*)
8871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8874       ;;
8875     mingw*)
8876       # MinGW DLLs use traditional 'lib' prefix
8877       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8879       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8880         # It is most probably a Windows format PATH printed by
8881         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8882         # path with ; separators, and with drive letters. We can handle the
8883         # drive letters (cygwin fileutils understands them), so leave them,
8884         # especially as we might pass files found there to a mingw objdump,
8885         # which wouldn't understand a cygwinified path. Ahh.
8886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8887       else
8888         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8889       fi
8890       ;;
8891     pw32*)
8892       # pw32 DLLs use 'pw' prefix rather than 'lib'
8893       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8894       ;;
8895     esac
8896     ;;
8897
8898   *)
8899     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8900     ;;
8901   esac
8902   dynamic_linker='Win32 ld.exe'
8903   # FIXME: first we should search . and the directory the executable is in
8904   shlibpath_var=PATH
8905   ;;
8906
8907 darwin* | rhapsody*)
8908   dynamic_linker="$host_os dyld"
8909   version_type=darwin
8910   need_lib_prefix=no
8911   need_version=no
8912   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8913   soname_spec='${libname}${release}${major}$shared_ext'
8914   shlibpath_overrides_runpath=yes
8915   shlibpath_var=DYLD_LIBRARY_PATH
8916   shrext_cmds='.dylib'
8917   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8918   if test "$GCC" = yes; then
8919     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"`
8920   else
8921     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8922   fi
8923   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8924   ;;
8925
8926 dgux*)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   shlibpath_var=LD_LIBRARY_PATH
8933   ;;
8934
8935 freebsd1.*)
8936   dynamic_linker=no
8937   ;;
8938
8939 kfreebsd*-gnu)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=no
8947   hardcode_into_libs=yes
8948   dynamic_linker='GNU ld.so'
8949   ;;
8950
8951 freebsd* | dragonfly*)
8952   # DragonFly does not have aout.  When/if they implement a new
8953   # versioning mechanism, adjust this.
8954   if test -x /usr/bin/objformat; then
8955     objformat=`/usr/bin/objformat`
8956   else
8957     case $host_os in
8958     freebsd[123].*) objformat=aout ;;
8959     *) objformat=elf ;;
8960     esac
8961   fi
8962   version_type=freebsd-$objformat
8963   case $version_type in
8964     freebsd-elf*)
8965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8966       need_version=no
8967       need_lib_prefix=no
8968       ;;
8969     freebsd-*)
8970       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8971       need_version=yes
8972       ;;
8973   esac
8974   shlibpath_var=LD_LIBRARY_PATH
8975   case $host_os in
8976   freebsd2.*)
8977     shlibpath_overrides_runpath=yes
8978     ;;
8979   freebsd3.[01]* | freebsdelf3.[01]*)
8980     shlibpath_overrides_runpath=yes
8981     hardcode_into_libs=yes
8982     ;;
8983   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8984   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8985     shlibpath_overrides_runpath=no
8986     hardcode_into_libs=yes
8987     ;;
8988   freebsd*) # from 4.6 on
8989     shlibpath_overrides_runpath=yes
8990     hardcode_into_libs=yes
8991     ;;
8992   esac
8993   ;;
8994
8995 gnu*)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   hardcode_into_libs=yes
9003   ;;
9004
9005 hpux9* | hpux10* | hpux11*)
9006   # Give a soname corresponding to the major version so that dld.sl refuses to
9007   # link against other versions.
9008   version_type=sunos
9009   need_lib_prefix=no
9010   need_version=no
9011   case $host_cpu in
9012   ia64*)
9013     shrext_cmds='.so'
9014     hardcode_into_libs=yes
9015     dynamic_linker="$host_os dld.so"
9016     shlibpath_var=LD_LIBRARY_PATH
9017     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019     soname_spec='${libname}${release}${shared_ext}$major'
9020     if test "X$HPUX_IA64_MODE" = X32; then
9021       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9022     else
9023       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9024     fi
9025     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9026     ;;
9027    hppa*64*)
9028      shrext_cmds='.sl'
9029      hardcode_into_libs=yes
9030      dynamic_linker="$host_os dld.sl"
9031      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9032      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034      soname_spec='${libname}${release}${shared_ext}$major'
9035      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9036      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037      ;;
9038    *)
9039     shrext_cmds='.sl'
9040     dynamic_linker="$host_os dld.sl"
9041     shlibpath_var=SHLIB_PATH
9042     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044     soname_spec='${libname}${release}${shared_ext}$major'
9045     ;;
9046   esac
9047   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9048   postinstall_cmds='chmod 555 $lib'
9049   ;;
9050
9051 interix3*)
9052   version_type=linux
9053   need_lib_prefix=no
9054   need_version=no
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9058   shlibpath_var=LD_LIBRARY_PATH
9059   shlibpath_overrides_runpath=no
9060   hardcode_into_libs=yes
9061   ;;
9062
9063 irix5* | irix6* | nonstopux*)
9064   case $host_os in
9065     nonstopux*) version_type=nonstopux ;;
9066     *)
9067         if test "$lt_cv_prog_gnu_ld" = yes; then
9068                 version_type=linux
9069         else
9070                 version_type=irix
9071         fi ;;
9072   esac
9073   need_lib_prefix=no
9074   need_version=no
9075   soname_spec='${libname}${release}${shared_ext}$major'
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9077   case $host_os in
9078   irix5* | nonstopux*)
9079     libsuff= shlibsuff=
9080     ;;
9081   *)
9082     case $LD in # libtool.m4 will add one of these switches to LD
9083     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9084       libsuff= shlibsuff= libmagic=32-bit;;
9085     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9086       libsuff=32 shlibsuff=N32 libmagic=N32;;
9087     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9088       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9089     *) libsuff= shlibsuff= libmagic=never-match;;
9090     esac
9091     ;;
9092   esac
9093   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9094   shlibpath_overrides_runpath=no
9095   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9096   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9097   hardcode_into_libs=yes
9098   ;;
9099
9100 # No shared lib support for Linux oldld, aout, or coff.
9101 linux*oldld* | linux*aout* | linux*coff*)
9102   dynamic_linker=no
9103   ;;
9104
9105 # This must be Linux ELF.
9106 linux*)
9107   version_type=linux
9108   need_lib_prefix=no
9109   need_version=no
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111   soname_spec='${libname}${release}${shared_ext}$major'
9112   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   shlibpath_overrides_runpath=no
9115   # This implies no fast_install, which is unacceptable.
9116   # Some rework will be needed to allow for fast_install
9117   # before this can be enabled.
9118   hardcode_into_libs=yes
9119
9120   # Append ld.so.conf contents to the search path
9121   if test -f /etc/ld.so.conf; then
9122     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' ' '`
9123     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9124   fi
9125
9126   # We used to test for /lib/ld.so.1 and disable shared libraries on
9127   # powerpc, because MkLinux only supported shared libraries with the
9128   # GNU dynamic linker.  Since this was broken with cross compilers,
9129   # most powerpc-linux boxes support dynamic linking these days and
9130   # people can always --disable-shared, the test was removed, and we
9131   # assume the GNU/Linux dynamic linker is in use.
9132   dynamic_linker='GNU/Linux ld.so'
9133   ;;
9134
9135 knetbsd*-gnu)
9136   version_type=linux
9137   need_lib_prefix=no
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   shlibpath_overrides_runpath=no
9143   hardcode_into_libs=yes
9144   dynamic_linker='GNU ld.so'
9145   ;;
9146
9147 netbsd*)
9148   version_type=sunos
9149   need_lib_prefix=no
9150   need_version=no
9151   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9153     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9154     dynamic_linker='NetBSD (a.out) ld.so'
9155   else
9156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9157     soname_spec='${libname}${release}${shared_ext}$major'
9158     dynamic_linker='NetBSD ld.elf_so'
9159   fi
9160   shlibpath_var=LD_LIBRARY_PATH
9161   shlibpath_overrides_runpath=yes
9162   hardcode_into_libs=yes
9163   ;;
9164
9165 newsos6)
9166   version_type=linux
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   shlibpath_var=LD_LIBRARY_PATH
9169   shlibpath_overrides_runpath=yes
9170   ;;
9171
9172 nto-qnx*)
9173   version_type=linux
9174   need_lib_prefix=no
9175   need_version=no
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177   soname_spec='${libname}${release}${shared_ext}$major'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   shlibpath_overrides_runpath=yes
9180   ;;
9181
9182 openbsd* | bitrig*)
9183   version_type=sunos
9184   sys_lib_dlsearch_path_spec="/usr/lib"
9185   need_lib_prefix=no
9186   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9187   case $host_os in
9188     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9189     *)                         need_version=no  ;;
9190   esac
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9195     case $host_os in
9196       openbsd2.[89] | openbsd2.[89].*)
9197         shlibpath_overrides_runpath=no
9198         ;;
9199       *)
9200         shlibpath_overrides_runpath=yes
9201         ;;
9202       esac
9203   else
9204     shlibpath_overrides_runpath=yes
9205   fi
9206   ;;
9207
9208 os2*)
9209   libname_spec='$name'
9210   shrext_cmds=".dll"
9211   need_lib_prefix=no
9212   library_names_spec='$libname${shared_ext} $libname.a'
9213   dynamic_linker='OS/2 ld.exe'
9214   shlibpath_var=LIBPATH
9215   ;;
9216
9217 osf3* | osf4* | osf5*)
9218   version_type=osf
9219   need_lib_prefix=no
9220   need_version=no
9221   soname_spec='${libname}${release}${shared_ext}$major'
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223   shlibpath_var=LD_LIBRARY_PATH
9224   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9225   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9226   ;;
9227
9228 solaris*)
9229   version_type=linux
9230   need_lib_prefix=no
9231   need_version=no
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   soname_spec='${libname}${release}${shared_ext}$major'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   shlibpath_overrides_runpath=yes
9236   hardcode_into_libs=yes
9237   # ldd complains unless libraries are executable
9238   postinstall_cmds='chmod +x $lib'
9239   ;;
9240
9241 sunos4*)
9242   version_type=sunos
9243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9244   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9245   shlibpath_var=LD_LIBRARY_PATH
9246   shlibpath_overrides_runpath=yes
9247   if test "$with_gnu_ld" = yes; then
9248     need_lib_prefix=no
9249   fi
9250   need_version=yes
9251   ;;
9252
9253 sysv4 | sysv4.3*)
9254   version_type=linux
9255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256   soname_spec='${libname}${release}${shared_ext}$major'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   case $host_vendor in
9259     sni)
9260       shlibpath_overrides_runpath=no
9261       need_lib_prefix=no
9262       export_dynamic_flag_spec='${wl}-Blargedynsym'
9263       runpath_var=LD_RUN_PATH
9264       ;;
9265     siemens)
9266       need_lib_prefix=no
9267       ;;
9268     motorola)
9269       need_lib_prefix=no
9270       need_version=no
9271       shlibpath_overrides_runpath=no
9272       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9273       ;;
9274   esac
9275   ;;
9276
9277 sysv4*MP*)
9278   if test -d /usr/nec ;then
9279     version_type=linux
9280     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9281     soname_spec='$libname${shared_ext}.$major'
9282     shlibpath_var=LD_LIBRARY_PATH
9283   fi
9284   ;;
9285
9286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9287   version_type=freebsd-elf
9288   need_lib_prefix=no
9289   need_version=no
9290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   shlibpath_var=LD_LIBRARY_PATH
9293   hardcode_into_libs=yes
9294   if test "$with_gnu_ld" = yes; then
9295     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9296     shlibpath_overrides_runpath=no
9297   else
9298     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9299     shlibpath_overrides_runpath=yes
9300     case $host_os in
9301       sco3.2v5*)
9302         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9303         ;;
9304     esac
9305   fi
9306   sys_lib_dlsearch_path_spec='/usr/lib'
9307   ;;
9308
9309 uts4*)
9310   version_type=linux
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   shlibpath_var=LD_LIBRARY_PATH
9314   ;;
9315
9316 *)
9317   dynamic_linker=no
9318   ;;
9319 esac
9320 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9321 echo "${ECHO_T}$dynamic_linker" >&6; }
9322 test "$dynamic_linker" = no && can_build_shared=no
9323
9324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9325 if test "$GCC" = yes; then
9326   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9327 fi
9328
9329
9330 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9331 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9332 if test "${libltdl_cv_shlibext+set}" = set; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335
9336 module=yes
9337 eval libltdl_cv_shlibext=$shrext_cmds
9338
9339 fi
9340 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9341 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9342 if test -n "$libltdl_cv_shlibext"; then
9343
9344 cat >>confdefs.h <<_ACEOF
9345 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9346 _ACEOF
9347
9348 fi
9349
9350
9351 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9352 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9353 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   libltdl_cv_shlibpath_var="$shlibpath_var"
9357 fi
9358 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9359 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9360 if test -n "$libltdl_cv_shlibpath_var"; then
9361
9362 cat >>confdefs.h <<_ACEOF
9363 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9364 _ACEOF
9365
9366 fi
9367
9368
9369 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9370 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_sys_search_path+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9375 fi
9376 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9377 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9378 if test -n "$libltdl_cv_sys_search_path"; then
9379   sys_search_path=
9380   for dir in $libltdl_cv_sys_search_path; do
9381     if test -z "$sys_search_path"; then
9382       sys_search_path="$dir"
9383     else
9384       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9385     fi
9386   done
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9390 _ACEOF
9391
9392 fi
9393
9394 { echo "$as_me:$LINENO: checking for objdir" >&5
9395 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9396 if test "${libltdl_cv_objdir+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   libltdl_cv_objdir="$objdir"
9400   if test -n "$objdir"; then
9401     :
9402   else
9403     rm -f .libs 2>/dev/null
9404     mkdir .libs 2>/dev/null
9405     if test -d .libs; then
9406       libltdl_cv_objdir=.libs
9407     else
9408       # MS-DOS does not allow filenames that begin with a dot.
9409       libltdl_cv_objdir=_libs
9410     fi
9411   rmdir .libs 2>/dev/null
9412   fi
9413
9414 fi
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9416 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9417
9418 cat >>confdefs.h <<_ACEOF
9419 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9420 _ACEOF
9421
9422
9423
9424
9425
9426
9427 # Check for command to grab the raw symbol name followed by C symbol from nm.
9428 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9429 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433
9434 # These are sane defaults that work on at least a few old systems.
9435 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9436
9437 # Character class describing NM global symbol codes.
9438 symcode='[BCDEGRST]'
9439
9440 # Regexp to match symbols that can be accessed directly from C.
9441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9442
9443 # Transform an extracted symbol line into a proper C declaration
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9445
9446 # Transform an extracted symbol line into symbol name and symbol address
9447 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'"
9448
9449 # Define system-specific variables.
9450 case $host_os in
9451 aix*)
9452   symcode='[BCDT]'
9453   ;;
9454 cygwin* | mingw* | pw32*)
9455   symcode='[ABCDGISTW]'
9456   ;;
9457 hpux*) # Its linker distinguishes data from code symbols
9458   if test "$host_cpu" = ia64; then
9459     symcode='[ABCDEGRST]'
9460   fi
9461   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9462   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'"
9463   ;;
9464 linux*)
9465   if test "$host_cpu" = ia64; then
9466     symcode='[ABCDGIRSTW]'
9467     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9468     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'"
9469   fi
9470   ;;
9471 irix* | nonstopux*)
9472   symcode='[BCDEGRST]'
9473   ;;
9474 osf*)
9475   symcode='[BCDEGQRST]'
9476   ;;
9477 solaris*)
9478   symcode='[BDRT]'
9479   ;;
9480 sco3.2v5*)
9481   symcode='[DT]'
9482   ;;
9483 sysv4.2uw2*)
9484   symcode='[DT]'
9485   ;;
9486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9487   symcode='[ABDT]'
9488   ;;
9489 sysv4)
9490   symcode='[DFNSTU]'
9491   ;;
9492 esac
9493
9494 # Handle CRLF in mingw tool chain
9495 opt_cr=
9496 case $build_os in
9497 mingw*)
9498   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9499   ;;
9500 esac
9501
9502 # If we're using GNU nm, then use its standard symbol codes.
9503 case `$NM -V 2>&1` in
9504 *GNU* | *'with BFD'*)
9505   symcode='[ABCDGIRSTW]' ;;
9506 esac
9507
9508 # Try without a prefix undercore, then with it.
9509 for ac_symprfx in "" "_"; do
9510
9511   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9512   symxfrm="\\1 $ac_symprfx\\2 \\2"
9513
9514   # Write the raw and C identifiers.
9515   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9516
9517   # Check to see that the pipe works correctly.
9518   pipe_works=no
9519
9520   rm -f conftest*
9521   cat > conftest.$ac_ext <<EOF
9522 #ifdef __cplusplus
9523 extern "C" {
9524 #endif
9525 char nm_test_var;
9526 void nm_test_func(){}
9527 #ifdef __cplusplus
9528 }
9529 #endif
9530 int main(){nm_test_var='a';nm_test_func();return(0);}
9531 EOF
9532
9533   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534   (eval $ac_compile) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; then
9538     # Now try to grab the symbols.
9539     nlist=conftest.nm
9540     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9541   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } && test -s "$nlist"; then
9545       # Try sorting and uniquifying the output.
9546       if sort "$nlist" | uniq > "$nlist"T; then
9547         mv -f "$nlist"T "$nlist"
9548       else
9549         rm -f "$nlist"T
9550       fi
9551
9552       # Make sure that we snagged all the symbols we need.
9553       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9554         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9555           cat <<EOF > conftest.$ac_ext
9556 #ifdef __cplusplus
9557 extern "C" {
9558 #endif
9559
9560 EOF
9561           # Now generate the symbol file.
9562           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9563
9564           cat <<EOF >> conftest.$ac_ext
9565 #if defined (__STDC__) && __STDC__
9566 # define lt_ptr_t void *
9567 #else
9568 # define lt_ptr_t char *
9569 # define const
9570 #endif
9571
9572 /* The mapping between symbol names and symbols. */
9573 const struct {
9574   const char *name;
9575   lt_ptr_t address;
9576 }
9577 lt_preloaded_symbols[] =
9578 {
9579 EOF
9580           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9581           cat <<\EOF >> conftest.$ac_ext
9582   {0, (lt_ptr_t) 0}
9583 };
9584
9585 #ifdef __cplusplus
9586 }
9587 #endif
9588 EOF
9589           # Now try linking the two files.
9590           mv conftest.$ac_objext conftstm.$ac_objext
9591           lt_save_LIBS="$LIBS"
9592           lt_save_CFLAGS="$CFLAGS"
9593           LIBS="conftstm.$ac_objext"
9594           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9595           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596   (eval $ac_link) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9600             pipe_works=yes
9601           fi
9602           LIBS="$lt_save_LIBS"
9603           CFLAGS="$lt_save_CFLAGS"
9604         else
9605           echo "cannot find nm_test_func in $nlist" >&5
9606         fi
9607       else
9608         echo "cannot find nm_test_var in $nlist" >&5
9609       fi
9610     else
9611       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9612     fi
9613   else
9614     echo "$progname: failed program was:" >&5
9615     cat conftest.$ac_ext >&5
9616   fi
9617   rm -f conftest* conftst*
9618
9619   # Do not use the global_symbol_pipe unless it works.
9620   if test "$pipe_works" = yes; then
9621     break
9622   else
9623     lt_cv_sys_global_symbol_pipe=
9624   fi
9625 done
9626
9627 fi
9628
9629 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9630   lt_cv_sys_global_symbol_to_cdecl=
9631 fi
9632 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9633   { echo "$as_me:$LINENO: result: failed" >&5
9634 echo "${ECHO_T}failed" >&6; }
9635 else
9636   { echo "$as_me:$LINENO: result: ok" >&5
9637 echo "${ECHO_T}ok" >&6; }
9638 fi
9639
9640
9641 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9642 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9643 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9647     libltdl_cv_preloaded_symbols=yes
9648   else
9649     libltdl_cv_preloaded_symbols=no
9650   fi
9651
9652 fi
9653 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9654 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9655 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_PRELOADED_SYMBOLS 1
9659 _ACEOF
9660
9661 fi
9662
9663 LIBADD_DL=
9664
9665 ac_ext=c
9666 ac_cpp='$CPP $CPPFLAGS'
9667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9670
9671
9672 { echo "$as_me:$LINENO: checking for shl_load" >&5
9673 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9674 if test "${ac_cv_func_shl_load+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9685 #define shl_load innocuous_shl_load
9686
9687 /* System header to define __stub macros and hopefully few prototypes,
9688     which can conflict with char shl_load (); below.
9689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690     <limits.h> exists even on freestanding compilers.  */
9691
9692 #ifdef __STDC__
9693 # include <limits.h>
9694 #else
9695 # include <assert.h>
9696 #endif
9697
9698 #undef shl_load
9699
9700 /* Override any GCC internal prototype to avoid an error.
9701    Use char because int might match the return type of a GCC
9702    builtin and then its argument prototype would still apply.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char shl_load ();
9707 /* The GNU C library defines this for functions which it implements
9708     to always fail with ENOSYS.  Some functions are actually named
9709     something starting with __ and the normal name is an alias.  */
9710 #if defined __stub_shl_load || defined __stub___shl_load
9711 choke me
9712 #endif
9713
9714 int
9715 main ()
9716 {
9717 return shl_load ();
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_link") 2>conftest.er1
9730   ac_status=$?
9731   grep -v '^ *+' conftest.er1 >conftest.err
9732   rm -f conftest.er1
9733   cat conftest.err >&5
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } &&
9736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9737   { (case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_try") 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; } &&
9746          { ac_try='test -s conftest$ac_exeext'
9747   { (case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_try") 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_cv_func_shl_load=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761         ac_cv_func_shl_load=no
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 fi
9767 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9768 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9769 if test $ac_cv_func_shl_load = yes; then
9770
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_SHL_LOAD 1
9773 _ACEOF
9774
9775 else
9776   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   ac_check_lib_save_LIBS=$LIBS
9782 LIBS="-ldld  $LIBS"
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789
9790 /* Override any GCC internal prototype to avoid an error.
9791    Use char because int might match the return type of a GCC
9792    builtin and then its argument prototype would still apply.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 char shl_load ();
9797 int
9798 main ()
9799 {
9800 return shl_load ();
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9807 case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_link") 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820   { (case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_try") 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; } &&
9829          { ac_try='test -s conftest$ac_exeext'
9830   { (case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_try") 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; }; then
9839   ac_cv_lib_dld_shl_load=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844         ac_cv_lib_dld_shl_load=no
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext \
9848       conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9850 fi
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9853 if test $ac_cv_lib_dld_shl_load = yes; then
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_SHL_LOAD 1
9857 _ACEOF
9858
9859         LIBADD_DL="$LIBADD_DL -ldld"
9860 else
9861   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864   echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866   ac_check_lib_save_LIBS=$LIBS
9867 LIBS="-ldl  $LIBS"
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874
9875 /* Override any GCC internal prototype to avoid an error.
9876    Use char because int might match the return type of a GCC
9877    builtin and then its argument prototype would still apply.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char dlopen ();
9882 int
9883 main ()
9884 {
9885 return dlopen ();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (ac_try="$ac_link"
9892 case "(($ac_try" in
9893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894   *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897   (eval "$ac_link") 2>conftest.er1
9898   ac_status=$?
9899   grep -v '^ *+' conftest.er1 >conftest.err
9900   rm -f conftest.er1
9901   cat conftest.err >&5
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9905   { (case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_try") 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; } &&
9914          { ac_try='test -s conftest$ac_exeext'
9915   { (case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_try") 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; }; then
9924   ac_cv_lib_dl_dlopen=yes
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929         ac_cv_lib_dl_dlopen=no
9930 fi
9931
9932 rm -f core conftest.err conftest.$ac_objext \
9933       conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9935 fi
9936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9938 if test $ac_cv_lib_dl_dlopen = yes; then
9939
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_LIBDL 1
9942 _ACEOF
9943
9944                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 #if HAVE_DLFCN_H
9953 #  include <dlfcn.h>
9954 #endif
9955
9956 int
9957 main ()
9958 {
9959 dlopen(0, 0);
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_link") 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } &&
9978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979   { (case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_try") 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }; } &&
9988          { ac_try='test -s conftest$ac_exeext'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; }; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LIBDL 1
10001 _ACEOF
10002  libltdl_cv_func_dlopen="yes"
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10008 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-lsvld  $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020
10021 /* Override any GCC internal prototype to avoid an error.
10022    Use char because int might match the return type of a GCC
10023    builtin and then its argument prototype would still apply.  */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 char dlopen ();
10028 int
10029 main ()
10030 {
10031 return dlopen ();
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043   (eval "$ac_link") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051   { (case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_try") 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_try") 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; }; then
10070   ac_cv_lib_svld_dlopen=yes
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         ac_cv_lib_svld_dlopen=no
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10084 if test $ac_cv_lib_svld_dlopen = yes; then
10085
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_LIBDL 1
10088 _ACEOF
10089
10090                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10091 else
10092   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-ldld  $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h.  */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h.  */
10105
10106 /* Override any GCC internal prototype to avoid an error.
10107    Use char because int might match the return type of a GCC
10108    builtin and then its argument prototype would still apply.  */
10109 #ifdef __cplusplus
10110 extern "C"
10111 #endif
10112 char dld_link ();
10113 int
10114 main ()
10115 {
10116 return dld_link ();
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_link") 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } &&
10135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10136   { (case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_try") 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest$ac_exeext'
10146   { (case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151   (eval "$ac_try") 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   ac_cv_lib_dld_dld_link=yes
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160         ac_cv_lib_dld_dld_link=no
10161 fi
10162
10163 rm -f core conftest.err conftest.$ac_objext \
10164       conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10168 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10169 if test $ac_cv_lib_dld_dld_link = yes; then
10170
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_DLD 1
10173 _ACEOF
10174
10175                 LIBADD_DL="$LIBADD_DL -ldld"
10176 else
10177   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10178 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10179 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10190 #define _dyld_func_lookup innocuous__dyld_func_lookup
10191
10192 /* System header to define __stub macros and hopefully few prototypes,
10193     which can conflict with char _dyld_func_lookup (); below.
10194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195     <limits.h> exists even on freestanding compilers.  */
10196
10197 #ifdef __STDC__
10198 # include <limits.h>
10199 #else
10200 # include <assert.h>
10201 #endif
10202
10203 #undef _dyld_func_lookup
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char _dyld_func_lookup ();
10212 /* The GNU C library defines this for functions which it implements
10213     to always fail with ENOSYS.  Some functions are actually named
10214     something starting with __ and the normal name is an alias.  */
10215 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10216 choke me
10217 #endif
10218
10219 int
10220 main ()
10221 {
10222 return _dyld_func_lookup ();
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231   *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234   (eval "$ac_link") 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242   { (case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_try") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; } &&
10251          { ac_try='test -s conftest$ac_exeext'
10252   { (case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_try") 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_func__dyld_func_lookup=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266         ac_cv_func__dyld_func_lookup=no
10267 fi
10268
10269 rm -f core conftest.err conftest.$ac_objext \
10270       conftest$ac_exeext conftest.$ac_ext
10271 fi
10272 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10273 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10274 if test $ac_cv_func__dyld_func_lookup = yes; then
10275
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_DYLD 1
10278 _ACEOF
10279
10280 fi
10281
10282
10283 fi
10284
10285
10286 fi
10287
10288
10289 fi
10290
10291 rm -f core conftest.err conftest.$ac_objext \
10292       conftest$ac_exeext conftest.$ac_ext
10293
10294 fi
10295
10296
10297 fi
10298
10299
10300 fi
10301
10302
10303 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10304 then
10305   lt_save_LIBS="$LIBS"
10306   LIBS="$LIBS $LIBADD_DL"
10307
10308 for ac_func in dlerror
10309 do
10310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10314   echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316   cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10324 #define $ac_func innocuous_$ac_func
10325
10326 /* System header to define __stub macros and hopefully few prototypes,
10327     which can conflict with char $ac_func (); below.
10328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10329     <limits.h> exists even on freestanding compilers.  */
10330
10331 #ifdef __STDC__
10332 # include <limits.h>
10333 #else
10334 # include <assert.h>
10335 #endif
10336
10337 #undef $ac_func
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char $ac_func ();
10346 /* The GNU C library defines this for functions which it implements
10347     to always fail with ENOSYS.  Some functions are actually named
10348     something starting with __ and the normal name is an alias.  */
10349 #if defined __stub_$ac_func || defined __stub___$ac_func
10350 choke me
10351 #endif
10352
10353 int
10354 main ()
10355 {
10356 return $ac_func ();
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (ac_try="$ac_link"
10363 case "(($ac_try" in
10364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365   *) ac_try_echo=$ac_try;;
10366 esac
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368   (eval "$ac_link") 2>conftest.er1
10369   ac_status=$?
10370   grep -v '^ *+' conftest.er1 >conftest.err
10371   rm -f conftest.er1
10372   cat conftest.err >&5
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); } &&
10375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376   { (case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_try") 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; } &&
10385          { ac_try='test -s conftest$ac_exeext'
10386   { (case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_try") 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; }; then
10395   eval "$as_ac_var=yes"
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400         eval "$as_ac_var=no"
10401 fi
10402
10403 rm -f core conftest.err conftest.$ac_objext \
10404       conftest$ac_exeext conftest.$ac_ext
10405 fi
10406 ac_res=`eval echo '${'$as_ac_var'}'`
10407                { echo "$as_me:$LINENO: result: $ac_res" >&5
10408 echo "${ECHO_T}$ac_res" >&6; }
10409 if test `eval echo '${'$as_ac_var'}'` = yes; then
10410   cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10412 _ACEOF
10413
10414 fi
10415 done
10416
10417   LIBS="$lt_save_LIBS"
10418 fi
10419 ac_ext=c
10420 ac_cpp='$CPP $CPPFLAGS'
10421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10424
10425
10426
10427 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10428 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10429 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432   ac_cv_sys_symbol_underscore=no
10433   cat > conftest.$ac_ext <<EOF
10434 void nm_test_func(){}
10435 int main(){nm_test_func;return 0;}
10436 EOF
10437   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10438   (eval $ac_compile) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; then
10442     # Now try to grab the symbols.
10443     ac_nlist=conftest.nm
10444     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10445   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } && test -s "$ac_nlist"; then
10449       # See whether the symbols have a leading underscore.
10450       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10451         ac_cv_sys_symbol_underscore=yes
10452       else
10453         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10454           :
10455         else
10456           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10457         fi
10458       fi
10459     else
10460       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461     fi
10462   else
10463     echo "configure: failed program was:" >&5
10464     cat conftest.c >&5
10465   fi
10466   rm -rf conftest*
10467
10468 fi
10469 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10470 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10471
10472
10473 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10474   if test x"$libltdl_cv_func_dlopen" = xyes ||
10475      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10476         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10477 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_need_uscore+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   libltdl_cv_need_uscore=unknown
10482           save_LIBS="$LIBS"
10483           LIBS="$LIBS $LIBADD_DL"
10484           if test "$cross_compiling" = yes; then :
10485   libltdl_cv_need_uscore=cross
10486 else
10487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488   lt_status=$lt_dlunknown
10489   cat > conftest.$ac_ext <<EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10492
10493 #if HAVE_DLFCN_H
10494 #include <dlfcn.h>
10495 #endif
10496
10497 #include <stdio.h>
10498
10499 #ifdef RTLD_GLOBAL
10500 #  define LT_DLGLOBAL           RTLD_GLOBAL
10501 #else
10502 #  ifdef DL_GLOBAL
10503 #    define LT_DLGLOBAL         DL_GLOBAL
10504 #  else
10505 #    define LT_DLGLOBAL         0
10506 #  endif
10507 #endif
10508
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510    find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10512 #  ifdef RTLD_LAZY
10513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10514 #  else
10515 #    ifdef DL_LAZY
10516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10517 #    else
10518 #      ifdef RTLD_NOW
10519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10520 #      else
10521 #        ifdef DL_NOW
10522 #          define LT_DLLAZY_OR_NOW      DL_NOW
10523 #        else
10524 #          define LT_DLLAZY_OR_NOW      0
10525 #        endif
10526 #      endif
10527 #    endif
10528 #  endif
10529 #endif
10530
10531 #ifdef __cplusplus
10532 extern "C" void exit (int);
10533 #endif
10534
10535 void fnord() { int i=42;}
10536 int main ()
10537 {
10538   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539   int status = $lt_dlunknown;
10540
10541   if (self)
10542     {
10543       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10544       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545       /* dlclose (self); */
10546     }
10547   else
10548     puts (dlerror ());
10549
10550     exit (status);
10551 }
10552 EOF
10553   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554   (eval $ac_link) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10558     (./conftest; exit; ) >&5 2>/dev/null
10559     lt_status=$?
10560     case x$lt_status in
10561       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10562       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10563       x$lt_dlunknown|x*)  ;;
10564     esac
10565   else :
10566     # compilation failed
10567
10568   fi
10569 fi
10570 rm -fr conftest*
10571
10572           LIBS="$save_LIBS"
10573
10574 fi
10575 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10576 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10577   fi
10578 fi
10579
10580 if test x"$libltdl_cv_need_uscore" = xyes; then
10581
10582 cat >>confdefs.h <<\_ACEOF
10583 #define NEED_USCORE 1
10584 _ACEOF
10585
10586 fi
10587
10588
10589 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10590 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10591 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   # PORTME does your system automatically load deplibs for dlopen?
10595   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10596   # For now, we just catch OSes we know something about -- in the
10597   # future, we'll try test this programmatically.
10598   libltdl_cv_sys_dlopen_deplibs=unknown
10599   case "$host_os" in
10600   aix3*|aix4.1.*|aix4.2.*)
10601     # Unknown whether this is true for these versions of AIX, but
10602     # we want this `case' here to explicitly catch those versions.
10603     libltdl_cv_sys_dlopen_deplibs=unknown
10604     ;;
10605   aix[45]*)
10606     libltdl_cv_sys_dlopen_deplibs=yes
10607     ;;
10608   darwin*)
10609     # Assuming the user has installed a libdl from somewhere, this is true
10610     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10611     libltdl_cv_sys_dlopen_deplibs=yes
10612     ;;
10613   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10614     # GNU and its variants, using gnu ld.so (Glibc)
10615     libltdl_cv_sys_dlopen_deplibs=yes
10616     ;;
10617   hpux10*|hpux11*)
10618     libltdl_cv_sys_dlopen_deplibs=yes
10619     ;;
10620   interix*)
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   irix[12345]*|irix6.[01]*)
10624     # Catch all versions of IRIX before 6.2, and indicate that we don't
10625     # know how it worked for any of those versions.
10626     libltdl_cv_sys_dlopen_deplibs=unknown
10627     ;;
10628   irix*)
10629     # The case above catches anything before 6.2, and it's known that
10630     # at 6.2 and later dlopen does load deplibs.
10631     libltdl_cv_sys_dlopen_deplibs=yes
10632     ;;
10633   netbsd*)
10634     libltdl_cv_sys_dlopen_deplibs=yes
10635     ;;
10636   openbsd*)
10637     libltdl_cv_sys_dlopen_deplibs=yes
10638     ;;
10639   osf[1234]*)
10640     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10641     # it did *not* use an RPATH in a shared library to find objects the
10642     # library depends on, so we explicitly say `no'.
10643     libltdl_cv_sys_dlopen_deplibs=no
10644     ;;
10645   osf5.0|osf5.0a|osf5.1)
10646     # dlopen *does* load deplibs and with the right loader patch applied
10647     # it even uses RPATH in a shared library to search for shared objects
10648     # that the library depends on, but there's no easy way to know if that
10649     # patch is installed.  Since this is the case, all we can really
10650     # say is unknown -- it depends on the patch being installed.  If
10651     # it is, this changes to `yes'.  Without it, it would be `no'.
10652     libltdl_cv_sys_dlopen_deplibs=unknown
10653     ;;
10654   osf*)
10655     # the two cases above should catch all versions of osf <= 5.1.  Read
10656     # the comments above for what we know about them.
10657     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10658     # is used to find them so we can finally say `yes'.
10659     libltdl_cv_sys_dlopen_deplibs=yes
10660     ;;
10661   solaris*)
10662     libltdl_cv_sys_dlopen_deplibs=yes
10663     ;;
10664   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   esac
10668
10669 fi
10670 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10671 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10672 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10673
10674 cat >>confdefs.h <<\_ACEOF
10675 #define LTDL_DLOPEN_DEPLIBS 1
10676 _ACEOF
10677
10678 fi
10679
10680
10681 for ac_header in argz.h
10682 do
10683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 fi
10690 ac_res=`eval echo '${'$as_ac_Header'}'`
10691                { echo "$as_me:$LINENO: result: $ac_res" >&5
10692 echo "${ECHO_T}$ac_res" >&6; }
10693 else
10694   # Is the header compilable?
10695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 $ac_includes_default
10704 #include <$ac_header>
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710   *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713   (eval "$ac_compile") 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721   { (case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_try") 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest.$ac_objext'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; }; then
10740   ac_header_compiler=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745         ac_header_compiler=no
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766   *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } >/dev/null; then
10776   if test -s conftest.err; then
10777     ac_cpp_err=$ac_c_preproc_warn_flag
10778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10779   else
10780     ac_cpp_err=
10781   fi
10782 else
10783   ac_cpp_err=yes
10784 fi
10785 if test -z "$ac_cpp_err"; then
10786   ac_header_preproc=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791   ac_header_preproc=no
10792 fi
10793
10794 rm -f conftest.err conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 echo "${ECHO_T}$ac_header_preproc" >&6; }
10797
10798 # So?  What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10800   yes:no: )
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805     ac_header_preproc=yes
10806     ;;
10807   no:yes:* )
10808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10820     ( cat <<\_ASBOX
10821 ## ------------------------------------ ##
10822 ## Report this to http://llvm.org/bugs/ ##
10823 ## ------------------------------------ ##
10824 _ASBOX
10825      ) | sed "s/^/$as_me: WARNING:     /" >&2
10826     ;;
10827 esac
10828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   eval "$as_ac_Header=\$ac_header_preproc"
10834 fi
10835 ac_res=`eval echo '${'$as_ac_Header'}'`
10836                { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838
10839 fi
10840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10841   cat >>confdefs.h <<_ACEOF
10842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10843 _ACEOF
10844
10845 fi
10846
10847 done
10848
10849
10850 { echo "$as_me:$LINENO: checking for error_t" >&5
10851 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10852 if test "${ac_cv_type_error_t+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h.  */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h.  */
10861 #if HAVE_ARGZ_H
10862 #  include <argz.h>
10863 #endif
10864
10865 typedef error_t ac__type_new_;
10866 int
10867 main ()
10868 {
10869 if ((ac__type_new_ *) 0)
10870   return 0;
10871 if (sizeof (ac__type_new_))
10872   return 0;
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_compile") 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } &&
10891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892   { (case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897   (eval "$ac_try") 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); }; } &&
10901          { ac_try='test -s conftest.$ac_objext'
10902   { (case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_try") 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; }; then
10911   ac_cv_type_error_t=yes
10912 else
10913   echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916         ac_cv_type_error_t=no
10917 fi
10918
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 fi
10921 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10922 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10923 if test $ac_cv_type_error_t = yes; then
10924
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_ERROR_T 1
10927 _ACEOF
10928
10929
10930 else
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define error_t int
10934 _ACEOF
10935
10936 fi
10937
10938
10939
10940
10941
10942
10943
10944 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10945 do
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10960 #define $ac_func innocuous_$ac_func
10961
10962 /* System header to define __stub macros and hopefully few prototypes,
10963     which can conflict with char $ac_func (); below.
10964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965     <limits.h> exists even on freestanding compilers.  */
10966
10967 #ifdef __STDC__
10968 # include <limits.h>
10969 #else
10970 # include <assert.h>
10971 #endif
10972
10973 #undef $ac_func
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976    Use char because int might match the return type of a GCC
10977    builtin and then its argument prototype would still apply.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char $ac_func ();
10982 /* The GNU C library defines this for functions which it implements
10983     to always fail with ENOSYS.  Some functions are actually named
10984     something starting with __ and the normal name is an alias.  */
10985 #if defined __stub_$ac_func || defined __stub___$ac_func
10986 choke me
10987 #endif
10988
10989 int
10990 main ()
10991 {
10992 return $ac_func ();
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (ac_try="$ac_link"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_link") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012   { (case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_try") 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest$ac_exeext'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   eval "$as_ac_var=yes"
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036         eval "$as_ac_var=no"
11037 fi
11038
11039 rm -f core conftest.err conftest.$ac_objext \
11040       conftest$ac_exeext conftest.$ac_ext
11041 fi
11042 ac_res=`eval echo '${'$as_ac_var'}'`
11043                { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11045 if test `eval echo '${'$as_ac_var'}'` = yes; then
11046   cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 _ACEOF
11049
11050 fi
11051 done
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11081                   stdio.h unistd.h
11082 do
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 fi
11090 ac_res=`eval echo '${'$as_ac_Header'}'`
11091                { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 else
11094   # Is the header compilable?
11095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 $ac_includes_default
11104 #include <$ac_header>
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (ac_try="$ac_compile"
11108 case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_compile") 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } &&
11120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121   { (case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_try") 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; }; then
11140   ac_header_compiler=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145         ac_header_compiler=no
11146 fi
11147
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6; }
11151
11152 # Is the header present?
11153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 #include <$ac_header>
11162 _ACEOF
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } >/dev/null; then
11176   if test -s conftest.err; then
11177     ac_cpp_err=$ac_c_preproc_warn_flag
11178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11179   else
11180     ac_cpp_err=
11181   fi
11182 else
11183   ac_cpp_err=yes
11184 fi
11185 if test -z "$ac_cpp_err"; then
11186   ac_header_preproc=yes
11187 else
11188   echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191   ac_header_preproc=no
11192 fi
11193
11194 rm -f conftest.err conftest.$ac_ext
11195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6; }
11197
11198 # So?  What about this header?
11199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11200   yes:no: )
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205     ac_header_preproc=yes
11206     ;;
11207   no:yes:* )
11208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220     ( cat <<\_ASBOX
11221 ## ------------------------------------ ##
11222 ## Report this to http://llvm.org/bugs/ ##
11223 ## ------------------------------------ ##
11224 _ASBOX
11225      ) | sed "s/^/$as_me: WARNING:     /" >&2
11226     ;;
11227 esac
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   eval "$as_ac_Header=\$ac_header_preproc"
11234 fi
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236                { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238
11239 fi
11240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11241   cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11243 _ACEOF
11244
11245 fi
11246
11247 done
11248
11249
11250
11251
11252
11253 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11254 do
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 fi
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263                { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11265 else
11266   # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 $ac_includes_default
11276 #include <$ac_header>
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_compile") 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293   { (case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_try") 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; } &&
11302          { ac_try='test -s conftest.$ac_objext'
11303   { (case "(($ac_try" in
11304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305   *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308   (eval "$ac_try") 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_header_compiler=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317         ac_header_compiler=no
11318 fi
11319
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11323
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 #include <$ac_header>
11334 _ACEOF
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } >/dev/null; then
11348   if test -s conftest.err; then
11349     ac_cpp_err=$ac_c_preproc_warn_flag
11350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11351   else
11352     ac_cpp_err=
11353   fi
11354 else
11355   ac_cpp_err=yes
11356 fi
11357 if test -z "$ac_cpp_err"; then
11358   ac_header_preproc=yes
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363   ac_header_preproc=no
11364 fi
11365
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11369
11370 # So?  What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372   yes:no: )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377     ac_header_preproc=yes
11378     ;;
11379   no:yes:* )
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392     ( cat <<\_ASBOX
11393 ## ------------------------------------ ##
11394 ## Report this to http://llvm.org/bugs/ ##
11395 ## ------------------------------------ ##
11396 _ASBOX
11397      ) | sed "s/^/$as_me: WARNING:     /" >&2
11398     ;;
11399 esac
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   eval "$as_ac_Header=\$ac_header_preproc"
11406 fi
11407 ac_res=`eval echo '${'$as_ac_Header'}'`
11408                { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11410
11411 fi
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413   cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 _ACEOF
11416
11417 fi
11418
11419 done
11420
11421
11422
11423 for ac_header in string.h strings.h
11424 do
11425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 fi
11432 ac_res=`eval echo '${'$as_ac_Header'}'`
11433                { echo "$as_me:$LINENO: result: $ac_res" >&5
11434 echo "${ECHO_T}$ac_res" >&6; }
11435 else
11436   # Is the header compilable?
11437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445 $ac_includes_default
11446 #include <$ac_header>
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (ac_try="$ac_compile"
11450 case "(($ac_try" in
11451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452   *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455   (eval "$ac_compile") 2>conftest.er1
11456   ac_status=$?
11457   grep -v '^ *+' conftest.er1 >conftest.err
11458   rm -f conftest.er1
11459   cat conftest.err >&5
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); } &&
11462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463   { (case "(($ac_try" in
11464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465   *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468   (eval "$ac_try") 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); }; } &&
11472          { ac_try='test -s conftest.$ac_objext'
11473   { (case "(($ac_try" in
11474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475   *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478   (eval "$ac_try") 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; }; then
11482   ac_header_compiler=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487         ac_header_compiler=no
11488 fi
11489
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6; }
11493
11494 # Is the header present?
11495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (ac_try="$ac_cpp conftest.$ac_ext"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11512   ac_status=$?
11513   grep -v '^ *+' conftest.er1 >conftest.err
11514   rm -f conftest.er1
11515   cat conftest.err >&5
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } >/dev/null; then
11518   if test -s conftest.err; then
11519     ac_cpp_err=$ac_c_preproc_warn_flag
11520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11521   else
11522     ac_cpp_err=
11523   fi
11524 else
11525   ac_cpp_err=yes
11526 fi
11527 if test -z "$ac_cpp_err"; then
11528   ac_header_preproc=yes
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533   ac_header_preproc=no
11534 fi
11535
11536 rm -f conftest.err conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 echo "${ECHO_T}$ac_header_preproc" >&6; }
11539
11540 # So?  What about this header?
11541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11542   yes:no: )
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11547     ac_header_preproc=yes
11548     ;;
11549   no:yes:* )
11550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11562     ( cat <<\_ASBOX
11563 ## ------------------------------------ ##
11564 ## Report this to http://llvm.org/bugs/ ##
11565 ## ------------------------------------ ##
11566 _ASBOX
11567      ) | sed "s/^/$as_me: WARNING:     /" >&2
11568     ;;
11569 esac
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   eval "$as_ac_Header=\$ac_header_preproc"
11576 fi
11577 ac_res=`eval echo '${'$as_ac_Header'}'`
11578                { echo "$as_me:$LINENO: result: $ac_res" >&5
11579 echo "${ECHO_T}$ac_res" >&6; }
11580
11581 fi
11582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11583   cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11585 _ACEOF
11586  break
11587 fi
11588
11589 done
11590
11591
11592
11593
11594 for ac_func in strchr index
11595 do
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11610 #define $ac_func innocuous_$ac_func
11611
11612 /* System header to define __stub macros and hopefully few prototypes,
11613     which can conflict with char $ac_func (); below.
11614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615     <limits.h> exists even on freestanding compilers.  */
11616
11617 #ifdef __STDC__
11618 # include <limits.h>
11619 #else
11620 # include <assert.h>
11621 #endif
11622
11623 #undef $ac_func
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626    Use char because int might match the return type of a GCC
11627    builtin and then its argument prototype would still apply.  */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char $ac_func ();
11632 /* The GNU C library defines this for functions which it implements
11633     to always fail with ENOSYS.  Some functions are actually named
11634     something starting with __ and the normal name is an alias.  */
11635 #if defined __stub_$ac_func || defined __stub___$ac_func
11636 choke me
11637 #endif
11638
11639 int
11640 main ()
11641 {
11642 return $ac_func ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_link") 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } &&
11661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662   { (case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_try") 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; } &&
11671          { ac_try='test -s conftest$ac_exeext'
11672   { (case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_try") 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   eval "$as_ac_var=yes"
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686         eval "$as_ac_var=no"
11687 fi
11688
11689 rm -f core conftest.err conftest.$ac_objext \
11690       conftest$ac_exeext conftest.$ac_ext
11691 fi
11692 ac_res=`eval echo '${'$as_ac_var'}'`
11693                { echo "$as_me:$LINENO: result: $ac_res" >&5
11694 echo "${ECHO_T}$ac_res" >&6; }
11695 if test `eval echo '${'$as_ac_var'}'` = yes; then
11696   cat >>confdefs.h <<_ACEOF
11697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11698 _ACEOF
11699  break
11700 fi
11701 done
11702
11703
11704
11705 for ac_func in strrchr rindex
11706 do
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11721 #define $ac_func innocuous_$ac_func
11722
11723 /* System header to define __stub macros and hopefully few prototypes,
11724     which can conflict with char $ac_func (); below.
11725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726     <limits.h> exists even on freestanding compilers.  */
11727
11728 #ifdef __STDC__
11729 # include <limits.h>
11730 #else
11731 # include <assert.h>
11732 #endif
11733
11734 #undef $ac_func
11735
11736 /* Override any GCC internal prototype to avoid an error.
11737    Use char because int might match the return type of a GCC
11738    builtin and then its argument prototype would still apply.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char $ac_func ();
11743 /* The GNU C library defines this for functions which it implements
11744     to always fail with ENOSYS.  Some functions are actually named
11745     something starting with __ and the normal name is an alias.  */
11746 #if defined __stub_$ac_func || defined __stub___$ac_func
11747 choke me
11748 #endif
11749
11750 int
11751 main ()
11752 {
11753 return $ac_func ();
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773   { (case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_try") 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; } &&
11782          { ac_try='test -s conftest$ac_exeext'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; }; then
11792   eval "$as_ac_var=yes"
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797         eval "$as_ac_var=no"
11798 fi
11799
11800 rm -f core conftest.err conftest.$ac_objext \
11801       conftest$ac_exeext conftest.$ac_ext
11802 fi
11803 ac_res=`eval echo '${'$as_ac_var'}'`
11804                { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11806 if test `eval echo '${'$as_ac_var'}'` = yes; then
11807   cat >>confdefs.h <<_ACEOF
11808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11809 _ACEOF
11810  break
11811 fi
11812 done
11813
11814
11815
11816 for ac_func in memcpy bcopy
11817 do
11818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11832 #define $ac_func innocuous_$ac_func
11833
11834 /* System header to define __stub macros and hopefully few prototypes,
11835     which can conflict with char $ac_func (); below.
11836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837     <limits.h> exists even on freestanding compilers.  */
11838
11839 #ifdef __STDC__
11840 # include <limits.h>
11841 #else
11842 # include <assert.h>
11843 #endif
11844
11845 #undef $ac_func
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848    Use char because int might match the return type of a GCC
11849    builtin and then its argument prototype would still apply.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char $ac_func ();
11854 /* The GNU C library defines this for functions which it implements
11855     to always fail with ENOSYS.  Some functions are actually named
11856     something starting with __ and the normal name is an alias.  */
11857 #if defined __stub_$ac_func || defined __stub___$ac_func
11858 choke me
11859 #endif
11860
11861 int
11862 main ()
11863 {
11864 return $ac_func ();
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (ac_try="$ac_link"
11871 case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_link") 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } &&
11883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884   { (case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_try") 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; } &&
11893          { ac_try='test -s conftest$ac_exeext'
11894   { (case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899   (eval "$ac_try") 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   eval "$as_ac_var=yes"
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908         eval "$as_ac_var=no"
11909 fi
11910
11911 rm -f core conftest.err conftest.$ac_objext \
11912       conftest$ac_exeext conftest.$ac_ext
11913 fi
11914 ac_res=`eval echo '${'$as_ac_var'}'`
11915                { echo "$as_me:$LINENO: result: $ac_res" >&5
11916 echo "${ECHO_T}$ac_res" >&6; }
11917 if test `eval echo '${'$as_ac_var'}'` = yes; then
11918   cat >>confdefs.h <<_ACEOF
11919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 _ACEOF
11921  break
11922 fi
11923 done
11924
11925
11926
11927 for ac_func in memmove strcmp
11928 do
11929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11943 #define $ac_func innocuous_$ac_func
11944
11945 /* System header to define __stub macros and hopefully few prototypes,
11946     which can conflict with char $ac_func (); below.
11947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948     <limits.h> exists even on freestanding compilers.  */
11949
11950 #ifdef __STDC__
11951 # include <limits.h>
11952 #else
11953 # include <assert.h>
11954 #endif
11955
11956 #undef $ac_func
11957
11958 /* Override any GCC internal prototype to avoid an error.
11959    Use char because int might match the return type of a GCC
11960    builtin and then its argument prototype would still apply.  */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char $ac_func ();
11965 /* The GNU C library defines this for functions which it implements
11966     to always fail with ENOSYS.  Some functions are actually named
11967     something starting with __ and the normal name is an alias.  */
11968 #if defined __stub_$ac_func || defined __stub___$ac_func
11969 choke me
11970 #endif
11971
11972 int
11973 main ()
11974 {
11975 return $ac_func ();
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_link") 2>conftest.er1
11988   ac_status=$?
11989   grep -v '^ *+' conftest.er1 >conftest.err
11990   rm -f conftest.er1
11991   cat conftest.err >&5
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); } &&
11994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995   { (case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_try") 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; } &&
12004          { ac_try='test -s conftest$ac_exeext'
12005   { (case "(($ac_try" in
12006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007   *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010   (eval "$ac_try") 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; }; then
12014   eval "$as_ac_var=yes"
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019         eval "$as_ac_var=no"
12020 fi
12021
12022 rm -f core conftest.err conftest.$ac_objext \
12023       conftest$ac_exeext conftest.$ac_ext
12024 fi
12025 ac_res=`eval echo '${'$as_ac_var'}'`
12026                { echo "$as_me:$LINENO: result: $ac_res" >&5
12027 echo "${ECHO_T}$ac_res" >&6; }
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029   cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 _ACEOF
12032
12033 fi
12034 done
12035
12036
12037
12038
12039 for ac_func in closedir opendir readdir
12040 do
12041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12055 #define $ac_func innocuous_$ac_func
12056
12057 /* System header to define __stub macros and hopefully few prototypes,
12058     which can conflict with char $ac_func (); below.
12059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12060     <limits.h> exists even on freestanding compilers.  */
12061
12062 #ifdef __STDC__
12063 # include <limits.h>
12064 #else
12065 # include <assert.h>
12066 #endif
12067
12068 #undef $ac_func
12069
12070 /* Override any GCC internal prototype to avoid an error.
12071    Use char because int might match the return type of a GCC
12072    builtin and then its argument prototype would still apply.  */
12073 #ifdef __cplusplus
12074 extern "C"
12075 #endif
12076 char $ac_func ();
12077 /* The GNU C library defines this for functions which it implements
12078     to always fail with ENOSYS.  Some functions are actually named
12079     something starting with __ and the normal name is an alias.  */
12080 #if defined __stub_$ac_func || defined __stub___$ac_func
12081 choke me
12082 #endif
12083
12084 int
12085 main ()
12086 {
12087 return $ac_func ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (ac_try="$ac_link"
12094 case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_link") 2>conftest.er1
12100   ac_status=$?
12101   grep -v '^ *+' conftest.er1 >conftest.err
12102   rm -f conftest.er1
12103   cat conftest.err >&5
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } &&
12106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107   { (case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_try") 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest$ac_exeext'
12117   { (case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_try") 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   eval "$as_ac_var=yes"
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131         eval "$as_ac_var=no"
12132 fi
12133
12134 rm -f core conftest.err conftest.$ac_objext \
12135       conftest$ac_exeext conftest.$ac_ext
12136 fi
12137 ac_res=`eval echo '${'$as_ac_var'}'`
12138                { echo "$as_me:$LINENO: result: $ac_res" >&5
12139 echo "${ECHO_T}$ac_res" >&6; }
12140 if test `eval echo '${'$as_ac_var'}'` = yes; then
12141   cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12143 _ACEOF
12144
12145 fi
12146 done
12147
12148
12149
12150 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12151 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12152
12153 ICC=no
12154 IXX=no
12155 case $CC in
12156   icc*|icpc*)
12157     ICC=yes
12158     IXX=yes
12159     ;;
12160    *)
12161     ;;
12162 esac
12163
12164 if test "$GCC" != "yes" && test "$ICC" != "yes"
12165 then
12166   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12167 echo "$as_me: error: gcc|icc required but not found" >&2;}
12168    { (exit 1); exit 1; }; }
12169 fi
12170
12171 if test "$GXX" != "yes" && test "$IXX" != "yes"
12172 then
12173   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12174 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12175    { (exit 1); exit 1; }; }
12176 fi
12177
12178 if test "$GCC" = "yes"
12179 then
12180   cat >conftest.$ac_ext <<_ACEOF
12181
12182   /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188     #if !defined(__GNUC__) || __GNUC__ < 3
12189     #error Unsupported GCC version
12190     #endif
12191
12192
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_compile") 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209   { (case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_try") 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest.$ac_objext'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   :
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12235    { (exit 1); exit 1; }; }
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 fi
12240
12241 if test -z "$llvm_cv_gnu_make_command"
12242 then
12243   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12244 echo "$as_me: error: GNU Make required but not found" >&2;}
12245    { (exit 1); exit 1; }; }
12246 fi
12247
12248 { echo "$as_me:$LINENO: result: ok" >&5
12249 echo "${ECHO_T}ok" >&6; }
12250
12251 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12252 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12253 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12254
12255 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12256
12257 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12258
12259 if test "$GXX" = "yes"
12260 then
12261   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12262
12263         if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12264   then
12265     NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12266
12267   else
12268                     gxx_version=`$CXX -dumpversion`
12269     gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12270     gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12271     gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12272
12273     if    test "$gxx_version_major" -ge "4" \
12274        && test "$gxx_version_minor" -ge "7"; then
12275             NO_UNINITIALIZED=
12276     else
12277       NO_MAYBE_UNINITIALIZED=
12278       NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12279
12280     fi
12281   fi
12282 else
12283   NO_UNINITIALIZED=
12284   NO_MAYBE_UNINITIALIZED=
12285 fi
12286 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12287 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12288
12289
12290
12291
12292 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12293 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12294 if test "${ac_cv_lib_m_sin+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lm  $LIBS"
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305
12306 /* Override any GCC internal prototype to avoid an error.
12307    Use char because int might match the return type of a GCC
12308    builtin and then its argument prototype would still apply.  */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char sin ();
12313 int
12314 main ()
12315 {
12316 return sin ();
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_link") 2>conftest.er1
12329   ac_status=$?
12330   grep -v '^ *+' conftest.er1 >conftest.err
12331   rm -f conftest.er1
12332   cat conftest.err >&5
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } &&
12335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12336   { (case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_try") 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (case "(($ac_try" in
12347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348   *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351   (eval "$ac_try") 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; }; then
12355   ac_cv_lib_m_sin=yes
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360         ac_cv_lib_m_sin=no
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext \
12364       conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12368 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12369 if test $ac_cv_lib_m_sin = yes; then
12370   cat >>confdefs.h <<_ACEOF
12371 #define HAVE_LIBM 1
12372 _ACEOF
12373
12374   LIBS="-lm $LIBS"
12375
12376 fi
12377
12378 if test "$llvm_cv_os_type" = "MingW" ; then
12379
12380 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12381 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12382 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385   ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-limagehlp  $LIBS"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393
12394
12395 int
12396 main ()
12397 {
12398 return main ();
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_link") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_lib_imagehlp_main=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         ac_cv_lib_imagehlp_main=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext \
12446       conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12448 fi
12449 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12450 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12451 if test $ac_cv_lib_imagehlp_main = yes; then
12452   cat >>confdefs.h <<_ACEOF
12453 #define HAVE_LIBIMAGEHLP 1
12454 _ACEOF
12455
12456   LIBS="-limagehlp $LIBS"
12457
12458 fi
12459
12460
12461 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12462 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_psapi_main+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lpsapi  $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475
12476 int
12477 main ()
12478 {
12479 return main ();
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_link") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12499   { (case "(($ac_try" in
12500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501   *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504   (eval "$ac_try") 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_try") 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_cv_lib_psapi_main=yes
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         ac_cv_lib_psapi_main=no
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext \
12527       conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12531 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12532 if test $ac_cv_lib_psapi_main = yes; then
12533   cat >>confdefs.h <<_ACEOF
12534 #define HAVE_LIBPSAPI 1
12535 _ACEOF
12536
12537   LIBS="-lpsapi $LIBS"
12538
12539 fi
12540
12541 fi
12542
12543 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12544 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12545 if test "${ac_cv_search_dlopen+set}" = set; then
12546   echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548   ac_func_search_save_LIBS=$LIBS
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555
12556 /* Override any GCC internal prototype to avoid an error.
12557    Use char because int might match the return type of a GCC
12558    builtin and then its argument prototype would still apply.  */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char dlopen ();
12563 int
12564 main ()
12565 {
12566 return dlopen ();
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 for ac_lib in '' dl; do
12572   if test -z "$ac_lib"; then
12573     ac_res="none required"
12574   else
12575     ac_res=-l$ac_lib
12576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12577   fi
12578   rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (ac_try="$ac_link"
12580 case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585   (eval "$ac_link") 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12593   { (case "(($ac_try" in
12594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595   *) ac_try_echo=$ac_try;;
12596 esac
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598   (eval "$ac_try") 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; } &&
12602          { ac_try='test -s conftest$ac_exeext'
12603   { (case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_try") 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; }; then
12612   ac_cv_search_dlopen=$ac_res
12613 else
12614   echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617
12618 fi
12619
12620 rm -f core conftest.err conftest.$ac_objext \
12621       conftest$ac_exeext
12622   if test "${ac_cv_search_dlopen+set}" = set; then
12623   break
12624 fi
12625 done
12626 if test "${ac_cv_search_dlopen+set}" = set; then
12627   :
12628 else
12629   ac_cv_search_dlopen=no
12630 fi
12631 rm conftest.$ac_ext
12632 LIBS=$ac_func_search_save_LIBS
12633 fi
12634 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12635 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12636 ac_res=$ac_cv_search_dlopen
12637 if test "$ac_res" != no; then
12638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12639
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_DLOPEN 1
12642 _ACEOF
12643
12644 else
12645   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12646 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12647 fi
12648
12649
12650 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12651 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12652 if test "${ac_cv_search_clock_gettime+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   ac_func_search_save_LIBS=$LIBS
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662
12663 /* Override any GCC internal prototype to avoid an error.
12664    Use char because int might match the return type of a GCC
12665    builtin and then its argument prototype would still apply.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char clock_gettime ();
12670 int
12671 main ()
12672 {
12673 return clock_gettime ();
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 for ac_lib in '' rt; do
12679   if test -z "$ac_lib"; then
12680     ac_res="none required"
12681   else
12682     ac_res=-l$ac_lib
12683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12684   fi
12685   rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_search_clock_gettime=$ac_res
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext \
12728       conftest$ac_exeext
12729   if test "${ac_cv_search_clock_gettime+set}" = set; then
12730   break
12731 fi
12732 done
12733 if test "${ac_cv_search_clock_gettime+set}" = set; then
12734   :
12735 else
12736   ac_cv_search_clock_gettime=no
12737 fi
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12740 fi
12741 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12742 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12743 ac_res=$ac_cv_search_clock_gettime
12744 if test "$ac_res" != no; then
12745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747 fi
12748
12749
12750 if test "$llvm_cv_enable_libffi" = "yes" ; then
12751   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12752 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12753 if test "${ac_cv_search_ffi_call+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   ac_func_search_save_LIBS=$LIBS
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765    Use char because int might match the return type of a GCC
12766    builtin and then its argument prototype would still apply.  */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char ffi_call ();
12771 int
12772 main ()
12773 {
12774 return ffi_call ();
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 for ac_lib in '' ffi; do
12780   if test -z "$ac_lib"; then
12781     ac_res="none required"
12782   else
12783     ac_res=-l$ac_lib
12784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12785   fi
12786   rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (ac_try="$ac_link"
12788 case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793   (eval "$ac_link") 2>conftest.er1
12794   ac_status=$?
12795   grep -v '^ *+' conftest.er1 >conftest.err
12796   rm -f conftest.er1
12797   cat conftest.err >&5
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } &&
12800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12801   { (case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_try") 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; } &&
12810          { ac_try='test -s conftest$ac_exeext'
12811   { (case "(($ac_try" in
12812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813   *) ac_try_echo=$ac_try;;
12814 esac
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816   (eval "$ac_try") 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   ac_cv_search_ffi_call=$ac_res
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825
12826 fi
12827
12828 rm -f core conftest.err conftest.$ac_objext \
12829       conftest$ac_exeext
12830   if test "${ac_cv_search_ffi_call+set}" = set; then
12831   break
12832 fi
12833 done
12834 if test "${ac_cv_search_ffi_call+set}" = set; then
12835   :
12836 else
12837   ac_cv_search_ffi_call=no
12838 fi
12839 rm conftest.$ac_ext
12840 LIBS=$ac_func_search_save_LIBS
12841 fi
12842 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12843 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12844 ac_res=$ac_cv_search_ffi_call
12845 if test "$ac_res" != no; then
12846   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12847
12848 cat >>confdefs.h <<\_ACEOF
12849 #define HAVE_FFI_CALL 1
12850 _ACEOF
12851
12852 else
12853   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12854 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12855    { (exit 1); exit 1; }; }
12856 fi
12857
12858 fi
12859
12860 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12861 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_mallinfo+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 /* Override any GCC internal prototype to avoid an error.
12874    Use char because int might match the return type of a GCC
12875    builtin and then its argument prototype would still apply.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char mallinfo ();
12880 int
12881 main ()
12882 {
12883 return mallinfo ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 for ac_lib in '' malloc; do
12889   if test -z "$ac_lib"; then
12890     ac_res="none required"
12891   else
12892     ac_res=-l$ac_lib
12893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12894   fi
12895   rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_link") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910   { (case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_try") 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (case "(($ac_try" in
12921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922   *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925   (eval "$ac_try") 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; }; then
12929   ac_cv_search_mallinfo=$ac_res
12930 else
12931   echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934
12935 fi
12936
12937 rm -f core conftest.err conftest.$ac_objext \
12938       conftest$ac_exeext
12939   if test "${ac_cv_search_mallinfo+set}" = set; then
12940   break
12941 fi
12942 done
12943 if test "${ac_cv_search_mallinfo+set}" = set; then
12944   :
12945 else
12946   ac_cv_search_mallinfo=no
12947 fi
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12950 fi
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12952 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12953 ac_res=$ac_cv_search_mallinfo
12954 if test "$ac_res" != no; then
12955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12956
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_MALLINFO 1
12959 _ACEOF
12960
12961 fi
12962
12963
12964 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12965
12966 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12967 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12968 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   ac_check_lib_save_LIBS=$LIBS
12972 LIBS="-lpthread  $LIBS"
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979
12980 /* Override any GCC internal prototype to avoid an error.
12981    Use char because int might match the return type of a GCC
12982    builtin and then its argument prototype would still apply.  */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 char pthread_mutex_init ();
12987 int
12988 main ()
12989 {
12990 return pthread_mutex_init ();
12991   ;
12992   return 0;
12993 }
12994 _ACEOF
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (ac_try="$ac_link"
12997 case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_link") 2>conftest.er1
13003   ac_status=$?
13004   grep -v '^ *+' conftest.er1 >conftest.err
13005   rm -f conftest.er1
13006   cat conftest.err >&5
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010   { (case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_try") 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; } &&
13019          { ac_try='test -s conftest$ac_exeext'
13020   { (case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_try") 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029   ac_cv_lib_pthread_pthread_mutex_init=yes
13030 else
13031   echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034         ac_cv_lib_pthread_pthread_mutex_init=no
13035 fi
13036
13037 rm -f core conftest.err conftest.$ac_objext \
13038       conftest$ac_exeext conftest.$ac_ext
13039 LIBS=$ac_check_lib_save_LIBS
13040 fi
13041 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13042 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13043 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13044   cat >>confdefs.h <<_ACEOF
13045 #define HAVE_LIBPTHREAD 1
13046 _ACEOF
13047
13048   LIBS="-lpthread $LIBS"
13049
13050 fi
13051
13052   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13053 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13054 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   ac_func_search_save_LIBS=$LIBS
13058 cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064
13065 /* Override any GCC internal prototype to avoid an error.
13066    Use char because int might match the return type of a GCC
13067    builtin and then its argument prototype would still apply.  */
13068 #ifdef __cplusplus
13069 extern "C"
13070 #endif
13071 char pthread_mutex_lock ();
13072 int
13073 main ()
13074 {
13075 return pthread_mutex_lock ();
13076   ;
13077   return 0;
13078 }
13079 _ACEOF
13080 for ac_lib in '' pthread; do
13081   if test -z "$ac_lib"; then
13082     ac_res="none required"
13083   else
13084     ac_res=-l$ac_lib
13085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13086   fi
13087   rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091   *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094   (eval "$ac_link") 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102   { (case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107   (eval "$ac_try") 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest$ac_exeext'
13112   { (case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117   (eval "$ac_try") 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; }; then
13121   ac_cv_search_pthread_mutex_lock=$ac_res
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126
13127 fi
13128
13129 rm -f core conftest.err conftest.$ac_objext \
13130       conftest$ac_exeext
13131   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13132   break
13133 fi
13134 done
13135 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13136   :
13137 else
13138   ac_cv_search_pthread_mutex_lock=no
13139 fi
13140 rm conftest.$ac_ext
13141 LIBS=$ac_func_search_save_LIBS
13142 fi
13143 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13144 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13145 ac_res=$ac_cv_search_pthread_mutex_lock
13146 if test "$ac_res" != no; then
13147   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13148
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_PTHREAD_MUTEX_LOCK 1
13151 _ACEOF
13152
13153 fi
13154
13155   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13156 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13157 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   ac_func_search_save_LIBS=$LIBS
13161 cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167
13168 /* Override any GCC internal prototype to avoid an error.
13169    Use char because int might match the return type of a GCC
13170    builtin and then its argument prototype would still apply.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 char pthread_rwlock_init ();
13175 int
13176 main ()
13177 {
13178 return pthread_rwlock_init ();
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 for ac_lib in '' pthread; do
13184   if test -z "$ac_lib"; then
13185     ac_res="none required"
13186   else
13187     ac_res=-l$ac_lib
13188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13189   fi
13190   rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205   { (case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210   (eval "$ac_try") 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; } &&
13214          { ac_try='test -s conftest$ac_exeext'
13215   { (case "(($ac_try" in
13216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217   *) ac_try_echo=$ac_try;;
13218 esac
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220   (eval "$ac_try") 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); }; }; then
13224   ac_cv_search_pthread_rwlock_init=$ac_res
13225 else
13226   echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229
13230 fi
13231
13232 rm -f core conftest.err conftest.$ac_objext \
13233       conftest$ac_exeext
13234   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13235   break
13236 fi
13237 done
13238 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13239   :
13240 else
13241   ac_cv_search_pthread_rwlock_init=no
13242 fi
13243 rm conftest.$ac_ext
13244 LIBS=$ac_func_search_save_LIBS
13245 fi
13246 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13247 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13248 ac_res=$ac_cv_search_pthread_rwlock_init
13249 if test "$ac_res" != no; then
13250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13251
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_PTHREAD_RWLOCK_INIT 1
13254 _ACEOF
13255
13256 fi
13257
13258   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13259 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13260 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   ac_func_search_save_LIBS=$LIBS
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270
13271 /* Override any GCC internal prototype to avoid an error.
13272    Use char because int might match the return type of a GCC
13273    builtin and then its argument prototype would still apply.  */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char pthread_getspecific ();
13278 int
13279 main ()
13280 {
13281 return pthread_getspecific ();
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 for ac_lib in '' pthread; do
13287   if test -z "$ac_lib"; then
13288     ac_res="none required"
13289   else
13290     ac_res=-l$ac_lib
13291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13292   fi
13293   rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_link") 2>conftest.er1
13301   ac_status=$?
13302   grep -v '^ *+' conftest.er1 >conftest.err
13303   rm -f conftest.er1
13304   cat conftest.err >&5
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); } &&
13307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308   { (case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_try") 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; } &&
13317          { ac_try='test -s conftest$ac_exeext'
13318   { (case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_try") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_search_pthread_getspecific=$ac_res
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332
13333 fi
13334
13335 rm -f core conftest.err conftest.$ac_objext \
13336       conftest$ac_exeext
13337   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13338   break
13339 fi
13340 done
13341 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13342   :
13343 else
13344   ac_cv_search_pthread_getspecific=no
13345 fi
13346 rm conftest.$ac_ext
13347 LIBS=$ac_func_search_save_LIBS
13348 fi
13349 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13350 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13351 ac_res=$ac_cv_search_pthread_getspecific
13352 if test "$ac_res" != no; then
13353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_PTHREAD_GETSPECIFIC 1
13357 _ACEOF
13358
13359 fi
13360
13361 fi
13362
13363
13364 # Check whether --with-udis86 was given.
13365 if test "${with_udis86+set}" = set; then
13366   withval=$with_udis86;
13367       USE_UDIS86=1
13368
13369       case "$withval" in
13370         /usr/lib|yes) ;;
13371         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13372       esac
13373
13374 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13375 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13376 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13377   echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379   ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-ludis86  $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387
13388 /* Override any GCC internal prototype to avoid an error.
13389    Use char because int might match the return type of a GCC
13390    builtin and then its argument prototype would still apply.  */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char ud_init ();
13395 int
13396 main ()
13397 {
13398 return ud_init ();
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest$ac_exeext'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_lib_udis86_ud_init=yes
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442         ac_cv_lib_udis86_ud_init=no
13443 fi
13444
13445 rm -f core conftest.err conftest.$ac_objext \
13446       conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13448 fi
13449 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13450 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13451 if test $ac_cv_lib_udis86_ud_init = yes; then
13452   cat >>confdefs.h <<_ACEOF
13453 #define HAVE_LIBUDIS86 1
13454 _ACEOF
13455
13456   LIBS="-ludis86 $LIBS"
13457
13458 else
13459
13460         echo "Error! You need to have libudis86 around."
13461         exit -1
13462
13463 fi
13464
13465
13466 else
13467   USE_UDIS86=0
13468
13469 fi
13470
13471
13472 cat >>confdefs.h <<_ACEOF
13473 #define USE_UDIS86 $USE_UDIS86
13474 _ACEOF
13475
13476
13477
13478 # Check whether --with-oprofile was given.
13479 if test "${with_oprofile+set}" = set; then
13480   withval=$with_oprofile;
13481       USE_OPROFILE=1
13482
13483       case "$withval" in
13484         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13485         no) llvm_cv_oppath=
13486             USE_OPROFILE=0
13487  ;;
13488         *) llvm_cv_oppath="${withval}/lib/oprofile"
13489            CPPFLAGS="-I${withval}/include";;
13490       esac
13491       case $llvm_cv_os_type in
13492         Linux)
13493           if test -n "$llvm_cv_oppath" ; then
13494             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13495                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13496 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13497 if test "${ac_cv_search_bfd_init+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   ac_func_search_save_LIBS=$LIBS
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507
13508 /* Override any GCC internal prototype to avoid an error.
13509    Use char because int might match the return type of a GCC
13510    builtin and then its argument prototype would still apply.  */
13511 #ifdef __cplusplus
13512 extern "C"
13513 #endif
13514 char bfd_init ();
13515 int
13516 main ()
13517 {
13518 return bfd_init ();
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 for ac_lib in '' bfd; do
13524   if test -z "$ac_lib"; then
13525     ac_res="none required"
13526   else
13527     ac_res=-l$ac_lib
13528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13529   fi
13530   rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (ac_try="$ac_link"
13532 case "(($ac_try" in
13533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534   *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537   (eval "$ac_link") 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13545   { (case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_try") 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest$ac_exeext'
13555   { (case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_try") 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; }; then
13564   ac_cv_search_bfd_init=$ac_res
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569
13570 fi
13571
13572 rm -f core conftest.err conftest.$ac_objext \
13573       conftest$ac_exeext
13574   if test "${ac_cv_search_bfd_init+set}" = set; then
13575   break
13576 fi
13577 done
13578 if test "${ac_cv_search_bfd_init+set}" = set; then
13579   :
13580 else
13581   ac_cv_search_bfd_init=no
13582 fi
13583 rm conftest.$ac_ext
13584 LIBS=$ac_func_search_save_LIBS
13585 fi
13586 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13587 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13588 ac_res=$ac_cv_search_bfd_init
13589 if test "$ac_res" != no; then
13590   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13591
13592 fi
13593
13594             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13595 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13596 if test "${ac_cv_search_op_open_agent+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   ac_func_search_save_LIBS=$LIBS
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606
13607 /* Override any GCC internal prototype to avoid an error.
13608    Use char because int might match the return type of a GCC
13609    builtin and then its argument prototype would still apply.  */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 char op_open_agent ();
13614 int
13615 main ()
13616 {
13617 return op_open_agent ();
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 for ac_lib in '' opagent; do
13623   if test -z "$ac_lib"; then
13624     ac_res="none required"
13625   else
13626     ac_res=-l$ac_lib
13627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13628   fi
13629   rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (ac_try="$ac_link"
13631 case "(($ac_try" in
13632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633   *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636   (eval "$ac_link") 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13644   { (case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_try") 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; } &&
13653          { ac_try='test -s conftest$ac_exeext'
13654   { (case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_try") 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; }; then
13663   ac_cv_search_op_open_agent=$ac_res
13664 else
13665   echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668
13669 fi
13670
13671 rm -f core conftest.err conftest.$ac_objext \
13672       conftest$ac_exeext
13673   if test "${ac_cv_search_op_open_agent+set}" = set; then
13674   break
13675 fi
13676 done
13677 if test "${ac_cv_search_op_open_agent+set}" = set; then
13678   :
13679 else
13680   ac_cv_search_op_open_agent=no
13681 fi
13682 rm conftest.$ac_ext
13683 LIBS=$ac_func_search_save_LIBS
13684 fi
13685 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13686 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13687 ac_res=$ac_cv_search_op_open_agent
13688 if test "$ac_res" != no; then
13689   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13690
13691 else
13692
13693               echo "Error! You need to have libopagent around."
13694               exit -1
13695
13696 fi
13697
13698             if test "${ac_cv_header_opagent_h+set}" = set; then
13699   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13700 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13701 if test "${ac_cv_header_opagent_h+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 fi
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13706 else
13707   # Is the header compilable?
13708 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13709 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 $ac_includes_default
13717 #include <opagent.h>
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (ac_try="$ac_compile"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_compile") 2>conftest.er1
13727   ac_status=$?
13728   grep -v '^ *+' conftest.er1 >conftest.err
13729   rm -f conftest.er1
13730   cat conftest.err >&5
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); } &&
13733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest.$ac_objext'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_header_compiler=yes
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758         ac_header_compiler=no
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13763 echo "${ECHO_T}$ac_header_compiler" >&6; }
13764
13765 # Is the header present?
13766 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13767 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 #include <opagent.h>
13775 _ACEOF
13776 if { (ac_try="$ac_cpp conftest.$ac_ext"
13777 case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13783   ac_status=$?
13784   grep -v '^ *+' conftest.er1 >conftest.err
13785   rm -f conftest.er1
13786   cat conftest.err >&5
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); } >/dev/null; then
13789   if test -s conftest.err; then
13790     ac_cpp_err=$ac_c_preproc_warn_flag
13791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13792   else
13793     ac_cpp_err=
13794   fi
13795 else
13796   ac_cpp_err=yes
13797 fi
13798 if test -z "$ac_cpp_err"; then
13799   ac_header_preproc=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804   ac_header_preproc=no
13805 fi
13806
13807 rm -f conftest.err conftest.$ac_ext
13808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13809 echo "${ECHO_T}$ac_header_preproc" >&6; }
13810
13811 # So?  What about this header?
13812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13813   yes:no: )
13814     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13815 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13816     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13817 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13818     ac_header_preproc=yes
13819     ;;
13820   no:yes:* )
13821     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13822 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13823     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13824 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13825     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13826 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13827     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13828 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13830 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13832 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13833     ( cat <<\_ASBOX
13834 ## ------------------------------------ ##
13835 ## Report this to http://llvm.org/bugs/ ##
13836 ## ------------------------------------ ##
13837 _ASBOX
13838      ) | sed "s/^/$as_me: WARNING:     /" >&2
13839     ;;
13840 esac
13841 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13842 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13843 if test "${ac_cv_header_opagent_h+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846   ac_cv_header_opagent_h=$ac_header_preproc
13847 fi
13848 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13849 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13850
13851 fi
13852 if test $ac_cv_header_opagent_h = yes; then
13853   :
13854 else
13855
13856               echo "Error! You need to have opagent.h around."
13857               exit -1
13858
13859 fi
13860
13861
13862           fi ;;
13863         *)
13864           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13865 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13866    { (exit 1); exit 1; }; } ;;
13867       esac
13868
13869 else
13870
13871       USE_OPROFILE=0
13872
13873
13874 fi
13875
13876
13877 cat >>confdefs.h <<_ACEOF
13878 #define LLVM_USE_OPROFILE $USE_OPROFILE
13879 _ACEOF
13880
13881
13882
13883 # Check whether --with-intel-jitevents was given.
13884 if test "${with_intel_jitevents+set}" = set; then
13885   withval=$with_intel_jitevents;
13886        case "$withval" in
13887           yes) USE_INTEL_JITEVENTS=1
13888 ;;
13889           no)  USE_INTEL_JITEVENTS=0
13890 ;;
13891           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13892 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13893    { (exit 1); exit 1; }; };;
13894        esac
13895
13896       case $llvm_cv_os_type in
13897         Linux|Win32|Cygwin|MingW) ;;
13898         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13899 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13900    { (exit 1); exit 1; }; };;
13901       esac
13902
13903       case "$llvm_cv_target_arch" in
13904         x86|x86_64) ;;
13905         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13906 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13907    { (exit 1); exit 1; }; };;
13908       esac
13909
13910 else
13911
13912       USE_INTEL_JITEVENTS=0
13913
13914
13915 fi
13916
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13920 _ACEOF
13921
13922
13923 for ac_prog in xml2-config
13924 do
13925   # Extract the first word of "$ac_prog", so it can be a program name with args.
13926 set dummy $ac_prog; ac_word=$2
13927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13929 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   if test -n "$XML2CONFIG"; then
13933   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13937 do
13938   IFS=$as_save_IFS
13939   test -z "$as_dir" && as_dir=.
13940   for ac_exec_ext in '' $ac_executable_extensions; do
13941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13942     ac_cv_prog_XML2CONFIG="$ac_prog"
13943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944     break 2
13945   fi
13946 done
13947 done
13948 IFS=$as_save_IFS
13949
13950 fi
13951 fi
13952 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13953 if test -n "$XML2CONFIG"; then
13954   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13955 echo "${ECHO_T}$XML2CONFIG" >&6; }
13956 else
13957   { echo "$as_me:$LINENO: result: no" >&5
13958 echo "${ECHO_T}no" >&6; }
13959 fi
13960
13961
13962   test -n "$XML2CONFIG" && break
13963 done
13964
13965
13966 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13967 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13968 if test "x$XML2CONFIG" = "x"; then
13969  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13970 echo "${ECHO_T}xml2-config not found" >&6; }
13971 else
13972  LIBXML2_INC=`$XML2CONFIG --cflags`
13973  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13974 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13975  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13976 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13977 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   ac_check_lib_save_LIBS=$LIBS
13981 LIBS="-lxml2  $LIBS"
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988
13989 /* Override any GCC internal prototype to avoid an error.
13990    Use char because int might match the return type of a GCC
13991    builtin and then its argument prototype would still apply.  */
13992 #ifdef __cplusplus
13993 extern "C"
13994 #endif
13995 char xmlReadFile ();
13996 int
13997 main ()
13998 {
13999 return xmlReadFile ();
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext conftest$ac_exeext
14005 if { (ac_try="$ac_link"
14006 case "(($ac_try" in
14007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008   *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011   (eval "$ac_link") 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14019   { (case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_try") 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; } &&
14028          { ac_try='test -s conftest$ac_exeext'
14029   { (case "(($ac_try" in
14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031   *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034   (eval "$ac_try") 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_cv_lib_xml2_xmlReadFile=yes
14039 else
14040   echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14042
14043         ac_cv_lib_xml2_xmlReadFile=no
14044 fi
14045
14046 rm -f core conftest.err conftest.$ac_objext \
14047       conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14051 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14052 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define CLANG_HAVE_LIBXML 1
14056 _ACEOF
14057
14058                                 LIBXML2_LIBS="-lxml2"
14059 fi
14060
14061 fi
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 ac_header_dirent=no
14072 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14073   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14074 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14075 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h.  */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h.  */
14085 #include <sys/types.h>
14086 #include <$ac_hdr>
14087
14088 int
14089 main ()
14090 {
14091 if ((DIR *) 0)
14092 return 0;
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101   *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104   (eval "$ac_compile") 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112   { (case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_try") 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; } &&
14121          { ac_try='test -s conftest.$ac_objext'
14122   { (case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_try") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; }; then
14131   eval "$as_ac_Header=yes"
14132 else
14133   echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136         eval "$as_ac_Header=no"
14137 fi
14138
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 ac_res=`eval echo '${'$as_ac_Header'}'`
14142                { echo "$as_me:$LINENO: result: $ac_res" >&5
14143 echo "${ECHO_T}$ac_res" >&6; }
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145   cat >>confdefs.h <<_ACEOF
14146 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14147 _ACEOF
14148
14149 ac_header_dirent=$ac_hdr; break
14150 fi
14151
14152 done
14153 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14154 if test $ac_header_dirent = dirent.h; then
14155   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14157 if test "${ac_cv_search_opendir+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   ac_func_search_save_LIBS=$LIBS
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167
14168 /* Override any GCC internal prototype to avoid an error.
14169    Use char because int might match the return type of a GCC
14170    builtin and then its argument prototype would still apply.  */
14171 #ifdef __cplusplus
14172 extern "C"
14173 #endif
14174 char opendir ();
14175 int
14176 main ()
14177 {
14178 return opendir ();
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 for ac_lib in '' dir; do
14184   if test -z "$ac_lib"; then
14185     ac_res="none required"
14186   else
14187     ac_res=-l$ac_lib
14188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14189   fi
14190   rm -f conftest.$ac_objext conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194   *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197   (eval "$ac_link") 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } &&
14204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205   { (case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210   (eval "$ac_try") 2>&5
14211   ac_status=$?
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); }; } &&
14214          { ac_try='test -s conftest$ac_exeext'
14215   { (case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_try") 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; }; then
14224   ac_cv_search_opendir=$ac_res
14225 else
14226   echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14228
14229
14230 fi
14231
14232 rm -f core conftest.err conftest.$ac_objext \
14233       conftest$ac_exeext
14234   if test "${ac_cv_search_opendir+set}" = set; then
14235   break
14236 fi
14237 done
14238 if test "${ac_cv_search_opendir+set}" = set; then
14239   :
14240 else
14241   ac_cv_search_opendir=no
14242 fi
14243 rm conftest.$ac_ext
14244 LIBS=$ac_func_search_save_LIBS
14245 fi
14246 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14247 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14248 ac_res=$ac_cv_search_opendir
14249 if test "$ac_res" != no; then
14250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14251
14252 fi
14253
14254 else
14255   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14256 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14257 if test "${ac_cv_search_opendir+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   ac_func_search_save_LIBS=$LIBS
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267
14268 /* Override any GCC internal prototype to avoid an error.
14269    Use char because int might match the return type of a GCC
14270    builtin and then its argument prototype would still apply.  */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char opendir ();
14275 int
14276 main ()
14277 {
14278 return opendir ();
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 for ac_lib in '' x; do
14284   if test -z "$ac_lib"; then
14285     ac_res="none required"
14286   else
14287     ac_res=-l$ac_lib
14288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14289   fi
14290   rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_link") 2>conftest.er1
14298   ac_status=$?
14299   grep -v '^ *+' conftest.er1 >conftest.err
14300   rm -f conftest.er1
14301   cat conftest.err >&5
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14305   { (case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_try") 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; } &&
14314          { ac_try='test -s conftest$ac_exeext'
14315   { (case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_search_opendir=$ac_res
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329
14330 fi
14331
14332 rm -f core conftest.err conftest.$ac_objext \
14333       conftest$ac_exeext
14334   if test "${ac_cv_search_opendir+set}" = set; then
14335   break
14336 fi
14337 done
14338 if test "${ac_cv_search_opendir+set}" = set; then
14339   :
14340 else
14341   ac_cv_search_opendir=no
14342 fi
14343 rm conftest.$ac_ext
14344 LIBS=$ac_func_search_save_LIBS
14345 fi
14346 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14347 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14348 ac_res=$ac_cv_search_opendir
14349 if test "$ac_res" != no; then
14350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14351
14352 fi
14353
14354 fi
14355
14356 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14357 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_mmap_anon+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361    ac_ext=c
14362 ac_cpp='$CPP $CPPFLAGS'
14363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14366
14367   cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <sys/mman.h>
14374 #include <unistd.h>
14375 #include <fcntl.h>
14376 int
14377 main ()
14378 {
14379 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_compile") 2>conftest.er1
14392   ac_status=$?
14393   grep -v '^ *+' conftest.er1 >conftest.err
14394   rm -f conftest.er1
14395   cat conftest.err >&5
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } &&
14398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_try") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; } &&
14408          { ac_try='test -s conftest.$ac_objext'
14409   { (case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_try") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_cv_header_mmap_anon=yes
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423         ac_cv_header_mmap_anon=no
14424 fi
14425
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427   ac_ext=c
14428 ac_cpp='$CPP $CPPFLAGS'
14429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14432
14433
14434 fi
14435 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14436 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14437 if test "$ac_cv_header_mmap_anon" = yes; then
14438
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_MMAP_ANONYMOUS 1
14441 _ACEOF
14442
14443 fi
14444
14445 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14446 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14447 if test "${ac_cv_header_stat_broken+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 #include <sys/types.h>
14457 #include <sys/stat.h>
14458
14459 #if defined S_ISBLK && defined S_IFDIR
14460 # if S_ISBLK (S_IFDIR)
14461 You lose.
14462 # endif
14463 #endif
14464
14465 #if defined S_ISBLK && defined S_IFCHR
14466 # if S_ISBLK (S_IFCHR)
14467 You lose.
14468 # endif
14469 #endif
14470
14471 #if defined S_ISLNK && defined S_IFREG
14472 # if S_ISLNK (S_IFREG)
14473 You lose.
14474 # endif
14475 #endif
14476
14477 #if defined S_ISSOCK && defined S_IFREG
14478 # if S_ISSOCK (S_IFREG)
14479 You lose.
14480 # endif
14481 #endif
14482
14483 _ACEOF
14484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14485   $EGREP "You lose" >/dev/null 2>&1; then
14486   ac_cv_header_stat_broken=yes
14487 else
14488   ac_cv_header_stat_broken=no
14489 fi
14490 rm -f conftest*
14491
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14494 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14495 if test $ac_cv_header_stat_broken = yes; then
14496
14497 cat >>confdefs.h <<\_ACEOF
14498 #define STAT_MACROS_BROKEN 1
14499 _ACEOF
14500
14501 fi
14502
14503 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14504 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14505 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 #include <sys/types.h>
14515 #include <sys/wait.h>
14516 #ifndef WEXITSTATUS
14517 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14518 #endif
14519 #ifndef WIFEXITED
14520 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14521 #endif
14522
14523 int
14524 main ()
14525 {
14526   int s;
14527   wait (&s);
14528   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (ac_try="$ac_compile"
14535 case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_compile") 2>conftest.er1
14541   ac_status=$?
14542   grep -v '^ *+' conftest.er1 >conftest.err
14543   rm -f conftest.er1
14544   cat conftest.err >&5
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } &&
14547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548   { (case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_try") 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; } &&
14557          { ac_try='test -s conftest.$ac_objext'
14558   { (case "(($ac_try" in
14559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560   *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563   (eval "$ac_try") 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   ac_cv_header_sys_wait_h=yes
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572         ac_cv_header_sys_wait_h=no
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 fi
14577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14579 if test $ac_cv_header_sys_wait_h = yes; then
14580
14581 cat >>confdefs.h <<\_ACEOF
14582 #define HAVE_SYS_WAIT_H 1
14583 _ACEOF
14584
14585 fi
14586
14587 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14588 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14589 if test "${ac_cv_header_time+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592   cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598 #include <sys/types.h>
14599 #include <sys/time.h>
14600 #include <time.h>
14601
14602 int
14603 main ()
14604 {
14605 if ((struct tm *) 0)
14606 return 0;
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615   *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618   (eval "$ac_compile") 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14626   { (case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631   (eval "$ac_try") 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (case "(($ac_try" in
14637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638   *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641   (eval "$ac_try") 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; }; then
14645   ac_cv_header_time=yes
14646 else
14647   echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650         ac_cv_header_time=no
14651 fi
14652
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 fi
14655 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14656 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14657 if test $ac_cv_header_time = yes; then
14658
14659 cat >>confdefs.h <<\_ACEOF
14660 #define TIME_WITH_SYS_TIME 1
14661 _ACEOF
14662
14663 fi
14664
14665
14666
14667
14668
14669
14670
14671
14672 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14673 do
14674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 fi
14681 ac_res=`eval echo '${'$as_ac_Header'}'`
14682                { echo "$as_me:$LINENO: result: $ac_res" >&5
14683 echo "${ECHO_T}$ac_res" >&6; }
14684 else
14685   # Is the header compilable?
14686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694 $ac_includes_default
14695 #include <$ac_header>
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_compile") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712   { (case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_try") 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (case "(($ac_try" in
14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724   *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727   (eval "$ac_try") 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   ac_header_compiler=yes
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         ac_header_compiler=no
14737 fi
14738
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14741 echo "${ECHO_T}$ac_header_compiler" >&6; }
14742
14743 # Is the header present?
14744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 #include <$ac_header>
14753 _ACEOF
14754 if { (ac_try="$ac_cpp conftest.$ac_ext"
14755 case "(($ac_try" in
14756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757   *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14761   ac_status=$?
14762   grep -v '^ *+' conftest.er1 >conftest.err
14763   rm -f conftest.er1
14764   cat conftest.err >&5
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } >/dev/null; then
14767   if test -s conftest.err; then
14768     ac_cpp_err=$ac_c_preproc_warn_flag
14769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14770   else
14771     ac_cpp_err=
14772   fi
14773 else
14774   ac_cpp_err=yes
14775 fi
14776 if test -z "$ac_cpp_err"; then
14777   ac_header_preproc=yes
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782   ac_header_preproc=no
14783 fi
14784
14785 rm -f conftest.err conftest.$ac_ext
14786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787 echo "${ECHO_T}$ac_header_preproc" >&6; }
14788
14789 # So?  What about this header?
14790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791   yes:no: )
14792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14796     ac_header_preproc=yes
14797     ;;
14798   no:yes:* )
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14811     ( cat <<\_ASBOX
14812 ## ------------------------------------ ##
14813 ## Report this to http://llvm.org/bugs/ ##
14814 ## ------------------------------------ ##
14815 _ASBOX
14816      ) | sed "s/^/$as_me: WARNING:     /" >&2
14817     ;;
14818 esac
14819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   eval "$as_ac_Header=\$ac_header_preproc"
14825 fi
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827                { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14829
14830 fi
14831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14832   cat >>confdefs.h <<_ACEOF
14833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14834 _ACEOF
14835
14836 fi
14837
14838 done
14839
14840
14841
14842
14843
14844
14845
14846 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14847 do
14848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 fi
14855 ac_res=`eval echo '${'$as_ac_Header'}'`
14856                { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14858 else
14859   # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868 $ac_includes_default
14869 #include <$ac_header>
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_compile") 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14886   { (case "(($ac_try" in
14887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888   *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891   (eval "$ac_try") 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; } &&
14895          { ac_try='test -s conftest.$ac_objext'
14896   { (case "(($ac_try" in
14897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898   *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901   (eval "$ac_try") 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }; then
14905   ac_header_compiler=yes
14906 else
14907   echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910         ac_header_compiler=no
14911 fi
14912
14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14915 echo "${ECHO_T}$ac_header_compiler" >&6; }
14916
14917 # Is the header present?
14918 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h.  */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h.  */
14926 #include <$ac_header>
14927 _ACEOF
14928 if { (ac_try="$ac_cpp conftest.$ac_ext"
14929 case "(($ac_try" in
14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931   *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14935   ac_status=$?
14936   grep -v '^ *+' conftest.er1 >conftest.err
14937   rm -f conftest.er1
14938   cat conftest.err >&5
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } >/dev/null; then
14941   if test -s conftest.err; then
14942     ac_cpp_err=$ac_c_preproc_warn_flag
14943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14944   else
14945     ac_cpp_err=
14946   fi
14947 else
14948   ac_cpp_err=yes
14949 fi
14950 if test -z "$ac_cpp_err"; then
14951   ac_header_preproc=yes
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956   ac_header_preproc=no
14957 fi
14958
14959 rm -f conftest.err conftest.$ac_ext
14960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961 echo "${ECHO_T}$ac_header_preproc" >&6; }
14962
14963 # So?  What about this header?
14964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965   yes:no: )
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14970     ac_header_preproc=yes
14971     ;;
14972   no:yes:* )
14973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14976 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14977     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14980 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14985     ( cat <<\_ASBOX
14986 ## ------------------------------------ ##
14987 ## Report this to http://llvm.org/bugs/ ##
14988 ## ------------------------------------ ##
14989 _ASBOX
14990      ) | sed "s/^/$as_me: WARNING:     /" >&2
14991     ;;
14992 esac
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   eval "$as_ac_Header=\$ac_header_preproc"
14999 fi
15000 ac_res=`eval echo '${'$as_ac_Header'}'`
15001                { echo "$as_me:$LINENO: result: $ac_res" >&5
15002 echo "${ECHO_T}$ac_res" >&6; }
15003
15004 fi
15005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15006   cat >>confdefs.h <<_ACEOF
15007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15008 _ACEOF
15009
15010 fi
15011
15012 done
15013
15014
15015
15016 for ac_header in utime.h windows.h
15017 do
15018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15020   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 fi
15025 ac_res=`eval echo '${'$as_ac_Header'}'`
15026                { echo "$as_me:$LINENO: result: $ac_res" >&5
15027 echo "${ECHO_T}$ac_res" >&6; }
15028 else
15029   # Is the header compilable?
15030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 $ac_includes_default
15039 #include <$ac_header>
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_compile") 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } &&
15055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15056   { (case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_try") 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; } &&
15065          { ac_try='test -s conftest.$ac_objext'
15066   { (case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_try") 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }; then
15075   ac_header_compiler=yes
15076 else
15077   echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080         ac_header_compiler=no
15081 fi
15082
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15085 echo "${ECHO_T}$ac_header_compiler" >&6; }
15086
15087 # Is the header present?
15088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 #include <$ac_header>
15097 _ACEOF
15098 if { (ac_try="$ac_cpp conftest.$ac_ext"
15099 case "(($ac_try" in
15100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101   *) ac_try_echo=$ac_try;;
15102 esac
15103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15105   ac_status=$?
15106   grep -v '^ *+' conftest.er1 >conftest.err
15107   rm -f conftest.er1
15108   cat conftest.err >&5
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); } >/dev/null; then
15111   if test -s conftest.err; then
15112     ac_cpp_err=$ac_c_preproc_warn_flag
15113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15114   else
15115     ac_cpp_err=
15116   fi
15117 else
15118   ac_cpp_err=yes
15119 fi
15120 if test -z "$ac_cpp_err"; then
15121   ac_header_preproc=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126   ac_header_preproc=no
15127 fi
15128
15129 rm -f conftest.err conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15131 echo "${ECHO_T}$ac_header_preproc" >&6; }
15132
15133 # So?  What about this header?
15134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15135   yes:no: )
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15140     ac_header_preproc=yes
15141     ;;
15142   no:yes:* )
15143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15155     ( cat <<\_ASBOX
15156 ## ------------------------------------ ##
15157 ## Report this to http://llvm.org/bugs/ ##
15158 ## ------------------------------------ ##
15159 _ASBOX
15160      ) | sed "s/^/$as_me: WARNING:     /" >&2
15161     ;;
15162 esac
15163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15166   echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168   eval "$as_ac_Header=\$ac_header_preproc"
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
15174 fi
15175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15176   cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15178 _ACEOF
15179
15180 fi
15181
15182 done
15183
15184
15185
15186
15187
15188
15189 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15190 do
15191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196   echo $ECHO_N "(cached) $ECHO_C" >&6
15197 fi
15198 ac_res=`eval echo '${'$as_ac_Header'}'`
15199                { echo "$as_me:$LINENO: result: $ac_res" >&5
15200 echo "${ECHO_T}$ac_res" >&6; }
15201 else
15202   # Is the header compilable?
15203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211 $ac_includes_default
15212 #include <$ac_header>
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218   *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221   (eval "$ac_compile") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } &&
15228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15229   { (case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_try") 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; } &&
15238          { ac_try='test -s conftest.$ac_objext'
15239   { (case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_try") 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; }; then
15248   ac_header_compiler=yes
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253         ac_header_compiler=no
15254 fi
15255
15256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15258 echo "${ECHO_T}$ac_header_compiler" >&6; }
15259
15260 # Is the header present?
15261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h.  */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h.  */
15269 #include <$ac_header>
15270 _ACEOF
15271 if { (ac_try="$ac_cpp conftest.$ac_ext"
15272 case "(($ac_try" in
15273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274   *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15278   ac_status=$?
15279   grep -v '^ *+' conftest.er1 >conftest.err
15280   rm -f conftest.er1
15281   cat conftest.err >&5
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); } >/dev/null; then
15284   if test -s conftest.err; then
15285     ac_cpp_err=$ac_c_preproc_warn_flag
15286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15287   else
15288     ac_cpp_err=
15289   fi
15290 else
15291   ac_cpp_err=yes
15292 fi
15293 if test -z "$ac_cpp_err"; then
15294   ac_header_preproc=yes
15295 else
15296   echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299   ac_header_preproc=no
15300 fi
15301
15302 rm -f conftest.err conftest.$ac_ext
15303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15304 echo "${ECHO_T}$ac_header_preproc" >&6; }
15305
15306 # So?  What about this header?
15307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15308   yes:no: )
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15313     ac_header_preproc=yes
15314     ;;
15315   no:yes:* )
15316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15328     ( cat <<\_ASBOX
15329 ## ------------------------------------ ##
15330 ## Report this to http://llvm.org/bugs/ ##
15331 ## ------------------------------------ ##
15332 _ASBOX
15333      ) | sed "s/^/$as_me: WARNING:     /" >&2
15334     ;;
15335 esac
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 else
15341   eval "$as_ac_Header=\$ac_header_preproc"
15342 fi
15343 ac_res=`eval echo '${'$as_ac_Header'}'`
15344                { echo "$as_me:$LINENO: result: $ac_res" >&5
15345 echo "${ECHO_T}$ac_res" >&6; }
15346
15347 fi
15348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15349   cat >>confdefs.h <<_ACEOF
15350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15351 _ACEOF
15352
15353 fi
15354
15355 done
15356
15357
15358
15359
15360
15361 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15362 do
15363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 fi
15370 ac_res=`eval echo '${'$as_ac_Header'}'`
15371                { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15373 else
15374   # Is the header compilable?
15375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383 $ac_includes_default
15384 #include <$ac_header>
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (ac_try="$ac_compile"
15388 case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_compile") 2>conftest.er1
15394   ac_status=$?
15395   grep -v '^ *+' conftest.er1 >conftest.err
15396   rm -f conftest.er1
15397   cat conftest.err >&5
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } &&
15400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15401   { (case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406   (eval "$ac_try") 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; } &&
15410          { ac_try='test -s conftest.$ac_objext'
15411   { (case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_try") 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420   ac_header_compiler=yes
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425         ac_header_compiler=no
15426 fi
15427
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15430 echo "${ECHO_T}$ac_header_compiler" >&6; }
15431
15432 # Is the header present?
15433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 #include <$ac_header>
15442 _ACEOF
15443 if { (ac_try="$ac_cpp conftest.$ac_ext"
15444 case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } >/dev/null; then
15456   if test -s conftest.err; then
15457     ac_cpp_err=$ac_c_preproc_warn_flag
15458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15459   else
15460     ac_cpp_err=
15461   fi
15462 else
15463   ac_cpp_err=yes
15464 fi
15465 if test -z "$ac_cpp_err"; then
15466   ac_header_preproc=yes
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471   ac_header_preproc=no
15472 fi
15473
15474 rm -f conftest.err conftest.$ac_ext
15475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15476 echo "${ECHO_T}$ac_header_preproc" >&6; }
15477
15478 # So?  What about this header?
15479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15480   yes:no: )
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15485     ac_header_preproc=yes
15486     ;;
15487   no:yes:* )
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15500     ( cat <<\_ASBOX
15501 ## ------------------------------------ ##
15502 ## Report this to http://llvm.org/bugs/ ##
15503 ## ------------------------------------ ##
15504 _ASBOX
15505      ) | sed "s/^/$as_me: WARNING:     /" >&2
15506     ;;
15507 esac
15508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   eval "$as_ac_Header=\$ac_header_preproc"
15514 fi
15515 ac_res=`eval echo '${'$as_ac_Header'}'`
15516                { echo "$as_me:$LINENO: result: $ac_res" >&5
15517 echo "${ECHO_T}$ac_res" >&6; }
15518
15519 fi
15520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15521   cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15523 _ACEOF
15524
15525 fi
15526
15527 done
15528
15529
15530 for ac_header in valgrind/valgrind.h
15531 do
15532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537   echo $ECHO_N "(cached) $ECHO_C" >&6
15538 fi
15539 ac_res=`eval echo '${'$as_ac_Header'}'`
15540                { echo "$as_me:$LINENO: result: $ac_res" >&5
15541 echo "${ECHO_T}$ac_res" >&6; }
15542 else
15543   # Is the header compilable?
15544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 $ac_includes_default
15553 #include <$ac_header>
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_compile") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570   { (case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_try") 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }; } &&
15579          { ac_try='test -s conftest.$ac_objext'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_header_compiler=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594         ac_header_compiler=no
15595 fi
15596
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6; }
15600
15601 # Is the header present?
15602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610 #include <$ac_header>
15611 _ACEOF
15612 if { (ac_try="$ac_cpp conftest.$ac_ext"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } >/dev/null; then
15625   if test -s conftest.err; then
15626     ac_cpp_err=$ac_c_preproc_warn_flag
15627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15628   else
15629     ac_cpp_err=
15630   fi
15631 else
15632   ac_cpp_err=yes
15633 fi
15634 if test -z "$ac_cpp_err"; then
15635   ac_header_preproc=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640   ac_header_preproc=no
15641 fi
15642
15643 rm -f conftest.err conftest.$ac_ext
15644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15645 echo "${ECHO_T}$ac_header_preproc" >&6; }
15646
15647 # So?  What about this header?
15648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15649   yes:no: )
15650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15654     ac_header_preproc=yes
15655     ;;
15656   no:yes:* )
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15669     ( cat <<\_ASBOX
15670 ## ------------------------------------ ##
15671 ## Report this to http://llvm.org/bugs/ ##
15672 ## ------------------------------------ ##
15673 _ASBOX
15674      ) | sed "s/^/$as_me: WARNING:     /" >&2
15675     ;;
15676 esac
15677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   eval "$as_ac_Header=\$ac_header_preproc"
15683 fi
15684 ac_res=`eval echo '${'$as_ac_Header'}'`
15685                { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15687
15688 fi
15689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15690   cat >>confdefs.h <<_ACEOF
15691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15692 _ACEOF
15693
15694 fi
15695
15696 done
15697
15698
15699 for ac_header in fenv.h
15700 do
15701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15703   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 fi
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709                { echo "$as_me:$LINENO: result: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15711 else
15712   # Is the header compilable?
15713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721 $ac_includes_default
15722 #include <$ac_header>
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (ac_try="$ac_compile"
15726 case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731   (eval "$ac_compile") 2>conftest.er1
15732   ac_status=$?
15733   grep -v '^ *+' conftest.er1 >conftest.err
15734   rm -f conftest.er1
15735   cat conftest.err >&5
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15739   { (case "(($ac_try" in
15740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741   *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744   (eval "$ac_try") 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; } &&
15748          { ac_try='test -s conftest.$ac_objext'
15749   { (case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_try") 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); }; }; then
15758   ac_header_compiler=yes
15759 else
15760   echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763         ac_header_compiler=no
15764 fi
15765
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15768 echo "${ECHO_T}$ac_header_compiler" >&6; }
15769
15770 # Is the header present?
15771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 #include <$ac_header>
15780 _ACEOF
15781 if { (ac_try="$ac_cpp conftest.$ac_ext"
15782 case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15788   ac_status=$?
15789   grep -v '^ *+' conftest.er1 >conftest.err
15790   rm -f conftest.er1
15791   cat conftest.err >&5
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } >/dev/null; then
15794   if test -s conftest.err; then
15795     ac_cpp_err=$ac_c_preproc_warn_flag
15796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15797   else
15798     ac_cpp_err=
15799   fi
15800 else
15801   ac_cpp_err=yes
15802 fi
15803 if test -z "$ac_cpp_err"; then
15804   ac_header_preproc=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809   ac_header_preproc=no
15810 fi
15811
15812 rm -f conftest.err conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15814 echo "${ECHO_T}$ac_header_preproc" >&6; }
15815
15816 # So?  What about this header?
15817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15818   yes:no: )
15819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15823     ac_header_preproc=yes
15824     ;;
15825   no:yes:* )
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15838     ( cat <<\_ASBOX
15839 ## ------------------------------------ ##
15840 ## Report this to http://llvm.org/bugs/ ##
15841 ## ------------------------------------ ##
15842 _ASBOX
15843      ) | sed "s/^/$as_me: WARNING:     /" >&2
15844     ;;
15845 esac
15846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   eval "$as_ac_Header=\$ac_header_preproc"
15852 fi
15853 ac_res=`eval echo '${'$as_ac_Header'}'`
15854                { echo "$as_me:$LINENO: result: $ac_res" >&5
15855 echo "${ECHO_T}$ac_res" >&6; }
15856
15857 fi
15858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15859   cat >>confdefs.h <<_ACEOF
15860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15861 _ACEOF
15862
15863 fi
15864
15865 done
15866
15867 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15868
15869 for ac_header in pthread.h
15870 do
15871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 fi
15878 ac_res=`eval echo '${'$as_ac_Header'}'`
15879                { echo "$as_me:$LINENO: result: $ac_res" >&5
15880 echo "${ECHO_T}$ac_res" >&6; }
15881 else
15882   # Is the header compilable?
15883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 $ac_includes_default
15892 #include <$ac_header>
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (ac_try="$ac_compile"
15896 case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_compile") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15909   { (case "(($ac_try" in
15910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911   *) ac_try_echo=$ac_try;;
15912 esac
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914   (eval "$ac_try") 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; } &&
15918          { ac_try='test -s conftest.$ac_objext'
15919   { (case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_try") 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928   ac_header_compiler=yes
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933         ac_header_compiler=no
15934 fi
15935
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15938 echo "${ECHO_T}$ac_header_compiler" >&6; }
15939
15940 # Is the header present?
15941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h.  */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h.  */
15949 #include <$ac_header>
15950 _ACEOF
15951 if { (ac_try="$ac_cpp conftest.$ac_ext"
15952 case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } >/dev/null; then
15964   if test -s conftest.err; then
15965     ac_cpp_err=$ac_c_preproc_warn_flag
15966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15967   else
15968     ac_cpp_err=
15969   fi
15970 else
15971   ac_cpp_err=yes
15972 fi
15973 if test -z "$ac_cpp_err"; then
15974   ac_header_preproc=yes
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979   ac_header_preproc=no
15980 fi
15981
15982 rm -f conftest.err conftest.$ac_ext
15983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15984 echo "${ECHO_T}$ac_header_preproc" >&6; }
15985
15986 # So?  What about this header?
15987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15988   yes:no: )
15989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15993     ac_header_preproc=yes
15994     ;;
15995   no:yes:* )
15996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16008     ( cat <<\_ASBOX
16009 ## ------------------------------------ ##
16010 ## Report this to http://llvm.org/bugs/ ##
16011 ## ------------------------------------ ##
16012 _ASBOX
16013      ) | sed "s/^/$as_me: WARNING:     /" >&2
16014     ;;
16015 esac
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 else
16021   eval "$as_ac_Header=\$ac_header_preproc"
16022 fi
16023 ac_res=`eval echo '${'$as_ac_Header'}'`
16024                { echo "$as_me:$LINENO: result: $ac_res" >&5
16025 echo "${ECHO_T}$ac_res" >&6; }
16026
16027 fi
16028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16029   cat >>confdefs.h <<_ACEOF
16030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16031 _ACEOF
16032  HAVE_PTHREAD=1
16033
16034 else
16035   HAVE_PTHREAD=0
16036
16037 fi
16038
16039 done
16040
16041 else
16042   HAVE_PTHREAD=0
16043
16044 fi
16045
16046 if test "$llvm_cv_enable_libffi" = "yes" ; then
16047
16048
16049 for ac_header in ffi.h ffi/ffi.h
16050 do
16051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 fi
16058 ac_res=`eval echo '${'$as_ac_Header'}'`
16059                { echo "$as_me:$LINENO: result: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16061 else
16062   # Is the header compilable?
16063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h.  */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h.  */
16071 $ac_includes_default
16072 #include <$ac_header>
16073 _ACEOF
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_compile") 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } &&
16088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089   { (case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_try") 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; } &&
16098          { ac_try='test -s conftest.$ac_objext'
16099   { (case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_try") 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108   ac_header_compiler=yes
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113         ac_header_compiler=no
16114 fi
16115
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16119
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h.  */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h.  */
16129 #include <$ac_header>
16130 _ACEOF
16131 if { (ac_try="$ac_cpp conftest.$ac_ext"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } >/dev/null; then
16144   if test -s conftest.err; then
16145     ac_cpp_err=$ac_c_preproc_warn_flag
16146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16147   else
16148     ac_cpp_err=
16149   fi
16150 else
16151   ac_cpp_err=yes
16152 fi
16153 if test -z "$ac_cpp_err"; then
16154   ac_header_preproc=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159   ac_header_preproc=no
16160 fi
16161
16162 rm -f conftest.err conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 echo "${ECHO_T}$ac_header_preproc" >&6; }
16165
16166 # So?  What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168   yes:no: )
16169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173     ac_header_preproc=yes
16174     ;;
16175   no:yes:* )
16176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188     ( cat <<\_ASBOX
16189 ## ------------------------------------ ##
16190 ## Report this to http://llvm.org/bugs/ ##
16191 ## ------------------------------------ ##
16192 _ASBOX
16193      ) | sed "s/^/$as_me: WARNING:     /" >&2
16194     ;;
16195 esac
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201   eval "$as_ac_Header=\$ac_header_preproc"
16202 fi
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204                { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16206
16207 fi
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209   cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211 _ACEOF
16212
16213 fi
16214
16215 done
16216
16217 fi
16218
16219
16220 for ac_header in CrashReporterClient.h
16221 do
16222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16224   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 fi
16229 ac_res=`eval echo '${'$as_ac_Header'}'`
16230                { echo "$as_me:$LINENO: result: $ac_res" >&5
16231 echo "${ECHO_T}$ac_res" >&6; }
16232 else
16233   # Is the header compilable?
16234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242 $ac_includes_default
16243 #include <$ac_header>
16244 _ACEOF
16245 rm -f conftest.$ac_objext
16246 if { (ac_try="$ac_compile"
16247 case "(($ac_try" in
16248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249   *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252   (eval "$ac_compile") 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } &&
16259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16260   { (case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_try") 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; } &&
16269          { ac_try='test -s conftest.$ac_objext'
16270   { (case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_try") 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); }; }; then
16279   ac_header_compiler=yes
16280 else
16281   echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284         ac_header_compiler=no
16285 fi
16286
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16290
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300 #include <$ac_header>
16301 _ACEOF
16302 if { (ac_try="$ac_cpp conftest.$ac_ext"
16303 case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } >/dev/null; then
16315   if test -s conftest.err; then
16316     ac_cpp_err=$ac_c_preproc_warn_flag
16317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16318   else
16319     ac_cpp_err=
16320   fi
16321 else
16322   ac_cpp_err=yes
16323 fi
16324 if test -z "$ac_cpp_err"; then
16325   ac_header_preproc=yes
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330   ac_header_preproc=no
16331 fi
16332
16333 rm -f conftest.err conftest.$ac_ext
16334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16335 echo "${ECHO_T}$ac_header_preproc" >&6; }
16336
16337 # So?  What about this header?
16338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16339   yes:no: )
16340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16344     ac_header_preproc=yes
16345     ;;
16346   no:yes:* )
16347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16359     ( cat <<\_ASBOX
16360 ## ------------------------------------ ##
16361 ## Report this to http://llvm.org/bugs/ ##
16362 ## ------------------------------------ ##
16363 _ASBOX
16364      ) | sed "s/^/$as_me: WARNING:     /" >&2
16365     ;;
16366 esac
16367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   eval "$as_ac_Header=\$ac_header_preproc"
16373 fi
16374 ac_res=`eval echo '${'$as_ac_Header'}'`
16375                { echo "$as_me:$LINENO: result: $ac_res" >&5
16376 echo "${ECHO_T}$ac_res" >&6; }
16377
16378 fi
16379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16380   cat >>confdefs.h <<_ACEOF
16381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16382 _ACEOF
16383
16384 fi
16385
16386 done
16387
16388
16389 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16390 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16392
16393   /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398
16399     extern const char *__crashreporter_info__;
16400     int main() {
16401       __crashreporter_info__ = "test";
16402       return 0;
16403     }
16404
16405
16406 _ACEOF
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_link") 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422   { (case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_try") 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; } &&
16431          { ac_try='test -s conftest$ac_exeext'
16432   { (case "(($ac_try" in
16433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434   *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437   (eval "$ac_try") 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }; }; then
16441
16442   { echo "$as_me:$LINENO: result: yes" >&5
16443 echo "${ECHO_T}yes" >&6; }
16444
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_CRASHREPORTER_INFO 1
16447 _ACEOF
16448
16449
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454
16455   { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457
16458 cat >>confdefs.h <<\_ACEOF
16459 #define HAVE_CRASHREPORTER_INFO 0
16460 _ACEOF
16461
16462
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext \
16466       conftest$ac_exeext conftest.$ac_ext
16467
16468
16469
16470   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16471 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16472 if test "${ac_cv_huge_val_sanity+set}" = set; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475
16476     ac_ext=cpp
16477 ac_cpp='$CXXCPP $CPPFLAGS'
16478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16481
16482     ac_save_CXXFLAGS=$CXXFLAGS
16483     CXXFLAGS="$CXXFLAGS -pedantic"
16484     if test "$cross_compiling" = yes; then
16485   ac_cv_huge_val_sanity=yes
16486 else
16487   cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493 #include <math.h>
16494 int
16495 main ()
16496 {
16497 double x = HUGE_VAL; return x != x;
16498   ;
16499   return 0;
16500 }
16501 _ACEOF
16502 rm -f conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506   *) ac_try_echo=$ac_try;;
16507 esac
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509   (eval "$ac_link") 2>&5
16510   ac_status=$?
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   ac_cv_huge_val_sanity=yes
16523 else
16524   echo "$as_me: program exited with status $ac_status" >&5
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ( exit $ac_status )
16529 ac_cv_huge_val_sanity=no
16530 fi
16531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16532 fi
16533
16534
16535     CXXFLAGS=$ac_save_CXXFLAGS
16536     ac_ext=c
16537 ac_cpp='$CPP $CPPFLAGS'
16538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16541
16542
16543 fi
16544 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16545 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16546   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16547
16548
16549 { echo "$as_me:$LINENO: checking for pid_t" >&5
16550 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16551 if test "${ac_cv_type_pid_t+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 $ac_includes_default
16561 typedef pid_t ac__type_new_;
16562 int
16563 main ()
16564 {
16565 if ((ac__type_new_ *) 0)
16566   return 0;
16567 if (sizeof (ac__type_new_))
16568   return 0;
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext
16574 if { (ac_try="$ac_compile"
16575 case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_compile") 2>conftest.er1
16581   ac_status=$?
16582   grep -v '^ *+' conftest.er1 >conftest.err
16583   rm -f conftest.er1
16584   cat conftest.err >&5
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); } &&
16587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16588   { (case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_try") 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; } &&
16597          { ac_try='test -s conftest.$ac_objext'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_cv_type_pid_t=yes
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612         ac_cv_type_pid_t=no
16613 fi
16614
16615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 fi
16617 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16618 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16619 if test $ac_cv_type_pid_t = yes; then
16620   :
16621 else
16622
16623 cat >>confdefs.h <<_ACEOF
16624 #define pid_t int
16625 _ACEOF
16626
16627 fi
16628
16629 { echo "$as_me:$LINENO: checking for size_t" >&5
16630 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16631 if test "${ac_cv_type_size_t+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640 $ac_includes_default
16641 typedef size_t ac__type_new_;
16642 int
16643 main ()
16644 {
16645 if ((ac__type_new_ *) 0)
16646   return 0;
16647 if (sizeof (ac__type_new_))
16648   return 0;
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (ac_try="$ac_compile"
16655 case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_compile") 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } &&
16667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16668   { (case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_try") 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; } &&
16677          { ac_try='test -s conftest.$ac_objext'
16678   { (case "(($ac_try" in
16679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680   *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683   (eval "$ac_try") 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; }; then
16687   ac_cv_type_size_t=yes
16688 else
16689   echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16691
16692         ac_cv_type_size_t=no
16693 fi
16694
16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696 fi
16697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16699 if test $ac_cv_type_size_t = yes; then
16700   :
16701 else
16702
16703 cat >>confdefs.h <<_ACEOF
16704 #define size_t unsigned int
16705 _ACEOF
16706
16707 fi
16708
16709
16710 cat >>confdefs.h <<_ACEOF
16711 #define RETSIGTYPE void
16712 _ACEOF
16713
16714 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16716 if test "${ac_cv_struct_tm+set}" = set; then
16717   echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16719   cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h.  */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h.  */
16725 #include <sys/types.h>
16726 #include <time.h>
16727
16728 int
16729 main ()
16730 {
16731 struct tm *tp; tp->tm_sec;
16732   ;
16733   return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_compile") 2>conftest.er1
16744   ac_status=$?
16745   grep -v '^ *+' conftest.er1 >conftest.err
16746   rm -f conftest.er1
16747   cat conftest.err >&5
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); } &&
16750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751   { (case "(($ac_try" in
16752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753   *) ac_try_echo=$ac_try;;
16754 esac
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756   (eval "$ac_try") 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; } &&
16760          { ac_try='test -s conftest.$ac_objext'
16761   { (case "(($ac_try" in
16762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763   *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766   (eval "$ac_try") 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; }; then
16770   ac_cv_struct_tm=time.h
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775         ac_cv_struct_tm=sys/time.h
16776 fi
16777
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 fi
16780 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16781 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16782 if test $ac_cv_struct_tm = sys/time.h; then
16783
16784 cat >>confdefs.h <<\_ACEOF
16785 #define TM_IN_SYS_TIME 1
16786 _ACEOF
16787
16788 fi
16789
16790 { echo "$as_me:$LINENO: checking for int64_t" >&5
16791 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16792 if test "${ac_cv_type_int64_t+set}" = set; then
16793   echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 $ac_includes_default
16802 typedef int64_t ac__type_new_;
16803 int
16804 main ()
16805 {
16806 if ((ac__type_new_ *) 0)
16807   return 0;
16808 if (sizeof (ac__type_new_))
16809   return 0;
16810   ;
16811   return 0;
16812 }
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (ac_try="$ac_compile"
16816 case "(($ac_try" in
16817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818   *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821   (eval "$ac_compile") 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } &&
16828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829   { (case "(($ac_try" in
16830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831   *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834   (eval "$ac_try") 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; } &&
16838          { ac_try='test -s conftest.$ac_objext'
16839   { (case "(($ac_try" in
16840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841   *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844   (eval "$ac_try") 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; }; then
16848   ac_cv_type_int64_t=yes
16849 else
16850   echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853         ac_cv_type_int64_t=no
16854 fi
16855
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 fi
16858 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16859 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16860 if test $ac_cv_type_int64_t = yes; then
16861
16862 cat >>confdefs.h <<_ACEOF
16863 #define HAVE_INT64_T 1
16864 _ACEOF
16865
16866
16867 else
16868   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16869 echo "$as_me: error: Type int64_t required but not found" >&2;}
16870    { (exit 1); exit 1; }; }
16871 fi
16872
16873 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16874 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16875 if test "${ac_cv_type_uint64_t+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884 $ac_includes_default
16885 typedef uint64_t ac__type_new_;
16886 int
16887 main ()
16888 {
16889 if ((ac__type_new_ *) 0)
16890   return 0;
16891 if (sizeof (ac__type_new_))
16892   return 0;
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext
16898 if { (ac_try="$ac_compile"
16899 case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_compile") 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; } &&
16921          { ac_try='test -s conftest.$ac_objext'
16922   { (case "(($ac_try" in
16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924   *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927   (eval "$ac_try") 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931   ac_cv_type_uint64_t=yes
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936         ac_cv_type_uint64_t=no
16937 fi
16938
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 fi
16941 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16942 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16943 if test $ac_cv_type_uint64_t = yes; then
16944
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_UINT64_T 1
16947 _ACEOF
16948
16949
16950 else
16951   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16952 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16953 if test "${ac_cv_type_u_int64_t+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 $ac_includes_default
16963 typedef u_int64_t ac__type_new_;
16964 int
16965 main ()
16966 {
16967 if ((ac__type_new_ *) 0)
16968   return 0;
16969 if (sizeof (ac__type_new_))
16970   return 0;
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (ac_try="$ac_compile"
16977 case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982   (eval "$ac_compile") 2>conftest.er1
16983   ac_status=$?
16984   grep -v '^ *+' conftest.er1 >conftest.err
16985   rm -f conftest.er1
16986   cat conftest.err >&5
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); } &&
16989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990   { (case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_try") 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest.$ac_objext'
17000   { (case "(($ac_try" in
17001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002   *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005   (eval "$ac_try") 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; }; then
17009   ac_cv_type_u_int64_t=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17013
17014         ac_cv_type_u_int64_t=no
17015 fi
17016
17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 fi
17019 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17020 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17021 if test $ac_cv_type_u_int64_t = yes; then
17022
17023 cat >>confdefs.h <<_ACEOF
17024 #define HAVE_U_INT64_T 1
17025 _ACEOF
17026
17027
17028 else
17029   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17030 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17031    { (exit 1); exit 1; }; }
17032 fi
17033
17034 fi
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17046 do
17047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17061 #define $ac_func innocuous_$ac_func
17062
17063 /* System header to define __stub macros and hopefully few prototypes,
17064     which can conflict with char $ac_func (); below.
17065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066     <limits.h> exists even on freestanding compilers.  */
17067
17068 #ifdef __STDC__
17069 # include <limits.h>
17070 #else
17071 # include <assert.h>
17072 #endif
17073
17074 #undef $ac_func
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077    Use char because int might match the return type of a GCC
17078    builtin and then its argument prototype would still apply.  */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char $ac_func ();
17083 /* The GNU C library defines this for functions which it implements
17084     to always fail with ENOSYS.  Some functions are actually named
17085     something starting with __ and the normal name is an alias.  */
17086 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 choke me
17088 #endif
17089
17090 int
17091 main ()
17092 {
17093 return $ac_func ();
17094   ;
17095   return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102   *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105   (eval "$ac_link") 2>conftest.er1
17106   ac_status=$?
17107   grep -v '^ *+' conftest.er1 >conftest.err
17108   rm -f conftest.er1
17109   cat conftest.err >&5
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } &&
17112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17113   { (case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_try") 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; } &&
17122          { ac_try='test -s conftest$ac_exeext'
17123   { (case "(($ac_try" in
17124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125   *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128   (eval "$ac_try") 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; }; then
17132   eval "$as_ac_var=yes"
17133 else
17134   echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137         eval "$as_ac_var=no"
17138 fi
17139
17140 rm -f core conftest.err conftest.$ac_objext \
17141       conftest$ac_exeext conftest.$ac_ext
17142 fi
17143 ac_res=`eval echo '${'$as_ac_var'}'`
17144                { echo "$as_me:$LINENO: result: $ac_res" >&5
17145 echo "${ECHO_T}$ac_res" >&6; }
17146 if test `eval echo '${'$as_ac_var'}'` = yes; then
17147   cat >>confdefs.h <<_ACEOF
17148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17149 _ACEOF
17150
17151 fi
17152 done
17153
17154
17155
17156
17157
17158 for ac_func in powf fmodf strtof round
17159 do
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17174 #define $ac_func innocuous_$ac_func
17175
17176 /* System header to define __stub macros and hopefully few prototypes,
17177     which can conflict with char $ac_func (); below.
17178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179     <limits.h> exists even on freestanding compilers.  */
17180
17181 #ifdef __STDC__
17182 # include <limits.h>
17183 #else
17184 # include <assert.h>
17185 #endif
17186
17187 #undef $ac_func
17188
17189 /* Override any GCC internal prototype to avoid an error.
17190    Use char because int might match the return type of a GCC
17191    builtin and then its argument prototype would still apply.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 #endif
17195 char $ac_func ();
17196 /* The GNU C library defines this for functions which it implements
17197     to always fail with ENOSYS.  Some functions are actually named
17198     something starting with __ and the normal name is an alias.  */
17199 #if defined __stub_$ac_func || defined __stub___$ac_func
17200 choke me
17201 #endif
17202
17203 int
17204 main ()
17205 {
17206 return $ac_func ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_link") 2>conftest.er1
17219   ac_status=$?
17220   grep -v '^ *+' conftest.er1 >conftest.err
17221   rm -f conftest.er1
17222   cat conftest.err >&5
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } &&
17225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   eval "$as_ac_var=yes"
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250         eval "$as_ac_var=no"
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext \
17254       conftest$ac_exeext conftest.$ac_ext
17255 fi
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257                { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260   cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 _ACEOF
17263
17264 fi
17265 done
17266
17267
17268
17269
17270
17271
17272 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17273 do
17274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17288 #define $ac_func innocuous_$ac_func
17289
17290 /* System header to define __stub macros and hopefully few prototypes,
17291     which can conflict with char $ac_func (); below.
17292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293     <limits.h> exists even on freestanding compilers.  */
17294
17295 #ifdef __STDC__
17296 # include <limits.h>
17297 #else
17298 # include <assert.h>
17299 #endif
17300
17301 #undef $ac_func
17302
17303 /* Override any GCC internal prototype to avoid an error.
17304    Use char because int might match the return type of a GCC
17305    builtin and then its argument prototype would still apply.  */
17306 #ifdef __cplusplus
17307 extern "C"
17308 #endif
17309 char $ac_func ();
17310 /* The GNU C library defines this for functions which it implements
17311     to always fail with ENOSYS.  Some functions are actually named
17312     something starting with __ and the normal name is an alias.  */
17313 #if defined __stub_$ac_func || defined __stub___$ac_func
17314 choke me
17315 #endif
17316
17317 int
17318 main ()
17319 {
17320 return $ac_func ();
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_link") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } &&
17339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17340   { (case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_try") 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); }; } &&
17349          { ac_try='test -s conftest$ac_exeext'
17350   { (case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355   (eval "$ac_try") 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; }; then
17359   eval "$as_ac_var=yes"
17360 else
17361   echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364         eval "$as_ac_var=no"
17365 fi
17366
17367 rm -f core conftest.err conftest.$ac_objext \
17368       conftest$ac_exeext conftest.$ac_ext
17369 fi
17370 ac_res=`eval echo '${'$as_ac_var'}'`
17371                { echo "$as_me:$LINENO: result: $ac_res" >&5
17372 echo "${ECHO_T}$ac_res" >&6; }
17373 if test `eval echo '${'$as_ac_var'}'` = yes; then
17374   cat >>confdefs.h <<_ACEOF
17375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17376 _ACEOF
17377
17378 fi
17379 done
17380
17381
17382
17383
17384 for ac_func in isatty mkdtemp mkstemp
17385 do
17386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h.  */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h.  */
17398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17400 #define $ac_func innocuous_$ac_func
17401
17402 /* System header to define __stub macros and hopefully few prototypes,
17403     which can conflict with char $ac_func (); below.
17404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17405     <limits.h> exists even on freestanding compilers.  */
17406
17407 #ifdef __STDC__
17408 # include <limits.h>
17409 #else
17410 # include <assert.h>
17411 #endif
17412
17413 #undef $ac_func
17414
17415 /* Override any GCC internal prototype to avoid an error.
17416    Use char because int might match the return type of a GCC
17417    builtin and then its argument prototype would still apply.  */
17418 #ifdef __cplusplus
17419 extern "C"
17420 #endif
17421 char $ac_func ();
17422 /* The GNU C library defines this for functions which it implements
17423     to always fail with ENOSYS.  Some functions are actually named
17424     something starting with __ and the normal name is an alias.  */
17425 #if defined __stub_$ac_func || defined __stub___$ac_func
17426 choke me
17427 #endif
17428
17429 int
17430 main ()
17431 {
17432 return $ac_func ();
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444   (eval "$ac_link") 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } &&
17451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17452   { (case "(($ac_try" in
17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454   *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457   (eval "$ac_try") 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; } &&
17461          { ac_try='test -s conftest$ac_exeext'
17462   { (case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_try") 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; }; then
17471   eval "$as_ac_var=yes"
17472 else
17473   echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476         eval "$as_ac_var=no"
17477 fi
17478
17479 rm -f core conftest.err conftest.$ac_objext \
17480       conftest$ac_exeext conftest.$ac_ext
17481 fi
17482 ac_res=`eval echo '${'$as_ac_var'}'`
17483                { echo "$as_me:$LINENO: result: $ac_res" >&5
17484 echo "${ECHO_T}$ac_res" >&6; }
17485 if test `eval echo '${'$as_ac_var'}'` = yes; then
17486   cat >>confdefs.h <<_ACEOF
17487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17488 _ACEOF
17489
17490 fi
17491 done
17492
17493
17494
17495
17496
17497
17498
17499
17500 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17501 do
17502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17516 #define $ac_func innocuous_$ac_func
17517
17518 /* System header to define __stub macros and hopefully few prototypes,
17519     which can conflict with char $ac_func (); below.
17520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521     <limits.h> exists even on freestanding compilers.  */
17522
17523 #ifdef __STDC__
17524 # include <limits.h>
17525 #else
17526 # include <assert.h>
17527 #endif
17528
17529 #undef $ac_func
17530
17531 /* Override any GCC internal prototype to avoid an error.
17532    Use char because int might match the return type of a GCC
17533    builtin and then its argument prototype would still apply.  */
17534 #ifdef __cplusplus
17535 extern "C"
17536 #endif
17537 char $ac_func ();
17538 /* The GNU C library defines this for functions which it implements
17539     to always fail with ENOSYS.  Some functions are actually named
17540     something starting with __ and the normal name is an alias.  */
17541 #if defined __stub_$ac_func || defined __stub___$ac_func
17542 choke me
17543 #endif
17544
17545 int
17546 main ()
17547 {
17548 return $ac_func ();
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_link") 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } &&
17567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17568   { (case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_try") 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_try") 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; }; then
17587   eval "$as_ac_var=yes"
17588 else
17589   echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592         eval "$as_ac_var=no"
17593 fi
17594
17595 rm -f core conftest.err conftest.$ac_objext \
17596       conftest$ac_exeext conftest.$ac_ext
17597 fi
17598 ac_res=`eval echo '${'$as_ac_var'}'`
17599                { echo "$as_me:$LINENO: result: $ac_res" >&5
17600 echo "${ECHO_T}$ac_res" >&6; }
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602   cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 _ACEOF
17605
17606 fi
17607 done
17608
17609
17610
17611
17612
17613 for ac_func in strerror strerror_r setenv arc4random
17614 do
17615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17629 #define $ac_func innocuous_$ac_func
17630
17631 /* System header to define __stub macros and hopefully few prototypes,
17632     which can conflict with char $ac_func (); below.
17633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634     <limits.h> exists even on freestanding compilers.  */
17635
17636 #ifdef __STDC__
17637 # include <limits.h>
17638 #else
17639 # include <assert.h>
17640 #endif
17641
17642 #undef $ac_func
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645    Use char because int might match the return type of a GCC
17646    builtin and then its argument prototype would still apply.  */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char $ac_func ();
17651 /* The GNU C library defines this for functions which it implements
17652     to always fail with ENOSYS.  Some functions are actually named
17653     something starting with __ and the normal name is an alias.  */
17654 #if defined __stub_$ac_func || defined __stub___$ac_func
17655 choke me
17656 #endif
17657
17658 int
17659 main ()
17660 {
17661 return $ac_func ();
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_link") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } &&
17680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681   { (case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_try") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; } &&
17690          { ac_try='test -s conftest$ac_exeext'
17691   { (case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696   (eval "$ac_try") 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   eval "$as_ac_var=yes"
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705         eval "$as_ac_var=no"
17706 fi
17707
17708 rm -f core conftest.err conftest.$ac_objext \
17709       conftest$ac_exeext conftest.$ac_ext
17710 fi
17711 ac_res=`eval echo '${'$as_ac_var'}'`
17712                { echo "$as_me:$LINENO: result: $ac_res" >&5
17713 echo "${ECHO_T}$ac_res" >&6; }
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715   cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 _ACEOF
17718
17719 fi
17720 done
17721
17722
17723
17724
17725
17726 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17727 do
17728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h.  */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h.  */
17740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17742 #define $ac_func innocuous_$ac_func
17743
17744 /* System header to define __stub macros and hopefully few prototypes,
17745     which can conflict with char $ac_func (); below.
17746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17747     <limits.h> exists even on freestanding compilers.  */
17748
17749 #ifdef __STDC__
17750 # include <limits.h>
17751 #else
17752 # include <assert.h>
17753 #endif
17754
17755 #undef $ac_func
17756
17757 /* Override any GCC internal prototype to avoid an error.
17758    Use char because int might match the return type of a GCC
17759    builtin and then its argument prototype would still apply.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 char $ac_func ();
17764 /* The GNU C library defines this for functions which it implements
17765     to always fail with ENOSYS.  Some functions are actually named
17766     something starting with __ and the normal name is an alias.  */
17767 #if defined __stub_$ac_func || defined __stub___$ac_func
17768 choke me
17769 #endif
17770
17771 int
17772 main ()
17773 {
17774 return $ac_func ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_link") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17794   { (case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_try") 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; } &&
17803          { ac_try='test -s conftest$ac_exeext'
17804   { (case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_try") 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   eval "$as_ac_var=yes"
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818         eval "$as_ac_var=no"
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext \
17822       conftest$ac_exeext conftest.$ac_ext
17823 fi
17824 ac_res=`eval echo '${'$as_ac_var'}'`
17825                { echo "$as_me:$LINENO: result: $ac_res" >&5
17826 echo "${ECHO_T}$ac_res" >&6; }
17827 if test `eval echo '${'$as_ac_var'}'` = yes; then
17828   cat >>confdefs.h <<_ACEOF
17829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830 _ACEOF
17831
17832 fi
17833 done
17834
17835
17836
17837
17838
17839
17840 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17841 do
17842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17846   echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848   cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17856 #define $ac_func innocuous_$ac_func
17857
17858 /* System header to define __stub macros and hopefully few prototypes,
17859     which can conflict with char $ac_func (); below.
17860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17861     <limits.h> exists even on freestanding compilers.  */
17862
17863 #ifdef __STDC__
17864 # include <limits.h>
17865 #else
17866 # include <assert.h>
17867 #endif
17868
17869 #undef $ac_func
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872    Use char because int might match the return type of a GCC
17873    builtin and then its argument prototype would still apply.  */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char $ac_func ();
17878 /* The GNU C library defines this for functions which it implements
17879     to always fail with ENOSYS.  Some functions are actually named
17880     something starting with __ and the normal name is an alias.  */
17881 #if defined __stub_$ac_func || defined __stub___$ac_func
17882 choke me
17883 #endif
17884
17885 int
17886 main ()
17887 {
17888 return $ac_func ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (ac_try="$ac_link"
17895 case "(($ac_try" in
17896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897   *) ac_try_echo=$ac_try;;
17898 esac
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900   (eval "$ac_link") 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } &&
17907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest$ac_exeext'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   eval "$as_ac_var=yes"
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         eval "$as_ac_var=no"
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext \
17936       conftest$ac_exeext conftest.$ac_ext
17937 fi
17938 ac_res=`eval echo '${'$as_ac_var'}'`
17939                { echo "$as_me:$LINENO: result: $ac_res" >&5
17940 echo "${ECHO_T}$ac_res" >&6; }
17941 if test `eval echo '${'$as_ac_var'}'` = yes; then
17942   cat >>confdefs.h <<_ACEOF
17943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 _ACEOF
17945
17946 fi
17947 done
17948
17949 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17950 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17951 if test "${llvm_cv_c_printf_a+set}" = set; then
17952   echo $ECHO_N "(cached) $ECHO_C" >&6
17953 else
17954   ac_ext=c
17955 ac_cpp='$CPP $CPPFLAGS'
17956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
17960  if test "$cross_compiling" = yes; then
17961   llvmac_cv_c_printf_a=no
17962 else
17963   cat >conftest.$ac_ext <<_ACEOF
17964
17965   /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970
17971 #include <stdio.h>
17972 #include <stdlib.h>
17973
17974 int
17975 main ()
17976 {
17977
17978 volatile double A, B;
17979 char Buffer[100];
17980 A = 1;
17981 A /= 10.0;
17982 sprintf(Buffer, "%a", A);
17983 B = atof(Buffer);
17984 if (A != B)
17985   return (1);
17986 if (A != 0x1.999999999999ap-4)
17987   return (1);
17988 return (0);
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_link") 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   llvm_cv_c_printf_a=yes
18014 else
18015   echo "$as_me: program exited with status $ac_status" >&5
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ( exit $ac_status )
18020 llvmac_cv_c_printf_a=no
18021 fi
18022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18023 fi
18024
18025
18026  ac_ext=c
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031
18032 fi
18033 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18034 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18035  if test "$llvm_cv_c_printf_a" = "yes"; then
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_PRINTF_A 1
18039 _ACEOF
18040
18041  fi
18042
18043
18044
18045   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18046 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18047 if test "${ac_cv_func_rand48+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050
18051     ac_ext=cpp
18052 ac_cpp='$CXXCPP $CPPFLAGS'
18053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18056
18057     cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063 #include <stdlib.h>
18064 int
18065 main ()
18066 {
18067 srand48(0);lrand48();drand48();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext
18073 if { (ac_try="$ac_compile"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_compile") 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } &&
18086          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18087   { (case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_try") 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest.$ac_objext'
18097   { (case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102   (eval "$ac_try") 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; }; then
18106   ac_cv_func_rand48=yes
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111         ac_cv_func_rand48=no
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115     ac_ext=c
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18120
18121
18122 fi
18123 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18124 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18125
18126 if test "$ac_cv_func_rand48" = "yes" ; then
18127
18128 cat >>confdefs.h <<\_ACEOF
18129 #define HAVE_RAND48 1
18130 _ACEOF
18131
18132 fi
18133
18134
18135 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18136 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18137 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 $ac_includes_default
18147 int
18148 main ()
18149 {
18150 #ifndef strerror_s
18151   char *p = (char *) strerror_s;
18152   return !p;
18153 #endif
18154
18155   ;
18156   return 0;
18157 }
18158 _ACEOF
18159 rm -f conftest.$ac_objext
18160 if { (ac_try="$ac_compile"
18161 case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_compile") 2>conftest.er1
18167   ac_status=$?
18168   grep -v '^ *+' conftest.er1 >conftest.err
18169   rm -f conftest.er1
18170   cat conftest.err >&5
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } &&
18173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18174   { (case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_try") 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; } &&
18183          { ac_try='test -s conftest.$ac_objext'
18184   { (case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_try") 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; }; then
18193   ac_cv_have_decl_strerror_s=yes
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198         ac_cv_have_decl_strerror_s=no
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202 fi
18203 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18204 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18205 if test $ac_cv_have_decl_strerror_s = yes; then
18206
18207 cat >>confdefs.h <<_ACEOF
18208 #define HAVE_DECL_STRERROR_S 1
18209 _ACEOF
18210
18211
18212 else
18213   cat >>confdefs.h <<_ACEOF
18214 #define HAVE_DECL_STRERROR_S 0
18215 _ACEOF
18216
18217
18218 fi
18219
18220
18221
18222 if test "$llvm_cv_os_type" = "MingW" ; then
18223   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18224 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18225 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18226   echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228   ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lgcc  $LIBS"
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char _alloca ();
18244 int
18245 main ()
18246 {
18247 return _alloca ();
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_link") 2>conftest.er1
18260   ac_status=$?
18261   grep -v '^ *+' conftest.er1 >conftest.err
18262   rm -f conftest.er1
18263   cat conftest.err >&5
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); } &&
18266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267   { (case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_try") 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_try") 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   ac_cv_lib_gcc__alloca=yes
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291         ac_cv_lib_gcc__alloca=no
18292 fi
18293
18294 rm -f core conftest.err conftest.$ac_objext \
18295       conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18297 fi
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18299 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18300 if test $ac_cv_lib_gcc__alloca = yes; then
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE__ALLOCA 1
18304 _ACEOF
18305
18306 fi
18307
18308   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18309 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   ac_check_lib_save_LIBS=$LIBS
18314 LIBS="-lgcc  $LIBS"
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 /* Override any GCC internal prototype to avoid an error.
18323    Use char because int might match the return type of a GCC
18324    builtin and then its argument prototype would still apply.  */
18325 #ifdef __cplusplus
18326 extern "C"
18327 #endif
18328 char __alloca ();
18329 int
18330 main ()
18331 {
18332 return __alloca ();
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_link") 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18361          { ac_try='test -s conftest$ac_exeext'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; }; then
18371   ac_cv_lib_gcc___alloca=yes
18372 else
18373   echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376         ac_cv_lib_gcc___alloca=no
18377 fi
18378
18379 rm -f core conftest.err conftest.$ac_objext \
18380       conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18384 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18385 if test $ac_cv_lib_gcc___alloca = yes; then
18386
18387 cat >>confdefs.h <<\_ACEOF
18388 #define HAVE___ALLOCA 1
18389 _ACEOF
18390
18391 fi
18392
18393   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18394 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lgcc  $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h.  */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h.  */
18406
18407 /* Override any GCC internal prototype to avoid an error.
18408    Use char because int might match the return type of a GCC
18409    builtin and then its argument prototype would still apply.  */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 char __chkstk ();
18414 int
18415 main ()
18416 {
18417 return __chkstk ();
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_link") 2>conftest.er1
18430   ac_status=$?
18431   grep -v '^ *+' conftest.er1 >conftest.err
18432   rm -f conftest.er1
18433   cat conftest.err >&5
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); } &&
18436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437   { (case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_try") 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); }; } &&
18446          { ac_try='test -s conftest$ac_exeext'
18447   { (case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_try") 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; }; then
18456   ac_cv_lib_gcc___chkstk=yes
18457 else
18458   echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461         ac_cv_lib_gcc___chkstk=no
18462 fi
18463
18464 rm -f core conftest.err conftest.$ac_objext \
18465       conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18467 fi
18468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18469 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18470 if test $ac_cv_lib_gcc___chkstk = yes; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE___CHKSTK 1
18474 _ACEOF
18475
18476 fi
18477
18478   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18479 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18481   echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483   ac_check_lib_save_LIBS=$LIBS
18484 LIBS="-lgcc  $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 /* Override any GCC internal prototype to avoid an error.
18493    Use char because int might match the return type of a GCC
18494    builtin and then its argument prototype would still apply.  */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char ___chkstk ();
18499 int
18500 main ()
18501 {
18502 return ___chkstk ();
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_link") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522   { (case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_try") 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; } &&
18531          { ac_try='test -s conftest$ac_exeext'
18532   { (case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_try") 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_lib_gcc____chkstk=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546         ac_cv_lib_gcc____chkstk=no
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext \
18550       conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18554 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18555 if test $ac_cv_lib_gcc____chkstk = yes; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE____CHKSTK 1
18559 _ACEOF
18560
18561 fi
18562
18563
18564   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18565 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18566 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   ac_check_lib_save_LIBS=$LIBS
18570 LIBS="-lgcc  $LIBS"
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h.  */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h.  */
18577
18578 /* Override any GCC internal prototype to avoid an error.
18579    Use char because int might match the return type of a GCC
18580    builtin and then its argument prototype would still apply.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 char __ashldi3 ();
18585 int
18586 main ()
18587 {
18588 return __ashldi3 ();
18589   ;
18590   return 0;
18591 }
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600   (eval "$ac_link") 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } &&
18607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_try") 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; }; then
18627   ac_cv_lib_gcc___ashldi3=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_lib_gcc___ashldi3=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext \
18636       conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18638 fi
18639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18640 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18641 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18642
18643 cat >>confdefs.h <<\_ACEOF
18644 #define HAVE___ASHLDI3 1
18645 _ACEOF
18646
18647 fi
18648
18649   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18650 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18651 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   ac_check_lib_save_LIBS=$LIBS
18655 LIBS="-lgcc  $LIBS"
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h.  */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h.  */
18662
18663 /* Override any GCC internal prototype to avoid an error.
18664    Use char because int might match the return type of a GCC
18665    builtin and then its argument prototype would still apply.  */
18666 #ifdef __cplusplus
18667 extern "C"
18668 #endif
18669 char __ashrdi3 ();
18670 int
18671 main ()
18672 {
18673 return __ashrdi3 ();
18674   ;
18675   return 0;
18676 }
18677 _ACEOF
18678 rm -f conftest.$ac_objext conftest$ac_exeext
18679 if { (ac_try="$ac_link"
18680 case "(($ac_try" in
18681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682   *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685   (eval "$ac_link") 2>conftest.er1
18686   ac_status=$?
18687   grep -v '^ *+' conftest.er1 >conftest.err
18688   rm -f conftest.er1
18689   cat conftest.err >&5
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); } &&
18692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18693   { (case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_try") 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; } &&
18702          { ac_try='test -s conftest$ac_exeext'
18703   { (case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_try") 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712   ac_cv_lib_gcc___ashrdi3=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717         ac_cv_lib_gcc___ashrdi3=no
18718 fi
18719
18720 rm -f core conftest.err conftest.$ac_objext \
18721       conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18723 fi
18724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18725 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18726 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18727
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAVE___ASHRDI3 1
18730 _ACEOF
18731
18732 fi
18733
18734   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18735 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18736 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-lgcc  $LIBS"
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747
18748 /* Override any GCC internal prototype to avoid an error.
18749    Use char because int might match the return type of a GCC
18750    builtin and then its argument prototype would still apply.  */
18751 #ifdef __cplusplus
18752 extern "C"
18753 #endif
18754 char __divdi3 ();
18755 int
18756 main ()
18757 {
18758 return __divdi3 ();
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (ac_try="$ac_link"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_link") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } &&
18777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18778   { (case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_try") 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; } &&
18787          { ac_try='test -s conftest$ac_exeext'
18788   { (case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_try") 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; }; then
18797   ac_cv_lib_gcc___divdi3=yes
18798 else
18799   echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18801
18802         ac_cv_lib_gcc___divdi3=no
18803 fi
18804
18805 rm -f core conftest.err conftest.$ac_objext \
18806       conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18808 fi
18809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18810 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18811 if test $ac_cv_lib_gcc___divdi3 = yes; then
18812
18813 cat >>confdefs.h <<\_ACEOF
18814 #define HAVE___DIVDI3 1
18815 _ACEOF
18816
18817 fi
18818
18819   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18820 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18821 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-lgcc  $LIBS"
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h.  */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h.  */
18832
18833 /* Override any GCC internal prototype to avoid an error.
18834    Use char because int might match the return type of a GCC
18835    builtin and then its argument prototype would still apply.  */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char __fixdfdi ();
18840 int
18841 main ()
18842 {
18843 return __fixdfdi ();
18844   ;
18845   return 0;
18846 }
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852   *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855   (eval "$ac_link") 2>conftest.er1
18856   ac_status=$?
18857   grep -v '^ *+' conftest.er1 >conftest.err
18858   rm -f conftest.er1
18859   cat conftest.err >&5
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); } &&
18862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863   { (case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_try") 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; } &&
18872          { ac_try='test -s conftest$ac_exeext'
18873   { (case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_try") 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; }; then
18882   ac_cv_lib_gcc___fixdfdi=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887         ac_cv_lib_gcc___fixdfdi=no
18888 fi
18889
18890 rm -f core conftest.err conftest.$ac_objext \
18891       conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18893 fi
18894 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18895 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18896 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18897
18898 cat >>confdefs.h <<\_ACEOF
18899 #define HAVE___FIXDFDI 1
18900 _ACEOF
18901
18902 fi
18903
18904   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18905 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18906 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18907   echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909   ac_check_lib_save_LIBS=$LIBS
18910 LIBS="-lgcc  $LIBS"
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919    Use char because int might match the return type of a GCC
18920    builtin and then its argument prototype would still apply.  */
18921 #ifdef __cplusplus
18922 extern "C"
18923 #endif
18924 char __fixsfdi ();
18925 int
18926 main ()
18927 {
18928 return __fixsfdi ();
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_link") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_try") 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967   ac_cv_lib_gcc___fixsfdi=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_lib_gcc___fixsfdi=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext \
18976       conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18980 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18981 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18982
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE___FIXSFDI 1
18985 _ACEOF
18986
18987 fi
18988
18989   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18990 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18991 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lgcc  $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002
19003 /* Override any GCC internal prototype to avoid an error.
19004    Use char because int might match the return type of a GCC
19005    builtin and then its argument prototype would still apply.  */
19006 #ifdef __cplusplus
19007 extern "C"
19008 #endif
19009 char __floatdidf ();
19010 int
19011 main ()
19012 {
19013 return __floatdidf ();
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_link") 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19033   { (case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_try") 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; } &&
19042          { ac_try='test -s conftest$ac_exeext'
19043   { (case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_try") 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   ac_cv_lib_gcc___floatdidf=yes
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057         ac_cv_lib_gcc___floatdidf=no
19058 fi
19059
19060 rm -f core conftest.err conftest.$ac_objext \
19061       conftest$ac_exeext conftest.$ac_ext
19062 LIBS=$ac_check_lib_save_LIBS
19063 fi
19064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19065 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19066 if test $ac_cv_lib_gcc___floatdidf = yes; then
19067
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE___FLOATDIDF 1
19070 _ACEOF
19071
19072 fi
19073
19074   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19075 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-lgcc  $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char __lshrdi3 ();
19095 int
19096 main ()
19097 {
19098 return __lshrdi3 ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19118   { (case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_try") 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest$ac_exeext'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_lib_gcc___lshrdi3=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_lib_gcc___lshrdi3=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext \
19146       conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19150 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19151 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19152
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE___LSHRDI3 1
19155 _ACEOF
19156
19157 fi
19158
19159   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19160 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lgcc  $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174    Use char because int might match the return type of a GCC
19175    builtin and then its argument prototype would still apply.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char __moddi3 ();
19180 int
19181 main ()
19182 {
19183 return __moddi3 ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_link") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } &&
19202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19203   { (case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_try") 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest$ac_exeext'
19213   { (case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_try") 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_cv_lib_gcc___moddi3=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         ac_cv_lib_gcc___moddi3=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext \
19231       conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19233 fi
19234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19235 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19236 if test $ac_cv_lib_gcc___moddi3 = yes; then
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE___MODDI3 1
19240 _ACEOF
19241
19242 fi
19243
19244   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19245 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19246 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   ac_check_lib_save_LIBS=$LIBS
19250 LIBS="-lgcc  $LIBS"
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257
19258 /* Override any GCC internal prototype to avoid an error.
19259    Use char because int might match the return type of a GCC
19260    builtin and then its argument prototype would still apply.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 char __udivdi3 ();
19265 int
19266 main ()
19267 {
19268 return __udivdi3 ();
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_link") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } &&
19287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288   { (case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_try") 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; } &&
19297          { ac_try='test -s conftest$ac_exeext'
19298   { (case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307   ac_cv_lib_gcc___udivdi3=yes
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312         ac_cv_lib_gcc___udivdi3=no
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext \
19316       conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19318 fi
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19320 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19321 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19322
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE___UDIVDI3 1
19325 _ACEOF
19326
19327 fi
19328
19329   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19330 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19331 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19332   echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334   ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lgcc  $LIBS"
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342
19343 /* Override any GCC internal prototype to avoid an error.
19344    Use char because int might match the return type of a GCC
19345    builtin and then its argument prototype would still apply.  */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char __umoddi3 ();
19350 int
19351 main ()
19352 {
19353 return __umoddi3 ();
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_link") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19373   { (case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_try") 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest$ac_exeext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_try") 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_lib_gcc___umoddi3=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397         ac_cv_lib_gcc___umoddi3=no
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext \
19401       conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19403 fi
19404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19405 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19406 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19407
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE___UMODDI3 1
19410 _ACEOF
19411
19412 fi
19413
19414
19415   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19416 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___main+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lgcc  $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any GCC internal prototype to avoid an error.
19430    Use char because int might match the return type of a GCC
19431    builtin and then its argument prototype would still apply.  */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char __main ();
19436 int
19437 main ()
19438 {
19439 return __main ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448   *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451   (eval "$ac_link") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_lib_gcc___main=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483         ac_cv_lib_gcc___main=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext \
19487       conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19489 fi
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19492 if test $ac_cv_lib_gcc___main = yes; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___MAIN 1
19496 _ACEOF
19497
19498 fi
19499
19500   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19501 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   ac_check_lib_save_LIBS=$LIBS
19506 LIBS="-lgcc  $LIBS"
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514 /* Override any GCC internal prototype to avoid an error.
19515    Use char because int might match the return type of a GCC
19516    builtin and then its argument prototype would still apply.  */
19517 #ifdef __cplusplus
19518 extern "C"
19519 #endif
19520 char __cmpdi2 ();
19521 int
19522 main ()
19523 {
19524 return __cmpdi2 ();
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_link") 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544   { (case "(($ac_try" in
19545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546   *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549   (eval "$ac_try") 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest$ac_exeext'
19554   { (case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_try") 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; }; then
19563   ac_cv_lib_gcc___cmpdi2=yes
19564 else
19565   echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568         ac_cv_lib_gcc___cmpdi2=no
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext \
19572       conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19574 fi
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19576 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19577 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19578
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE___CMPDI2 1
19581 _ACEOF
19582
19583 fi
19584
19585 fi
19586
19587 if test "$llvm_cv_os_type" = "MingW" ; then
19588   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19589 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19590   cat >conftest.$ac_ext <<_ACEOF
19591
19592   /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597
19598     #include <windows.h>
19599     #include <imagehlp.h>
19600     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19601     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19602
19603
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_compile") 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } &&
19619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19620   { (case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625   (eval "$ac_try") 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); }; } &&
19629          { ac_try='test -s conftest.$ac_objext'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639
19640   { echo "$as_me:$LINENO: result: yes" >&5
19641 echo "${ECHO_T}yes" >&6; }
19642   llvm_cv_win32_elmcb_pcstr="PCSTR"
19643
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648
19649   { echo "$as_me:$LINENO: result: no" >&5
19650 echo "${ECHO_T}no" >&6; }
19651   llvm_cv_win32_elmcb_pcstr="PSTR"
19652
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656
19657 cat >>confdefs.h <<_ACEOF
19658 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19659 _ACEOF
19660
19661 fi
19662
19663
19664
19665   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19666 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19667 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670
19671     ac_ext=cpp
19672 ac_cpp='$CXXCPP $CPPFLAGS'
19673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19676
19677     cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683 #include <math.h>
19684 int
19685 main ()
19686 {
19687 float f; isnan(f);
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_compile") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19707   { (case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_try") 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; } &&
19716          { ac_try='test -s conftest.$ac_objext'
19717   { (case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_try") 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726   ac_cv_func_isnan_in_math_h=yes
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731         ac_cv_func_isnan_in_math_h=no
19732 fi
19733
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735     ac_ext=c
19736 ac_cpp='$CPP $CPPFLAGS'
19737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740
19741
19742 fi
19743 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19744 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19745
19746
19747 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_ISNAN_IN_MATH_H 1
19751 _ACEOF
19752
19753 fi
19754
19755
19756   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19757 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761
19762     ac_ext=cpp
19763 ac_cpp='$CXXCPP $CPPFLAGS'
19764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767
19768     cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 #include <cmath>
19775 int
19776 main ()
19777 {
19778 float f; isnan(f);
19779   ;
19780   return 0;
19781 }
19782 _ACEOF
19783 rm -f conftest.$ac_objext
19784 if { (ac_try="$ac_compile"
19785 case "(($ac_try" in
19786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787   *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790   (eval "$ac_compile") 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } &&
19797          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19798   { (case "(($ac_try" in
19799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800   *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803   (eval "$ac_try") 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; } &&
19807          { ac_try='test -s conftest.$ac_objext'
19808   { (case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_try") 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; }; then
19817   ac_cv_func_isnan_in_cmath=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         ac_cv_func_isnan_in_cmath=no
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826     ac_ext=c
19827 ac_cpp='$CPP $CPPFLAGS'
19828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19831
19832
19833 fi
19834 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19835 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19836
19837 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19838
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_ISNAN_IN_CMATH 1
19841 _ACEOF
19842
19843 fi
19844
19845
19846   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19847 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19848 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851
19852     ac_ext=cpp
19853 ac_cpp='$CXXCPP $CPPFLAGS'
19854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19857
19858     cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 #include <cmath>
19865 int
19866 main ()
19867 {
19868 float f; std::isnan(f);
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_compile") 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; } &&
19897          { ac_try='test -s conftest.$ac_objext'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_func_std_isnan_in_cmath=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         ac_cv_func_std_isnan_in_cmath=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916     ac_ext=c
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19925 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19926
19927 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_STD_ISNAN_IN_CMATH 1
19931 _ACEOF
19932
19933 fi
19934
19935
19936
19937
19938   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19939 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19940 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943
19944     ac_ext=cpp
19945 ac_cpp='$CXXCPP $CPPFLAGS'
19946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19949
19950     cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956 #include <math.h>
19957 int
19958 main ()
19959 {
19960 float f; isinf(f);
19961   ;
19962   return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969   *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972   (eval "$ac_compile") 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } &&
19979          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19980   { (case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_try") 2>&5
19986   ac_status=$?
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); }; } &&
19989          { ac_try='test -s conftest.$ac_objext'
19990   { (case "(($ac_try" in
19991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992   *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995   (eval "$ac_try") 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_cv_func_isinf_in_math_h=yes
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004         ac_cv_func_isinf_in_math_h=no
20005 fi
20006
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008     ac_ext=c
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20013
20014
20015 fi
20016 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20017 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20018
20019 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_ISINF_IN_MATH_H 1
20023 _ACEOF
20024
20025 fi
20026
20027
20028   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20029 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20030 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033
20034     ac_ext=cpp
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039
20040     cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #include <cmath>
20047 int
20048 main ()
20049 {
20050 float f; isinf(f);
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_compile") 2>conftest.er1
20063   ac_status=$?
20064   grep -v '^ *+' conftest.er1 >conftest.err
20065   rm -f conftest.er1
20066   cat conftest.err >&5
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; } &&
20079          { ac_try='test -s conftest.$ac_objext'
20080   { (case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_try") 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_func_isinf_in_cmath=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094         ac_cv_func_isinf_in_cmath=no
20095 fi
20096
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098     ac_ext=c
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103
20104
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20108
20109 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_CMATH 1
20113 _ACEOF
20114
20115 fi
20116
20117
20118   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123
20124     ac_ext=cpp
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20129
20130     cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 #include <cmath>
20137 int
20138 main ()
20139 {
20140 float f; std::isinf(f);
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_compile") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } &&
20159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20160   { (case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_try") 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; } &&
20169          { ac_try='test -s conftest.$ac_objext'
20170   { (case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_try") 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; }; then
20179   ac_cv_func_std_isinf_in_cmath=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         ac_cv_func_std_isinf_in_cmath=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188     ac_ext=c
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193
20194
20195 fi
20196 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20197 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20198
20199 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_STD_ISINF_IN_CMATH 1
20203 _ACEOF
20204
20205 fi
20206
20207
20208   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20209 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213
20214     ac_ext=cpp
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20219
20220     cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 #include <ieeefp.h>
20227 int
20228 main ()
20229 {
20230 float f; finite(f);
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_compile") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20250   { (case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_try") 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; } &&
20259          { ac_try='test -s conftest.$ac_objext'
20260   { (case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_try") 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_cv_func_finite_in_ieeefp_h=yes
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274         ac_cv_func_finite_in_ieeefp_h=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278     ac_ext=c
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284
20285 fi
20286 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20287 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20288
20289 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_FINITE_IN_IEEEFP_H 1
20293 _ACEOF
20294
20295 fi
20296
20297
20298
20299 if test "$llvm_cv_platform_type" = "Unix" ; then
20300
20301
20302 for ac_header in stdlib.h unistd.h
20303 do
20304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20309   echo $ECHO_N "(cached) $ECHO_C" >&6
20310 fi
20311 ac_res=`eval echo '${'$as_ac_Header'}'`
20312                { echo "$as_me:$LINENO: result: $ac_res" >&5
20313 echo "${ECHO_T}$ac_res" >&6; }
20314 else
20315   # Is the header compilable?
20316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 $ac_includes_default
20325 #include <$ac_header>
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (ac_try="$ac_compile"
20329 case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_compile") 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20342   { (case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_try") 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest.$ac_objext'
20352   { (case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_try") 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); }; }; then
20361   ac_header_compiler=yes
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366         ac_header_compiler=no
20367 fi
20368
20369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20371 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372
20373 # Is the header present?
20374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382 #include <$ac_header>
20383 _ACEOF
20384 if { (ac_try="$ac_cpp conftest.$ac_ext"
20385 case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } >/dev/null; then
20397   if test -s conftest.err; then
20398     ac_cpp_err=$ac_c_preproc_warn_flag
20399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20400   else
20401     ac_cpp_err=
20402   fi
20403 else
20404   ac_cpp_err=yes
20405 fi
20406 if test -z "$ac_cpp_err"; then
20407   ac_header_preproc=yes
20408 else
20409   echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412   ac_header_preproc=no
20413 fi
20414
20415 rm -f conftest.err conftest.$ac_ext
20416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20417 echo "${ECHO_T}$ac_header_preproc" >&6; }
20418
20419 # So?  What about this header?
20420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20421   yes:no: )
20422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20426     ac_header_preproc=yes
20427     ;;
20428   no:yes:* )
20429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20441     ( cat <<\_ASBOX
20442 ## ------------------------------------ ##
20443 ## Report this to http://llvm.org/bugs/ ##
20444 ## ------------------------------------ ##
20445 _ASBOX
20446      ) | sed "s/^/$as_me: WARNING:     /" >&2
20447     ;;
20448 esac
20449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   eval "$as_ac_Header=\$ac_header_preproc"
20455 fi
20456 ac_res=`eval echo '${'$as_ac_Header'}'`
20457                { echo "$as_me:$LINENO: result: $ac_res" >&5
20458 echo "${ECHO_T}$ac_res" >&6; }
20459
20460 fi
20461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20462   cat >>confdefs.h <<_ACEOF
20463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20464 _ACEOF
20465
20466 fi
20467
20468 done
20469
20470
20471 for ac_func in getpagesize
20472 do
20473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20487 #define $ac_func innocuous_$ac_func
20488
20489 /* System header to define __stub macros and hopefully few prototypes,
20490     which can conflict with char $ac_func (); below.
20491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492     <limits.h> exists even on freestanding compilers.  */
20493
20494 #ifdef __STDC__
20495 # include <limits.h>
20496 #else
20497 # include <assert.h>
20498 #endif
20499
20500 #undef $ac_func
20501
20502 /* Override any GCC internal prototype to avoid an error.
20503    Use char because int might match the return type of a GCC
20504    builtin and then its argument prototype would still apply.  */
20505 #ifdef __cplusplus
20506 extern "C"
20507 #endif
20508 char $ac_func ();
20509 /* The GNU C library defines this for functions which it implements
20510     to always fail with ENOSYS.  Some functions are actually named
20511     something starting with __ and the normal name is an alias.  */
20512 #if defined __stub_$ac_func || defined __stub___$ac_func
20513 choke me
20514 #endif
20515
20516 int
20517 main ()
20518 {
20519 return $ac_func ();
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (ac_try="$ac_link"
20526 case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531   (eval "$ac_link") 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } &&
20538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20539   { (case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_try") 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; } &&
20548          { ac_try='test -s conftest$ac_exeext'
20549   { (case "(($ac_try" in
20550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551   *) ac_try_echo=$ac_try;;
20552 esac
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554   (eval "$ac_try") 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   eval "$as_ac_var=yes"
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563         eval "$as_ac_var=no"
20564 fi
20565
20566 rm -f core conftest.err conftest.$ac_objext \
20567       conftest$ac_exeext conftest.$ac_ext
20568 fi
20569 ac_res=`eval echo '${'$as_ac_var'}'`
20570                { echo "$as_me:$LINENO: result: $ac_res" >&5
20571 echo "${ECHO_T}$ac_res" >&6; }
20572 if test `eval echo '${'$as_ac_var'}'` = yes; then
20573   cat >>confdefs.h <<_ACEOF
20574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20575 _ACEOF
20576
20577 fi
20578 done
20579
20580 { echo "$as_me:$LINENO: checking for working mmap" >&5
20581 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20582 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585   if test "$cross_compiling" = yes; then
20586   ac_cv_func_mmap_fixed_mapped=no
20587 else
20588   cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 $ac_includes_default
20595 /* malloc might have been renamed as rpl_malloc. */
20596 #undef malloc
20597
20598 /* Thanks to Mike Haertel and Jim Avera for this test.
20599    Here is a matrix of mmap possibilities:
20600         mmap private not fixed
20601         mmap private fixed at somewhere currently unmapped
20602         mmap private fixed at somewhere already mapped
20603         mmap shared not fixed
20604         mmap shared fixed at somewhere currently unmapped
20605         mmap shared fixed at somewhere already mapped
20606    For private mappings, we should verify that changes cannot be read()
20607    back from the file, nor mmap's back from the file at a different
20608    address.  (There have been systems where private was not correctly
20609    implemented like the infamous i386 svr4.0, and systems where the
20610    VM page cache was not coherent with the file system buffer cache
20611    like early versions of FreeBSD and possibly contemporary NetBSD.)
20612    For shared mappings, we should conversely verify that changes get
20613    propagated back to all the places they're supposed to be.
20614
20615    Grep wants private fixed already mapped.
20616    The main things grep needs to know about mmap are:
20617    * does it exist and is it safe to write into the mmap'd area
20618    * how to use it (BSD variants)  */
20619
20620 #include <fcntl.h>
20621 #include <sys/mman.h>
20622
20623 #if !STDC_HEADERS && !HAVE_STDLIB_H
20624 char *malloc ();
20625 #endif
20626
20627 /* This mess was copied from the GNU getpagesize.h.  */
20628 #if !HAVE_GETPAGESIZE
20629 /* Assume that all systems that can run configure have sys/param.h.  */
20630 # if !HAVE_SYS_PARAM_H
20631 #  define HAVE_SYS_PARAM_H 1
20632 # endif
20633
20634 # ifdef _SC_PAGESIZE
20635 #  define getpagesize() sysconf(_SC_PAGESIZE)
20636 # else /* no _SC_PAGESIZE */
20637 #  if HAVE_SYS_PARAM_H
20638 #   include <sys/param.h>
20639 #   ifdef EXEC_PAGESIZE
20640 #    define getpagesize() EXEC_PAGESIZE
20641 #   else /* no EXEC_PAGESIZE */
20642 #    ifdef NBPG
20643 #     define getpagesize() NBPG * CLSIZE
20644 #     ifndef CLSIZE
20645 #      define CLSIZE 1
20646 #     endif /* no CLSIZE */
20647 #    else /* no NBPG */
20648 #     ifdef NBPC
20649 #      define getpagesize() NBPC
20650 #     else /* no NBPC */
20651 #      ifdef PAGESIZE
20652 #       define getpagesize() PAGESIZE
20653 #      endif /* PAGESIZE */
20654 #     endif /* no NBPC */
20655 #    endif /* no NBPG */
20656 #   endif /* no EXEC_PAGESIZE */
20657 #  else /* no HAVE_SYS_PARAM_H */
20658 #   define getpagesize() 8192   /* punt totally */
20659 #  endif /* no HAVE_SYS_PARAM_H */
20660 # endif /* no _SC_PAGESIZE */
20661
20662 #endif /* no HAVE_GETPAGESIZE */
20663
20664 int
20665 main ()
20666 {
20667   char *data, *data2, *data3;
20668   int i, pagesize;
20669   int fd;
20670
20671   pagesize = getpagesize ();
20672
20673   /* First, make a file with some known garbage in it. */
20674   data = (char *) malloc (pagesize);
20675   if (!data)
20676     return 1;
20677   for (i = 0; i < pagesize; ++i)
20678     *(data + i) = rand ();
20679   umask (0);
20680   fd = creat ("conftest.mmap", 0600);
20681   if (fd < 0)
20682     return 1;
20683   if (write (fd, data, pagesize) != pagesize)
20684     return 1;
20685   close (fd);
20686
20687   /* Next, try to mmap the file at a fixed address which already has
20688      something else allocated at it.  If we can, also make sure that
20689      we see the same garbage.  */
20690   fd = open ("conftest.mmap", O_RDWR);
20691   if (fd < 0)
20692     return 1;
20693   data2 = (char *) malloc (2 * pagesize);
20694   if (!data2)
20695     return 1;
20696   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20697   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20698                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20699     return 1;
20700   for (i = 0; i < pagesize; ++i)
20701     if (*(data + i) != *(data2 + i))
20702       return 1;
20703
20704   /* Finally, make sure that changes to the mapped area do not
20705      percolate back to the file as seen by read().  (This is a bug on
20706      some variants of i386 svr4.0.)  */
20707   for (i = 0; i < pagesize; ++i)
20708     *(data2 + i) = *(data2 + i) + 1;
20709   data3 = (char *) malloc (pagesize);
20710   if (!data3)
20711     return 1;
20712   if (read (fd, data3, pagesize) != pagesize)
20713     return 1;
20714   for (i = 0; i < pagesize; ++i)
20715     if (*(data + i) != *(data3 + i))
20716       return 1;
20717   close (fd);
20718   return 0;
20719 }
20720 _ACEOF
20721 rm -f conftest$ac_exeext
20722 if { (ac_try="$ac_link"
20723 case "(($ac_try" in
20724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725   *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728   (eval "$ac_link") 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20732   { (case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_try") 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; }; then
20741   ac_cv_func_mmap_fixed_mapped=yes
20742 else
20743   echo "$as_me: program exited with status $ac_status" >&5
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ( exit $ac_status )
20748 ac_cv_func_mmap_fixed_mapped=no
20749 fi
20750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20751 fi
20752
20753
20754 fi
20755 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20756 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20757 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20758
20759 cat >>confdefs.h <<\_ACEOF
20760 #define HAVE_MMAP 1
20761 _ACEOF
20762
20763 fi
20764 rm -f conftest.mmap
20765
20766   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20767 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20768 if test "${ac_cv_func_mmap_file+set}" = set; then
20769   echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771    ac_ext=c
20772 ac_cpp='$CPP $CPPFLAGS'
20773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20776
20777   if test "$cross_compiling" = yes; then
20778   ac_cv_func_mmap_file=no
20779 else
20780   cat >conftest.$ac_ext <<_ACEOF
20781
20782     /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787
20788 #include <sys/types.h>
20789 #include <sys/mman.h>
20790 #include <fcntl.h>
20791
20792 int
20793 main ()
20794 {
20795
20796   int fd;
20797   fd = creat ("foo",0777);
20798   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20799   unlink ("foo");
20800   return (fd != (int) MAP_FAILED);
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 rm -f conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_link") 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20816   { (case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_try") 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   ac_cv_func_mmap_file=yes
20826 else
20827   echo "$as_me: program exited with status $ac_status" >&5
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831 ( exit $ac_status )
20832 ac_cv_func_mmap_file=no
20833 fi
20834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20835 fi
20836
20837
20838   ac_ext=c
20839 ac_cpp='$CPP $CPPFLAGS'
20840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20843
20844
20845 fi
20846 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20847 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20848 if test "$ac_cv_func_mmap_file" = yes; then
20849
20850 cat >>confdefs.h <<\_ACEOF
20851 #define HAVE_MMAP_FILE
20852 _ACEOF
20853
20854    MMAP_FILE=yes
20855
20856 fi
20857
20858   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20859 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20860 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863   if test "$llvm_cv_os_type" = "Interix" ; then
20864    ac_cv_need_dev_zero_for_mmap=yes
20865  else
20866    ac_cv_need_dev_zero_for_mmap=no
20867  fi
20868
20869 fi
20870 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20871 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20872 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20873
20874 cat >>confdefs.h <<\_ACEOF
20875 #define NEED_DEV_ZERO_FOR_MMAP 1
20876 _ACEOF
20877
20878 fi
20879
20880   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20881   then
20882     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20883 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20884   fi
20885   if test "$ac_cv_func_mmap_file" = "no"
20886   then
20887     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20888 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20889   fi
20890 fi
20891
20892 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20893 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20894 ac_ext=cpp
20895 ac_cpp='$CXXCPP $CPPFLAGS'
20896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20899
20900 cat >conftest.$ac_ext <<_ACEOF
20901
20902   /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907
20908     int main() {
20909       volatile unsigned long val = 1;
20910       __sync_synchronize();
20911       __sync_val_compare_and_swap(&val, 1, 0);
20912       __sync_add_and_fetch(&val, 1);
20913       __sync_sub_and_fetch(&val, 1);
20914       return 0;
20915     }
20916
20917
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_link") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; } &&
20943          { ac_try='test -s conftest$ac_exeext'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; }; then
20953
20954   { echo "$as_me:$LINENO: result: yes" >&5
20955 echo "${ECHO_T}yes" >&6; }
20956
20957 cat >>confdefs.h <<\_ACEOF
20958 #define LLVM_HAS_ATOMICS 1
20959 _ACEOF
20960
20961
20962 else
20963   echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20965
20966
20967   { echo "$as_me:$LINENO: result: no" >&5
20968 echo "${ECHO_T}no" >&6; }
20969
20970 cat >>confdefs.h <<\_ACEOF
20971 #define LLVM_HAS_ATOMICS 0
20972 _ACEOF
20973
20974   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20975 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20976
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext \
20980       conftest$ac_exeext conftest.$ac_ext
20981 ac_ext=c
20982 ac_cpp='$CPP $CPPFLAGS'
20983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20986
20987
20988
20989 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20990   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20991 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20992 if test "${llvm_cv_linux_mixed+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995    ac_ext=c
20996 ac_cpp='$CPP $CPPFLAGS'
20997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21000
21001   cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 #ifndef __x86_64__
21008        error: Not x86-64 even if uname says so!
21009       #endif
21010
21011 int
21012 main ()
21013 {
21014
21015   ;
21016   return 0;
21017 }
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026   (eval "$ac_compile") 2>conftest.er1
21027   ac_status=$?
21028   grep -v '^ *+' conftest.er1 >conftest.err
21029   rm -f conftest.er1
21030   cat conftest.err >&5
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); } &&
21033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21034   { (case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_try") 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; } &&
21043          { ac_try='test -s conftest.$ac_objext'
21044   { (case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_try") 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; }; then
21053   llvm_cv_linux_mixed=no
21054 else
21055   echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058         llvm_cv_linux_mixed=yes
21059 fi
21060
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062   ac_ext=c
21063 ac_cpp='$CPP $CPPFLAGS'
21064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21067
21068
21069 fi
21070 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21071 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21072
21073   if test "$llvm_cv_linux_mixed" = "yes"; then
21074     llvm_cv_target_arch="x86"
21075     ARCH="x86"
21076   fi
21077 fi
21078
21079
21080 for ac_func in __dso_handle
21081 do
21082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21096 #define $ac_func innocuous_$ac_func
21097
21098 /* System header to define __stub macros and hopefully few prototypes,
21099     which can conflict with char $ac_func (); below.
21100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21101     <limits.h> exists even on freestanding compilers.  */
21102
21103 #ifdef __STDC__
21104 # include <limits.h>
21105 #else
21106 # include <assert.h>
21107 #endif
21108
21109 #undef $ac_func
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112    Use char because int might match the return type of a GCC
21113    builtin and then its argument prototype would still apply.  */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char $ac_func ();
21118 /* The GNU C library defines this for functions which it implements
21119     to always fail with ENOSYS.  Some functions are actually named
21120     something starting with __ and the normal name is an alias.  */
21121 #if defined __stub_$ac_func || defined __stub___$ac_func
21122 choke me
21123 #endif
21124
21125 int
21126 main ()
21127 {
21128 return $ac_func ();
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_link") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148   { (case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_try") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; } &&
21157          { ac_try='test -s conftest$ac_exeext'
21158   { (case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_try") 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; }; then
21167   eval "$as_ac_var=yes"
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         eval "$as_ac_var=no"
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext \
21176       conftest$ac_exeext conftest.$ac_ext
21177 fi
21178 ac_res=`eval echo '${'$as_ac_var'}'`
21179                { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 if test `eval echo '${'$as_ac_var'}'` = yes; then
21182   cat >>confdefs.h <<_ACEOF
21183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21184 _ACEOF
21185
21186 fi
21187 done
21188
21189
21190 SHLIBEXT=$libltdl_cv_shlibext
21191
21192
21193 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21194
21195
21196 if test "${prefix}" = "NONE" ; then
21197   prefix="/usr/local"
21198 fi
21199 eval LLVM_PREFIX="${prefix}";
21200 eval LLVM_BINDIR="${prefix}/bin";
21201 eval LLVM_LIBDIR="${prefix}/lib";
21202 eval LLVM_DATADIR="${prefix}/share/llvm";
21203 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21204 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21205 eval LLVM_INCLUDEDIR="${prefix}/include";
21206 eval LLVM_INFODIR="${prefix}/info";
21207 eval LLVM_MANDIR="${prefix}/man";
21208 LLVM_CONFIGTIME=`date`
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21221   LLVM_CONFIGTIME="(timestamp not enabled)"
21222 fi
21223
21224
21225 cat >>confdefs.h <<_ACEOF
21226 #define LLVM_PREFIX "$LLVM_PREFIX"
21227 _ACEOF
21228
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define LLVM_BINDIR "$LLVM_BINDIR"
21232 _ACEOF
21233
21234
21235 cat >>confdefs.h <<_ACEOF
21236 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21237 _ACEOF
21238
21239
21240 cat >>confdefs.h <<_ACEOF
21241 #define LLVM_DATADIR "$LLVM_DATADIR"
21242 _ACEOF
21243
21244
21245 cat >>confdefs.h <<_ACEOF
21246 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21247 _ACEOF
21248
21249
21250 cat >>confdefs.h <<_ACEOF
21251 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21252 _ACEOF
21253
21254
21255 cat >>confdefs.h <<_ACEOF
21256 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21257 _ACEOF
21258
21259
21260 cat >>confdefs.h <<_ACEOF
21261 #define LLVM_INFODIR "$LLVM_INFODIR"
21262 _ACEOF
21263
21264
21265 cat >>confdefs.h <<_ACEOF
21266 #define LLVM_MANDIR "$LLVM_MANDIR"
21267 _ACEOF
21268
21269
21270 cat >>confdefs.h <<_ACEOF
21271 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21272 _ACEOF
21273
21274
21275 cat >>confdefs.h <<_ACEOF
21276 #define LLVM_HOSTTRIPLE "$host"
21277 _ACEOF
21278
21279
21280 cat >>confdefs.h <<_ACEOF
21281 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21282 _ACEOF
21283
21284
21285 if test "$BINDINGS_TO_BUILD" = auto ; then
21286   BINDINGS_TO_BUILD=""
21287   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21288     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21289   fi
21290 fi
21291 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21292
21293
21294 ALL_BINDINGS=ocaml
21295
21296
21297 binding_prereqs_failed=0
21298 for a_binding in $BINDINGS_TO_BUILD ; do
21299   case "$a_binding" in
21300   ocaml)
21301     if test "x$OCAMLC" = x ; then
21302       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21303 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21304       binding_prereqs_failed=1
21305     fi
21306     if test "x$OCAMLDEP" = x ; then
21307       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21308 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21309       binding_prereqs_failed=1
21310     fi
21311     if test "x$OCAMLOPT" = x ; then
21312       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21313 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21314           fi
21315     if test "x$with_ocaml_libdir" != xauto ; then
21316       OCAML_LIBDIR=$with_ocaml_libdir
21317
21318     else
21319       ocaml_stdlib="`"$OCAMLC" -where`"
21320       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21321       then
21322         # ocaml stdlib is beneath our prefix; use stdlib
21323         OCAML_LIBDIR=$ocaml_stdlib
21324
21325       else
21326         # ocaml stdlib is outside our prefix; use libdir/ocaml
21327         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21328
21329       fi
21330     fi
21331     ;;
21332   esac
21333 done
21334 if test "$binding_prereqs_failed" = 1 ; then
21335   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21336 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21337    { (exit 1); exit 1; }; }
21338 fi
21339
21340 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21341 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21342 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345    ac_ext=cpp
21346 ac_cpp='$CXXCPP $CPPFLAGS'
21347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21350
21351   oldcxxflags="$CXXFLAGS"
21352   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21360 int
21361 main ()
21362 {
21363 X<int>().f();
21364   ;
21365   return 0;
21366 }
21367 _ACEOF
21368 rm -f conftest.$ac_objext
21369 if { (ac_try="$ac_compile"
21370 case "(($ac_try" in
21371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372   *) ac_try_echo=$ac_try;;
21373 esac
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375   (eval "$ac_compile") 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21383   { (case "(($ac_try" in
21384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385   *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388   (eval "$ac_try") 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); }; } &&
21392          { ac_try='test -s conftest.$ac_objext'
21393   { (case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_try") 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }; }; then
21402   llvm_cv_cxx_visibility_inlines_hidden=yes
21403 else
21404   echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407         llvm_cv_cxx_visibility_inlines_hidden=no
21408 fi
21409
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411   CXXFLAGS="$oldcxxflags"
21412   ac_ext=c
21413 ac_cpp='$CPP $CPPFLAGS'
21414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21417
21418
21419 fi
21420 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21421 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21422 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21423   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21424
21425 else
21426   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21427
21428 fi
21429
21430
21431 if test "$llvm_cv_link_use_r" = "yes" ; then
21432   RPATH="-Wl,-R"
21433 else
21434   RPATH="-Wl,-rpath"
21435 fi
21436
21437
21438 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21439   RDYNAMIC="-Wl,-export-dynamic"
21440 else
21441   RDYNAMIC=""
21442 fi
21443
21444
21445
21446 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21447
21448
21449
21450
21451
21452
21453 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21454
21455 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21456
21457 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21458
21459 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21460
21461 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21462
21463
21464 ac_config_files="$ac_config_files Makefile.config"
21465
21466
21467 ac_config_files="$ac_config_files llvm.spec"
21468
21469
21470 ac_config_files="$ac_config_files docs/doxygen.cfg"
21471
21472
21473 if test "${clang_src_root}" = ""; then
21474   clang_src_root="$srcdir/tools/clang"
21475 fi
21476 if test -f ${clang_src_root}/README.txt; then
21477     configh="include/clang/Config/config.h"
21478   doxy="docs/doxygen.cfg"
21479   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21480
21481   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21482
21483 fi
21484
21485 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21486
21487
21488 test "x$program_prefix" = "xNONE" && program_prefix=""
21489
21490
21491
21492 ac_config_commands="$ac_config_commands setup"
21493
21494 ac_config_commands="$ac_config_commands Makefile"
21495
21496
21497 ac_config_commands="$ac_config_commands Makefile.common"
21498
21499
21500 ac_config_commands="$ac_config_commands examples/Makefile"
21501
21502
21503 ac_config_commands="$ac_config_commands lib/Makefile"
21504
21505
21506 ac_config_commands="$ac_config_commands runtime/Makefile"
21507
21508
21509 ac_config_commands="$ac_config_commands test/Makefile"
21510
21511
21512 ac_config_commands="$ac_config_commands test/Makefile.tests"
21513
21514
21515 ac_config_commands="$ac_config_commands unittests/Makefile"
21516
21517
21518 ac_config_commands="$ac_config_commands tools/Makefile"
21519
21520
21521 ac_config_commands="$ac_config_commands utils/Makefile"
21522
21523
21524 ac_config_commands="$ac_config_commands projects/Makefile"
21525
21526
21527 ac_config_commands="$ac_config_commands bindings/Makefile"
21528
21529
21530 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21531
21532
21533
21534 cat >confcache <<\_ACEOF
21535 # This file is a shell script that caches the results of configure
21536 # tests run on this system so they can be shared between configure
21537 # scripts and configure runs, see configure's option --config-cache.
21538 # It is not useful on other systems.  If it contains results you don't
21539 # want to keep, you may remove or edit it.
21540 #
21541 # config.status only pays attention to the cache file if you give it
21542 # the --recheck option to rerun configure.
21543 #
21544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21546 # following values.
21547
21548 _ACEOF
21549
21550 # The following way of writing the cache mishandles newlines in values,
21551 # but we know of no workaround that is simple, portable, and efficient.
21552 # So, we kill variables containing newlines.
21553 # Ultrix sh set writes to stderr and can't be redirected directly,
21554 # and sets the high bit in the cache file unless we assign to the vars.
21555 (
21556   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21557     eval ac_val=\$$ac_var
21558     case $ac_val in #(
21559     *${as_nl}*)
21560       case $ac_var in #(
21561       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21562 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21563       esac
21564       case $ac_var in #(
21565       _ | IFS | as_nl) ;; #(
21566       *) $as_unset $ac_var ;;
21567       esac ;;
21568     esac
21569   done
21570
21571   (set) 2>&1 |
21572     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21573     *${as_nl}ac_space=\ *)
21574       # `set' does not quote correctly, so add quotes (double-quote
21575       # substitution turns \\\\ into \\, and sed turns \\ into \).
21576       sed -n \
21577         "s/'/'\\\\''/g;
21578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21579       ;; #(
21580     *)
21581       # `set' quotes correctly as required by POSIX, so do not add quotes.
21582       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21583       ;;
21584     esac |
21585     sort
21586 ) |
21587   sed '
21588      /^ac_cv_env_/b end
21589      t clear
21590      :clear
21591      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21592      t end
21593      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21594      :end' >>confcache
21595 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21596   if test -w "$cache_file"; then
21597     test "x$cache_file" != "x/dev/null" &&
21598       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21599 echo "$as_me: updating cache $cache_file" >&6;}
21600     cat confcache >$cache_file
21601   else
21602     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21603 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21604   fi
21605 fi
21606 rm -f confcache
21607
21608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21609 # Let make expand exec_prefix.
21610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21611
21612 DEFS=-DHAVE_CONFIG_H
21613
21614 ac_libobjs=
21615 ac_ltlibobjs=
21616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21617   # 1. Remove the extension, and $U if already installed.
21618   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21619   ac_i=`echo "$ac_i" | sed "$ac_script"`
21620   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21621   #    will be set to the directory where LIBOBJS objects are built.
21622   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21623   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21624 done
21625 LIBOBJS=$ac_libobjs
21626
21627 LTLIBOBJS=$ac_ltlibobjs
21628
21629
21630 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21631   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21632 Usually this means the macro was only invoked conditionally." >&5
21633 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21634 Usually this means the macro was only invoked conditionally." >&2;}
21635    { (exit 1); exit 1; }; }
21636 fi
21637 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21638   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21639 Usually this means the macro was only invoked conditionally." >&5
21640 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21641 Usually this means the macro was only invoked conditionally." >&2;}
21642    { (exit 1); exit 1; }; }
21643 fi
21644
21645 : ${CONFIG_STATUS=./config.status}
21646 ac_clean_files_save=$ac_clean_files
21647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21650 cat >$CONFIG_STATUS <<_ACEOF
21651 #! $SHELL
21652 # Generated by $as_me.
21653 # Run this file to recreate the current configuration.
21654 # Compiler output produced by configure, useful for debugging
21655 # configure, is in config.log if it exists.
21656
21657 debug=false
21658 ac_cs_recheck=false
21659 ac_cs_silent=false
21660 SHELL=\${CONFIG_SHELL-$SHELL}
21661 _ACEOF
21662
21663 cat >>$CONFIG_STATUS <<\_ACEOF
21664 ## --------------------- ##
21665 ## M4sh Initialization.  ##
21666 ## --------------------- ##
21667
21668 # Be Bourne compatible
21669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21670   emulate sh
21671   NULLCMD=:
21672   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21673   # is contrary to our usage.  Disable this feature.
21674   alias -g '${1+"$@"}'='"$@"'
21675   setopt NO_GLOB_SUBST
21676 else
21677   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21678 fi
21679 BIN_SH=xpg4; export BIN_SH # for Tru64
21680 DUALCASE=1; export DUALCASE # for MKS sh
21681
21682
21683 # PATH needs CR
21684 # Avoid depending upon Character Ranges.
21685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21688 as_cr_digits='0123456789'
21689 as_cr_alnum=$as_cr_Letters$as_cr_digits
21690
21691 # The user is always right.
21692 if test "${PATH_SEPARATOR+set}" != set; then
21693   echo "#! /bin/sh" >conf$$.sh
21694   echo  "exit 0"   >>conf$$.sh
21695   chmod +x conf$$.sh
21696   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21697     PATH_SEPARATOR=';'
21698   else
21699     PATH_SEPARATOR=:
21700   fi
21701   rm -f conf$$.sh
21702 fi
21703
21704 # Support unset when possible.
21705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21706   as_unset=unset
21707 else
21708   as_unset=false
21709 fi
21710
21711
21712 # IFS
21713 # We need space, tab and new line, in precisely that order.  Quoting is
21714 # there to prevent editors from complaining about space-tab.
21715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21716 # splitting by setting IFS to empty value.)
21717 as_nl='
21718 '
21719 IFS=" ""        $as_nl"
21720
21721 # Find who we are.  Look in the path if we contain no directory separator.
21722 case $0 in
21723   *[\\/]* ) as_myself=$0 ;;
21724   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21725 for as_dir in $PATH
21726 do
21727   IFS=$as_save_IFS
21728   test -z "$as_dir" && as_dir=.
21729   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21730 done
21731 IFS=$as_save_IFS
21732
21733      ;;
21734 esac
21735 # We did not find ourselves, most probably we were run as `sh COMMAND'
21736 # in which case we are not to be found in the path.
21737 if test "x$as_myself" = x; then
21738   as_myself=$0
21739 fi
21740 if test ! -f "$as_myself"; then
21741   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21742   { (exit 1); exit 1; }
21743 fi
21744
21745 # Work around bugs in pre-3.0 UWIN ksh.
21746 for as_var in ENV MAIL MAILPATH
21747 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21748 done
21749 PS1='$ '
21750 PS2='> '
21751 PS4='+ '
21752
21753 # NLS nuisances.
21754 for as_var in \
21755   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21756   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21757   LC_TELEPHONE LC_TIME
21758 do
21759   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21760     eval $as_var=C; export $as_var
21761   else
21762     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21763   fi
21764 done
21765
21766 # Required to use basename.
21767 if expr a : '\(a\)' >/dev/null 2>&1 &&
21768    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21769   as_expr=expr
21770 else
21771   as_expr=false
21772 fi
21773
21774 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21775   as_basename=basename
21776 else
21777   as_basename=false
21778 fi
21779
21780
21781 # Name of the executable.
21782 as_me=`$as_basename -- "$0" ||
21783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21784          X"$0" : 'X\(//\)$' \| \
21785          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21786 echo X/"$0" |
21787     sed '/^.*\/\([^/][^/]*\)\/*$/{
21788             s//\1/
21789             q
21790           }
21791           /^X\/\(\/\/\)$/{
21792             s//\1/
21793             q
21794           }
21795           /^X\/\(\/\).*/{
21796             s//\1/
21797             q
21798           }
21799           s/.*/./; q'`
21800
21801 # CDPATH.
21802 $as_unset CDPATH
21803
21804
21805
21806   as_lineno_1=$LINENO
21807   as_lineno_2=$LINENO
21808   test "x$as_lineno_1" != "x$as_lineno_2" &&
21809   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21810
21811   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21812   # uniformly replaced by the line number.  The first 'sed' inserts a
21813   # line-number line after each line using $LINENO; the second 'sed'
21814   # does the real work.  The second script uses 'N' to pair each
21815   # line-number line with the line containing $LINENO, and appends
21816   # trailing '-' during substitution so that $LINENO is not a special
21817   # case at line end.
21818   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21819   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21820   # E. McMahon (1931-1989) for sed's syntax.  :-)
21821   sed -n '
21822     p
21823     /[$]LINENO/=
21824   ' <$as_myself |
21825     sed '
21826       s/[$]LINENO.*/&-/
21827       t lineno
21828       b
21829       :lineno
21830       N
21831       :loop
21832       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21833       t loop
21834       s/-\n.*//
21835     ' >$as_me.lineno &&
21836   chmod +x "$as_me.lineno" ||
21837     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21838    { (exit 1); exit 1; }; }
21839
21840   # Don't try to exec as it changes $[0], causing all sort of problems
21841   # (the dirname of $[0] is not the place where we might find the
21842   # original and so on.  Autoconf is especially sensitive to this).
21843   . "./$as_me.lineno"
21844   # Exit status is that of the last command.
21845   exit
21846 }
21847
21848
21849 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21850   as_dirname=dirname
21851 else
21852   as_dirname=false
21853 fi
21854
21855 ECHO_C= ECHO_N= ECHO_T=
21856 case `echo -n x` in
21857 -n*)
21858   case `echo 'x\c'` in
21859   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21860   *)   ECHO_C='\c';;
21861   esac;;
21862 *)
21863   ECHO_N='-n';;
21864 esac
21865
21866 if expr a : '\(a\)' >/dev/null 2>&1 &&
21867    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21868   as_expr=expr
21869 else
21870   as_expr=false
21871 fi
21872
21873 rm -f conf$$ conf$$.exe conf$$.file
21874 if test -d conf$$.dir; then
21875   rm -f conf$$.dir/conf$$.file
21876 else
21877   rm -f conf$$.dir
21878   mkdir conf$$.dir
21879 fi
21880 echo >conf$$.file
21881 if ln -s conf$$.file conf$$ 2>/dev/null; then
21882   as_ln_s='ln -s'
21883   # ... but there are two gotchas:
21884   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21885   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21886   # In both cases, we have to default to `cp -p'.
21887   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21888     as_ln_s='cp -p'
21889 elif ln conf$$.file conf$$ 2>/dev/null; then
21890   as_ln_s=ln
21891 else
21892   as_ln_s='cp -p'
21893 fi
21894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21895 rmdir conf$$.dir 2>/dev/null
21896
21897 if mkdir -p . 2>/dev/null; then
21898   as_mkdir_p=:
21899 else
21900   test -d ./-p && rmdir ./-p
21901   as_mkdir_p=false
21902 fi
21903
21904 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21905 # systems may use methods other than mode bits to determine executability.
21906 cat >conf$$.file <<_ASEOF
21907 #! /bin/sh
21908 exit 0
21909 _ASEOF
21910 chmod +x conf$$.file
21911 if test -x conf$$.file >/dev/null 2>&1; then
21912   as_executable_p="test -x"
21913 else
21914   as_executable_p=:
21915 fi
21916 rm -f conf$$.file
21917
21918 # Sed expression to map a string onto a valid CPP name.
21919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21920
21921 # Sed expression to map a string onto a valid variable name.
21922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21923
21924
21925 exec 6>&1
21926
21927 # Save the log message, to keep $[0] and so on meaningful, and to
21928 # report actual input values of CONFIG_FILES etc. instead of their
21929 # values after options handling.
21930 ac_log="
21931 This file was extended by LLVM $as_me 3.3svn, which was
21932 generated by GNU Autoconf 2.60.  Invocation command line was
21933
21934   CONFIG_FILES    = $CONFIG_FILES
21935   CONFIG_HEADERS  = $CONFIG_HEADERS
21936   CONFIG_LINKS    = $CONFIG_LINKS
21937   CONFIG_COMMANDS = $CONFIG_COMMANDS
21938   $ $0 $@
21939
21940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21941 "
21942
21943 _ACEOF
21944
21945 cat >>$CONFIG_STATUS <<_ACEOF
21946 # Files that config.status was made for.
21947 config_files="$ac_config_files"
21948 config_headers="$ac_config_headers"
21949 config_commands="$ac_config_commands"
21950
21951 _ACEOF
21952
21953 cat >>$CONFIG_STATUS <<\_ACEOF
21954 ac_cs_usage="\
21955 \`$as_me' instantiates files from templates according to the
21956 current configuration.
21957
21958 Usage: $0 [OPTIONS] [FILE]...
21959
21960   -h, --help       print this help, then exit
21961   -V, --version    print version number, then exit
21962   -q, --quiet      do not print progress messages
21963   -d, --debug      don't remove temporary files
21964       --recheck    update $as_me by reconfiguring in the same conditions
21965   --file=FILE[:TEMPLATE]
21966                    instantiate the configuration file FILE
21967   --header=FILE[:TEMPLATE]
21968                    instantiate the configuration header FILE
21969
21970 Configuration files:
21971 $config_files
21972
21973 Configuration headers:
21974 $config_headers
21975
21976 Configuration commands:
21977 $config_commands
21978
21979 Report bugs to <bug-autoconf@gnu.org>."
21980
21981 _ACEOF
21982 cat >>$CONFIG_STATUS <<_ACEOF
21983 ac_cs_version="\\
21984 LLVM config.status 3.3svn
21985 configured by $0, generated by GNU Autoconf 2.60,
21986   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21987
21988 Copyright (C) 2006 Free Software Foundation, Inc.
21989 This config.status script is free software; the Free Software Foundation
21990 gives unlimited permission to copy, distribute and modify it."
21991
21992 ac_pwd='$ac_pwd'
21993 srcdir='$srcdir'
21994 INSTALL='$INSTALL'
21995 _ACEOF
21996
21997 cat >>$CONFIG_STATUS <<\_ACEOF
21998 # If no file are specified by the user, then we need to provide default
21999 # value.  By we need to know if files were specified by the user.
22000 ac_need_defaults=:
22001 while test $# != 0
22002 do
22003   case $1 in
22004   --*=*)
22005     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22006     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22007     ac_shift=:
22008     ;;
22009   *)
22010     ac_option=$1
22011     ac_optarg=$2
22012     ac_shift=shift
22013     ;;
22014   esac
22015
22016   case $ac_option in
22017   # Handling of the options.
22018   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22019     ac_cs_recheck=: ;;
22020   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22021     echo "$ac_cs_version"; exit ;;
22022   --debug | --debu | --deb | --de | --d | -d )
22023     debug=: ;;
22024   --file | --fil | --fi | --f )
22025     $ac_shift
22026     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22027     ac_need_defaults=false;;
22028   --header | --heade | --head | --hea )
22029     $ac_shift
22030     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22031     ac_need_defaults=false;;
22032   --he | --h)
22033     # Conflict between --help and --header
22034     { echo "$as_me: error: ambiguous option: $1
22035 Try \`$0 --help' for more information." >&2
22036    { (exit 1); exit 1; }; };;
22037   --help | --hel | -h )
22038     echo "$ac_cs_usage"; exit ;;
22039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22040   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22041     ac_cs_silent=: ;;
22042
22043   # This is an error.
22044   -*) { echo "$as_me: error: unrecognized option: $1
22045 Try \`$0 --help' for more information." >&2
22046    { (exit 1); exit 1; }; } ;;
22047
22048   *) ac_config_targets="$ac_config_targets $1"
22049      ac_need_defaults=false ;;
22050
22051   esac
22052   shift
22053 done
22054
22055 ac_configure_extra_args=
22056
22057 if $ac_cs_silent; then
22058   exec 6>/dev/null
22059   ac_configure_extra_args="$ac_configure_extra_args --silent"
22060 fi
22061
22062 _ACEOF
22063 cat >>$CONFIG_STATUS <<_ACEOF
22064 if \$ac_cs_recheck; then
22065   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22066   CONFIG_SHELL=$SHELL
22067   export CONFIG_SHELL
22068   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22069 fi
22070
22071 _ACEOF
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 exec 5>>config.log
22074 {
22075   echo
22076   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22077 ## Running $as_me. ##
22078 _ASBOX
22079   echo "$ac_log"
22080 } >&5
22081
22082 _ACEOF
22083 cat >>$CONFIG_STATUS <<_ACEOF
22084 #
22085 # INIT-COMMANDS
22086 #
22087 llvm_src="${srcdir}"
22088
22089 _ACEOF
22090
22091 cat >>$CONFIG_STATUS <<\_ACEOF
22092
22093 # Handling of arguments.
22094 for ac_config_target in $ac_config_targets
22095 do
22096   case $ac_config_target in
22097     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22098     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22099     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22100     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22101     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22102     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22103     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22104     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22105     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22106     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22107     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22108     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22109     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22110     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22111     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22112     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22113     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22114     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22115     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22116     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22117     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22118     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22119     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22120     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22121     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22122     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22123     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22124
22125   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22126 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22127    { (exit 1); exit 1; }; };;
22128   esac
22129 done
22130
22131
22132 # If the user did not use the arguments to specify the items to instantiate,
22133 # then the envvar interface is used.  Set only those that are not.
22134 # We use the long form for the default assignment because of an extremely
22135 # bizarre bug on SunOS 4.1.3.
22136 if $ac_need_defaults; then
22137   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22138   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22139   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22140 fi
22141
22142 # Have a temporary directory for convenience.  Make it in the build tree
22143 # simply because there is no reason against having it here, and in addition,
22144 # creating and moving files from /tmp can sometimes cause problems.
22145 # Hook for its removal unless debugging.
22146 # Note that there is a small window in which the directory will not be cleaned:
22147 # after its creation but before its name has been assigned to `$tmp'.
22148 $debug ||
22149 {
22150   tmp=
22151   trap 'exit_status=$?
22152   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22153 ' 0
22154   trap '{ (exit 1); exit 1; }' 1 2 13 15
22155 }
22156 # Create a (secure) tmp directory for tmp files.
22157
22158 {
22159   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22160   test -n "$tmp" && test -d "$tmp"
22161 }  ||
22162 {
22163   tmp=./conf$$-$RANDOM
22164   (umask 077 && mkdir "$tmp")
22165 } ||
22166 {
22167    echo "$me: cannot create a temporary directory in ." >&2
22168    { (exit 1); exit 1; }
22169 }
22170
22171 #
22172 # Set up the sed scripts for CONFIG_FILES section.
22173 #
22174
22175 # No need to generate the scripts if there are no CONFIG_FILES.
22176 # This happens for instance when ./config.status config.h
22177 if test -n "$CONFIG_FILES"; then
22178
22179 _ACEOF
22180
22181
22182
22183 ac_delim='%!_!# '
22184 for ac_last_try in false false false false false :; do
22185   cat >conf$$subs.sed <<_ACEOF
22186 SHELL!$SHELL$ac_delim
22187 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22188 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22189 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22190 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22191 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22192 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22193 exec_prefix!$exec_prefix$ac_delim
22194 prefix!$prefix$ac_delim
22195 program_transform_name!$program_transform_name$ac_delim
22196 bindir!$bindir$ac_delim
22197 sbindir!$sbindir$ac_delim
22198 libexecdir!$libexecdir$ac_delim
22199 datarootdir!$datarootdir$ac_delim
22200 datadir!$datadir$ac_delim
22201 sysconfdir!$sysconfdir$ac_delim
22202 sharedstatedir!$sharedstatedir$ac_delim
22203 localstatedir!$localstatedir$ac_delim
22204 includedir!$includedir$ac_delim
22205 oldincludedir!$oldincludedir$ac_delim
22206 docdir!$docdir$ac_delim
22207 infodir!$infodir$ac_delim
22208 htmldir!$htmldir$ac_delim
22209 dvidir!$dvidir$ac_delim
22210 pdfdir!$pdfdir$ac_delim
22211 psdir!$psdir$ac_delim
22212 libdir!$libdir$ac_delim
22213 localedir!$localedir$ac_delim
22214 mandir!$mandir$ac_delim
22215 DEFS!$DEFS$ac_delim
22216 ECHO_C!$ECHO_C$ac_delim
22217 ECHO_N!$ECHO_N$ac_delim
22218 ECHO_T!$ECHO_T$ac_delim
22219 LIBS!$LIBS$ac_delim
22220 build_alias!$build_alias$ac_delim
22221 host_alias!$host_alias$ac_delim
22222 target_alias!$target_alias$ac_delim
22223 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22224 CC!$CC$ac_delim
22225 CFLAGS!$CFLAGS$ac_delim
22226 LDFLAGS!$LDFLAGS$ac_delim
22227 CPPFLAGS!$CPPFLAGS$ac_delim
22228 ac_ct_CC!$ac_ct_CC$ac_delim
22229 EXEEXT!$EXEEXT$ac_delim
22230 OBJEXT!$OBJEXT$ac_delim
22231 CXX!$CXX$ac_delim
22232 CXXFLAGS!$CXXFLAGS$ac_delim
22233 ac_ct_CXX!$ac_ct_CXX$ac_delim
22234 CPP!$CPP$ac_delim
22235 subdirs!$subdirs$ac_delim
22236 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22237 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22238 build!$build$ac_delim
22239 build_cpu!$build_cpu$ac_delim
22240 build_vendor!$build_vendor$ac_delim
22241 build_os!$build_os$ac_delim
22242 host!$host$ac_delim
22243 host_cpu!$host_cpu$ac_delim
22244 host_vendor!$host_vendor$ac_delim
22245 host_os!$host_os$ac_delim
22246 target!$target$ac_delim
22247 target_cpu!$target_cpu$ac_delim
22248 target_vendor!$target_vendor$ac_delim
22249 target_os!$target_os$ac_delim
22250 OS!$OS$ac_delim
22251 HOST_OS!$HOST_OS$ac_delim
22252 TARGET_OS!$TARGET_OS$ac_delim
22253 LINKALL!$LINKALL$ac_delim
22254 NOLINKALL!$NOLINKALL$ac_delim
22255 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22256 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22257 ARCH!$ARCH$ac_delim
22258 HOST_ARCH!$HOST_ARCH$ac_delim
22259 ENDIAN!$ENDIAN$ac_delim
22260 GREP!$GREP$ac_delim
22261 EGREP!$EGREP$ac_delim
22262 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22263 BUILD_CC!$BUILD_CC$ac_delim
22264 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22265 BUILD_CXX!$BUILD_CXX$ac_delim
22266 CVSBUILD!$CVSBUILD$ac_delim
22267 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22268 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22269 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22270 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22271 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22272 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22273 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22274 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22275 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22276 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22277 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22278 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22279 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22280 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22281 JIT!$JIT$ac_delim
22282 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22283 _ACEOF
22284
22285   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22286     break
22287   elif $ac_last_try; then
22288     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22289 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22290    { (exit 1); exit 1; }; }
22291   else
22292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22293   fi
22294 done
22295
22296 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22297 if test -n "$ac_eof"; then
22298   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22299   ac_eof=`expr $ac_eof + 1`
22300 fi
22301
22302 cat >>$CONFIG_STATUS <<_ACEOF
22303 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22305 _ACEOF
22306 sed '
22307 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22308 s/^/s,@/; s/!/@,|#_!!_#|/
22309 :n
22310 t n
22311 s/'"$ac_delim"'$/,g/; t
22312 s/$/\\/; p
22313 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22314 ' >>$CONFIG_STATUS <conf$$subs.sed
22315 rm -f conf$$subs.sed
22316 cat >>$CONFIG_STATUS <<_ACEOF
22317 CEOF$ac_eof
22318 _ACEOF
22319
22320
22321 ac_delim='%!_!# '
22322 for ac_last_try in false false false false false :; do
22323   cat >conf$$subs.sed <<_ACEOF
22324 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22325 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22326 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22327 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22328 ENABLE_PIC!$ENABLE_PIC$ac_delim
22329 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22330 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22331 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22332 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22333 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22334 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22335 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22336 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22337 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22338 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22339 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22340 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22341 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22342 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22343 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22344 NM!$NM$ac_delim
22345 ifGNUmake!$ifGNUmake$ac_delim
22346 LN_S!$LN_S$ac_delim
22347 CMP!$CMP$ac_delim
22348 CP!$CP$ac_delim
22349 DATE!$DATE$ac_delim
22350 FIND!$FIND$ac_delim
22351 MKDIR!$MKDIR$ac_delim
22352 MV!$MV$ac_delim
22353 RANLIB!$RANLIB$ac_delim
22354 AR!$AR$ac_delim
22355 RM!$RM$ac_delim
22356 SED!$SED$ac_delim
22357 TAR!$TAR$ac_delim
22358 BINPWD!$BINPWD$ac_delim
22359 GRAPHVIZ!$GRAPHVIZ$ac_delim
22360 DOT!$DOT$ac_delim
22361 FDP!$FDP$ac_delim
22362 NEATO!$NEATO$ac_delim
22363 TWOPI!$TWOPI$ac_delim
22364 CIRCO!$CIRCO$ac_delim
22365 GV!$GV$ac_delim
22366 DOTTY!$DOTTY$ac_delim
22367 XDOT_PY!$XDOT_PY$ac_delim
22368 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22369 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22370 INSTALL_DATA!$INSTALL_DATA$ac_delim
22371 BZIP2!$BZIP2$ac_delim
22372 CAT!$CAT$ac_delim
22373 DOXYGEN!$DOXYGEN$ac_delim
22374 GROFF!$GROFF$ac_delim
22375 GZIPBIN!$GZIPBIN$ac_delim
22376 PDFROFF!$PDFROFF$ac_delim
22377 ZIP!$ZIP$ac_delim
22378 OCAMLC!$OCAMLC$ac_delim
22379 OCAMLOPT!$OCAMLOPT$ac_delim
22380 OCAMLDEP!$OCAMLDEP$ac_delim
22381 OCAMLDOC!$OCAMLDOC$ac_delim
22382 GAS!$GAS$ac_delim
22383 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22384 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22385 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22386 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22387 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22388 LIBADD_DL!$LIBADD_DL$ac_delim
22389 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22390 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22391 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22392 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22393 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22394 USE_UDIS86!$USE_UDIS86$ac_delim
22395 USE_OPROFILE!$USE_OPROFILE$ac_delim
22396 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22397 XML2CONFIG!$XML2CONFIG$ac_delim
22398 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22399 LIBXML2_INC!$LIBXML2_INC$ac_delim
22400 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22401 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22402 MMAP_FILE!$MMAP_FILE$ac_delim
22403 SHLIBEXT!$SHLIBEXT$ac_delim
22404 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22405 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22406 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22407 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22408 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22409 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22410 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22411 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22412 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22413 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22414 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22415 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22416 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22417 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22418 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22419 RPATH!$RPATH$ac_delim
22420 RDYNAMIC!$RDYNAMIC$ac_delim
22421 _ACEOF
22422
22423   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22424     break
22425   elif $ac_last_try; then
22426     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22428    { (exit 1); exit 1; }; }
22429   else
22430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22431   fi
22432 done
22433
22434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22435 if test -n "$ac_eof"; then
22436   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22437   ac_eof=`expr $ac_eof + 1`
22438 fi
22439
22440 cat >>$CONFIG_STATUS <<_ACEOF
22441 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22443 _ACEOF
22444 sed '
22445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22446 s/^/s,@/; s/!/@,|#_!!_#|/
22447 :n
22448 t n
22449 s/'"$ac_delim"'$/,g/; t
22450 s/$/\\/; p
22451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22452 ' >>$CONFIG_STATUS <conf$$subs.sed
22453 rm -f conf$$subs.sed
22454 cat >>$CONFIG_STATUS <<_ACEOF
22455 CEOF$ac_eof
22456 _ACEOF
22457
22458
22459 ac_delim='%!_!# '
22460 for ac_last_try in false false false false false :; do
22461   cat >conf$$subs.sed <<_ACEOF
22462 program_prefix!$program_prefix$ac_delim
22463 LIBOBJS!$LIBOBJS$ac_delim
22464 LTLIBOBJS!$LTLIBOBJS$ac_delim
22465 _ACEOF
22466
22467   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
22468     break
22469   elif $ac_last_try; then
22470     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22471 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22472    { (exit 1); exit 1; }; }
22473   else
22474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22475   fi
22476 done
22477
22478 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22479 if test -n "$ac_eof"; then
22480   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22481   ac_eof=`expr $ac_eof + 1`
22482 fi
22483
22484 cat >>$CONFIG_STATUS <<_ACEOF
22485 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22487 _ACEOF
22488 sed '
22489 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22490 s/^/s,@/; s/!/@,|#_!!_#|/
22491 :n
22492 t n
22493 s/'"$ac_delim"'$/,g/; t
22494 s/$/\\/; p
22495 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22496 ' >>$CONFIG_STATUS <conf$$subs.sed
22497 rm -f conf$$subs.sed
22498 cat >>$CONFIG_STATUS <<_ACEOF
22499 :end
22500 s/|#_!!_#|//g
22501 CEOF$ac_eof
22502 _ACEOF
22503
22504
22505 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22506 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22507 # trailing colons and then remove the whole line if VPATH becomes empty
22508 # (actually we leave an empty line to preserve line numbers).
22509 if test "x$srcdir" = x.; then
22510   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22511 s/:*\$(srcdir):*/:/
22512 s/:*\${srcdir}:*/:/
22513 s/:*@srcdir@:*/:/
22514 s/^\([^=]*=[     ]*\):*/\1/
22515 s/:*$//
22516 s/^[^=]*=[       ]*$//
22517 }'
22518 fi
22519
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22521 fi # test -n "$CONFIG_FILES"
22522
22523
22524 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22525 do
22526   case $ac_tag in
22527   :[FHLC]) ac_mode=$ac_tag; continue;;
22528   esac
22529   case $ac_mode$ac_tag in
22530   :[FHL]*:*);;
22531   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22532 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22533    { (exit 1); exit 1; }; };;
22534   :[FH]-) ac_tag=-:-;;
22535   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22536   esac
22537   ac_save_IFS=$IFS
22538   IFS=:
22539   set x $ac_tag
22540   IFS=$ac_save_IFS
22541   shift
22542   ac_file=$1
22543   shift
22544
22545   case $ac_mode in
22546   :L) ac_source=$1;;
22547   :[FH])
22548     ac_file_inputs=
22549     for ac_f
22550     do
22551       case $ac_f in
22552       -) ac_f="$tmp/stdin";;
22553       *) # Look for the file first in the build tree, then in the source tree
22554          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22555          # because $ac_f cannot contain `:'.
22556          test -f "$ac_f" ||
22557            case $ac_f in
22558            [\\/$]*) false;;
22559            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22560            esac ||
22561            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22562 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22563    { (exit 1); exit 1; }; };;
22564       esac
22565       ac_file_inputs="$ac_file_inputs $ac_f"
22566     done
22567
22568     # Let's still pretend it is `configure' which instantiates (i.e., don't
22569     # use $as_me), people would be surprised to read:
22570     #    /* config.h.  Generated by config.status.  */
22571     configure_input="Generated from "`IFS=:
22572           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22573     if test x"$ac_file" != x-; then
22574       configure_input="$ac_file.  $configure_input"
22575       { echo "$as_me:$LINENO: creating $ac_file" >&5
22576 echo "$as_me: creating $ac_file" >&6;}
22577     fi
22578
22579     case $ac_tag in
22580     *:-:* | *:-) cat >"$tmp/stdin";;
22581     esac
22582     ;;
22583   esac
22584
22585   ac_dir=`$as_dirname -- "$ac_file" ||
22586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587          X"$ac_file" : 'X\(//\)[^/]' \| \
22588          X"$ac_file" : 'X\(//\)$' \| \
22589          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22590 echo X"$ac_file" |
22591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22592             s//\1/
22593             q
22594           }
22595           /^X\(\/\/\)[^/].*/{
22596             s//\1/
22597             q
22598           }
22599           /^X\(\/\/\)$/{
22600             s//\1/
22601             q
22602           }
22603           /^X\(\/\).*/{
22604             s//\1/
22605             q
22606           }
22607           s/.*/./; q'`
22608   { as_dir="$ac_dir"
22609   case $as_dir in #(
22610   -*) as_dir=./$as_dir;;
22611   esac
22612   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22613     as_dirs=
22614     while :; do
22615       case $as_dir in #(
22616       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22617       *) as_qdir=$as_dir;;
22618       esac
22619       as_dirs="'$as_qdir' $as_dirs"
22620       as_dir=`$as_dirname -- "$as_dir" ||
22621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22622          X"$as_dir" : 'X\(//\)[^/]' \| \
22623          X"$as_dir" : 'X\(//\)$' \| \
22624          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22625 echo X"$as_dir" |
22626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22627             s//\1/
22628             q
22629           }
22630           /^X\(\/\/\)[^/].*/{
22631             s//\1/
22632             q
22633           }
22634           /^X\(\/\/\)$/{
22635             s//\1/
22636             q
22637           }
22638           /^X\(\/\).*/{
22639             s//\1/
22640             q
22641           }
22642           s/.*/./; q'`
22643       test -d "$as_dir" && break
22644     done
22645     test -z "$as_dirs" || eval "mkdir $as_dirs"
22646   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22648    { (exit 1); exit 1; }; }; }
22649   ac_builddir=.
22650
22651 case "$ac_dir" in
22652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22653 *)
22654   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22655   # A ".." for each directory in $ac_dir_suffix.
22656   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22657   case $ac_top_builddir_sub in
22658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22660   esac ;;
22661 esac
22662 ac_abs_top_builddir=$ac_pwd
22663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22664 # for backward compatibility:
22665 ac_top_builddir=$ac_top_build_prefix
22666
22667 case $srcdir in
22668   .)  # We are building in place.
22669     ac_srcdir=.
22670     ac_top_srcdir=$ac_top_builddir_sub
22671     ac_abs_top_srcdir=$ac_pwd ;;
22672   [\\/]* | ?:[\\/]* )  # Absolute name.
22673     ac_srcdir=$srcdir$ac_dir_suffix;
22674     ac_top_srcdir=$srcdir
22675     ac_abs_top_srcdir=$srcdir ;;
22676   *) # Relative name.
22677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22678     ac_top_srcdir=$ac_top_build_prefix$srcdir
22679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22680 esac
22681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22682
22683
22684   case $ac_mode in
22685   :F)
22686   #
22687   # CONFIG_FILE
22688   #
22689
22690   case $INSTALL in
22691   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22692   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22693   esac
22694 _ACEOF
22695
22696 cat >>$CONFIG_STATUS <<\_ACEOF
22697 # If the template does not know about datarootdir, expand it.
22698 # FIXME: This hack should be removed a few years after 2.60.
22699 ac_datarootdir_hack=; ac_datarootdir_seen=
22700
22701 case `sed -n '/datarootdir/ {
22702   p
22703   q
22704 }
22705 /@datadir@/p
22706 /@docdir@/p
22707 /@infodir@/p
22708 /@localedir@/p
22709 /@mandir@/p
22710 ' $ac_file_inputs` in
22711 *datarootdir*) ac_datarootdir_seen=yes;;
22712 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22713   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22714 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22715 _ACEOF
22716 cat >>$CONFIG_STATUS <<_ACEOF
22717   ac_datarootdir_hack='
22718   s&@datadir@&$datadir&g
22719   s&@docdir@&$docdir&g
22720   s&@infodir@&$infodir&g
22721   s&@localedir@&$localedir&g
22722   s&@mandir@&$mandir&g
22723     s&\\\${datarootdir}&$datarootdir&g' ;;
22724 esac
22725 _ACEOF
22726
22727 # Neutralize VPATH when `$srcdir' = `.'.
22728 # Shell code in configure.ac might set extrasub.
22729 # FIXME: do we really want to maintain this feature?
22730 cat >>$CONFIG_STATUS <<_ACEOF
22731   sed "$ac_vpsub
22732 $extrasub
22733 _ACEOF
22734 cat >>$CONFIG_STATUS <<\_ACEOF
22735 :t
22736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22737 s&@configure_input@&$configure_input&;t t
22738 s&@top_builddir@&$ac_top_builddir_sub&;t t
22739 s&@srcdir@&$ac_srcdir&;t t
22740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22741 s&@top_srcdir@&$ac_top_srcdir&;t t
22742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22743 s&@builddir@&$ac_builddir&;t t
22744 s&@abs_builddir@&$ac_abs_builddir&;t t
22745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22746 s&@INSTALL@&$ac_INSTALL&;t t
22747 $ac_datarootdir_hack
22748 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22749
22750 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22751   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22752   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22753   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22754 which seems to be undefined.  Please make sure it is defined." >&5
22755 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22756 which seems to be undefined.  Please make sure it is defined." >&2;}
22757
22758   rm -f "$tmp/stdin"
22759   case $ac_file in
22760   -) cat "$tmp/out"; rm -f "$tmp/out";;
22761   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22762   esac
22763  ;;
22764   :H)
22765   #
22766   # CONFIG_HEADER
22767   #
22768 _ACEOF
22769
22770 # Transform confdefs.h into a sed script `conftest.defines', that
22771 # substitutes the proper values into config.h.in to produce config.h.
22772 rm -f conftest.defines conftest.tail
22773 # First, append a space to every undef/define line, to ease matching.
22774 echo 's/$/ /' >conftest.defines
22775 # Then, protect against being on the right side of a sed subst, or in
22776 # an unquoted here document, in config.status.  If some macros were
22777 # called several times there might be several #defines for the same
22778 # symbol, which is useless.  But do not sort them, since the last
22779 # AC_DEFINE must be honored.
22780 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22781 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22782 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22783 # PARAMS is the parameter list in the macro definition--in most cases, it's
22784 # just an empty string.
22785 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22786 ac_dB='\\)[      (].*,\\1define\\2'
22787 ac_dC=' '
22788 ac_dD=' ,'
22789
22790 uniq confdefs.h |
22791   sed -n '
22792         t rset
22793         :rset
22794         s/^[     ]*#[    ]*define[       ][      ]*//
22795         t ok
22796         d
22797         :ok
22798         s/[\\&,]/\\&/g
22799         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22800         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22801   ' >>conftest.defines
22802
22803 # Remove the space that was appended to ease matching.
22804 # Then replace #undef with comments.  This is necessary, for
22805 # example, in the case of _POSIX_SOURCE, which is predefined and required
22806 # on some systems where configure will not decide to define it.
22807 # (The regexp can be short, since the line contains either #define or #undef.)
22808 echo 's/ $//
22809 s,^[     #]*u.*,/* & */,' >>conftest.defines
22810
22811 # Break up conftest.defines:
22812 ac_max_sed_lines=50
22813
22814 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22815 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22816 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22817 # et cetera.
22818 ac_in='$ac_file_inputs'
22819 ac_out='"$tmp/out1"'
22820 ac_nxt='"$tmp/out2"'
22821
22822 while :
22823 do
22824   # Write a here document:
22825     cat >>$CONFIG_STATUS <<_ACEOF
22826     # First, check the format of the line:
22827     cat >"\$tmp/defines.sed" <<\\CEOF
22828 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22829 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22830 b
22831 :def
22832 _ACEOF
22833   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22834   echo 'CEOF
22835     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22836   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22837   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22838   grep . conftest.tail >/dev/null || break
22839   rm -f conftest.defines
22840   mv conftest.tail conftest.defines
22841 done
22842 rm -f conftest.defines conftest.tail
22843
22844 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22845 cat >>$CONFIG_STATUS <<\_ACEOF
22846   if test x"$ac_file" != x-; then
22847     echo "/* $configure_input  */" >"$tmp/config.h"
22848     cat "$ac_result" >>"$tmp/config.h"
22849     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22850       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22851 echo "$as_me: $ac_file is unchanged" >&6;}
22852     else
22853       rm -f $ac_file
22854       mv "$tmp/config.h" $ac_file
22855     fi
22856   else
22857     echo "/* $configure_input  */"
22858     cat "$ac_result"
22859   fi
22860   rm -f "$tmp/out12"
22861  ;;
22862
22863   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22864 echo "$as_me: executing $ac_file commands" >&6;}
22865  ;;
22866   esac
22867
22868
22869   case $ac_file$ac_mode in
22870     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22871    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22872     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22873    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22874     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22875    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22876     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22877    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22878     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22879    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22880     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22881    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22882     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22883    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22884     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22885    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22886     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22887    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22888     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22889    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22890     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22891    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22892     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22893    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22894     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22895    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22896
22897   esac
22898 done # for ac_tag
22899
22900
22901 { (exit 0); exit 0; }
22902 _ACEOF
22903 chmod +x $CONFIG_STATUS
22904 ac_clean_files=$ac_clean_files_save
22905
22906
22907 # configure is writing to config.log, and then calls config.status.
22908 # config.status does its own redirection, appending to config.log.
22909 # Unfortunately, on DOS this fails, as config.log is still kept open
22910 # by configure, so config.status won't be able to write to it; its
22911 # output is simply discarded.  So we exec the FD to /dev/null,
22912 # effectively closing config.log, so it can be properly (re)opened and
22913 # appended to by config.status.  When coming back to configure, we
22914 # need to make the FD available again.
22915 if test "$no_create" != yes; then
22916   ac_cs_success=:
22917   ac_config_status_args=
22918   test "$silent" = yes &&
22919     ac_config_status_args="$ac_config_status_args --quiet"
22920   exec 5>/dev/null
22921   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22922   exec 5>>config.log
22923   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22924   # would make configure fail if this is the last instruction.
22925   $ac_cs_success || { (exit 1); exit 1; }
22926 fi
22927
22928 #
22929 # CONFIG_SUBDIRS section.
22930 #
22931 if test "$no_recursion" != yes; then
22932
22933   # Remove --cache-file and --srcdir arguments so they do not pile up.
22934   ac_sub_configure_args=
22935   ac_prev=
22936   eval "set x $ac_configure_args"
22937   shift
22938   for ac_arg
22939   do
22940     if test -n "$ac_prev"; then
22941       ac_prev=
22942       continue
22943     fi
22944     case $ac_arg in
22945     -cache-file | --cache-file | --cache-fil | --cache-fi \
22946     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22947       ac_prev=cache_file ;;
22948     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22949     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22950     | --c=*)
22951       ;;
22952     --config-cache | -C)
22953       ;;
22954     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22955       ac_prev=srcdir ;;
22956     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22957       ;;
22958     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22959       ac_prev=prefix ;;
22960     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22961       ;;
22962     *)
22963       case $ac_arg in
22964       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22965       esac
22966       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22967     esac
22968   done
22969
22970   # Always prepend --prefix to ensure using the same prefix
22971   # in subdir configurations.
22972   ac_arg="--prefix=$prefix"
22973   case $ac_arg in
22974   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22975   esac
22976   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22977
22978   ac_popdir=`pwd`
22979   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22980
22981     # Do not complain, so a configure script can configure whichever
22982     # parts of a large source tree are present.
22983     test -d "$srcdir/$ac_dir" || continue
22984
22985     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22986     echo "$as_me:$LINENO: $ac_msg" >&5
22987     echo "$ac_msg" >&6
22988     { as_dir="$ac_dir"
22989   case $as_dir in #(
22990   -*) as_dir=./$as_dir;;
22991   esac
22992   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22993     as_dirs=
22994     while :; do
22995       case $as_dir in #(
22996       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22997       *) as_qdir=$as_dir;;
22998       esac
22999       as_dirs="'$as_qdir' $as_dirs"
23000       as_dir=`$as_dirname -- "$as_dir" ||
23001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23002          X"$as_dir" : 'X\(//\)[^/]' \| \
23003          X"$as_dir" : 'X\(//\)$' \| \
23004          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23005 echo X"$as_dir" |
23006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23007             s//\1/
23008             q
23009           }
23010           /^X\(\/\/\)[^/].*/{
23011             s//\1/
23012             q
23013           }
23014           /^X\(\/\/\)$/{
23015             s//\1/
23016             q
23017           }
23018           /^X\(\/\).*/{
23019             s//\1/
23020             q
23021           }
23022           s/.*/./; q'`
23023       test -d "$as_dir" && break
23024     done
23025     test -z "$as_dirs" || eval "mkdir $as_dirs"
23026   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23027 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23028    { (exit 1); exit 1; }; }; }
23029     ac_builddir=.
23030
23031 case "$ac_dir" in
23032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23033 *)
23034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23035   # A ".." for each directory in $ac_dir_suffix.
23036   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23037   case $ac_top_builddir_sub in
23038   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23039   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23040   esac ;;
23041 esac
23042 ac_abs_top_builddir=$ac_pwd
23043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23044 # for backward compatibility:
23045 ac_top_builddir=$ac_top_build_prefix
23046
23047 case $srcdir in
23048   .)  # We are building in place.
23049     ac_srcdir=.
23050     ac_top_srcdir=$ac_top_builddir_sub
23051     ac_abs_top_srcdir=$ac_pwd ;;
23052   [\\/]* | ?:[\\/]* )  # Absolute name.
23053     ac_srcdir=$srcdir$ac_dir_suffix;
23054     ac_top_srcdir=$srcdir
23055     ac_abs_top_srcdir=$srcdir ;;
23056   *) # Relative name.
23057     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23058     ac_top_srcdir=$ac_top_build_prefix$srcdir
23059     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23060 esac
23061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23062
23063
23064     cd "$ac_dir"
23065
23066     # Check for guested configure; otherwise get Cygnus style configure.
23067     if test -f "$ac_srcdir/configure.gnu"; then
23068       ac_sub_configure=$ac_srcdir/configure.gnu
23069     elif test -f "$ac_srcdir/configure"; then
23070       ac_sub_configure=$ac_srcdir/configure
23071     elif test -f "$ac_srcdir/configure.in"; then
23072       # This should be Cygnus configure.
23073       ac_sub_configure=$ac_aux_dir/configure
23074     else
23075       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23076 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23077       ac_sub_configure=
23078     fi
23079
23080     # The recursion is here.
23081     if test -n "$ac_sub_configure"; then
23082       # Make the cache file name correct relative to the subdirectory.
23083       case $cache_file in
23084       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23085       *) # Relative name.
23086         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23087       esac
23088
23089       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23090 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23091       # The eval makes quoting arguments work.
23092       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23093            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23094         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23095 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23096    { (exit 1); exit 1; }; }
23097     fi
23098
23099     cd "$ac_popdir"
23100   done
23101 fi
23102