Remove all checking for the various terminfo headers (term.h and
[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.4svn.
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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-terminfo       Query the terminfo database if available (default is
1457                           YES)
1458   --enable-libffi         Check for the presence of libffi (default is NO)
1459   --enable-ltdl-install   install libltdl
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-optimize-option  Select the compiler options to use for optimized
1465                           builds
1466   --with-extra-options    Specify additional options to compile LLVM with
1467   --with-extra-ld-options Specify additional options to link LLVM with
1468   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1469                           is stdlib)
1470   --with-clang-srcdir     Directory to the out-of-tree Clang source
1471   --with-clang-resource-dir
1472                           Relative directory from the Clang binary for
1473                           resource files
1474   --with-c-include-dirs   Colon separated list of directories clang will
1475                           search for headers
1476   --with-gcc-toolchain    Directory where gcc is installed.
1477   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1478   --with-binutils-include Specify path to binutils/include/ containing
1479                           plugin-api.h file for gold plugin.
1480   --with-bug-report-url   Specify the URL where bug reports should be
1481                           submitted (default=http://llvm.org/bugs/)
1482   --with-internal-prefix  Installation directory for internal files
1483   --with-python           path to python
1484   --with-udis86=<path>    Use udis86 external x86 disassembler library
1485   --with-oprofile=<prefix>
1486                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1487   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CXX         C++ compiler command
1498   CXXFLAGS    C++ compiler flags
1499   CPP         C preprocessor
1500   CXXCPP      C++ preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <http://llvm.org/bugs/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511   # If there are subdirs, report their specific --help.
1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513     test -d "$ac_dir" || continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 LLVM configure 3.4svn
1567 generated by GNU Autoconf 2.60
1568
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573
1574 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1575 _ACEOF
1576   exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by LLVM $as_me 3.4svn, which was
1583 generated by GNU Autoconf 2.60.  Invocation command line was
1584
1585   $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1603
1604 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1605 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1608 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1609 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1610 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646   for ac_arg
1647   do
1648     case $ac_arg in
1649     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651     | -silent | --silent | --silen | --sile | --sil)
1652       continue ;;
1653     *\'*)
1654       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655     esac
1656     case $ac_pass in
1657     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658     2)
1659       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660       if test $ac_must_keep_next = true; then
1661         ac_must_keep_next=false # Got value, back to normal.
1662       else
1663         case $ac_arg in
1664           *=* | --config-cache | -C | -disable-* | --disable-* \
1665           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667           | -with-* | --with-* | -without-* | --without-* | --x)
1668             case "$ac_configure_args0 " in
1669               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670             esac
1671             ;;
1672           -* ) ac_must_keep_next=true ;;
1673         esac
1674       fi
1675       ac_configure_args="$ac_configure_args '$ac_arg'"
1676       ;;
1677     esac
1678   done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log.  We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689   # Save into config.log some information that might help in debugging.
1690   {
1691     echo
1692
1693     cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698     echo
1699     # The following way of writing the cache mishandles newlines in values,
1700 (
1701   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702     eval ac_val=\$$ac_var
1703     case $ac_val in #(
1704     *${as_nl}*)
1705       case $ac_var in #(
1706       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708       esac
1709       case $ac_var in #(
1710       _ | IFS | as_nl) ;; #(
1711       *) $as_unset $ac_var ;;
1712       esac ;;
1713     esac
1714   done
1715   (set) 2>&1 |
1716     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717     *${as_nl}ac_space=\ *)
1718       sed -n \
1719         "s/'\''/'\''\\\\'\'''\''/g;
1720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721       ;; #(
1722     *)
1723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724       ;;
1725     esac |
1726     sort
1727 )
1728     echo
1729
1730     cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735     echo
1736     for ac_var in $ac_subst_vars
1737     do
1738       eval ac_val=\$$ac_var
1739       case $ac_val in
1740       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741       esac
1742       echo "$ac_var='\''$ac_val'\''"
1743     done | sort
1744     echo
1745
1746     if test -n "$ac_subst_files"; then
1747       cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752       echo
1753       for ac_var in $ac_subst_files
1754       do
1755         eval ac_val=\$$ac_var
1756         case $ac_val in
1757         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758         esac
1759         echo "$ac_var='\''$ac_val'\''"
1760       done | sort
1761       echo
1762     fi
1763
1764     if test -s confdefs.h; then
1765       cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770       echo
1771       cat confdefs.h
1772       echo
1773     fi
1774     test "$ac_signal" != 0 &&
1775       echo "$as_me: caught signal $ac_signal"
1776     echo "$as_me: exit $exit_status"
1777   } >&5
1778   rm -f core *.core core.conftest.* &&
1779     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780     exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1786
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1789
1790 # Predefined preprocessor variables.
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1815
1816
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820   set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824   set x "$ac_default_prefix/share/config.site" \
1825         "$ac_default_prefix/etc/config.site"
1826 fi
1827 shift
1828 for ac_site_file
1829 do
1830   if test -r "$ac_site_file"; then
1831     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833     sed 's/^/| /' "$ac_site_file" >&5
1834     . "$ac_site_file"
1835   fi
1836 done
1837
1838 if test -r "$cache_file"; then
1839   # Some versions of bash will fail to source /dev/null (special
1840   # files actually), so we avoid doing that.
1841   if test -f "$cache_file"; then
1842     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844     case $cache_file in
1845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846       *)                      . "./$cache_file";;
1847     esac
1848   fi
1849 else
1850   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852   >$cache_file
1853 fi
1854
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860   eval ac_new_set=\$ac_env_${ac_var}_set
1861   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862   eval ac_new_val=\$ac_env_${ac_var}_value
1863   case $ac_old_set,$ac_new_set in
1864     set,)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,set)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,);;
1873     *)
1874       if test "x$ac_old_val" != "x$ac_new_val"; then
1875         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1878 echo "$as_me:   former value:  $ac_old_val" >&2;}
1879         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1880 echo "$as_me:   current value: $ac_new_val" >&2;}
1881         ac_cache_corrupted=:
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901    { (exit 1); exit 1; }; }
1902 fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936 cat >>confdefs.h <<\_ACEOF
1937 #define LLVM_VERSION_MAJOR 3
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MINOR 4
1943 _ACEOF
1944
1945
1946 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1947
1948
1949
1950
1951
1952
1953
1954 ac_aux_dir=
1955 for ac_dir in autoconf "$srcdir"/autoconf; do
1956   if test -f "$ac_dir/install-sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install-sh -c"
1959     break
1960   elif test -f "$ac_dir/install.sh"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/install.sh -c"
1963     break
1964   elif test -f "$ac_dir/shtool"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/shtool install -c"
1967     break
1968   fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985
1986 if test ${srcdir} != "." ; then
1987   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990    { (exit 1); exit 1; }; }
1991   fi
1992 fi
1993
1994 ${CFLAGS=}
1995 ${CXXFLAGS=}
1996
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003   for ac_prog in clang llvm-gcc gcc
2004   do
2005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$CC"; then
2013   ac_cv_prog_CC="$CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028 IFS=$as_save_IFS
2029
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   { echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6; }
2036 else
2037   { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2039 fi
2040
2041
2042     test -n "$CC" && break
2043   done
2044 fi
2045 if test -z "$CC"; then
2046   ac_ct_CC=$CC
2047   for ac_prog in clang llvm-gcc gcc
2048 do
2049   # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$ac_ct_CC"; then
2057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066     ac_cv_prog_ac_ct_CC="$ac_prog"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072 IFS=$as_save_IFS
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6; }
2080 else
2081   { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2083 fi
2084
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   if test "x$ac_ct_CC" = x; then
2090     CC=""
2091   else
2092     case $cross_compiling:$ac_tool_warned in
2093 yes:)
2094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet.  If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet.  If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2101 esac
2102     CC=$ac_ct_CC
2103   fi
2104 fi
2105
2106
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111    { (exit 1); exit 1; }; }
2112
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO: checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (ac_try="$ac_compiler --version >&5"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122   (eval "$ac_compiler --version >&5") 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (ac_try="$ac_compiler -v >&5"
2127 case "(($ac_try" in
2128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129   *) ac_try_echo=$ac_try;;
2130 esac
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132   (eval "$ac_compiler -v >&5") 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136 { (ac_try="$ac_compiler -V >&5"
2137 case "(($ac_try" in
2138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139   *) ac_try_echo=$ac_try;;
2140 esac
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142   (eval "$ac_compiler -V >&5") 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }
2146
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 #
2171 # List of possible output files, starting from the most likely.
2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173 # only as a last resort.  b.out is created by i960 compilers.
2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2175 #
2176 # The IRIX 6 linker writes into existing files which may not be
2177 # executable, retaining their permissions.  Remove them first so a
2178 # subsequent execution test works.
2179 ac_rmfiles=
2180 for ac_file in $ac_files
2181 do
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185   esac
2186 done
2187 rm -f $ac_rmfiles
2188
2189 if { (ac_try="$ac_link_default"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195   (eval "$ac_link_default") 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2202 # so that the user can short-circuit this test for compilers unknown to
2203 # Autoconf.
2204 for ac_file in $ac_files
2205 do
2206   test -f "$ac_file" || continue
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2216         then :; else
2217            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218         fi
2219         # We set ac_cv_exeext here because the later test for it is not
2220         # safe: cross compilers may not add the suffix if given an `-o'
2221         # argument, so we may need to know it at that point already.
2222         # Even if this section looks crufty: it has the advantage of
2223         # actually working.
2224         break;;
2225     * )
2226         break;;
2227   esac
2228 done
2229 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239    { (exit 77); exit 77; }; }
2240 fi
2241
2242 ac_exeext=$ac_cv_exeext
2243 { echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6; }
2245
2246 # Check that the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253   if { ac_try='./$ac_file'
2254   { (case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_try") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263     cross_compiling=no
2264   else
2265     if test "$cross_compiling" = maybe; then
2266         cross_compiling=yes
2267     else
2268         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275     fi
2276   fi
2277 fi
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2280
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check that the compiler produces executables we can run.  If not, either
2284 # the compiler is broken, or we cross compile.
2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6; }
2289
2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292 if { (ac_try="$ac_link"
2293 case "(($ac_try" in
2294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295   *) ac_try_echo=$ac_try;;
2296 esac
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298   (eval "$ac_link") 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; then
2302   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2304 # work properly (i.e., refer to `conftest.exe'), while it won't with
2305 # `rm'.
2306 for ac_file in conftest.exe conftest conftest.*; do
2307   test -f "$ac_file" || continue
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311           break;;
2312     * ) break;;
2313   esac
2314 done
2315 else
2316   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 rm -f conftest$ac_cv_exeext
2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2326
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332 if test "${ac_cv_objext+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341
2342 int
2343 main ()
2344 {
2345
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.o conftest.obj
2351 if { (ac_try="$ac_compile"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357   (eval "$ac_compile") 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; then
2361   for ac_file in conftest.o conftest.obj conftest.*; do
2362   test -f "$ac_file" || continue;
2363   case $ac_file in
2364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366        break;;
2367   esac
2368 done
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379
2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381 fi
2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383 echo "${ECHO_T}$ac_cv_objext" >&6; }
2384 OBJEXT=$ac_cv_objext
2385 ac_objext=$OBJEXT
2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397
2398 int
2399 main ()
2400 {
2401 #ifndef __GNUC__
2402        choke me
2403 #endif
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_compile") 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424   { (case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429   (eval "$ac_try") 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439   (eval "$ac_try") 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_compiler_gnu=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448         ac_compiler_gnu=no
2449 fi
2450
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454 fi
2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_save_c_werror_flag=$ac_c_werror_flag
2466    ac_c_werror_flag=yes
2467    ac_cv_prog_cc_g=no
2468    CFLAGS="-g"
2469    cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_compile") 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499   { (case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504   (eval "$ac_try") 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; } &&
2508          { ac_try='test -s conftest.$ac_objext'
2509   { (case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_try") 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_prog_cc_g=yes
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523         CFLAGS=""
2524       cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h.  */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h.  */
2530
2531 int
2532 main ()
2533 {
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_compile") 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554   { (case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_try") 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578         ac_c_werror_flag=$ac_save_c_werror_flag
2579          CFLAGS="-g"
2580          cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compile") 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610   { (case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_try") 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_try") 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_cv_prog_cc_g=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644    ac_c_werror_flag=$ac_save_c_werror_flag
2645 fi
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709    inside strings and character constants.  */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 do
2730   CC="$ac_save_CC $ac_arg"
2731   rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746   { (case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_try") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_try") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   ac_cv_prog_cc_c89=$ac_arg
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext
2774   test "x$ac_cv_prog_cc_c89" != "xno" && break
2775 done
2776 rm -f conftest.$ac_ext
2777 CC=$ac_save_CC
2778
2779 fi
2780 # AC_CACHE_VAL
2781 case "x$ac_cv_prog_cc_c89" in
2782   x)
2783     { echo "$as_me:$LINENO: result: none needed" >&5
2784 echo "${ECHO_T}none needed" >&6; } ;;
2785   xno)
2786     { echo "$as_me:$LINENO: result: unsupported" >&5
2787 echo "${ECHO_T}unsupported" >&6; } ;;
2788   *)
2789     CC="$CC $ac_cv_prog_cc_c89"
2790     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 esac
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 ac_ext=cpp
2802 ac_cpp='$CXXCPP $CPPFLAGS'
2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806 if test -z "$CXX"; then
2807   if test -n "$CCC"; then
2808     CXX=$CCC
2809   else
2810     if test -n "$ac_tool_prefix"; then
2811   for ac_prog in clang++ llvm-g++ g++
2812   do
2813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CXX+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CXX"; then
2821   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CXX=$ac_cv_prog_CXX
2841 if test -n "$CXX"; then
2842   { echo "$as_me:$LINENO: result: $CXX" >&5
2843 echo "${ECHO_T}$CXX" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850     test -n "$CXX" && break
2851   done
2852 fi
2853 if test -z "$CXX"; then
2854   ac_ct_CXX=$CXX
2855   for ac_prog in clang++ llvm-g++ g++
2856 do
2857   # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   if test -n "$ac_ct_CXX"; then
2865   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872   for ac_exec_ext in '' $ac_executable_extensions; do
2873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874     ac_cv_prog_ac_ct_CXX="$ac_prog"
2875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885 if test -n "$ac_ct_CXX"; then
2886   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2888 else
2889   { echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6; }
2891 fi
2892
2893
2894   test -n "$ac_ct_CXX" && break
2895 done
2896
2897   if test "x$ac_ct_CXX" = x; then
2898     CXX="g++"
2899   else
2900     case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet.  If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&5
2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908 ac_tool_warned=yes ;;
2909 esac
2910     CXX=$ac_ct_CXX
2911   fi
2912 fi
2913
2914   fi
2915 fi
2916 # Provide some information about the compiler.
2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918 ac_compiler=`set X $ac_compile; echo $2`
2919 { (ac_try="$ac_compiler --version >&5"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925   (eval "$ac_compiler --version >&5") 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compiler -v >&5") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (ac_try="$ac_compiler -V >&5"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compiler -V >&5") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }
2949
2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965 #ifndef __GNUC__
2966        choke me
2967 #endif
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compile") 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988   { (case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_try") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003   (eval "$ac_try") 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }; }; then
3007   ac_compiler_gnu=yes
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012         ac_compiler_gnu=no
3013 fi
3014
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017
3018 fi
3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021 GXX=`test $ac_compiler_gnu = yes && echo yes`
3022 ac_test_CXXFLAGS=${CXXFLAGS+set}
3023 ac_save_CXXFLAGS=$CXXFLAGS
3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030    ac_cxx_werror_flag=yes
3031    ac_cv_prog_cxx_g=no
3032    CXXFLAGS="-g"
3033    cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compile") 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } &&
3062          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_try") 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   ac_cv_prog_cxx_g=yes
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087         CXXFLAGS=""
3088       cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 int
3096 main ()
3097 {
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compile") 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   :
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3143          CXXFLAGS="-g"
3144          cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174   { (case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; } &&
3183          { ac_try='test -s conftest.$ac_objext'
3184   { (case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_try") 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_prog_cxx_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213   CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215   if test "$GXX" = yes; then
3216     CXXFLAGS="-g -O2"
3217   else
3218     CXXFLAGS="-g"
3219   fi
3220 else
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-O2"
3223   else
3224     CXXFLAGS=
3225   fi
3226 fi
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null; then
3286   if test -s conftest.err; then
3287     ac_cpp_err=$ac_c_preproc_warn_flag
3288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307   # OK, works on sane cases.  Now check whether nonexistent headers
3308   # can be detected and how.
3309   cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (ac_try="$ac_cpp conftest.$ac_ext"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } >/dev/null; then
3330   if test -s conftest.err; then
3331     ac_cpp_err=$ac_c_preproc_warn_flag
3332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333   else
3334     ac_cpp_err=
3335   fi
3336 else
3337   ac_cpp_err=yes
3338 fi
3339 if test -z "$ac_cpp_err"; then
3340   # Broken: success on invalid input.
3341 continue
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346   # Passes both tests.
3347 ac_preproc_ok=:
3348 break
3349 fi
3350
3351 rm -f conftest.err conftest.$ac_ext
3352
3353 done
3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355 rm -f conftest.err conftest.$ac_ext
3356 if $ac_preproc_ok; then
3357   break
3358 fi
3359
3360     done
3361     ac_cv_prog_CPP=$CPP
3362
3363 fi
3364   CPP=$ac_cv_prog_CPP
3365 else
3366   ac_cv_prog_CPP=$CPP
3367 fi
3368 { echo "$as_me:$LINENO: result: $CPP" >&5
3369 echo "${ECHO_T}$CPP" >&6; }
3370 ac_preproc_ok=false
3371 for ac_c_preproc_warn_flag in '' yes
3372 do
3373   # Use a header file that comes with gcc, so configuring glibc
3374   # with a fresh cross-compiler works.
3375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376   # <limits.h> exists even on freestanding compilers.
3377   # On the NeXT, cc -E runs the code through the compiler's parser,
3378   # not just through cpp. "Syntax error" is here to catch this case.
3379   cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385 #ifdef __STDC__
3386 # include <limits.h>
3387 #else
3388 # include <assert.h>
3389 #endif
3390                      Syntax error
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } >/dev/null; then
3405   if test -s conftest.err; then
3406     ac_cpp_err=$ac_c_preproc_warn_flag
3407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408   else
3409     ac_cpp_err=
3410   fi
3411 else
3412   ac_cpp_err=yes
3413 fi
3414 if test -z "$ac_cpp_err"; then
3415   :
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Broken: fails on valid input.
3421 continue
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426   # OK, works on sane cases.  Now check whether nonexistent headers
3427   # can be detected and how.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } >/dev/null; then
3449   if test -s conftest.err; then
3450     ac_cpp_err=$ac_c_preproc_warn_flag
3451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452   else
3453     ac_cpp_err=
3454   fi
3455 else
3456   ac_cpp_err=yes
3457 fi
3458 if test -z "$ac_cpp_err"; then
3459   # Broken: success on invalid input.
3460 continue
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465   # Passes both tests.
3466 ac_preproc_ok=:
3467 break
3468 fi
3469
3470 rm -f conftest.err conftest.$ac_ext
3471
3472 done
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3476   :
3477 else
3478   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492 if test "$CXX" = "clang++" ; then
3493   { echo "$as_me:$LINENO: checking whether clang works" >&5
3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3495   ac_ext=cpp
3496 ac_cpp='$CXXCPP $CPPFLAGS'
3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500
3501
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <limits>
3509 #if __has_include (<cxxabi.h>)
3510 #include <cxxabi.h>
3511 #endif
3512 #if __has_include (<unwind.h>)
3513 #include <unwind.h>
3514 #endif
3515
3516 int
3517 main ()
3518 {
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_compile") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539   { (case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_try") 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; } &&
3548          { ac_try='test -s conftest.$ac_objext'
3549   { (case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554   (eval "$ac_try") 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558
3559   { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3561
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566
3567   { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3569   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3570 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3571    { (exit 1); exit 1; }; }
3572
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582 fi
3583
3584
3585
3586 if test -d ${srcdir}/projects/llvm-gcc ; then
3587   subdirs="$subdirs projects/llvm-gcc"
3588
3589 fi
3590
3591 if test -d ${srcdir}/projects/test-suite ; then
3592   subdirs="$subdirs projects/test-suite"
3593
3594 fi
3595
3596 if test -d ${srcdir}/projects/llvm-test ; then
3597   subdirs="$subdirs projects/llvm-test"
3598
3599 fi
3600
3601 if test -d ${srcdir}/projects/poolalloc ; then
3602   subdirs="$subdirs projects/poolalloc"
3603
3604 fi
3605
3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607   subdirs="$subdirs projects/llvm-poolalloc"
3608
3609 fi
3610
3611 for i in `ls ${srcdir}/projects`
3612 do
3613   if test -d ${srcdir}/projects/${i} ; then
3614     case ${i} in
3615       sample)       subdirs="$subdirs projects/sample"
3616     ;;
3617       privbracket)  subdirs="$subdirs projects/privbracket"
3618  ;;
3619       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3620  ;;
3621       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3622 ;;
3623       llvm-java)    subdirs="$subdirs projects/llvm-java"
3624  ;;
3625       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3626    ;;
3627       safecode)     subdirs="$subdirs projects/safecode"
3628  ;;
3629       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3630  ;;
3631       compiler-rt)       ;;
3632       llvm-gcc)       ;;
3633       test-suite)     ;;
3634       llvm-test)      ;;
3635       poolalloc)      ;;
3636       llvm-poolalloc) ;;
3637       *)
3638         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3640         ;;
3641     esac
3642   fi
3643 done
3644
3645 # Check whether --enable-polly was given.
3646 if test "${enable_polly+set}" = set; then
3647   enableval=$enable_polly;
3648 else
3649   enableval=default
3650 fi
3651
3652 case "$enableval" in
3653   yes) ENABLE_POLLY=1
3654  ;;
3655   no)  ENABLE_POLLY=0
3656  ;;
3657   default) ENABLE_POLLY=1
3658  ;;
3659   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661    { (exit 1); exit 1; }; } ;;
3662 esac
3663
3664
3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666   LLVM_HAS_POLLY=1
3667
3668   subdirs="$subdirs tools/polly"
3669
3670 fi
3671
3672
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677    { (exit 1); exit 1; }; }
3678
3679 { echo "$as_me:$LINENO: checking build system type" >&5
3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690    { (exit 1); exit 1; }; }
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694    { (exit 1); exit 1; }; }
3695
3696 fi
3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 echo "${ECHO_T}$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3700 *-*-*) ;;
3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 echo "$as_me: error: invalid value of canonical build" >&2;}
3703    { (exit 1); exit 1; }; };;
3704 esac
3705 build=$ac_cv_build
3706 ac_save_IFS=$IFS; IFS='-'
3707 set x $ac_cv_build
3708 shift
3709 build_cpu=$1
3710 build_vendor=$2
3711 shift; shift
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3714 build_os=$*
3715 IFS=$ac_save_IFS
3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717
3718
3719 { echo "$as_me:$LINENO: checking host system type" >&5
3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if test "x$host_alias" = x; then
3725   ac_cv_host=$ac_cv_build
3726 else
3727   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 case $ac_cv_host in
3737 *-*-*) ;;
3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 echo "$as_me: error: invalid value of canonical host" >&2;}
3740    { (exit 1); exit 1; }; };;
3741 esac
3742 host=$ac_cv_host
3743 ac_save_IFS=$IFS; IFS='-'
3744 set x $ac_cv_host
3745 shift
3746 host_cpu=$1
3747 host_vendor=$2
3748 shift; shift
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3751 host_os=$*
3752 IFS=$ac_save_IFS
3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756 { echo "$as_me:$LINENO: checking target system type" >&5
3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758 if test "${ac_cv_target+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test "x$target_alias" = x; then
3762   ac_cv_target=$ac_cv_host
3763 else
3764   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772 echo "${ECHO_T}$ac_cv_target" >&6; }
3773 case $ac_cv_target in
3774 *-*-*) ;;
3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776 echo "$as_me: error: invalid value of canonical target" >&2;}
3777    { (exit 1); exit 1; }; };;
3778 esac
3779 target=$ac_cv_target
3780 ac_save_IFS=$IFS; IFS='-'
3781 set x $ac_cv_target
3782 shift
3783 target_cpu=$1
3784 target_vendor=$2
3785 shift; shift
3786 # Remember, the first character of IFS is used to create $*,
3787 # except with old shells:
3788 target_os=$*
3789 IFS=$ac_save_IFS
3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791
3792
3793 # The aliases save the names the user supplied, while $host etc.
3794 # will get canonicalized.
3795 test -n "$target_alias" &&
3796   test "$program_prefix$program_suffix$program_transform_name" = \
3797     NONENONEs,x,x, &&
3798   program_prefix=${target_alias}-
3799
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802 if test "${llvm_cv_os_type+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   case $host in
3806   *-*-aix*)
3807     llvm_cv_link_all_option="-Wl,--whole-archive"
3808     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809     llvm_cv_os_type="AIX"
3810     llvm_cv_platform_type="Unix" ;;
3811   *-*-irix*)
3812     llvm_cv_link_all_option="-Wl,--whole-archive"
3813     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814     llvm_cv_os_type="IRIX"
3815     llvm_cv_platform_type="Unix" ;;
3816   *-*-cygwin*)
3817     llvm_cv_link_all_option="-Wl,--whole-archive"
3818     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819     llvm_cv_os_type="Cygwin"
3820     llvm_cv_platform_type="Unix" ;;
3821   *-*-darwin*)
3822     llvm_cv_link_all_option="-Wl,-all_load"
3823     llvm_cv_no_link_all_option="-Wl,-noall_load"
3824     llvm_cv_os_type="Darwin"
3825     llvm_cv_platform_type="Unix" ;;
3826   *-*-minix*)
3827     llvm_cv_link_all_option="-Wl,-all_load"
3828     llvm_cv_no_link_all_option="-Wl,-noall_load"
3829     llvm_cv_os_type="Minix"
3830     llvm_cv_platform_type="Unix" ;;
3831   *-*-freebsd*)
3832     llvm_cv_link_all_option="-Wl,--whole-archive"
3833     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834     llvm_cv_os_type="FreeBSD"
3835     llvm_cv_platform_type="Unix" ;;
3836   *-*-kfreebsd-gnu)
3837     llvm_cv_link_all_option="-Wl,--whole-archive"
3838     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839     llvm_cv_os_type="GNU/kFreeBSD"
3840     llvm_cv_platform_type="Unix" ;;
3841   *-*-openbsd*)
3842     llvm_cv_link_all_option="-Wl,--whole-archive"
3843     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844     llvm_cv_os_type="OpenBSD"
3845     llvm_cv_platform_type="Unix" ;;
3846   *-*-netbsd*)
3847     llvm_cv_link_all_option="-Wl,--whole-archive"
3848     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849     llvm_cv_os_type="NetBSD"
3850     llvm_cv_platform_type="Unix" ;;
3851   *-*-dragonfly*)
3852     llvm_cv_link_all_option="-Wl,--whole-archive"
3853     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854     llvm_cv_os_type="DragonFly"
3855     llvm_cv_platform_type="Unix" ;;
3856   *-*-hpux*)
3857     llvm_cv_link_all_option="-Wl,--whole-archive"
3858     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859     llvm_cv_os_type="HP-UX"
3860     llvm_cv_platform_type="Unix" ;;
3861   *-*-interix*)
3862     llvm_cv_link_all_option="-Wl,--whole-archive"
3863     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864     llvm_cv_os_type="Interix"
3865     llvm_cv_platform_type="Unix" ;;
3866   *-*-linux*)
3867     llvm_cv_link_all_option="-Wl,--whole-archive"
3868     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869     llvm_cv_os_type="Linux"
3870     llvm_cv_platform_type="Unix" ;;
3871   *-*-gnu*)
3872     llvm_cv_link_all_option="-Wl,--whole-archive"
3873     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874     llvm_cv_os_type="GNU"
3875     llvm_cv_platform_type="Unix" ;;
3876   *-*-solaris*)
3877     llvm_cv_link_all_option="-Wl,-z,allextract"
3878     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879     llvm_cv_os_type="SunOS"
3880     llvm_cv_platform_type="Unix" ;;
3881   *-*-auroraux*)
3882     llvm_cv_link_all_option="-Wl,-z,allextract"
3883     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884     llvm_cv_os_type="AuroraUX"
3885     llvm_cv_platform_type="Unix" ;;
3886   *-*-win32*)
3887     llvm_cv_link_all_option="-Wl,--whole-archive"
3888     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889     llvm_cv_os_type="Win32"
3890     llvm_cv_platform_type="Win32" ;;
3891   *-*-mingw*)
3892     llvm_cv_link_all_option="-Wl,--whole-archive"
3893     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894     llvm_cv_os_type="MingW"
3895     llvm_cv_platform_type="Win32" ;;
3896   *-*-haiku*)
3897     llvm_cv_link_all_option="-Wl,--whole-archive"
3898     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899     llvm_cv_os_type="Haiku"
3900     llvm_cv_platform_type="Unix" ;;
3901   *-unknown-eabi*)
3902     llvm_cv_link_all_option="-Wl,--whole-archive"
3903     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904     llvm_cv_os_type="Freestanding"
3905     llvm_cv_platform_type="Unix" ;;
3906   *-unknown-elf*)
3907     llvm_cv_link_all_option="-Wl,--whole-archive"
3908     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909     llvm_cv_os_type="Freestanding"
3910     llvm_cv_platform_type="Unix" ;;
3911   *)
3912     llvm_cv_link_all_option=""
3913     llvm_cv_no_link_all_option=""
3914     llvm_cv_os_type="Unknown"
3915     llvm_cv_platform_type="Unknown" ;;
3916 esac
3917 fi
3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3920
3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923 if test "${llvm_cv_target_os_type+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   case $target in
3927   *-*-aix*)
3928     llvm_cv_target_os_type="AIX" ;;
3929   *-*-irix*)
3930     llvm_cv_target_os_type="IRIX" ;;
3931   *-*-cygwin*)
3932     llvm_cv_target_os_type="Cygwin" ;;
3933   *-*-darwin*)
3934     llvm_cv_target_os_type="Darwin" ;;
3935   *-*-minix*)
3936     llvm_cv_target_os_type="Minix" ;;
3937   *-*-freebsd*)
3938     llvm_cv_target_os_type="FreeBSD" ;;
3939   *-*-kfreebsd-gnu)
3940     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3941   *-*-openbsd*)
3942     llvm_cv_target_os_type="OpenBSD" ;;
3943   *-*-netbsd*)
3944     llvm_cv_target_os_type="NetBSD" ;;
3945   *-*-dragonfly*)
3946     llvm_cv_target_os_type="DragonFly" ;;
3947   *-*-hpux*)
3948     llvm_cv_target_os_type="HP-UX" ;;
3949   *-*-interix*)
3950     llvm_cv_target_os_type="Interix" ;;
3951   *-*-linux*)
3952     llvm_cv_target_os_type="Linux" ;;
3953   *-*-gnu*)
3954     llvm_cv_target_os_type="GNU" ;;
3955   *-*-solaris*)
3956     llvm_cv_target_os_type="SunOS" ;;
3957   *-*-auroraux*)
3958     llvm_cv_target_os_type="AuroraUX" ;;
3959   *-*-win32*)
3960     llvm_cv_target_os_type="Win32" ;;
3961   *-*-mingw*)
3962     llvm_cv_target_os_type="MingW" ;;
3963   *-*-haiku*)
3964     llvm_cv_target_os_type="Haiku" ;;
3965   *-*-rtems*)
3966     llvm_cv_target_os_type="RTEMS" ;;
3967   *-*-nacl*)
3968     llvm_cv_target_os_type="NativeClient" ;;
3969   *-unknown-eabi*)
3970     llvm_cv_target_os_type="Freestanding" ;;
3971   *)
3972     llvm_cv_target_os_type="Unknown" ;;
3973 esac
3974 fi
3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3977
3978 if test "$llvm_cv_os_type" = "Unknown" ; then
3979   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981    { (exit 1); exit 1; }; }
3982 fi
3983
3984 OS=$llvm_cv_os_type
3985
3986 HOST_OS=$llvm_cv_os_type
3987
3988 TARGET_OS=$llvm_cv_target_os_type
3989
3990
3991 LINKALL=$llvm_cv_link_all_option
3992
3993 NOLINKALL=$llvm_cv_no_link_all_option
3994
3995
3996 case $llvm_cv_platform_type in
3997   Unix)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_UNIX 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=1
4004
4005     LLVM_ON_WIN32=0
4006
4007     ;;
4008   Win32)
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LLVM_ON_WIN32 1
4012 _ACEOF
4013
4014     LLVM_ON_UNIX=0
4015
4016     LLVM_ON_WIN32=1
4017
4018     ;;
4019 esac
4020
4021 { echo "$as_me:$LINENO: checking target architecture" >&5
4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023 if test "${llvm_cv_target_arch+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $target in
4027   i?86-*)                 llvm_cv_target_arch="x86" ;;
4028   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4029   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4030   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4031   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4032   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4033   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4034   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4035   xcore-*)                llvm_cv_target_arch="XCore" ;;
4036   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4037   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4038   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4039   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4040   *)                      llvm_cv_target_arch="Unknown" ;;
4041 esac
4042 fi
4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045
4046 if test "$llvm_cv_target_arch" = "Unknown" ; then
4047   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4049 fi
4050
4051 case "$llvm_cv_target_arch" in
4052     x86)     LLVM_NATIVE_ARCH="X86" ;;
4053     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4054     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4055 esac
4056
4057 ARCH=$llvm_cv_target_arch
4058
4059
4060 case $host in
4061   i?86-*)                 host_arch="x86" ;;
4062   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4063   sparc*-*)               host_arch="Sparc" ;;
4064   powerpc*-*)             host_arch="PowerPC" ;;
4065   arm*-*)                 host_arch="ARM" ;;
4066   aarch64*-*)             host_arch="AArch64" ;;
4067   mips-* | mips64-*)      host_arch="Mips" ;;
4068   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4069   xcore-*)                host_arch="XCore" ;;
4070   msp430-*)               host_arch="MSP430" ;;
4071   hexagon-*)              host_arch="Hexagon" ;;
4072   s390x-*)                host_arch="SystemZ" ;;
4073   *)                      host_arch="Unknown" ;;
4074 esac
4075
4076 if test "$host_arch" = "Unknown" ; then
4077   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 fi
4080
4081 HOST_ARCH=$host_arch
4082
4083
4084
4085
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_prog in grep ggrep; do
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108     # Check for GNU ac_path_GREP and select it if it is found.
4109   # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 *)
4114   ac_count=0
4115   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116   while :
4117   do
4118     cat "conftest.in" "conftest.in" >"conftest.tmp"
4119     mv "conftest.tmp" "conftest.in"
4120     cp "conftest.in" "conftest.nl"
4121     echo 'GREP' >> "conftest.nl"
4122     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124     ac_count=`expr $ac_count + 1`
4125     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126       # Best one so far, save it but keep looking for a better one
4127       ac_cv_path_GREP="$ac_path_GREP"
4128       ac_path_GREP_max=$ac_count
4129     fi
4130     # 10*(2^10) chars as input seems more than enough
4131     test $ac_count -gt 10 && break
4132   done
4133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136
4137     $ac_path_GREP_found && break 3
4138   done
4139 done
4140
4141 done
4142 IFS=$as_save_IFS
4143
4144
4145 fi
4146
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151    { (exit 1); exit 1; }; }
4152 fi
4153
4154 else
4155   ac_cv_path_GREP=$GREP
4156 fi
4157
4158
4159 fi
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162  GREP="$ac_cv_path_GREP"
4163
4164
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171    then ac_cv_path_EGREP="$GREP -E"
4172    else
4173      # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_prog in egrep; do
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190     # Check for GNU ac_path_EGREP and select it if it is found.
4191   # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196   ac_count=0
4197   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     echo 'EGREP' >> "conftest.nl"
4204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     ac_count=`expr $ac_count + 1`
4207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_EGREP="$ac_path_EGREP"
4210       ac_path_EGREP_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218
4219     $ac_path_EGREP_found && break 3
4220   done
4221 done
4222
4223 done
4224 IFS=$as_save_IFS
4225
4226
4227 fi
4228
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233    { (exit 1); exit 1; }; }
4234 fi
4235
4236 else
4237   ac_cv_path_EGREP=$EGREP
4238 fi
4239
4240
4241    fi
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245  EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <stdlib.h>
4260 #include <stdarg.h>
4261 #include <string.h>
4262 #include <float.h>
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_compile") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } &&
4286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_header_stdc=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         ac_cv_header_stdc=no
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <string.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "memchr" >/dev/null 2>&1; then
4329   :
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #include <stdlib.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349   $EGREP "free" >/dev/null 2>&1; then
4350   :
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360   if test "$cross_compiling" = yes; then
4361   :
4362 else
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <ctype.h>
4370 #include <stdlib.h>
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374 #else
4375 # define ISLOWER(c) \
4376                    (('a' <= (c) && (c) <= 'i') \
4377                      || ('j' <= (c) && (c) <= 'r') \
4378                      || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #endif
4381
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383 int
4384 main ()
4385 {
4386   int i;
4387   for (i = 0; i < 256; i++)
4388     if (XOR (islower (i), ISLOWER (i))
4389         || toupper (i) != TOUPPER (i))
4390       return 2;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_link") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405   { (case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   :
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ( exit $ac_status )
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4425
4426
4427 fi
4428 fi
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4432
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4435 _ACEOF
4436
4437 fi
4438
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450                   inttypes.h stdint.h unistd.h
4451 do
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 $ac_includes_default
4465
4466 #include <$ac_header>
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   eval "$as_ac_Header=yes"
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         eval "$as_ac_Header=no"
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513                { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4519
4520 fi
4521
4522 done
4523
4524
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4539
4540 int
4541 main ()
4542 {
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544  bogus endian macros
4545 #endif
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_compile") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4594
4595 int
4596 main ()
4597 {
4598 #if BYTE_ORDER != BIG_ENDIAN
4599  not big endian
4600 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } &&
4620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621   { (case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; } &&
4630          { ac_try='test -s conftest.$ac_objext'
4631   { (case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636   (eval "$ac_try") 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_cv_c_bigendian=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645         ac_cv_c_bigendian=no
4646 fi
4647
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653         # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655   # try to guess the endianness by grepping values into an object file
4656   ac_cv_c_bigendian=unknown
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4669 int
4670 main ()
4671 {
4672  _ascii (); _ebcdic ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692   { (case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_try") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_try") 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712   ac_cv_c_bigendian=yes
4713 fi
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715   if test "$ac_cv_c_bigendian" = unknown; then
4716     ac_cv_c_bigendian=no
4717   else
4718     # finding both strings is unlikely to happen, but who knows?
4719     ac_cv_c_bigendian=unknown
4720   fi
4721 fi
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738 int
4739 main ()
4740 {
4741
4742   /* Are we little or big endian?  From Harbison&Steele.  */
4743   union
4744   {
4745     long int l;
4746     char c[sizeof (long int)];
4747   } u;
4748   u.l = 1;
4749   return u.c[sizeof (long int) - 1] == 1;
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_link") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766   { (case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_try") 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   ac_cv_c_bigendian=no
4776 else
4777   echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ( exit $ac_status )
4782 ac_cv_c_bigendian=yes
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 fi
4786
4787
4788 fi
4789
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4795   yes)
4796     ENDIAN=big
4797  ;;
4798   no)
4799     ENDIAN=little
4800  ;;
4801   *)
4802     { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4808
4809
4810 if test "$cross_compiling" = yes; then
4811   LLVM_CROSS_COMPILING=1
4812
4813
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820   ac_cv_build_exeext=.exe
4821 else
4822   ac_build_prefix=${build_alias}-
4823
4824   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -n "$BUILD_CC"; then
4832   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861   if test -z "$BUILD_CC"; then
4862      # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CC"; then
4870   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CC="gcc"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899      if test -z "$BUILD_CC"; then
4900        # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CC"; then
4908   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909 else
4910   ac_prog_rejected=no
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919        ac_prog_rejected=yes
4920        continue
4921      fi
4922     ac_cv_prog_BUILD_CC="cc"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 if test $ac_prog_rejected = yes; then
4931   # We found a bogon in the path, so make sure we never use it.
4932   set dummy $ac_cv_prog_BUILD_CC
4933   shift
4934   if test $# != 0; then
4935     # We chose a different compiler from the bogus one.
4936     # However, it has the same basename, so the bogon will be chosen
4937     # first if we set BUILD_CC to just the basename; use the full file name.
4938     shift
4939     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4940   fi
4941 fi
4942 fi
4943 fi
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4952
4953
4954      fi
4955   fi
4956   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958    { (exit 1); exit 1; }; }
4959   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960   rm -f conftest*
4961   echo 'int main () { return 0; }' > conftest.$ac_ext
4962   ac_cv_build_exeext=
4963   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964   (eval $ac_build_link) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; then
4968     for file in conftest.*; do
4969       case $file in
4970       *.c | *.o | *.obj | *.dSYM) ;;
4971       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4972       esac
4973     done
4974   else
4975     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977    { (exit 1); exit 1; }; }
4978   fi
4979   rm -f conftest*
4980   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4981 fi
4982 fi
4983
4984 BUILD_EXEEXT=""
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4989
4990   ac_build_prefix=${build_alias}-
4991   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   if test -n "$BUILD_CXX"; then
4999   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028   if test -z "$BUILD_CXX"; then
5029      # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test -n "$BUILD_CXX"; then
5037   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_BUILD_CXX="g++"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066      if test -z "$BUILD_CXX"; then
5067        # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if test -n "$BUILD_CXX"; then
5075   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076 else
5077   ac_prog_rejected=no
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086        ac_prog_rejected=yes
5087        continue
5088      fi
5089     ac_cv_prog_BUILD_CXX="c++"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 if test $ac_prog_rejected = yes; then
5098   # We found a bogon in the path, so make sure we never use it.
5099   set dummy $ac_cv_prog_BUILD_CXX
5100   shift
5101   if test $# != 0; then
5102     # We chose a different compiler from the bogus one.
5103     # However, it has the same basename, so the bogon will be chosen
5104     # first if we set BUILD_CXX to just the basename; use the full file name.
5105     shift
5106     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5107   fi
5108 fi
5109 fi
5110 fi
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5115 else
5116   { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5119
5120
5121      fi
5122   fi
5123 else
5124   LLVM_CROSS_COMPILING=0
5125
5126 fi
5127
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5129   cvsbuild="yes"
5130   optimize="no"
5131   CVSBUILD=CVSBUILD=1
5132
5133 else
5134   cvsbuild="no"
5135   optimize="yes"
5136 fi
5137
5138
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141   enableval=$enable_libcpp;
5142 else
5143   enableval=default
5144 fi
5145
5146 case "$enableval" in
5147   yes) ENABLE_LIBCPP=1
5148  ;;
5149   no)  ENABLE_LIBCPP=0
5150  ;;
5151   default) ENABLE_LIBCPP=0
5152 ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160   enableval=$enable_cxx11;
5161 else
5162   enableval=default
5163 fi
5164
5165 case "$enableval" in
5166   yes) ENABLE_CXX11=1
5167  ;;
5168   no)  ENABLE_CXX11=0
5169  ;;
5170   default) ENABLE_CXX11=0
5171 ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179   enableval=$enable_split_dwarf;
5180 else
5181   enableval=default
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_SPLIT_DWARF=1
5186  ;;
5187   no)  ENABLE_SPLIT_DWARF=0
5188  ;;
5189   default) ENABLE_SPLIT_DWARF=0
5190 ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 clang_arcmt="yes"
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5200 else
5201   enableval="yes"
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_CLANG_ARCMT=1
5206  ;;
5207   no)  ENABLE_CLANG_ARCMT=0
5208  ;;
5209   default) ENABLE_CLANG_ARCMT=1
5210 ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5220 else
5221   enableval="yes"
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5226  ;;
5227   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5228  ;;
5229   default) ENABLE_CLANG_STATIC_ANALYZER=1
5230 ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238   enableval=$enable_clang_rewriter;
5239 else
5240   enableval="yes"
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_CLANG_REWRITER=1
5245  ;;
5246   no)
5247     if test ${clang_arcmt} != "no" ; then
5248       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250    { (exit 1); exit 1; }; }
5251     fi
5252     if test ${clang_static_analyzer} != "no" ; then
5253       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255    { (exit 1); exit 1; }; }
5256     fi
5257     ENABLE_CLANG_REWRITER=0
5258
5259     ;;
5260   default) ENABLE_CLANG_REWRITER=1
5261 ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269   enableval=$enable_optimized;
5270 else
5271   enableval=$optimize
5272 fi
5273
5274 if test ${enableval} = "no" ; then
5275   ENABLE_OPTIMIZED=
5276
5277 else
5278   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5279
5280 fi
5281
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284   enableval=$enable_profiling;
5285 else
5286   enableval="no"
5287 fi
5288
5289 if test ${enableval} = "no" ; then
5290   ENABLE_PROFILING=
5291
5292 else
5293   ENABLE_PROFILING=ENABLE_PROFILING=1
5294
5295 fi
5296
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299   enableval=$enable_assertions;
5300 else
5301   enableval="yes"
5302 fi
5303
5304 if test ${enableval} = "yes" ; then
5305   DISABLE_ASSERTIONS=
5306
5307 else
5308   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5309
5310 fi
5311
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314   enableval=$enable_werror;
5315 else
5316   enableval="no"
5317 fi
5318
5319 case "$enableval" in
5320   yes) ENABLE_WERROR=1
5321  ;;
5322   no)  ENABLE_WERROR=0
5323  ;;
5324   default) ENABLE_WERROR=0
5325 ;;
5326   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329 esac
5330
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333   enableval=$enable_expensive_checks;
5334 else
5335   enableval="no"
5336 fi
5337
5338 if test ${enableval} = "yes" ; then
5339   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5340
5341   EXPENSIVE_CHECKS=yes
5342
5343 else
5344   ENABLE_EXPENSIVE_CHECKS=
5345
5346   EXPENSIVE_CHECKS=no
5347
5348 fi
5349
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352   enableval=$enable_debug_runtime;
5353 else
5354   enableval=no
5355 fi
5356
5357 if test ${enableval} = "no" ; then
5358   DEBUG_RUNTIME=
5359
5360 else
5361   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5362
5363 fi
5364
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367   enableval=$enable_debug_symbols;
5368 else
5369   enableval=no
5370 fi
5371
5372 if test ${enableval} = "no" ; then
5373   DEBUG_SYMBOLS=
5374
5375 else
5376   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5377
5378 fi
5379
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382   enableval=$enable_keep_symbols;
5383 else
5384   enableval=no
5385 fi
5386
5387 if test ${enableval} = "no" ; then
5388   KEEP_SYMBOLS=
5389
5390 else
5391   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5392
5393 fi
5394
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397   enableval=$enable_jit;
5398 else
5399   enableval=default
5400 fi
5401
5402 if test ${enableval} = "no"
5403 then
5404   JIT=
5405
5406 else
5407   case "$llvm_cv_target_arch" in
5408     x86)         TARGET_HAS_JIT=1
5409  ;;
5410     Sparc)       TARGET_HAS_JIT=0
5411  ;;
5412     PowerPC)     TARGET_HAS_JIT=1
5413  ;;
5414     x86_64)      TARGET_HAS_JIT=1
5415  ;;
5416     ARM)         TARGET_HAS_JIT=1
5417  ;;
5418     AArch64)     TARGET_HAS_JIT=0
5419  ;;
5420     Mips)        TARGET_HAS_JIT=1
5421  ;;
5422     XCore)       TARGET_HAS_JIT=0
5423  ;;
5424     MSP430)      TARGET_HAS_JIT=0
5425  ;;
5426     Hexagon)     TARGET_HAS_JIT=0
5427  ;;
5428     NVPTX)       TARGET_HAS_JIT=0
5429  ;;
5430     SystemZ)     TARGET_HAS_JIT=1
5431  ;;
5432     *)           TARGET_HAS_JIT=0
5433  ;;
5434   esac
5435 fi
5436
5437 # Check whether --enable-docs was given.
5438 if test "${enable_docs+set}" = set; then
5439   enableval=$enable_docs;
5440 else
5441   enableval=default
5442 fi
5443
5444 case "$enableval" in
5445   yes) ENABLE_DOCS=1
5446  ;;
5447   no)  ENABLE_DOCS=0
5448  ;;
5449   default) ENABLE_DOCS=1
5450  ;;
5451   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5452 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5453    { (exit 1); exit 1; }; } ;;
5454 esac
5455
5456 # Check whether --enable-doxygen was given.
5457 if test "${enable_doxygen+set}" = set; then
5458   enableval=$enable_doxygen;
5459 else
5460   enableval=default
5461 fi
5462
5463 case "$enableval" in
5464   yes) ENABLE_DOXYGEN=1
5465  ;;
5466   no)  ENABLE_DOXYGEN=0
5467  ;;
5468   default) ENABLE_DOXYGEN=0
5469  ;;
5470   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5471 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5472    { (exit 1); exit 1; }; } ;;
5473 esac
5474
5475 # Check whether --enable-threads was given.
5476 if test "${enable_threads+set}" = set; then
5477   enableval=$enable_threads;
5478 else
5479   enableval=default
5480 fi
5481
5482 case "$enableval" in
5483   yes) LLVM_ENABLE_THREADS=1
5484  ;;
5485   no)  LLVM_ENABLE_THREADS=0
5486  ;;
5487   default) LLVM_ENABLE_THREADS=1
5488  ;;
5489   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5490 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5491    { (exit 1); exit 1; }; } ;;
5492 esac
5493
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5496 _ACEOF
5497
5498
5499 # Check whether --enable-pthreads was given.
5500 if test "${enable_pthreads+set}" = set; then
5501   enableval=$enable_pthreads;
5502 else
5503   enableval=default
5504 fi
5505
5506 case "$enableval" in
5507   yes) ENABLE_PTHREADS=1
5508  ;;
5509   no)  ENABLE_PTHREADS=0
5510  ;;
5511   default) ENABLE_PTHREADS=1
5512  ;;
5513   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5514 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5515    { (exit 1); exit 1; }; } ;;
5516 esac
5517
5518 # Check whether --enable-zlib was given.
5519 if test "${enable_zlib+set}" = set; then
5520   enableval=$enable_zlib;
5521 else
5522   enableval=default
5523 fi
5524
5525 case "$enableval" in
5526   yes) LLVM_ENABLE_ZLIB=1
5527  ;;
5528   no)  LLVM_ENABLE_ZLIB=0
5529  ;;
5530   default) LLVM_ENABLE_ZLIB=1
5531  ;;
5532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5533 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5534    { (exit 1); exit 1; }; } ;;
5535 esac
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5539 _ACEOF
5540
5541
5542 # Check whether --enable-pic was given.
5543 if test "${enable_pic+set}" = set; then
5544   enableval=$enable_pic;
5545 else
5546   enableval=default
5547 fi
5548
5549 case "$enableval" in
5550   yes) ENABLE_PIC=1
5551  ;;
5552   no)  ENABLE_PIC=0
5553  ;;
5554   default) ENABLE_PIC=1
5555  ;;
5556   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5557 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5558    { (exit 1); exit 1; }; } ;;
5559 esac
5560
5561 cat >>confdefs.h <<_ACEOF
5562 #define ENABLE_PIC $ENABLE_PIC
5563 _ACEOF
5564
5565
5566 # Check whether --enable-shared was given.
5567 if test "${enable_shared+set}" = set; then
5568   enableval=$enable_shared;
5569 else
5570   enableval=default
5571 fi
5572
5573 case "$enableval" in
5574   yes) ENABLE_SHARED=1
5575  ;;
5576   no)  ENABLE_SHARED=0
5577  ;;
5578   default) ENABLE_SHARED=0
5579  ;;
5580   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5581 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5582    { (exit 1); exit 1; }; } ;;
5583 esac
5584
5585 # Check whether --enable-embed-stdcxx was given.
5586 if test "${enable_embed_stdcxx+set}" = set; then
5587   enableval=$enable_embed_stdcxx;
5588 else
5589   enableval=default
5590 fi
5591
5592 case "$enableval" in
5593   yes) ENABLE_EMBED_STDCXX=1
5594  ;;
5595   no)  ENABLE_EMBED_STDCXX=0
5596  ;;
5597   default) ENABLE_EMBED_STDCXX=0
5598  ;;
5599   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5600 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5601    { (exit 1); exit 1; }; } ;;
5602 esac
5603
5604 # Check whether --enable-timestamps was given.
5605 if test "${enable_timestamps+set}" = set; then
5606   enableval=$enable_timestamps;
5607 else
5608   enableval=default
5609 fi
5610
5611 case "$enableval" in
5612   yes) ENABLE_TIMESTAMPS=1
5613  ;;
5614   no)  ENABLE_TIMESTAMPS=0
5615  ;;
5616   default) ENABLE_TIMESTAMPS=1
5617  ;;
5618   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621 esac
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5625 _ACEOF
5626
5627
5628
5629 # Check whether --enable-backtraces was given.
5630 if test "${enable_backtraces+set}" = set; then
5631   enableval=$enable_backtraces;
5632 else
5633   enableval=default
5634 fi
5635
5636 case "$enableval" in
5637   yes) ENABLE_BACKTRACES=1
5638  ;;
5639   no)  ENABLE_BACKTRACES=0
5640  ;;
5641   default) ENABLE_BACKTRACES=1
5642  ;;
5643   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5644 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5645    { (exit 1); exit 1; }; } ;;
5646 esac
5647
5648 cat >>confdefs.h <<_ACEOF
5649 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5650 _ACEOF
5651
5652
5653 TARGETS_TO_BUILD=""
5654 # Check whether --enable-targets was given.
5655 if test "${enable_targets+set}" = set; then
5656   enableval=$enable_targets;
5657 else
5658   enableval=all
5659 fi
5660
5661 if test "$enableval" = host-only ; then
5662   enableval=host
5663 fi
5664 case "$enableval" in
5665   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5666   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5667       case "$a_target" in
5668         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5671         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5672         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5673         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5674         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5681         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5682         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5683         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5684         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5685         host) case "$llvm_cv_target_arch" in
5686             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5687             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5688             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5689             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5690             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5691             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5692             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5693             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5694             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5695             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5696             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5697             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5698             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5699 echo "$as_me: error: Can not set target to build" >&2;}
5700    { (exit 1); exit 1; }; } ;;
5701           esac ;;
5702         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5703 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5704    { (exit 1); exit 1; }; } ;;
5705       esac
5706   done
5707   ;;
5708 esac
5709
5710 # Check whether --enable-experimental-targets was given.
5711 if test "${enable_experimental_targets+set}" = set; then
5712   enableval=$enable_experimental_targets;
5713 else
5714   enableval=disable
5715 fi
5716
5717
5718 if test ${enableval} != "disable"
5719 then
5720   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5721 fi
5722
5723 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5724
5725
5726 for a_target in $TARGETS_TO_BUILD; do
5727   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5728
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5731 _ACEOF
5732
5733     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5734     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5735     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5736     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5737     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5738       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5739     fi
5740     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5741       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5742     fi
5743
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5746 _ACEOF
5747
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5751 _ACEOF
5752
5753
5754 cat >>confdefs.h <<_ACEOF
5755 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5756 _ACEOF
5757
5758
5759 cat >>confdefs.h <<_ACEOF
5760 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5761 _ACEOF
5762
5763     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5764
5765 cat >>confdefs.h <<_ACEOF
5766 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5767 _ACEOF
5768
5769     fi
5770     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5774 _ACEOF
5775
5776     fi
5777   fi
5778 done
5779
5780 LLVM_ENUM_TARGETS=""
5781 LLVM_ENUM_ASM_PRINTERS=""
5782 LLVM_ENUM_ASM_PARSERS=""
5783 LLVM_ENUM_DISASSEMBLERS=""
5784 for target_to_build in $TARGETS_TO_BUILD; do
5785   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5786   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5787     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5788   fi
5789   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5790     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5791   fi
5792   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5793     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5794   fi
5795 done
5796
5797
5798
5799
5800
5801
5802 # Check whether --with-optimize-option was given.
5803 if test "${with_optimize_option+set}" = set; then
5804   withval=$with_optimize_option;
5805 else
5806   withval=default
5807 fi
5808
5809 { echo "$as_me:$LINENO: checking optimization flags" >&5
5810 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5811 case "$withval" in
5812   default)
5813     case "$llvm_cv_os_type" in
5814     FreeBSD) optimize_option=-O2 ;;
5815     MingW) optimize_option=-O2 ;;
5816     *)     optimize_option=-O3 ;;
5817     esac ;;
5818   *) optimize_option="$withval" ;;
5819 esac
5820 OPTIMIZE_OPTION=$optimize_option
5821
5822 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5823 echo "${ECHO_T}$optimize_option" >&6; }
5824
5825
5826 # Check whether --with-extra-options was given.
5827 if test "${with_extra_options+set}" = set; then
5828   withval=$with_extra_options;
5829 else
5830   withval=default
5831 fi
5832
5833 case "$withval" in
5834   default) EXTRA_OPTIONS= ;;
5835   *) EXTRA_OPTIONS=$withval ;;
5836 esac
5837 EXTRA_OPTIONS=$EXTRA_OPTIONS
5838
5839
5840
5841 # Check whether --with-extra-ld-options was given.
5842 if test "${with_extra_ld_options+set}" = set; then
5843   withval=$with_extra_ld_options;
5844 else
5845   withval=default
5846 fi
5847
5848 case "$withval" in
5849   default) EXTRA_LD_OPTIONS= ;;
5850   *) EXTRA_LD_OPTIONS=$withval ;;
5851 esac
5852 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5853
5854
5855 # Check whether --enable-bindings was given.
5856 if test "${enable_bindings+set}" = set; then
5857   enableval=$enable_bindings;
5858 else
5859   enableval=default
5860 fi
5861
5862 BINDINGS_TO_BUILD=""
5863 case "$enableval" in
5864   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5865   all ) BINDINGS_TO_BUILD="ocaml" ;;
5866   none | no) BINDINGS_TO_BUILD="" ;;
5867   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5868       case "$a_binding" in
5869         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5870         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5871 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5872    { (exit 1); exit 1; }; } ;;
5873       esac
5874   done
5875   ;;
5876 esac
5877
5878
5879 # Check whether --with-ocaml-libdir was given.
5880 if test "${with_ocaml_libdir+set}" = set; then
5881   withval=$with_ocaml_libdir;
5882 else
5883   withval=auto
5884 fi
5885
5886 case "$withval" in
5887   auto) with_ocaml_libdir="$withval" ;;
5888   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5889   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5890 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5891    { (exit 1); exit 1; }; } ;;
5892 esac
5893
5894
5895 # Check whether --with-clang-srcdir was given.
5896 if test "${with_clang_srcdir+set}" = set; then
5897   withval=$with_clang_srcdir;
5898 else
5899   withval="-"
5900 fi
5901
5902 case "$withval" in
5903   -) clang_src_root="" ;;
5904   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5905   *) clang_src_root="$ac_pwd/$withval" ;;
5906 esac
5907 CLANG_SRC_ROOT=$clang_src_root
5908
5909
5910
5911 # Check whether --with-clang-resource-dir was given.
5912 if test "${with_clang_resource_dir+set}" = set; then
5913   withval=$with_clang_resource_dir;
5914 else
5915   withval=""
5916 fi
5917
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define CLANG_RESOURCE_DIR "$withval"
5921 _ACEOF
5922
5923
5924
5925 # Check whether --with-c-include-dirs was given.
5926 if test "${with_c_include_dirs+set}" = set; then
5927   withval=$with_c_include_dirs;
5928 else
5929   withval=""
5930 fi
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define C_INCLUDE_DIRS "$withval"
5935 _ACEOF
5936
5937
5938 # Clang normally uses the system c++ headers and libraries. With this option,
5939 # clang will use the ones provided by a gcc installation instead. This option should
5940 # be passed the same value that was used with --prefix when configuring gcc.
5941
5942 # Check whether --with-gcc-toolchain was given.
5943 if test "${with_gcc_toolchain+set}" = set; then
5944   withval=$with_gcc_toolchain;
5945 else
5946   withval=""
5947 fi
5948
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define GCC_INSTALL_PREFIX "$withval"
5952 _ACEOF
5953
5954
5955
5956 # Check whether --with-default-sysroot was given.
5957 if test "${with_default_sysroot+set}" = set; then
5958   withval=$with_default_sysroot;
5959 else
5960   withval=""
5961 fi
5962
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define DEFAULT_SYSROOT "$withval"
5966 _ACEOF
5967
5968
5969
5970 # Check whether --with-binutils-include was given.
5971 if test "${with_binutils_include+set}" = set; then
5972   withval=$with_binutils_include;
5973 else
5974   withval=default
5975 fi
5976
5977 case "$withval" in
5978   default) WITH_BINUTILS_INCDIR=default ;;
5979   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5980   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5981 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5982    { (exit 1); exit 1; }; } ;;
5983 esac
5984 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5985   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5986
5987   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5988      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5989      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5990 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5991    { (exit 1); exit 1; }; };
5992   fi
5993 fi
5994
5995
5996 # Check whether --with-bug-report-url was given.
5997 if test "${with_bug_report_url+set}" = set; then
5998   withval=$with_bug_report_url;
5999 else
6000   withval="http://llvm.org/bugs/"
6001 fi
6002
6003
6004 cat >>confdefs.h <<_ACEOF
6005 #define BUG_REPORT_URL "$withval"
6006 _ACEOF
6007
6008
6009 # Check whether --enable-terminfo was given.
6010 if test "${enable_terminfo+set}" = set; then
6011   enableval=$enable_terminfo; case "$enableval" in
6012     yes) llvm_cv_enable_terminfo="yes" ;;
6013     no)  llvm_cv_enable_terminfo="no"  ;;
6014     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6015 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6016    { (exit 1); exit 1; }; } ;;
6017   esac
6018 else
6019   llvm_cv_enable_terminfo="yes"
6020 fi
6021
6022
6023 # Check whether --enable-libffi was given.
6024 if test "${enable_libffi+set}" = set; then
6025   enableval=$enable_libffi; case "$enableval" in
6026     yes) llvm_cv_enable_libffi="yes" ;;
6027     no)  llvm_cv_enable_libffi="no"  ;;
6028     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6029 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6030    { (exit 1); exit 1; }; } ;;
6031   esac
6032 else
6033   llvm_cv_enable_libffi=no
6034 fi
6035
6036
6037
6038 # Check whether --with-internal-prefix was given.
6039 if test "${with_internal_prefix+set}" = set; then
6040   withval=$with_internal_prefix;
6041 else
6042   withval=""
6043 fi
6044
6045 INTERNAL_PREFIX=$withval
6046
6047
6048
6049 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6050 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6051 if test "${lt_cv_path_NM+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$NM"; then
6055   # Let the user override the test.
6056   lt_cv_path_NM="$NM"
6057 else
6058   lt_nm_to_check="${ac_tool_prefix}nm"
6059   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6060     lt_nm_to_check="$lt_nm_to_check nm"
6061   fi
6062   for lt_tmp_nm in $lt_nm_to_check; do
6063     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6065       IFS="$lt_save_ifs"
6066       test -z "$ac_dir" && ac_dir=.
6067       tmp_nm="$ac_dir/$lt_tmp_nm"
6068       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6069         # Check to see if the nm accepts a BSD-compat flag.
6070         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6071         #   nm: unknown option "B" ignored
6072         # Tru64's nm complains that /dev/null is an invalid object file
6073         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6074         */dev/null* | *'Invalid file or object type'*)
6075           lt_cv_path_NM="$tmp_nm -B"
6076           break
6077           ;;
6078         *)
6079           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6080           */dev/null*)
6081             lt_cv_path_NM="$tmp_nm -p"
6082             break
6083             ;;
6084           *)
6085             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6086             continue # so that we can try to find one that supports BSD flags
6087             ;;
6088           esac
6089           ;;
6090         esac
6091       fi
6092     done
6093     IFS="$lt_save_ifs"
6094   done
6095   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6096 fi
6097 fi
6098 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6099 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6100 NM="$lt_cv_path_NM"
6101
6102
6103
6104 { echo "$as_me:$LINENO: checking for GNU make" >&5
6105 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6106 if test "${llvm_cv_gnu_make_command+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   llvm_cv_gnu_make_command=''
6110  for a in "$MAKE" make gmake gnumake ; do
6111   if test -z "$a" ; then continue ; fi ;
6112   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6113   then
6114    llvm_cv_gnu_make_command=$a ;
6115    break;
6116   fi
6117  done
6118 fi
6119 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6120 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6121  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6122    ifGNUmake='' ;
6123  else
6124    ifGNUmake='#' ;
6125    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6126 echo "${ECHO_T}\"Not found\"" >&6; };
6127  fi
6128
6129
6130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6132 LN_S=$as_ln_s
6133 if test "$LN_S" = "ln -s"; then
6134   { echo "$as_me:$LINENO: result: yes" >&5
6135 echo "${ECHO_T}yes" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6138 echo "${ECHO_T}no, using $LN_S" >&6; }
6139 fi
6140
6141 # Extract the first word of "cmp", so it can be a program name with args.
6142 set dummy cmp; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_path_CMP+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   case $CMP in
6149   [\\/]* | ?:[\\/]*)
6150   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6151   ;;
6152   *)
6153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158   for ac_exec_ext in '' $ac_executable_extensions; do
6159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6169   ;;
6170 esac
6171 fi
6172 CMP=$ac_cv_path_CMP
6173 if test -n "$CMP"; then
6174   { echo "$as_me:$LINENO: result: $CMP" >&5
6175 echo "${ECHO_T}$CMP" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180
6181
6182 # Extract the first word of "cp", so it can be a program name with args.
6183 set dummy cp; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_path_CP+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   case $CP in
6190   [\\/]* | ?:[\\/]*)
6191   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6192   ;;
6193   *)
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199   for ac_exec_ext in '' $ac_executable_extensions; do
6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6210   ;;
6211 esac
6212 fi
6213 CP=$ac_cv_path_CP
6214 if test -n "$CP"; then
6215   { echo "$as_me:$LINENO: result: $CP" >&5
6216 echo "${ECHO_T}$CP" >&6; }
6217 else
6218   { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6221
6222
6223 # Extract the first word of "date", so it can be a program name with args.
6224 set dummy date; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_path_DATE+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   case $DATE in
6231   [\\/]* | ?:[\\/]*)
6232   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6233   ;;
6234   *)
6235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240   for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6251   ;;
6252 esac
6253 fi
6254 DATE=$ac_cv_path_DATE
6255 if test -n "$DATE"; then
6256   { echo "$as_me:$LINENO: result: $DATE" >&5
6257 echo "${ECHO_T}$DATE" >&6; }
6258 else
6259   { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6261 fi
6262
6263
6264 # Extract the first word of "find", so it can be a program name with args.
6265 set dummy find; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_FIND+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   case $FIND in
6272   [\\/]* | ?:[\\/]*)
6273   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6274   ;;
6275   *)
6276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281   for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6292   ;;
6293 esac
6294 fi
6295 FIND=$ac_cv_path_FIND
6296 if test -n "$FIND"; then
6297   { echo "$as_me:$LINENO: result: $FIND" >&5
6298 echo "${ECHO_T}$FIND" >&6; }
6299 else
6300   { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 fi
6303
6304
6305 # Extract the first word of "grep", so it can be a program name with args.
6306 set dummy grep; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_GREP+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   case $GREP in
6313   [\\/]* | ?:[\\/]*)
6314   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6315   ;;
6316   *)
6317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322   for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6333   ;;
6334 esac
6335 fi
6336 GREP=$ac_cv_path_GREP
6337 if test -n "$GREP"; then
6338   { echo "$as_me:$LINENO: result: $GREP" >&5
6339 echo "${ECHO_T}$GREP" >&6; }
6340 else
6341   { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 fi
6344
6345
6346 # Extract the first word of "mkdir", so it can be a program name with args.
6347 set dummy mkdir; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_MKDIR+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   case $MKDIR in
6354   [\\/]* | ?:[\\/]*)
6355   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6356   ;;
6357   *)
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6374   ;;
6375 esac
6376 fi
6377 MKDIR=$ac_cv_path_MKDIR
6378 if test -n "$MKDIR"; then
6379   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6380 echo "${ECHO_T}$MKDIR" >&6; }
6381 else
6382   { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6384 fi
6385
6386
6387 # Extract the first word of "mv", so it can be a program name with args.
6388 set dummy mv; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_MV+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   case $MV in
6395   [\\/]* | ?:[\\/]*)
6396   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6397   ;;
6398   *)
6399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404   for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6415   ;;
6416 esac
6417 fi
6418 MV=$ac_cv_path_MV
6419 if test -n "$MV"; then
6420   { echo "$as_me:$LINENO: result: $MV" >&5
6421 echo "${ECHO_T}$MV" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428 if test -n "$ac_tool_prefix"; then
6429   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_RANLIB+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test -n "$RANLIB"; then
6437   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 RANLIB=$ac_cv_prog_RANLIB
6457 if test -n "$RANLIB"; then
6458   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6459 echo "${ECHO_T}$RANLIB" >&6; }
6460 else
6461   { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6463 fi
6464
6465
6466 fi
6467 if test -z "$ac_cv_prog_RANLIB"; then
6468   ac_ct_RANLIB=$RANLIB
6469   # Extract the first word of "ranlib", so it can be a program name with args.
6470 set dummy ranlib; ac_word=$2
6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   if test -n "$ac_ct_RANLIB"; then
6477   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484   for ac_exec_ext in '' $ac_executable_extensions; do
6485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486     ac_cv_prog_ac_ct_RANLIB="ranlib"
6487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6497 if test -n "$ac_ct_RANLIB"; then
6498   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6499 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6500 else
6501   { echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6; }
6503 fi
6504
6505   if test "x$ac_ct_RANLIB" = x; then
6506     RANLIB=":"
6507   else
6508     case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6511 whose name does not start with the host triplet.  If you think this
6512 configuration is useful to you, please write to autoconf@gnu.org." >&5
6513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet.  If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518     RANLIB=$ac_ct_RANLIB
6519   fi
6520 else
6521   RANLIB="$ac_cv_prog_RANLIB"
6522 fi
6523
6524 if test -n "$ac_tool_prefix"; then
6525   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ar; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_AR+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   if test -n "$AR"; then
6533   ac_cv_prog_AR="$AR" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_prog_AR="${ac_tool_prefix}ar"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 AR=$ac_cv_prog_AR
6553 if test -n "$AR"; then
6554   { echo "$as_me:$LINENO: result: $AR" >&5
6555 echo "${ECHO_T}$AR" >&6; }
6556 else
6557   { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_AR"; then
6564   ac_ct_AR=$AR
6565   # Extract the first word of "ar", so it can be a program name with args.
6566 set dummy ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   if test -n "$ac_ct_AR"; then
6573   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_prog_ac_ct_AR="ar"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593 if test -n "$ac_ct_AR"; then
6594   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595 echo "${ECHO_T}$ac_ct_AR" >&6; }
6596 else
6597   { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601   if test "x$ac_ct_AR" = x; then
6602     AR="false"
6603   else
6604     case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet.  If you think this
6608 configuration is useful to you, please write to autoconf@gnu.org." >&5
6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet.  If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614     AR=$ac_ct_AR
6615   fi
6616 else
6617   AR="$ac_cv_prog_AR"
6618 fi
6619
6620 # Extract the first word of "rm", so it can be a program name with args.
6621 set dummy rm; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_RM+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   case $RM in
6628   [\\/]* | ?:[\\/]*)
6629   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6630   ;;
6631   *)
6632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6648   ;;
6649 esac
6650 fi
6651 RM=$ac_cv_path_RM
6652 if test -n "$RM"; then
6653   { echo "$as_me:$LINENO: result: $RM" >&5
6654 echo "${ECHO_T}$RM" >&6; }
6655 else
6656   { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6658 fi
6659
6660
6661 # Extract the first word of "sed", so it can be a program name with args.
6662 set dummy sed; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_SED+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case $SED in
6669   [\\/]* | ?:[\\/]*)
6670   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6671   ;;
6672   *)
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6689   ;;
6690 esac
6691 fi
6692 SED=$ac_cv_path_SED
6693 if test -n "$SED"; then
6694   { echo "$as_me:$LINENO: result: $SED" >&5
6695 echo "${ECHO_T}$SED" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 # Extract the first word of "tar", so it can be a program name with args.
6703 set dummy tar; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_TAR+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   case $TAR in
6710   [\\/]* | ?:[\\/]*)
6711   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6712   ;;
6713   *)
6714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6730   ;;
6731 esac
6732 fi
6733 TAR=$ac_cv_path_TAR
6734 if test -n "$TAR"; then
6735   { echo "$as_me:$LINENO: result: $TAR" >&5
6736 echo "${ECHO_T}$TAR" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 # Extract the first word of "pwd", so it can be a program name with args.
6744 set dummy pwd; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_BINPWD+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   case $BINPWD in
6751   [\\/]* | ?:[\\/]*)
6752   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6753   ;;
6754   *)
6755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6771   ;;
6772 esac
6773 fi
6774 BINPWD=$ac_cv_path_BINPWD
6775 if test -n "$BINPWD"; then
6776   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6777 echo "${ECHO_T}$BINPWD" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784
6785 # Extract the first word of "Graphviz", so it can be a program name with args.
6786 set dummy Graphviz; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   case $GRAPHVIZ in
6793   [\\/]* | ?:[\\/]*)
6794   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6795   ;;
6796   *)
6797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6813   ;;
6814 esac
6815 fi
6816 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6817 if test -n "$GRAPHVIZ"; then
6818   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6819 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6820 else
6821   { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6823 fi
6824
6825
6826 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_GRAPHVIZ 1
6830 _ACEOF
6831
6832     if test "$llvm_cv_os_type" = "MingW" ; then
6833     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834   fi
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6838 _ACEOF
6839
6840 fi
6841 # Extract the first word of "dot", so it can be a program name with args.
6842 set dummy dot; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_DOT+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $DOT in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6869   ;;
6870 esac
6871 fi
6872 DOT=$ac_cv_path_DOT
6873 if test -n "$DOT"; then
6874   { echo "$as_me:$LINENO: result: $DOT" >&5
6875 echo "${ECHO_T}$DOT" >&6; }
6876 else
6877   { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6879 fi
6880
6881
6882 if test "$DOT" != "echo dot" ; then
6883
6884 cat >>confdefs.h <<\_ACEOF
6885 #define HAVE_DOT 1
6886 _ACEOF
6887
6888     if test "$llvm_cv_os_type" = "MingW" ; then
6889     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6890   fi
6891
6892 cat >>confdefs.h <<_ACEOF
6893 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6894 _ACEOF
6895
6896 fi
6897 # Extract the first word of "fdp", so it can be a program name with args.
6898 set dummy fdp; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_FDP+set}" = set; then
6902   echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904   case $FDP in
6905   [\\/]* | ?:[\\/]*)
6906   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6907   ;;
6908   *)
6909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6925   ;;
6926 esac
6927 fi
6928 FDP=$ac_cv_path_FDP
6929 if test -n "$FDP"; then
6930   { echo "$as_me:$LINENO: result: $FDP" >&5
6931 echo "${ECHO_T}$FDP" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937
6938 if test "$FDP" != "echo fdp" ; then
6939
6940 cat >>confdefs.h <<\_ACEOF
6941 #define HAVE_FDP 1
6942 _ACEOF
6943
6944     if test "$llvm_cv_os_type" = "MingW" ; then
6945     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6946   fi
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6950 _ACEOF
6951
6952 fi
6953 # Extract the first word of "neato", so it can be a program name with args.
6954 set dummy neato; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_path_NEATO+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   case $NEATO in
6961   [\\/]* | ?:[\\/]*)
6962   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6963   ;;
6964   *)
6965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970   for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6981   ;;
6982 esac
6983 fi
6984 NEATO=$ac_cv_path_NEATO
6985 if test -n "$NEATO"; then
6986   { echo "$as_me:$LINENO: result: $NEATO" >&5
6987 echo "${ECHO_T}$NEATO" >&6; }
6988 else
6989   { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6991 fi
6992
6993
6994 if test "$NEATO" != "echo neato" ; then
6995
6996 cat >>confdefs.h <<\_ACEOF
6997 #define HAVE_NEATO 1
6998 _ACEOF
6999
7000     if test "$llvm_cv_os_type" = "MingW" ; then
7001     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002   fi
7003
7004 cat >>confdefs.h <<_ACEOF
7005 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7006 _ACEOF
7007
7008 fi
7009 # Extract the first word of "twopi", so it can be a program name with args.
7010 set dummy twopi; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_TWOPI+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   case $TWOPI in
7017   [\\/]* | ?:[\\/]*)
7018   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7019   ;;
7020   *)
7021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026   for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7037   ;;
7038 esac
7039 fi
7040 TWOPI=$ac_cv_path_TWOPI
7041 if test -n "$TWOPI"; then
7042   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7043 echo "${ECHO_T}$TWOPI" >&6; }
7044 else
7045   { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050 if test "$TWOPI" != "echo twopi" ; then
7051
7052 cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_TWOPI 1
7054 _ACEOF
7055
7056     if test "$llvm_cv_os_type" = "MingW" ; then
7057     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7058   fi
7059
7060 cat >>confdefs.h <<_ACEOF
7061 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7062 _ACEOF
7063
7064 fi
7065 # Extract the first word of "circo", so it can be a program name with args.
7066 set dummy circo; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_CIRCO+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   case $CIRCO in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7093   ;;
7094 esac
7095 fi
7096 CIRCO=$ac_cv_path_CIRCO
7097 if test -n "$CIRCO"; then
7098   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7099 echo "${ECHO_T}$CIRCO" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105
7106 if test "$CIRCO" != "echo circo" ; then
7107
7108 cat >>confdefs.h <<\_ACEOF
7109 #define HAVE_CIRCO 1
7110 _ACEOF
7111
7112     if test "$llvm_cv_os_type" = "MingW" ; then
7113     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7114   fi
7115
7116 cat >>confdefs.h <<_ACEOF
7117 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7118 _ACEOF
7119
7120 fi
7121 for ac_prog in gv gsview32
7122 do
7123   # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_GV+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $GV in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 GV=$ac_cv_path_GV
7154 if test -n "$GV"; then
7155   { echo "$as_me:$LINENO: result: $GV" >&5
7156 echo "${ECHO_T}$GV" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163   test -n "$GV" && break
7164 done
7165 test -n "$GV" || GV="echo gv"
7166
7167 if test "$GV" != "echo gv" ; then
7168
7169 cat >>confdefs.h <<\_ACEOF
7170 #define HAVE_GV 1
7171 _ACEOF
7172
7173     if test "$llvm_cv_os_type" = "MingW" ; then
7174     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7175   fi
7176
7177 cat >>confdefs.h <<_ACEOF
7178 #define LLVM_PATH_GV "$GV${EXEEXT}"
7179 _ACEOF
7180
7181 fi
7182 # Extract the first word of "dotty", so it can be a program name with args.
7183 set dummy dotty; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_DOTTY+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   case $DOTTY in
7190   [\\/]* | ?:[\\/]*)
7191   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7192   ;;
7193   *)
7194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199   for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7210   ;;
7211 esac
7212 fi
7213 DOTTY=$ac_cv_path_DOTTY
7214 if test -n "$DOTTY"; then
7215   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7216 echo "${ECHO_T}$DOTTY" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222
7223 if test "$DOTTY" != "echo dotty" ; then
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_DOTTY 1
7227 _ACEOF
7228
7229     if test "$llvm_cv_os_type" = "MingW" ; then
7230     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7231   fi
7232
7233 cat >>confdefs.h <<_ACEOF
7234 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7235 _ACEOF
7236
7237 fi
7238 for ac_prog in xdot xdot.py
7239 do
7240   # Extract the first word of "$ac_prog", so it can be a program name with args.
7241 set dummy $ac_prog; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_XDOT+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   case $XDOT in
7248   [\\/]* | ?:[\\/]*)
7249   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7250   ;;
7251   *)
7252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257   for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267   ;;
7268 esac
7269 fi
7270 XDOT=$ac_cv_path_XDOT
7271 if test -n "$XDOT"; then
7272   { echo "$as_me:$LINENO: result: $XDOT" >&5
7273 echo "${ECHO_T}$XDOT" >&6; }
7274 else
7275   { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7277 fi
7278
7279
7280   test -n "$XDOT" && break
7281 done
7282 test -n "$XDOT" || XDOT="echo xdot"
7283
7284 if test "$XDOT" != "echo xdot" ; then
7285
7286 cat >>confdefs.h <<\_ACEOF
7287 #define HAVE_XDOT 1
7288 _ACEOF
7289
7290     if test "$llvm_cv_os_type" = "MingW" ; then
7291     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7292   fi
7293
7294 cat >>confdefs.h <<_ACEOF
7295 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7296 _ACEOF
7297
7298 fi
7299
7300 # Find a good install program.  We prefer a C program (faster),
7301 # so one script is as good as another.  But avoid the broken or
7302 # incompatible versions:
7303 # SysV /etc/install, /usr/sbin/install
7304 # SunOS /usr/etc/install
7305 # IRIX /sbin/install
7306 # AIX /bin/install
7307 # AmigaOS /C/install, which installs bootblocks on floppy discs
7308 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7309 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7310 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7311 # OS/2's system install, which has a completely different semantic
7312 # ./install, which can be erroneously created by make from ./install.sh.
7313 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7314 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7315 if test -z "$INSTALL"; then
7316 if test "${ac_cv_path_install+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324   # Account for people who put trailing slashes in PATH elements.
7325 case $as_dir/ in
7326   ./ | .// | /cC/* | \
7327   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7328   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7329   /usr/ucb/* ) ;;
7330   *)
7331     # OSF1 and SCO ODT 3.0 have their own names for install.
7332     # Don't use installbsd from OSF since it installs stuff as root
7333     # by default.
7334     for ac_prog in ginstall scoinst install; do
7335       for ac_exec_ext in '' $ac_executable_extensions; do
7336         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7337           if test $ac_prog = install &&
7338             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7339             # AIX install.  It has an incompatible calling convention.
7340             :
7341           elif test $ac_prog = install &&
7342             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7343             # program-specific install script used by HP pwplus--don't use.
7344             :
7345           else
7346             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7347             break 3
7348           fi
7349         fi
7350       done
7351     done
7352     ;;
7353 esac
7354 done
7355 IFS=$as_save_IFS
7356
7357
7358 fi
7359   if test "${ac_cv_path_install+set}" = set; then
7360     INSTALL=$ac_cv_path_install
7361   else
7362     # As a last resort, use the slow shell script.  Don't cache a
7363     # value for INSTALL within a source directory, because that will
7364     # break other packages using the cache if that directory is
7365     # removed, or if the value is a relative name.
7366     INSTALL=$ac_install_sh
7367   fi
7368 fi
7369 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7370 echo "${ECHO_T}$INSTALL" >&6; }
7371
7372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7373 # It thinks the first close brace ends the variable substitution.
7374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7375
7376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7377
7378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7379
7380 case "$INSTALL" in
7381  [\\/$]* | ?:[\\/]* ) ;;
7382  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7383 esac
7384
7385 # Extract the first word of "bzip2", so it can be a program name with args.
7386 set dummy bzip2; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_BZIP2+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $BZIP2 in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   ;;
7413 esac
7414 fi
7415 BZIP2=$ac_cv_path_BZIP2
7416 if test -n "$BZIP2"; then
7417   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7418 echo "${ECHO_T}$BZIP2" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425 # Extract the first word of "cat", so it can be a program name with args.
7426 set dummy cat; ac_word=$2
7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429 if test "${ac_cv_path_CAT+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   case $CAT in
7433   [\\/]* | ?:[\\/]*)
7434   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7435   ;;
7436   *)
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   for ac_exec_ext in '' $ac_executable_extensions; do
7443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7444     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452   ;;
7453 esac
7454 fi
7455 CAT=$ac_cv_path_CAT
7456 if test -n "$CAT"; then
7457   { echo "$as_me:$LINENO: result: $CAT" >&5
7458 echo "${ECHO_T}$CAT" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464
7465 # Extract the first word of "doxygen", so it can be a program name with args.
7466 set dummy doxygen; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   case $DOXYGEN in
7473   [\\/]* | ?:[\\/]*)
7474   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7475   ;;
7476   *)
7477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482   for ac_exec_ext in '' $ac_executable_extensions; do
7483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492   ;;
7493 esac
7494 fi
7495 DOXYGEN=$ac_cv_path_DOXYGEN
7496 if test -n "$DOXYGEN"; then
7497   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7498 echo "${ECHO_T}$DOXYGEN" >&6; }
7499 else
7500   { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7502 fi
7503
7504
7505 # Extract the first word of "groff", so it can be a program name with args.
7506 set dummy groff; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_path_GROFF+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   case $GROFF in
7513   [\\/]* | ?:[\\/]*)
7514   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7515   ;;
7516   *)
7517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522   for ac_exec_ext in '' $ac_executable_extensions; do
7523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532   ;;
7533 esac
7534 fi
7535 GROFF=$ac_cv_path_GROFF
7536 if test -n "$GROFF"; then
7537   { echo "$as_me:$LINENO: result: $GROFF" >&5
7538 echo "${ECHO_T}$GROFF" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543
7544
7545 # Extract the first word of "gzip", so it can be a program name with args.
7546 set dummy gzip; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   case $GZIPBIN in
7553   [\\/]* | ?:[\\/]*)
7554   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7555   ;;
7556   *)
7557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_exec_ext in '' $ac_executable_extensions; do
7563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572   ;;
7573 esac
7574 fi
7575 GZIPBIN=$ac_cv_path_GZIPBIN
7576 if test -n "$GZIPBIN"; then
7577   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7578 echo "${ECHO_T}$GZIPBIN" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 # Extract the first word of "pdfroff", so it can be a program name with args.
7586 set dummy pdfroff; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_PDFROFF+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $PDFROFF in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 PDFROFF=$ac_cv_path_PDFROFF
7616 if test -n "$PDFROFF"; then
7617   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7618 echo "${ECHO_T}$PDFROFF" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625 # Extract the first word of "zip", so it can be a program name with args.
7626 set dummy zip; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_ZIP+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $ZIP in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652   ;;
7653 esac
7654 fi
7655 ZIP=$ac_cv_path_ZIP
7656 if test -n "$ZIP"; then
7657   { echo "$as_me:$LINENO: result: $ZIP" >&5
7658 echo "${ECHO_T}$ZIP" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664
7665 for ac_prog in ocamlc
7666 do
7667   # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLC+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $OCAMLC in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694   ;;
7695 esac
7696 fi
7697 OCAMLC=$ac_cv_path_OCAMLC
7698 if test -n "$OCAMLC"; then
7699   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7700 echo "${ECHO_T}$OCAMLC" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7704 fi
7705
7706
7707   test -n "$OCAMLC" && break
7708 done
7709
7710 for ac_prog in ocamlopt
7711 do
7712   # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $OCAMLOPT in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   ;;
7740 esac
7741 fi
7742 OCAMLOPT=$ac_cv_path_OCAMLOPT
7743 if test -n "$OCAMLOPT"; then
7744   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7745 echo "${ECHO_T}$OCAMLOPT" >&6; }
7746 else
7747   { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7749 fi
7750
7751
7752   test -n "$OCAMLOPT" && break
7753 done
7754
7755 for ac_prog in ocamldep
7756 do
7757   # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   case $OCAMLDEP in
7765   [\\/]* | ?:[\\/]*)
7766   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7767   ;;
7768   *)
7769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774   for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784   ;;
7785 esac
7786 fi
7787 OCAMLDEP=$ac_cv_path_OCAMLDEP
7788 if test -n "$OCAMLDEP"; then
7789   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7790 echo "${ECHO_T}$OCAMLDEP" >&6; }
7791 else
7792   { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7794 fi
7795
7796
7797   test -n "$OCAMLDEP" && break
7798 done
7799
7800 for ac_prog in ocamldoc
7801 do
7802   # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   case $OCAMLDOC in
7810   [\\/]* | ?:[\\/]*)
7811   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7812   ;;
7813   *)
7814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819   for ac_exec_ext in '' $ac_executable_extensions; do
7820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829   ;;
7830 esac
7831 fi
7832 OCAMLDOC=$ac_cv_path_OCAMLDOC
7833 if test -n "$OCAMLDOC"; then
7834   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7835 echo "${ECHO_T}$OCAMLDOC" >&6; }
7836 else
7837   { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7839 fi
7840
7841
7842   test -n "$OCAMLDOC" && break
7843 done
7844
7845 for ac_prog in gas as
7846 do
7847   # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy $ac_prog; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_GAS+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   case $GAS in
7855   [\\/]* | ?:[\\/]*)
7856   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7857   ;;
7858   *)
7859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864   for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874   ;;
7875 esac
7876 fi
7877 GAS=$ac_cv_path_GAS
7878 if test -n "$GAS"; then
7879   { echo "$as_me:$LINENO: result: $GAS" >&5
7880 echo "${ECHO_T}$GAS" >&6; }
7881 else
7882   { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7884 fi
7885
7886
7887   test -n "$GAS" && break
7888 done
7889
7890
7891 { echo "$as_me:$LINENO: checking for linker version" >&5
7892 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7893 if test "${llvm_cv_link_version+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896
7897    version_string="$(ld -v 2>&1 | head -1)"
7898
7899    # Check for ld64.
7900    if (echo "$version_string" | grep -q "ld64"); then
7901      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7902    else
7903      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7904    fi
7905
7906 fi
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7908 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7909
7910 cat >>confdefs.h <<_ACEOF
7911 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7912 _ACEOF
7913
7914
7915
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_r+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,-R."
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_r=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         llvm_cv_link_use_r=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_r" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999 if test "$llvm_cv_link_use_r" = yes ; then
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_R 1
8003 _ACEOF
8004
8005   fi
8006
8007
8008 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8009 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8010 if test "${llvm_cv_link_use_export_dynamic+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   CFLAGS="$CFLAGS -rdynamic"
8021   cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027
8028 int
8029 main ()
8030 {
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8038 case "(($ac_try" in
8039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040   *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043   (eval "$ac_link") 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8051   { (case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; } &&
8060          { ac_try='test -s conftest$ac_exeext'
8061   { (case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_try") 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   llvm_cv_link_use_export_dynamic=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075         llvm_cv_link_use_export_dynamic=no
8076 fi
8077
8078 rm -f core conftest.err conftest.$ac_objext \
8079       conftest$ac_exeext conftest.$ac_ext
8080   CFLAGS="$oldcflags"
8081   ac_ext=c
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088 fi
8089 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8090 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8091 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8092
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LINK_EXPORT_DYNAMIC 1
8095 _ACEOF
8096
8097   fi
8098
8099
8100 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8101 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8102 if test "${llvm_cv_link_use_version_script+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
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   oldcflags="$CFLAGS"
8112
8113   # The following code is from the autoconf manual,
8114   # "11.13: Limitations of Usual Tools".
8115   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8116   # Use mktemp if possible; otherwise fall back on mkdir,
8117   # with $RANDOM to make collisions less likely.
8118   : ${TMPDIR=/tmp}
8119   {
8120     tmp=`
8121       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8122     ` &&
8123     test -n "$tmp" && test -d "$tmp"
8124   } || {
8125     tmp=$TMPDIR/foo$$-$RANDOM
8126     (umask 077 && mkdir "$tmp")
8127   } || exit $?
8128
8129   echo "{" > "$tmp/export.map"
8130   echo "  global: main;" >> "$tmp/export.map"
8131   echo "  local: *;" >> "$tmp/export.map"
8132   echo "};" >> "$tmp/export.map"
8133
8134   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8135   cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141
8142 int
8143 main ()
8144 {
8145
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (ac_try="$ac_link"
8152 case "(($ac_try" in
8153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154   *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157   (eval "$ac_link") 2>conftest.er1
8158   ac_status=$?
8159   grep -v '^ *+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } &&
8164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8165   { (case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_try") 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; } &&
8174          { ac_try='test -s conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   llvm_cv_link_use_version_script=yes
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189         llvm_cv_link_use_version_script=no
8190 fi
8191
8192 rm -f core conftest.err conftest.$ac_objext \
8193       conftest$ac_exeext conftest.$ac_ext
8194   rm "$tmp/export.map"
8195   rmdir "$tmp"
8196   CFLAGS="$oldcflags"
8197   ac_ext=c
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202
8203
8204 fi
8205 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8206 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8207 if test "$llvm_cv_link_use_version_script" = yes ; then
8208   HAVE_LINK_VERSION_SCRIPT=1
8209
8210   fi
8211
8212
8213
8214
8215 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8216 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8217 if test "${ac_cv_c_const+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 int
8228 main ()
8229 {
8230 /* FIXME: Include the comments suggested by Paul. */
8231 #ifndef __cplusplus
8232   /* Ultrix mips cc rejects this.  */
8233   typedef int charset[2];
8234   const charset x;
8235   /* SunOS 4.1.1 cc rejects this.  */
8236   char const *const *ccp;
8237   char **p;
8238   /* NEC SVR4.0.2 mips cc rejects this.  */
8239   struct point {int x, y;};
8240   static struct point const zero = {0,0};
8241   /* AIX XL C 1.02.0.0 rejects this.
8242      It does not let you subtract one const X* pointer from another in
8243      an arm of an if-expression whose if-part is not a constant
8244      expression */
8245   const char *g = "string";
8246   ccp = &g + (g ? g-g : 0);
8247   /* HPUX 7.0 cc rejects these. */
8248   ++ccp;
8249   p = (char**) ccp;
8250   ccp = (char const *const *) p;
8251   { /* SCO 3.2v4 cc rejects this.  */
8252     char *t;
8253     char const *s = 0 ? (char *) 0 : (char const *) 0;
8254
8255     *t++ = 0;
8256     if (s) return 0;
8257   }
8258   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8259     int x[] = {25, 17};
8260     const int *foo = &x[0];
8261     ++foo;
8262   }
8263   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8264     typedef const int *iptr;
8265     iptr p = 0;
8266     ++p;
8267   }
8268   { /* AIX XL C 1.02.0.0 rejects this saying
8269        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8270     struct s { int j; const int *ap[3]; };
8271     struct s *b; b->j = 5;
8272   }
8273   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8274     const int foo = 10;
8275     if (!foo) return 0;
8276   }
8277   return !x[0] && !zero.x;
8278 #endif
8279
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_compile") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_cv_c_const=yes
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         ac_cv_c_const=no
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8329 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8330 if test $ac_cv_c_const = no; then
8331
8332 cat >>confdefs.h <<\_ACEOF
8333 #define const
8334 _ACEOF
8335
8336 fi
8337
8338
8339
8340
8341
8342
8343 ac_header_dirent=no
8344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8345   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8346 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h.  */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h.  */
8357 #include <sys/types.h>
8358 #include <$ac_hdr>
8359
8360 int
8361 main ()
8362 {
8363 if ((DIR *) 0)
8364 return 0;
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8371 case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_compile") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; } &&
8393          { ac_try='test -s conftest.$ac_objext'
8394   { (case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_try") 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; }; then
8403   eval "$as_ac_Header=yes"
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408         eval "$as_ac_Header=no"
8409 fi
8410
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 fi
8413 ac_res=`eval echo '${'$as_ac_Header'}'`
8414                { echo "$as_me:$LINENO: result: $ac_res" >&5
8415 echo "${ECHO_T}$ac_res" >&6; }
8416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8417   cat >>confdefs.h <<_ACEOF
8418 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8419 _ACEOF
8420
8421 ac_header_dirent=$ac_hdr; break
8422 fi
8423
8424 done
8425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8426 if test $ac_header_dirent = dirent.h; then
8427   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8428 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8429 if test "${ac_cv_search_opendir+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   ac_func_search_save_LIBS=$LIBS
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439
8440 /* Override any GCC internal prototype to avoid an error.
8441    Use char because int might match the return type of a GCC
8442    builtin and then its argument prototype would still apply.  */
8443 #ifdef __cplusplus
8444 extern "C"
8445 #endif
8446 char opendir ();
8447 int
8448 main ()
8449 {
8450 return opendir ();
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 for ac_lib in '' dir; do
8456   if test -z "$ac_lib"; then
8457     ac_res="none required"
8458   else
8459     ac_res=-l$ac_lib
8460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8461   fi
8462   rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (ac_try="$ac_link"
8464 case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_link") 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477   { (case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_try") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; } &&
8486          { ac_try='test -s conftest$ac_exeext'
8487   { (case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_try") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_search_opendir=$ac_res
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501
8502 fi
8503
8504 rm -f core conftest.err conftest.$ac_objext \
8505       conftest$ac_exeext
8506   if test "${ac_cv_search_opendir+set}" = set; then
8507   break
8508 fi
8509 done
8510 if test "${ac_cv_search_opendir+set}" = set; then
8511   :
8512 else
8513   ac_cv_search_opendir=no
8514 fi
8515 rm conftest.$ac_ext
8516 LIBS=$ac_func_search_save_LIBS
8517 fi
8518 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8519 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8520 ac_res=$ac_cv_search_opendir
8521 if test "$ac_res" != no; then
8522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8523
8524 fi
8525
8526 else
8527   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8529 if test "${ac_cv_search_opendir+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   ac_func_search_save_LIBS=$LIBS
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539
8540 /* Override any GCC internal prototype to avoid an error.
8541    Use char because int might match the return type of a GCC
8542    builtin and then its argument prototype would still apply.  */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 char opendir ();
8547 int
8548 main ()
8549 {
8550 return opendir ();
8551   ;
8552   return 0;
8553 }
8554 _ACEOF
8555 for ac_lib in '' x; do
8556   if test -z "$ac_lib"; then
8557     ac_res="none required"
8558   else
8559     ac_res=-l$ac_lib
8560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8561   fi
8562   rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_search_opendir=$ac_res
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext \
8605       conftest$ac_exeext
8606   if test "${ac_cv_search_opendir+set}" = set; then
8607   break
8608 fi
8609 done
8610 if test "${ac_cv_search_opendir+set}" = set; then
8611   :
8612 else
8613   ac_cv_search_opendir=no
8614 fi
8615 rm conftest.$ac_ext
8616 LIBS=$ac_func_search_save_LIBS
8617 fi
8618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8620 ac_res=$ac_cv_search_opendir
8621 if test "$ac_res" != no; then
8622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8623
8624 fi
8625
8626 fi
8627
8628
8629 for ac_header in dlfcn.h
8630 do
8631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8633   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 fi
8638 ac_res=`eval echo '${'$as_ac_Header'}'`
8639                { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 echo "${ECHO_T}$ac_res" >&6; }
8641 else
8642   # Is the header compilable?
8643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651 $ac_includes_default
8652 #include <$ac_header>
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658   *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661   (eval "$ac_compile") 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669   { (case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_try") 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; } &&
8678          { ac_try='test -s conftest.$ac_objext'
8679   { (case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_try") 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_header_compiler=yes
8689 else
8690   echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693         ac_header_compiler=no
8694 fi
8695
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698 echo "${ECHO_T}$ac_header_compiler" >&6; }
8699
8700 # Is the header present?
8701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 #include <$ac_header>
8710 _ACEOF
8711 if { (ac_try="$ac_cpp conftest.$ac_ext"
8712 case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } >/dev/null; then
8724   if test -s conftest.err; then
8725     ac_cpp_err=$ac_c_preproc_warn_flag
8726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8727   else
8728     ac_cpp_err=
8729   fi
8730 else
8731   ac_cpp_err=yes
8732 fi
8733 if test -z "$ac_cpp_err"; then
8734   ac_header_preproc=yes
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739   ac_header_preproc=no
8740 fi
8741
8742 rm -f conftest.err conftest.$ac_ext
8743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8744 echo "${ECHO_T}$ac_header_preproc" >&6; }
8745
8746 # So?  What about this header?
8747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8748   yes:no: )
8749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8753     ac_header_preproc=yes
8754     ;;
8755   no:yes:* )
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8768     ( cat <<\_ASBOX
8769 ## ------------------------------------ ##
8770 ## Report this to http://llvm.org/bugs/ ##
8771 ## ------------------------------------ ##
8772 _ASBOX
8773      ) | sed "s/^/$as_me: WARNING:     /" >&2
8774     ;;
8775 esac
8776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   eval "$as_ac_Header=\$ac_header_preproc"
8782 fi
8783 ac_res=`eval echo '${'$as_ac_Header'}'`
8784                { echo "$as_me:$LINENO: result: $ac_res" >&5
8785 echo "${ECHO_T}$ac_res" >&6; }
8786
8787 fi
8788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8789   cat >>confdefs.h <<_ACEOF
8790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791 _ACEOF
8792
8793 fi
8794
8795 done
8796
8797 # Check whether --enable-ltdl-install was given.
8798 if test "${enable_ltdl_install+set}" = set; then
8799   enableval=$enable_ltdl_install;
8800 fi
8801
8802
8803
8804
8805 if test x"${enable_ltdl_install-no}" != xno; then
8806   INSTALL_LTDL_TRUE=
8807   INSTALL_LTDL_FALSE='#'
8808 else
8809   INSTALL_LTDL_TRUE='#'
8810   INSTALL_LTDL_FALSE=
8811 fi
8812
8813
8814
8815 if test x"${enable_ltdl_convenience-no}" != xno; then
8816   CONVENIENCE_LTDL_TRUE=
8817   CONVENIENCE_LTDL_FALSE='#'
8818 else
8819   CONVENIENCE_LTDL_TRUE='#'
8820   CONVENIENCE_LTDL_FALSE=
8821 fi
8822
8823
8824 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8825 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8826 library_names_spec=
8827 libname_spec='lib$name'
8828 soname_spec=
8829 shrext_cmds=".so"
8830 postinstall_cmds=
8831 postuninstall_cmds=
8832 finish_cmds=
8833 finish_eval=
8834 shlibpath_var=
8835 shlibpath_overrides_runpath=unknown
8836 version_type=none
8837 dynamic_linker="$host_os ld.so"
8838 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8839 if test "$GCC" = yes; then
8840   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8841   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8842     # if the path contains ";" then we assume it to be the separator
8843     # otherwise default to the standard path separator (i.e. ":") - it is
8844     # assumed that no part of a normal pathname contains ";" but that should
8845     # okay in the real world where ";" in dirpaths is itself problematic.
8846     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8847   else
8848     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8849   fi
8850 else
8851   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8852 fi
8853 need_lib_prefix=unknown
8854 hardcode_into_libs=no
8855
8856 # when you set need_version to no, make sure it does not cause -set_version
8857 # flags to be left without arguments
8858 need_version=unknown
8859
8860 case $host_os in
8861 aix3*)
8862   version_type=linux
8863   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8864   shlibpath_var=LIBPATH
8865
8866   # AIX 3 has no versioning support, so we append a major version to the name.
8867   soname_spec='${libname}${release}${shared_ext}$major'
8868   ;;
8869
8870 aix4* | aix5*)
8871   version_type=linux
8872   need_lib_prefix=no
8873   need_version=no
8874   hardcode_into_libs=yes
8875   if test "$host_cpu" = ia64; then
8876     # AIX 5 supports IA64
8877     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8878     shlibpath_var=LD_LIBRARY_PATH
8879   else
8880     # With GCC up to 2.95.x, collect2 would create an import file
8881     # for dependence libraries.  The import file would start with
8882     # the line `#! .'.  This would cause the generated library to
8883     # depend on `.', always an invalid library.  This was fixed in
8884     # development snapshots of GCC prior to 3.0.
8885     case $host_os in
8886       aix4 | aix4.[01] | aix4.[01].*)
8887       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8888            echo ' yes '
8889            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8890         :
8891       else
8892         can_build_shared=no
8893       fi
8894       ;;
8895     esac
8896     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8897     # soname into executable. Probably we can add versioning support to
8898     # collect2, so additional links can be useful in future.
8899     if test "$aix_use_runtimelinking" = yes; then
8900       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8901       # instead of lib<name>.a to let people know that these are not
8902       # typical AIX shared libraries.
8903       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904     else
8905       # We preserve .a as extension for shared libraries through AIX4.2
8906       # and later when we are not doing run time linking.
8907       library_names_spec='${libname}${release}.a $libname.a'
8908       soname_spec='${libname}${release}${shared_ext}$major'
8909     fi
8910     shlibpath_var=LIBPATH
8911   fi
8912   ;;
8913
8914 amigaos*)
8915   library_names_spec='$libname.ixlibrary $libname.a'
8916   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917   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'
8918   ;;
8919
8920 beos*)
8921   library_names_spec='${libname}${shared_ext}'
8922   dynamic_linker="$host_os ld.so"
8923   shlibpath_var=LIBRARY_PATH
8924   ;;
8925
8926 bsdi[45]*)
8927   version_type=linux
8928   need_version=no
8929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930   soname_spec='${libname}${release}${shared_ext}$major'
8931   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8932   shlibpath_var=LD_LIBRARY_PATH
8933   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8934   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8935   # the default ld.so.conf also contains /usr/contrib/lib and
8936   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8937   # libtool to hard-code these into programs
8938   ;;
8939
8940 cygwin* | mingw* | pw32*)
8941   version_type=windows
8942   shrext_cmds=".dll"
8943   need_version=no
8944   need_lib_prefix=no
8945
8946   case $GCC,$host_os in
8947   yes,cygwin* | yes,mingw* | yes,pw32*)
8948     library_names_spec='$libname.dll.a'
8949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8950     postinstall_cmds='base_file=`basename \${file}`~
8951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8952       dldir=$destdir/`dirname \$dlpath`~
8953       test -d \$dldir || mkdir -p \$dldir~
8954       $install_prog $dir/$dlname \$dldir/$dlname~
8955       chmod a+x \$dldir/$dlname'
8956     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8957       dlpath=$dir/\$dldll~
8958        $rm \$dlpath'
8959     shlibpath_overrides_runpath=yes
8960
8961     case $host_os in
8962     cygwin*)
8963       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8964       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8966       ;;
8967     mingw*)
8968       # MinGW DLLs use traditional 'lib' prefix
8969       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8971       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8972         # It is most probably a Windows format PATH printed by
8973         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8974         # path with ; separators, and with drive letters. We can handle the
8975         # drive letters (cygwin fileutils understands them), so leave them,
8976         # especially as we might pass files found there to a mingw objdump,
8977         # which wouldn't understand a cygwinified path. Ahh.
8978         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8979       else
8980         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8981       fi
8982       ;;
8983     pw32*)
8984       # pw32 DLLs use 'pw' prefix rather than 'lib'
8985       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986       ;;
8987     esac
8988     ;;
8989
8990   *)
8991     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8992     ;;
8993   esac
8994   dynamic_linker='Win32 ld.exe'
8995   # FIXME: first we should search . and the directory the executable is in
8996   shlibpath_var=PATH
8997   ;;
8998
8999 darwin* | rhapsody*)
9000   dynamic_linker="$host_os dyld"
9001   version_type=darwin
9002   need_lib_prefix=no
9003   need_version=no
9004   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9005   soname_spec='${libname}${release}${major}$shared_ext'
9006   shlibpath_overrides_runpath=yes
9007   shlibpath_var=DYLD_LIBRARY_PATH
9008   shrext_cmds='.dylib'
9009   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9010   if test "$GCC" = yes; then
9011     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"`
9012   else
9013     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9014   fi
9015   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9016   ;;
9017
9018 dgux*)
9019   version_type=linux
9020   need_lib_prefix=no
9021   need_version=no
9022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9023   soname_spec='${libname}${release}${shared_ext}$major'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   ;;
9026
9027 freebsd1.*)
9028   dynamic_linker=no
9029   ;;
9030
9031 kfreebsd*-gnu)
9032   version_type=linux
9033   need_lib_prefix=no
9034   need_version=no
9035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036   soname_spec='${libname}${release}${shared_ext}$major'
9037   shlibpath_var=LD_LIBRARY_PATH
9038   shlibpath_overrides_runpath=no
9039   hardcode_into_libs=yes
9040   dynamic_linker='GNU ld.so'
9041   ;;
9042
9043 freebsd* | dragonfly*)
9044   # DragonFly does not have aout.  When/if they implement a new
9045   # versioning mechanism, adjust this.
9046   if test -x /usr/bin/objformat; then
9047     objformat=`/usr/bin/objformat`
9048   else
9049     case $host_os in
9050     freebsd[123].*) objformat=aout ;;
9051     *) objformat=elf ;;
9052     esac
9053   fi
9054   version_type=freebsd-$objformat
9055   case $version_type in
9056     freebsd-elf*)
9057       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9058       need_version=no
9059       need_lib_prefix=no
9060       ;;
9061     freebsd-*)
9062       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9063       need_version=yes
9064       ;;
9065   esac
9066   shlibpath_var=LD_LIBRARY_PATH
9067   case $host_os in
9068   freebsd2.*)
9069     shlibpath_overrides_runpath=yes
9070     ;;
9071   freebsd3.[01]* | freebsdelf3.[01]*)
9072     shlibpath_overrides_runpath=yes
9073     hardcode_into_libs=yes
9074     ;;
9075   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9076   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9077     shlibpath_overrides_runpath=no
9078     hardcode_into_libs=yes
9079     ;;
9080   freebsd*) # from 4.6 on
9081     shlibpath_overrides_runpath=yes
9082     hardcode_into_libs=yes
9083     ;;
9084   esac
9085   ;;
9086
9087 gnu*)
9088   version_type=linux
9089   need_lib_prefix=no
9090   need_version=no
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   hardcode_into_libs=yes
9095   ;;
9096
9097 hpux9* | hpux10* | hpux11*)
9098   # Give a soname corresponding to the major version so that dld.sl refuses to
9099   # link against other versions.
9100   version_type=sunos
9101   need_lib_prefix=no
9102   need_version=no
9103   case $host_cpu in
9104   ia64*)
9105     shrext_cmds='.so'
9106     hardcode_into_libs=yes
9107     dynamic_linker="$host_os dld.so"
9108     shlibpath_var=LD_LIBRARY_PATH
9109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
9113       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9114     else
9115       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9116     fi
9117     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9118     ;;
9119    hppa*64*)
9120      shrext_cmds='.sl'
9121      hardcode_into_libs=yes
9122      dynamic_linker="$host_os dld.sl"
9123      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9124      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126      soname_spec='${libname}${release}${shared_ext}$major'
9127      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9128      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9129      ;;
9130    *)
9131     shrext_cmds='.sl'
9132     dynamic_linker="$host_os dld.sl"
9133     shlibpath_var=SHLIB_PATH
9134     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136     soname_spec='${libname}${release}${shared_ext}$major'
9137     ;;
9138   esac
9139   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9140   postinstall_cmds='chmod 555 $lib'
9141   ;;
9142
9143 interix3*)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   shlibpath_overrides_runpath=no
9152   hardcode_into_libs=yes
9153   ;;
9154
9155 irix5* | irix6* | nonstopux*)
9156   case $host_os in
9157     nonstopux*) version_type=nonstopux ;;
9158     *)
9159         if test "$lt_cv_prog_gnu_ld" = yes; then
9160                 version_type=linux
9161         else
9162                 version_type=irix
9163         fi ;;
9164   esac
9165   need_lib_prefix=no
9166   need_version=no
9167   soname_spec='${libname}${release}${shared_ext}$major'
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9169   case $host_os in
9170   irix5* | nonstopux*)
9171     libsuff= shlibsuff=
9172     ;;
9173   *)
9174     case $LD in # libtool.m4 will add one of these switches to LD
9175     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9176       libsuff= shlibsuff= libmagic=32-bit;;
9177     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9178       libsuff=32 shlibsuff=N32 libmagic=N32;;
9179     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9180       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9181     *) libsuff= shlibsuff= libmagic=never-match;;
9182     esac
9183     ;;
9184   esac
9185   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9186   shlibpath_overrides_runpath=no
9187   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9188   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9189   hardcode_into_libs=yes
9190   ;;
9191
9192 # No shared lib support for Linux oldld, aout, or coff.
9193 linux*oldld* | linux*aout* | linux*coff*)
9194   dynamic_linker=no
9195   ;;
9196
9197 # This must be Linux ELF.
9198 linux*)
9199   version_type=linux
9200   need_lib_prefix=no
9201   need_version=no
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   shlibpath_overrides_runpath=no
9207   # This implies no fast_install, which is unacceptable.
9208   # Some rework will be needed to allow for fast_install
9209   # before this can be enabled.
9210   hardcode_into_libs=yes
9211
9212   # Append ld.so.conf contents to the search path
9213   if test -f /etc/ld.so.conf; then
9214     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' ' '`
9215     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9216   fi
9217
9218   # We used to test for /lib/ld.so.1 and disable shared libraries on
9219   # powerpc, because MkLinux only supported shared libraries with the
9220   # GNU dynamic linker.  Since this was broken with cross compilers,
9221   # most powerpc-linux boxes support dynamic linking these days and
9222   # people can always --disable-shared, the test was removed, and we
9223   # assume the GNU/Linux dynamic linker is in use.
9224   dynamic_linker='GNU/Linux ld.so'
9225   ;;
9226
9227 knetbsd*-gnu)
9228   version_type=linux
9229   need_lib_prefix=no
9230   need_version=no
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9232   soname_spec='${libname}${release}${shared_ext}$major'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   shlibpath_overrides_runpath=no
9235   hardcode_into_libs=yes
9236   dynamic_linker='GNU ld.so'
9237   ;;
9238
9239 netbsd*)
9240   version_type=sunos
9241   need_lib_prefix=no
9242   need_version=no
9243   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246     dynamic_linker='NetBSD (a.out) ld.so'
9247   else
9248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249     soname_spec='${libname}${release}${shared_ext}$major'
9250     dynamic_linker='NetBSD ld.elf_so'
9251   fi
9252   shlibpath_var=LD_LIBRARY_PATH
9253   shlibpath_overrides_runpath=yes
9254   hardcode_into_libs=yes
9255   ;;
9256
9257 newsos6)
9258   version_type=linux
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   shlibpath_overrides_runpath=yes
9262   ;;
9263
9264 nto-qnx*)
9265   version_type=linux
9266   need_lib_prefix=no
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   shlibpath_overrides_runpath=yes
9272   ;;
9273
9274 openbsd* | bitrig*)
9275   version_type=sunos
9276   sys_lib_dlsearch_path_spec="/usr/lib"
9277   need_lib_prefix=no
9278   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9279   case $host_os in
9280     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9281     *)                         need_version=no  ;;
9282   esac
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9287     case $host_os in
9288       openbsd2.[89] | openbsd2.[89].*)
9289         shlibpath_overrides_runpath=no
9290         ;;
9291       *)
9292         shlibpath_overrides_runpath=yes
9293         ;;
9294       esac
9295   else
9296     shlibpath_overrides_runpath=yes
9297   fi
9298   ;;
9299
9300 os2*)
9301   libname_spec='$name'
9302   shrext_cmds=".dll"
9303   need_lib_prefix=no
9304   library_names_spec='$libname${shared_ext} $libname.a'
9305   dynamic_linker='OS/2 ld.exe'
9306   shlibpath_var=LIBPATH
9307   ;;
9308
9309 osf3* | osf4* | osf5*)
9310   version_type=osf
9311   need_lib_prefix=no
9312   need_version=no
9313   soname_spec='${libname}${release}${shared_ext}$major'
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9317   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9318   ;;
9319
9320 solaris*)
9321   version_type=linux
9322   need_lib_prefix=no
9323   need_version=no
9324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325   soname_spec='${libname}${release}${shared_ext}$major'
9326   shlibpath_var=LD_LIBRARY_PATH
9327   shlibpath_overrides_runpath=yes
9328   hardcode_into_libs=yes
9329   # ldd complains unless libraries are executable
9330   postinstall_cmds='chmod +x $lib'
9331   ;;
9332
9333 sunos4*)
9334   version_type=sunos
9335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9337   shlibpath_var=LD_LIBRARY_PATH
9338   shlibpath_overrides_runpath=yes
9339   if test "$with_gnu_ld" = yes; then
9340     need_lib_prefix=no
9341   fi
9342   need_version=yes
9343   ;;
9344
9345 sysv4 | sysv4.3*)
9346   version_type=linux
9347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   shlibpath_var=LD_LIBRARY_PATH
9350   case $host_vendor in
9351     sni)
9352       shlibpath_overrides_runpath=no
9353       need_lib_prefix=no
9354       export_dynamic_flag_spec='${wl}-Blargedynsym'
9355       runpath_var=LD_RUN_PATH
9356       ;;
9357     siemens)
9358       need_lib_prefix=no
9359       ;;
9360     motorola)
9361       need_lib_prefix=no
9362       need_version=no
9363       shlibpath_overrides_runpath=no
9364       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9365       ;;
9366   esac
9367   ;;
9368
9369 sysv4*MP*)
9370   if test -d /usr/nec ;then
9371     version_type=linux
9372     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9373     soname_spec='$libname${shared_ext}.$major'
9374     shlibpath_var=LD_LIBRARY_PATH
9375   fi
9376   ;;
9377
9378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9379   version_type=freebsd-elf
9380   need_lib_prefix=no
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   hardcode_into_libs=yes
9386   if test "$with_gnu_ld" = yes; then
9387     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9388     shlibpath_overrides_runpath=no
9389   else
9390     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9391     shlibpath_overrides_runpath=yes
9392     case $host_os in
9393       sco3.2v5*)
9394         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9395         ;;
9396     esac
9397   fi
9398   sys_lib_dlsearch_path_spec='/usr/lib'
9399   ;;
9400
9401 uts4*)
9402   version_type=linux
9403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404   soname_spec='${libname}${release}${shared_ext}$major'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   ;;
9407
9408 *)
9409   dynamic_linker=no
9410   ;;
9411 esac
9412 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9413 echo "${ECHO_T}$dynamic_linker" >&6; }
9414 test "$dynamic_linker" = no && can_build_shared=no
9415
9416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9417 if test "$GCC" = yes; then
9418   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9419 fi
9420
9421
9422 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9423 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9424 if test "${libltdl_cv_shlibext+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427
9428 module=yes
9429 eval libltdl_cv_shlibext=$shrext_cmds
9430
9431 fi
9432 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9433 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9434 if test -n "$libltdl_cv_shlibext"; then
9435
9436 cat >>confdefs.h <<_ACEOF
9437 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9438 _ACEOF
9439
9440 fi
9441
9442
9443 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9444 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_sys_search_path+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9449 fi
9450 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9451 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9452 if test -n "$libltdl_cv_sys_search_path"; then
9453   sys_search_path=
9454   for dir in $libltdl_cv_sys_search_path; do
9455     if test -z "$sys_search_path"; then
9456       sys_search_path="$dir"
9457     else
9458       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9459     fi
9460   done
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9464 _ACEOF
9465
9466 fi
9467
9468 { echo "$as_me:$LINENO: checking for objdir" >&5
9469 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_objdir+set}" = set; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   libltdl_cv_objdir="$objdir"
9474   if test -n "$objdir"; then
9475     :
9476   else
9477     rm -f .libs 2>/dev/null
9478     mkdir .libs 2>/dev/null
9479     if test -d .libs; then
9480       libltdl_cv_objdir=.libs
9481     else
9482       # MS-DOS does not allow filenames that begin with a dot.
9483       libltdl_cv_objdir=_libs
9484     fi
9485   rmdir .libs 2>/dev/null
9486   fi
9487
9488 fi
9489 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9490 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9491
9492 cat >>confdefs.h <<_ACEOF
9493 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9494 _ACEOF
9495
9496
9497
9498
9499
9500
9501 # Check for command to grab the raw symbol name followed by C symbol from nm.
9502 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507
9508 # These are sane defaults that work on at least a few old systems.
9509 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9510
9511 # Character class describing NM global symbol codes.
9512 symcode='[BCDEGRST]'
9513
9514 # Regexp to match symbols that can be accessed directly from C.
9515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9516
9517 # Transform an extracted symbol line into a proper C declaration
9518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9519
9520 # Transform an extracted symbol line into symbol name and symbol address
9521 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'"
9522
9523 # Define system-specific variables.
9524 case $host_os in
9525 aix*)
9526   symcode='[BCDT]'
9527   ;;
9528 cygwin* | mingw* | pw32*)
9529   symcode='[ABCDGISTW]'
9530   ;;
9531 hpux*) # Its linker distinguishes data from code symbols
9532   if test "$host_cpu" = ia64; then
9533     symcode='[ABCDEGRST]'
9534   fi
9535   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9536   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'"
9537   ;;
9538 linux*)
9539   if test "$host_cpu" = ia64; then
9540     symcode='[ABCDGIRSTW]'
9541     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9542     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'"
9543   fi
9544   ;;
9545 irix* | nonstopux*)
9546   symcode='[BCDEGRST]'
9547   ;;
9548 osf*)
9549   symcode='[BCDEGQRST]'
9550   ;;
9551 solaris*)
9552   symcode='[BDRT]'
9553   ;;
9554 sco3.2v5*)
9555   symcode='[DT]'
9556   ;;
9557 sysv4.2uw2*)
9558   symcode='[DT]'
9559   ;;
9560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9561   symcode='[ABDT]'
9562   ;;
9563 sysv4)
9564   symcode='[DFNSTU]'
9565   ;;
9566 esac
9567
9568 # Handle CRLF in mingw tool chain
9569 opt_cr=
9570 case $build_os in
9571 mingw*)
9572   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9573   ;;
9574 esac
9575
9576 # If we're using GNU nm, then use its standard symbol codes.
9577 case `$NM -V 2>&1` in
9578 *GNU* | *'with BFD'*)
9579   symcode='[ABCDGIRSTW]' ;;
9580 esac
9581
9582 # Try without a prefix undercore, then with it.
9583 for ac_symprfx in "" "_"; do
9584
9585   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9586   symxfrm="\\1 $ac_symprfx\\2 \\2"
9587
9588   # Write the raw and C identifiers.
9589   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9590
9591   # Check to see that the pipe works correctly.
9592   pipe_works=no
9593
9594   rm -f conftest*
9595   cat > conftest.$ac_ext <<EOF
9596 #ifdef __cplusplus
9597 extern "C" {
9598 #endif
9599 char nm_test_var;
9600 void nm_test_func(){}
9601 #ifdef __cplusplus
9602 }
9603 #endif
9604 int main(){nm_test_var='a';nm_test_func();return(0);}
9605 EOF
9606
9607   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608   (eval $ac_compile) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; then
9612     # Now try to grab the symbols.
9613     nlist=conftest.nm
9614     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9615   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } && test -s "$nlist"; then
9619       # Try sorting and uniquifying the output.
9620       if sort "$nlist" | uniq > "$nlist"T; then
9621         mv -f "$nlist"T "$nlist"
9622       else
9623         rm -f "$nlist"T
9624       fi
9625
9626       # Make sure that we snagged all the symbols we need.
9627       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9628         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9629           cat <<EOF > conftest.$ac_ext
9630 #ifdef __cplusplus
9631 extern "C" {
9632 #endif
9633
9634 EOF
9635           # Now generate the symbol file.
9636           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9637
9638           cat <<EOF >> conftest.$ac_ext
9639 #if defined (__STDC__) && __STDC__
9640 # define lt_ptr_t void *
9641 #else
9642 # define lt_ptr_t char *
9643 # define const
9644 #endif
9645
9646 /* The mapping between symbol names and symbols. */
9647 const struct {
9648   const char *name;
9649   lt_ptr_t address;
9650 }
9651 lt_preloaded_symbols[] =
9652 {
9653 EOF
9654           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9655           cat <<\EOF >> conftest.$ac_ext
9656   {0, (lt_ptr_t) 0}
9657 };
9658
9659 #ifdef __cplusplus
9660 }
9661 #endif
9662 EOF
9663           # Now try linking the two files.
9664           mv conftest.$ac_objext conftstm.$ac_objext
9665           lt_save_LIBS="$LIBS"
9666           lt_save_CFLAGS="$CFLAGS"
9667           LIBS="conftstm.$ac_objext"
9668           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9669           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9674             pipe_works=yes
9675           fi
9676           LIBS="$lt_save_LIBS"
9677           CFLAGS="$lt_save_CFLAGS"
9678         else
9679           echo "cannot find nm_test_func in $nlist" >&5
9680         fi
9681       else
9682         echo "cannot find nm_test_var in $nlist" >&5
9683       fi
9684     else
9685       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9686     fi
9687   else
9688     echo "$progname: failed program was:" >&5
9689     cat conftest.$ac_ext >&5
9690   fi
9691   rm -f conftest* conftst*
9692
9693   # Do not use the global_symbol_pipe unless it works.
9694   if test "$pipe_works" = yes; then
9695     break
9696   else
9697     lt_cv_sys_global_symbol_pipe=
9698   fi
9699 done
9700
9701 fi
9702
9703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9704   lt_cv_sys_global_symbol_to_cdecl=
9705 fi
9706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9707   { echo "$as_me:$LINENO: result: failed" >&5
9708 echo "${ECHO_T}failed" >&6; }
9709 else
9710   { echo "$as_me:$LINENO: result: ok" >&5
9711 echo "${ECHO_T}ok" >&6; }
9712 fi
9713
9714
9715 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9716 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9717 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9718   echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9721     libltdl_cv_preloaded_symbols=yes
9722   else
9723     libltdl_cv_preloaded_symbols=no
9724   fi
9725
9726 fi
9727 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9728 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9729 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9730
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_PRELOADED_SYMBOLS 1
9733 _ACEOF
9734
9735 fi
9736
9737 LIBADD_DL=
9738
9739 ac_ext=c
9740 ac_cpp='$CPP $CPPFLAGS'
9741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9744
9745
9746 { echo "$as_me:$LINENO: checking for shl_load" >&5
9747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9748 if test "${ac_cv_func_shl_load+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9759 #define shl_load innocuous_shl_load
9760
9761 /* System header to define __stub macros and hopefully few prototypes,
9762     which can conflict with char shl_load (); below.
9763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764     <limits.h> exists even on freestanding compilers.  */
9765
9766 #ifdef __STDC__
9767 # include <limits.h>
9768 #else
9769 # include <assert.h>
9770 #endif
9771
9772 #undef shl_load
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775    Use char because int might match the return type of a GCC
9776    builtin and then its argument prototype would still apply.  */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char shl_load ();
9781 /* The GNU C library defines this for functions which it implements
9782     to always fail with ENOSYS.  Some functions are actually named
9783     something starting with __ and the normal name is an alias.  */
9784 #if defined __stub_shl_load || defined __stub___shl_load
9785 choke me
9786 #endif
9787
9788 int
9789 main ()
9790 {
9791 return shl_load ();
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9798 case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_link") 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811   { (case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_try") 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; } &&
9820          { ac_try='test -s conftest$ac_exeext'
9821   { (case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826   (eval "$ac_try") 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   ac_cv_func_shl_load=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835         ac_cv_func_shl_load=no
9836 fi
9837
9838 rm -f core conftest.err conftest.$ac_objext \
9839       conftest$ac_exeext conftest.$ac_ext
9840 fi
9841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9843 if test $ac_cv_func_shl_load = yes; then
9844
9845 cat >>confdefs.h <<\_ACEOF
9846 #define HAVE_SHL_LOAD 1
9847 _ACEOF
9848
9849 else
9850   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9853   echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855   ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-ldld  $LIBS"
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h.  */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h.  */
9863
9864 /* Override any GCC internal prototype to avoid an error.
9865    Use char because int might match the return type of a GCC
9866    builtin and then its argument prototype would still apply.  */
9867 #ifdef __cplusplus
9868 extern "C"
9869 #endif
9870 char shl_load ();
9871 int
9872 main ()
9873 {
9874 return shl_load ();
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9881 case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_link") 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_try") 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; }; then
9913   ac_cv_lib_dld_shl_load=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_cv_lib_dld_shl_load=no
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext \
9922       conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9927 if test $ac_cv_lib_dld_shl_load = yes; then
9928
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_SHL_LOAD 1
9931 _ACEOF
9932
9933         LIBADD_DL="$LIBADD_DL -ldld"
9934 else
9935   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-ldl  $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950    Use char because int might match the return type of a GCC
9951    builtin and then its argument prototype would still apply.  */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char dlopen ();
9956 int
9957 main ()
9958 {
9959 return dlopen ();
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   ac_cv_lib_dl_dlopen=yes
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003         ac_cv_lib_dl_dlopen=no
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext \
10007       conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012 if test $ac_cv_lib_dl_dlopen = yes; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10016 _ACEOF
10017
10018                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10019 else
10020   cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026 #if HAVE_DLFCN_H
10027 #  include <dlfcn.h>
10028 #endif
10029
10030 int
10031 main ()
10032 {
10033 dlopen(0, 0);
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_link") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_LIBDL 1
10075 _ACEOF
10076  libltdl_cv_func_dlopen="yes"
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10082 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-lsvld  $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any GCC internal prototype to avoid an error.
10096    Use char because int might match the return type of a GCC
10097    builtin and then its argument prototype would still apply.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char dlopen ();
10102 int
10103 main ()
10104 {
10105 return dlopen ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_link") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125   { (case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_try") 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest$ac_exeext'
10135   { (case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_try") 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   ac_cv_lib_svld_dlopen=yes
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149         ac_cv_lib_svld_dlopen=no
10150 fi
10151
10152 rm -f core conftest.err conftest.$ac_objext \
10153       conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10155 fi
10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10158 if test $ac_cv_lib_svld_dlopen = yes; then
10159
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_LIBDL 1
10162 _ACEOF
10163
10164                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10165 else
10166   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10167 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10168 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-ldld  $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179
10180 /* Override any GCC internal prototype to avoid an error.
10181    Use char because int might match the return type of a GCC
10182    builtin and then its argument prototype would still apply.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 char dld_link ();
10187 int
10188 main ()
10189 {
10190 return dld_link ();
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_link") 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210   { (case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_try") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; } &&
10219          { ac_try='test -s conftest$ac_exeext'
10220   { (case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225   (eval "$ac_try") 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_lib_dld_dld_link=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234         ac_cv_lib_dld_dld_link=no
10235 fi
10236
10237 rm -f core conftest.err conftest.$ac_objext \
10238       conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10240 fi
10241 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243 if test $ac_cv_lib_dld_dld_link = yes; then
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_DLD 1
10247 _ACEOF
10248
10249                 LIBADD_DL="$LIBADD_DL -ldld"
10250 else
10251   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10252 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10253 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10264 #define _dyld_func_lookup innocuous__dyld_func_lookup
10265
10266 /* System header to define __stub macros and hopefully few prototypes,
10267     which can conflict with char _dyld_func_lookup (); below.
10268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269     <limits.h> exists even on freestanding compilers.  */
10270
10271 #ifdef __STDC__
10272 # include <limits.h>
10273 #else
10274 # include <assert.h>
10275 #endif
10276
10277 #undef _dyld_func_lookup
10278
10279 /* Override any GCC internal prototype to avoid an error.
10280    Use char because int might match the return type of a GCC
10281    builtin and then its argument prototype would still apply.  */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char _dyld_func_lookup ();
10286 /* The GNU C library defines this for functions which it implements
10287     to always fail with ENOSYS.  Some functions are actually named
10288     something starting with __ and the normal name is an alias.  */
10289 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10290 choke me
10291 #endif
10292
10293 int
10294 main ()
10295 {
10296 return _dyld_func_lookup ();
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305   *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308   (eval "$ac_link") 2>conftest.er1
10309   ac_status=$?
10310   grep -v '^ *+' conftest.er1 >conftest.err
10311   rm -f conftest.er1
10312   cat conftest.err >&5
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } &&
10315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10316   { (case "(($ac_try" in
10317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318   *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321   (eval "$ac_try") 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest$ac_exeext'
10326   { (case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_try") 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   ac_cv_func__dyld_func_lookup=yes
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         ac_cv_func__dyld_func_lookup=no
10341 fi
10342
10343 rm -f core conftest.err conftest.$ac_objext \
10344       conftest$ac_exeext conftest.$ac_ext
10345 fi
10346 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10347 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10348 if test $ac_cv_func__dyld_func_lookup = yes; then
10349
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_DYLD 1
10352 _ACEOF
10353
10354 fi
10355
10356
10357 fi
10358
10359
10360 fi
10361
10362
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext \
10366       conftest$ac_exeext conftest.$ac_ext
10367
10368 fi
10369
10370
10371 fi
10372
10373
10374 fi
10375
10376
10377 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10378 then
10379   lt_save_LIBS="$LIBS"
10380   LIBS="$LIBS $LIBADD_DL"
10381
10382 for ac_func in dlerror
10383 do
10384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10398 #define $ac_func innocuous_$ac_func
10399
10400 /* System header to define __stub macros and hopefully few prototypes,
10401     which can conflict with char $ac_func (); below.
10402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403     <limits.h> exists even on freestanding compilers.  */
10404
10405 #ifdef __STDC__
10406 # include <limits.h>
10407 #else
10408 # include <assert.h>
10409 #endif
10410
10411 #undef $ac_func
10412
10413 /* Override any GCC internal prototype to avoid an error.
10414    Use char because int might match the return type of a GCC
10415    builtin and then its argument prototype would still apply.  */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char $ac_func ();
10420 /* The GNU C library defines this for functions which it implements
10421     to always fail with ENOSYS.  Some functions are actually named
10422     something starting with __ and the normal name is an alias.  */
10423 #if defined __stub_$ac_func || defined __stub___$ac_func
10424 choke me
10425 #endif
10426
10427 int
10428 main ()
10429 {
10430 return $ac_func ();
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_link") 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450   { (case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_try") 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; } &&
10459          { ac_try='test -s conftest$ac_exeext'
10460   { (case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_try") 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   eval "$as_ac_var=yes"
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474         eval "$as_ac_var=no"
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext \
10478       conftest$ac_exeext conftest.$ac_ext
10479 fi
10480 ac_res=`eval echo '${'$as_ac_var'}'`
10481                { echo "$as_me:$LINENO: result: $ac_res" >&5
10482 echo "${ECHO_T}$ac_res" >&6; }
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484   cat >>confdefs.h <<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 _ACEOF
10487
10488 fi
10489 done
10490
10491   LIBS="$lt_save_LIBS"
10492 fi
10493 ac_ext=c
10494 ac_cpp='$CPP $CPPFLAGS'
10495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498
10499
10500
10501 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10502 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10503 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_cv_sys_symbol_underscore=no
10507   cat > conftest.$ac_ext <<EOF
10508 void nm_test_func(){}
10509 int main(){nm_test_func;return 0;}
10510 EOF
10511   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512   (eval $ac_compile) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; then
10516     # Now try to grab the symbols.
10517     ac_nlist=conftest.nm
10518     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10519   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10520   ac_status=$?
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } && test -s "$ac_nlist"; then
10523       # See whether the symbols have a leading underscore.
10524       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10525         ac_cv_sys_symbol_underscore=yes
10526       else
10527         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10528           :
10529         else
10530           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10531         fi
10532       fi
10533     else
10534       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10535     fi
10536   else
10537     echo "configure: failed program was:" >&5
10538     cat conftest.c >&5
10539   fi
10540   rm -rf conftest*
10541
10542 fi
10543 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10544 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10545
10546
10547 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10548   if test x"$libltdl_cv_func_dlopen" = xyes ||
10549      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10550         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10551 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10552 if test "${libltdl_cv_need_uscore+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   libltdl_cv_need_uscore=unknown
10556           save_LIBS="$LIBS"
10557           LIBS="$LIBS $LIBADD_DL"
10558           if test "$cross_compiling" = yes; then :
10559   libltdl_cv_need_uscore=cross
10560 else
10561   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10562   lt_status=$lt_dlunknown
10563   cat > conftest.$ac_ext <<EOF
10564 #line 10564 "configure"
10565 #include "confdefs.h"
10566
10567 #if HAVE_DLFCN_H
10568 #include <dlfcn.h>
10569 #endif
10570
10571 #include <stdio.h>
10572
10573 #ifdef RTLD_GLOBAL
10574 #  define LT_DLGLOBAL           RTLD_GLOBAL
10575 #else
10576 #  ifdef DL_GLOBAL
10577 #    define LT_DLGLOBAL         DL_GLOBAL
10578 #  else
10579 #    define LT_DLGLOBAL         0
10580 #  endif
10581 #endif
10582
10583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10584    find out it does not work in some platform. */
10585 #ifndef LT_DLLAZY_OR_NOW
10586 #  ifdef RTLD_LAZY
10587 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10588 #  else
10589 #    ifdef DL_LAZY
10590 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10591 #    else
10592 #      ifdef RTLD_NOW
10593 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10594 #      else
10595 #        ifdef DL_NOW
10596 #          define LT_DLLAZY_OR_NOW      DL_NOW
10597 #        else
10598 #          define LT_DLLAZY_OR_NOW      0
10599 #        endif
10600 #      endif
10601 #    endif
10602 #  endif
10603 #endif
10604
10605 #ifdef __cplusplus
10606 extern "C" void exit (int);
10607 #endif
10608
10609 void fnord() { int i=42;}
10610 int main ()
10611 {
10612   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10613   int status = $lt_dlunknown;
10614
10615   if (self)
10616     {
10617       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10618       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10619       /* dlclose (self); */
10620     }
10621   else
10622     puts (dlerror ());
10623
10624     exit (status);
10625 }
10626 EOF
10627   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628   (eval $ac_link) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10632     (./conftest; exit; ) >&5 2>/dev/null
10633     lt_status=$?
10634     case x$lt_status in
10635       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10636       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10637       x$lt_dlunknown|x*)  ;;
10638     esac
10639   else :
10640     # compilation failed
10641
10642   fi
10643 fi
10644 rm -fr conftest*
10645
10646           LIBS="$save_LIBS"
10647
10648 fi
10649 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10650 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10651   fi
10652 fi
10653
10654 if test x"$libltdl_cv_need_uscore" = xyes; then
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define NEED_USCORE 1
10658 _ACEOF
10659
10660 fi
10661
10662
10663 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10664 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10665 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   # PORTME does your system automatically load deplibs for dlopen?
10669   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10670   # For now, we just catch OSes we know something about -- in the
10671   # future, we'll try test this programmatically.
10672   libltdl_cv_sys_dlopen_deplibs=unknown
10673   case "$host_os" in
10674   aix3*|aix4.1.*|aix4.2.*)
10675     # Unknown whether this is true for these versions of AIX, but
10676     # we want this `case' here to explicitly catch those versions.
10677     libltdl_cv_sys_dlopen_deplibs=unknown
10678     ;;
10679   aix[45]*)
10680     libltdl_cv_sys_dlopen_deplibs=yes
10681     ;;
10682   darwin*)
10683     # Assuming the user has installed a libdl from somewhere, this is true
10684     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10685     libltdl_cv_sys_dlopen_deplibs=yes
10686     ;;
10687   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10688     # GNU and its variants, using gnu ld.so (Glibc)
10689     libltdl_cv_sys_dlopen_deplibs=yes
10690     ;;
10691   hpux10*|hpux11*)
10692     libltdl_cv_sys_dlopen_deplibs=yes
10693     ;;
10694   interix*)
10695     libltdl_cv_sys_dlopen_deplibs=yes
10696     ;;
10697   irix[12345]*|irix6.[01]*)
10698     # Catch all versions of IRIX before 6.2, and indicate that we don't
10699     # know how it worked for any of those versions.
10700     libltdl_cv_sys_dlopen_deplibs=unknown
10701     ;;
10702   irix*)
10703     # The case above catches anything before 6.2, and it's known that
10704     # at 6.2 and later dlopen does load deplibs.
10705     libltdl_cv_sys_dlopen_deplibs=yes
10706     ;;
10707   netbsd*)
10708     libltdl_cv_sys_dlopen_deplibs=yes
10709     ;;
10710   openbsd*)
10711     libltdl_cv_sys_dlopen_deplibs=yes
10712     ;;
10713   osf[1234]*)
10714     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10715     # it did *not* use an RPATH in a shared library to find objects the
10716     # library depends on, so we explicitly say `no'.
10717     libltdl_cv_sys_dlopen_deplibs=no
10718     ;;
10719   osf5.0|osf5.0a|osf5.1)
10720     # dlopen *does* load deplibs and with the right loader patch applied
10721     # it even uses RPATH in a shared library to search for shared objects
10722     # that the library depends on, but there's no easy way to know if that
10723     # patch is installed.  Since this is the case, all we can really
10724     # say is unknown -- it depends on the patch being installed.  If
10725     # it is, this changes to `yes'.  Without it, it would be `no'.
10726     libltdl_cv_sys_dlopen_deplibs=unknown
10727     ;;
10728   osf*)
10729     # the two cases above should catch all versions of osf <= 5.1.  Read
10730     # the comments above for what we know about them.
10731     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10732     # is used to find them so we can finally say `yes'.
10733     libltdl_cv_sys_dlopen_deplibs=yes
10734     ;;
10735   solaris*)
10736     libltdl_cv_sys_dlopen_deplibs=yes
10737     ;;
10738   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10739     libltdl_cv_sys_dlopen_deplibs=yes
10740     ;;
10741   esac
10742
10743 fi
10744 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10745 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10746 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10747
10748 cat >>confdefs.h <<\_ACEOF
10749 #define LTDL_DLOPEN_DEPLIBS 1
10750 _ACEOF
10751
10752 fi
10753
10754
10755 for ac_header in argz.h
10756 do
10757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 fi
10764 ac_res=`eval echo '${'$as_ac_Header'}'`
10765                { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10767 else
10768   # Is the header compilable?
10769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777 $ac_includes_default
10778 #include <$ac_header>
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787   (eval "$ac_compile") 2>conftest.er1
10788   ac_status=$?
10789   grep -v '^ *+' conftest.er1 >conftest.err
10790   rm -f conftest.er1
10791   cat conftest.err >&5
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } &&
10794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10795   { (case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800   (eval "$ac_try") 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; } &&
10804          { ac_try='test -s conftest.$ac_objext'
10805   { (case "(($ac_try" in
10806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807   *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810   (eval "$ac_try") 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; }; then
10814   ac_header_compiler=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819         ac_header_compiler=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10824 echo "${ECHO_T}$ac_header_compiler" >&6; }
10825
10826 # Is the header present?
10827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835 #include <$ac_header>
10836 _ACEOF
10837 if { (ac_try="$ac_cpp conftest.$ac_ext"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10844   ac_status=$?
10845   grep -v '^ *+' conftest.er1 >conftest.err
10846   rm -f conftest.er1
10847   cat conftest.err >&5
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); } >/dev/null; then
10850   if test -s conftest.err; then
10851     ac_cpp_err=$ac_c_preproc_warn_flag
10852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10853   else
10854     ac_cpp_err=
10855   fi
10856 else
10857   ac_cpp_err=yes
10858 fi
10859 if test -z "$ac_cpp_err"; then
10860   ac_header_preproc=yes
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865   ac_header_preproc=no
10866 fi
10867
10868 rm -f conftest.err conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6; }
10871
10872 # So?  What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874   yes:no: )
10875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879     ac_header_preproc=yes
10880     ;;
10881   no:yes:* )
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10894     ( cat <<\_ASBOX
10895 ## ------------------------------------ ##
10896 ## Report this to http://llvm.org/bugs/ ##
10897 ## ------------------------------------ ##
10898 _ASBOX
10899      ) | sed "s/^/$as_me: WARNING:     /" >&2
10900     ;;
10901 esac
10902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   eval "$as_ac_Header=\$ac_header_preproc"
10908 fi
10909 ac_res=`eval echo '${'$as_ac_Header'}'`
10910                { echo "$as_me:$LINENO: result: $ac_res" >&5
10911 echo "${ECHO_T}$ac_res" >&6; }
10912
10913 fi
10914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10915   cat >>confdefs.h <<_ACEOF
10916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10917 _ACEOF
10918
10919 fi
10920
10921 done
10922
10923
10924 { echo "$as_me:$LINENO: checking for error_t" >&5
10925 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10926 if test "${ac_cv_type_error_t+set}" = set; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 #if HAVE_ARGZ_H
10936 #  include <argz.h>
10937 #endif
10938
10939 typedef error_t ac__type_new_;
10940 int
10941 main ()
10942 {
10943 if ((ac__type_new_ *) 0)
10944   return 0;
10945 if (sizeof (ac__type_new_))
10946   return 0;
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 rm -f conftest.$ac_objext
10952 if { (ac_try="$ac_compile"
10953 case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958   (eval "$ac_compile") 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966   { (case "(($ac_try" in
10967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968   *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971   (eval "$ac_try") 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; } &&
10975          { ac_try='test -s conftest.$ac_objext'
10976   { (case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_try") 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   ac_cv_type_error_t=yes
10986 else
10987   echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990         ac_cv_type_error_t=no
10991 fi
10992
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10996 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10997 if test $ac_cv_type_error_t = yes; then
10998
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_ERROR_T 1
11001 _ACEOF
11002
11003
11004 else
11005
11006 cat >>confdefs.h <<\_ACEOF
11007 #define error_t int
11008 _ACEOF
11009
11010 fi
11011
11012
11013
11014
11015
11016
11017
11018 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11019 do
11020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11034 #define $ac_func innocuous_$ac_func
11035
11036 /* System header to define __stub macros and hopefully few prototypes,
11037     which can conflict with char $ac_func (); below.
11038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039     <limits.h> exists even on freestanding compilers.  */
11040
11041 #ifdef __STDC__
11042 # include <limits.h>
11043 #else
11044 # include <assert.h>
11045 #endif
11046
11047 #undef $ac_func
11048
11049 /* Override any GCC internal prototype to avoid an error.
11050    Use char because int might match the return type of a GCC
11051    builtin and then its argument prototype would still apply.  */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char $ac_func ();
11056 /* The GNU C library defines this for functions which it implements
11057     to always fail with ENOSYS.  Some functions are actually named
11058     something starting with __ and the normal name is an alias.  */
11059 #if defined __stub_$ac_func || defined __stub___$ac_func
11060 choke me
11061 #endif
11062
11063 int
11064 main ()
11065 {
11066 return $ac_func ();
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075   *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078   (eval "$ac_link") 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } &&
11085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086   { (case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_try") 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; } &&
11095          { ac_try='test -s conftest$ac_exeext'
11096   { (case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_try") 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; }; then
11105   eval "$as_ac_var=yes"
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110         eval "$as_ac_var=no"
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext \
11114       conftest$ac_exeext conftest.$ac_ext
11115 fi
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117                { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120   cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 _ACEOF
11123
11124 fi
11125 done
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 for ac_header in errno.h malloc.h memory.h unistd.h
11150 do
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 fi
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159                { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 else
11162   # Is the header compilable?
11163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 $ac_includes_default
11172 #include <$ac_header>
11173 _ACEOF
11174 rm -f conftest.$ac_objext
11175 if { (ac_try="$ac_compile"
11176 case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_compile") 2>conftest.er1
11182   ac_status=$?
11183   grep -v '^ *+' conftest.er1 >conftest.err
11184   rm -f conftest.er1
11185   cat conftest.err >&5
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } &&
11188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11189   { (case "(($ac_try" in
11190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191   *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194   (eval "$ac_try") 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; } &&
11198          { ac_try='test -s conftest.$ac_objext'
11199   { (case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_try") 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_header_compiler=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213         ac_header_compiler=no
11214 fi
11215
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11218 echo "${ECHO_T}$ac_header_compiler" >&6; }
11219
11220 # Is the header present?
11221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 #include <$ac_header>
11230 _ACEOF
11231 if { (ac_try="$ac_cpp conftest.$ac_ext"
11232 case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11238   ac_status=$?
11239   grep -v '^ *+' conftest.er1 >conftest.err
11240   rm -f conftest.er1
11241   cat conftest.err >&5
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); } >/dev/null; then
11244   if test -s conftest.err; then
11245     ac_cpp_err=$ac_c_preproc_warn_flag
11246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11247   else
11248     ac_cpp_err=
11249   fi
11250 else
11251   ac_cpp_err=yes
11252 fi
11253 if test -z "$ac_cpp_err"; then
11254   ac_header_preproc=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259   ac_header_preproc=no
11260 fi
11261
11262 rm -f conftest.err conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264 echo "${ECHO_T}$ac_header_preproc" >&6; }
11265
11266 # So?  What about this header?
11267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11268   yes:no: )
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11273     ac_header_preproc=yes
11274     ;;
11275   no:yes:* )
11276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11288     ( cat <<\_ASBOX
11289 ## ------------------------------------ ##
11290 ## Report this to http://llvm.org/bugs/ ##
11291 ## ------------------------------------ ##
11292 _ASBOX
11293      ) | sed "s/^/$as_me: WARNING:     /" >&2
11294     ;;
11295 esac
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   eval "$as_ac_Header=\$ac_header_preproc"
11302 fi
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304                { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306
11307 fi
11308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11309   cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11311 _ACEOF
11312
11313 fi
11314
11315 done
11316
11317
11318 for ac_header in mach-o/dyld.h
11319 do
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 fi
11327 ac_res=`eval echo '${'$as_ac_Header'}'`
11328                { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11330 else
11331   # Is the header compilable?
11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 $ac_includes_default
11341 #include <$ac_header>
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_compile") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } &&
11357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358   { (case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_try") 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; } &&
11367          { ac_try='test -s conftest.$ac_objext'
11368   { (case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_try") 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_header_compiler=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382         ac_header_compiler=no
11383 fi
11384
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387 echo "${ECHO_T}$ac_header_compiler" >&6; }
11388
11389 # Is the header present?
11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398 #include <$ac_header>
11399 _ACEOF
11400 if { (ac_try="$ac_cpp conftest.$ac_ext"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } >/dev/null; then
11413   if test -s conftest.err; then
11414     ac_cpp_err=$ac_c_preproc_warn_flag
11415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416   else
11417     ac_cpp_err=
11418   fi
11419 else
11420   ac_cpp_err=yes
11421 fi
11422 if test -z "$ac_cpp_err"; then
11423   ac_header_preproc=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428   ac_header_preproc=no
11429 fi
11430
11431 rm -f conftest.err conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 echo "${ECHO_T}$ac_header_preproc" >&6; }
11434
11435 # So?  What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437   yes:no: )
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442     ac_header_preproc=yes
11443     ;;
11444   no:yes:* )
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457     ( cat <<\_ASBOX
11458 ## ------------------------------------ ##
11459 ## Report this to http://llvm.org/bugs/ ##
11460 ## ------------------------------------ ##
11461 _ASBOX
11462      ) | sed "s/^/$as_me: WARNING:     /" >&2
11463     ;;
11464 esac
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   eval "$as_ac_Header=\$ac_header_preproc"
11471 fi
11472 ac_res=`eval echo '${'$as_ac_Header'}'`
11473                { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11475
11476 fi
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478   cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 _ACEOF
11481
11482 fi
11483
11484 done
11485
11486
11487
11488
11489
11490 for ac_func in closedir opendir readdir
11491 do
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h.  */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h.  */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11506 #define $ac_func innocuous_$ac_func
11507
11508 /* System header to define __stub macros and hopefully few prototypes,
11509     which can conflict with char $ac_func (); below.
11510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511     <limits.h> exists even on freestanding compilers.  */
11512
11513 #ifdef __STDC__
11514 # include <limits.h>
11515 #else
11516 # include <assert.h>
11517 #endif
11518
11519 #undef $ac_func
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522    Use char because int might match the return type of a GCC
11523    builtin and then its argument prototype would still apply.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char $ac_func ();
11528 /* The GNU C library defines this for functions which it implements
11529     to always fail with ENOSYS.  Some functions are actually named
11530     something starting with __ and the normal name is an alias.  */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 choke me
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538 return $ac_func ();
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_link") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558   { (case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_try") 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest$ac_exeext'
11568   { (case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_try") 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   eval "$as_ac_var=yes"
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582         eval "$as_ac_var=no"
11583 fi
11584
11585 rm -f core conftest.err conftest.$ac_objext \
11586       conftest$ac_exeext conftest.$ac_ext
11587 fi
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589                { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592   cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597 done
11598
11599
11600
11601 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11602 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11603
11604 ICC=no
11605 IXX=no
11606 case $CC in
11607   icc*|icpc*)
11608     ICC=yes
11609     IXX=yes
11610     ;;
11611    *)
11612     ;;
11613 esac
11614
11615 if test "$GCC" != "yes" && test "$ICC" != "yes"
11616 then
11617   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11618 echo "$as_me: error: gcc|icc required but not found" >&2;}
11619    { (exit 1); exit 1; }; }
11620 fi
11621
11622 if test "$GXX" != "yes" && test "$IXX" != "yes"
11623 then
11624   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11625 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11626    { (exit 1); exit 1; }; }
11627 fi
11628
11629 if test "$GCC" = "yes"
11630 then
11631   cat >conftest.$ac_ext <<_ACEOF
11632
11633   /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638
11639     #if !defined(__GNUC__) || __GNUC__ < 3
11640     #error Unsupported GCC version
11641     #endif
11642
11643
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (ac_try="$ac_compile"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_compile") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660   { (case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_try") 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; } &&
11669          { ac_try='test -s conftest.$ac_objext'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   :
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11685 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11686    { (exit 1); exit 1; }; }
11687 fi
11688
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 fi
11691
11692 if test -z "$llvm_cv_gnu_make_command"
11693 then
11694   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11695 echo "$as_me: error: GNU Make required but not found" >&2;}
11696    { (exit 1); exit 1; }; }
11697 fi
11698
11699 { echo "$as_me:$LINENO: result: ok" >&5
11700 echo "${ECHO_T}ok" >&6; }
11701
11702 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11703 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11704 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11705
11706 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11707
11708 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11709
11710
11711 NO_UNINITIALIZED=
11712 NO_MAYBE_UNINITIALIZED=
11713 if test "$GXX" = "yes"
11714 then
11715   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11716
11717         if test -z "$NO_MAYBE_UNINITIALIZED"
11718   then
11719     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11720
11721   fi
11722 fi
11723 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11724 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11725
11726
11727 # Check whether --with-python was given.
11728 if test "${with_python+set}" = set; then
11729   withval=$with_python; PYTHON="$withval"
11730 fi
11731
11732
11733 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11734   { echo "$as_me:$LINENO: checking for python" >&5
11735 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11736   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11737 echo "${ECHO_T}user defined: $with_python" >&6; }
11738 else
11739   if test -n "$PYTHON" ; then
11740     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11741 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11742   fi
11743
11744   # Extract the first word of "python python2 python26", so it can be a program name with args.
11745 set dummy python python2 python26; ac_word=$2
11746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11748 if test "${ac_cv_path_PYTHON+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   case $PYTHON in
11752   [\\/]* | ?:[\\/]*)
11753   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11754   ;;
11755   *)
11756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11758 do
11759   IFS=$as_save_IFS
11760   test -z "$as_dir" && as_dir=.
11761   for ac_exec_ext in '' $ac_executable_extensions; do
11762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11763     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11765     break 2
11766   fi
11767 done
11768 done
11769 IFS=$as_save_IFS
11770
11771   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11772 echo "${ECHO_T}not found" >&6; }
11773                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11774 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11775    { (exit 1); exit 1; }; }"
11776   ;;
11777 esac
11778 fi
11779 PYTHON=$ac_cv_path_PYTHON
11780 if test -n "$PYTHON"; then
11781   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11782 echo "${ECHO_T}$PYTHON" >&6; }
11783 else
11784   { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11786 fi
11787
11788
11789 fi
11790
11791 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11792 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11793 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11794 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11795 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11796 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11797 if   test "$ac_python_version_major" -eq "2" \
11798    && test "$ac_python_version_minor" -ge "5" ; then
11799   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11800 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11801 else
11802   { echo "$as_me:$LINENO: result: not found" >&5
11803 echo "${ECHO_T}not found" >&6; }
11804   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11805 See \`config.log' for more details." >&5
11806 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11807 See \`config.log' for more details." >&2;}
11808    { (exit 1); exit 1; }; }
11809 fi
11810
11811
11812
11813 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11814 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_m_sin+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   ac_check_lib_save_LIBS=$LIBS
11819 LIBS="-lm  $LIBS"
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826
11827 /* Override any GCC internal prototype to avoid an error.
11828    Use char because int might match the return type of a GCC
11829    builtin and then its argument prototype would still apply.  */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 char sin ();
11834 int
11835 main ()
11836 {
11837 return sin ();
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_link") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857   { (case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_try") 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; } &&
11866          { ac_try='test -s conftest$ac_exeext'
11867   { (case "(($ac_try" in
11868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869   *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872   (eval "$ac_try") 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   ac_cv_lib_m_sin=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881         ac_cv_lib_m_sin=no
11882 fi
11883
11884 rm -f core conftest.err conftest.$ac_objext \
11885       conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11887 fi
11888 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11889 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11890 if test $ac_cv_lib_m_sin = yes; then
11891   cat >>confdefs.h <<_ACEOF
11892 #define HAVE_LIBM 1
11893 _ACEOF
11894
11895   LIBS="-lm $LIBS"
11896
11897 fi
11898
11899 if test "$llvm_cv_os_type" = "MingW" ; then
11900
11901 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11902 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11903 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-limagehlp  $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915
11916 int
11917 main ()
11918 {
11919 return main ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (ac_try="$ac_link"
11926 case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_link") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939   { (case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_try") 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest$ac_exeext'
11949   { (case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954   (eval "$ac_try") 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   ac_cv_lib_imagehlp_main=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963         ac_cv_lib_imagehlp_main=no
11964 fi
11965
11966 rm -f core conftest.err conftest.$ac_objext \
11967       conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11969 fi
11970 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11971 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11972 if test $ac_cv_lib_imagehlp_main = yes; then
11973   cat >>confdefs.h <<_ACEOF
11974 #define HAVE_LIBIMAGEHLP 1
11975 _ACEOF
11976
11977   LIBS="-limagehlp $LIBS"
11978
11979 fi
11980
11981
11982 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11983 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11984 if test "${ac_cv_lib_psapi_main+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-lpsapi  $LIBS"
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995
11996
11997 int
11998 main ()
11999 {
12000 return main ();
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_link") 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } &&
12019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12020   { (case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_try") 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; } &&
12029          { ac_try='test -s conftest$ac_exeext'
12030   { (case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_lib_psapi_main=yes
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044         ac_cv_lib_psapi_main=no
12045 fi
12046
12047 rm -f core conftest.err conftest.$ac_objext \
12048       conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12052 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12053 if test $ac_cv_lib_psapi_main = yes; then
12054   cat >>confdefs.h <<_ACEOF
12055 #define HAVE_LIBPSAPI 1
12056 _ACEOF
12057
12058   LIBS="-lpsapi $LIBS"
12059
12060 fi
12061
12062 fi
12063
12064 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12065 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12066 if test "${ac_cv_search_dlopen+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069   ac_func_search_save_LIBS=$LIBS
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h.  */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h.  */
12076
12077 /* Override any GCC internal prototype to avoid an error.
12078    Use char because int might match the return type of a GCC
12079    builtin and then its argument prototype would still apply.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char dlopen ();
12084 int
12085 main ()
12086 {
12087 return dlopen ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 for ac_lib in '' dl; do
12093   if test -z "$ac_lib"; then
12094     ac_res="none required"
12095   else
12096     ac_res=-l$ac_lib
12097     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12098   fi
12099   rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103   *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106   (eval "$ac_link") 2>conftest.er1
12107   ac_status=$?
12108   grep -v '^ *+' conftest.er1 >conftest.err
12109   rm -f conftest.er1
12110   cat conftest.err >&5
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12114   { (case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_try") 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; } &&
12123          { ac_try='test -s conftest$ac_exeext'
12124   { (case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_try") 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   ac_cv_search_dlopen=$ac_res
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138
12139 fi
12140
12141 rm -f core conftest.err conftest.$ac_objext \
12142       conftest$ac_exeext
12143   if test "${ac_cv_search_dlopen+set}" = set; then
12144   break
12145 fi
12146 done
12147 if test "${ac_cv_search_dlopen+set}" = set; then
12148   :
12149 else
12150   ac_cv_search_dlopen=no
12151 fi
12152 rm conftest.$ac_ext
12153 LIBS=$ac_func_search_save_LIBS
12154 fi
12155 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12156 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12157 ac_res=$ac_cv_search_dlopen
12158 if test "$ac_res" != no; then
12159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12160
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_DLOPEN 1
12163 _ACEOF
12164
12165 else
12166   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12167 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12168 fi
12169
12170
12171 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12172 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12173 if test "${ac_cv_search_clock_gettime+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   ac_func_search_save_LIBS=$LIBS
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185    Use char because int might match the return type of a GCC
12186    builtin and then its argument prototype would still apply.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char clock_gettime ();
12191 int
12192 main ()
12193 {
12194 return clock_gettime ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 for ac_lib in '' rt; do
12200   if test -z "$ac_lib"; then
12201     ac_res="none required"
12202   else
12203     ac_res=-l$ac_lib
12204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12205   fi
12206   rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_link") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; } &&
12230          { ac_try='test -s conftest$ac_exeext'
12231   { (case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_try") 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_search_clock_gettime=$ac_res
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245
12246 fi
12247
12248 rm -f core conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext
12250   if test "${ac_cv_search_clock_gettime+set}" = set; then
12251   break
12252 fi
12253 done
12254 if test "${ac_cv_search_clock_gettime+set}" = set; then
12255   :
12256 else
12257   ac_cv_search_clock_gettime=no
12258 fi
12259 rm conftest.$ac_ext
12260 LIBS=$ac_func_search_save_LIBS
12261 fi
12262 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12263 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12264 ac_res=$ac_cv_search_clock_gettime
12265 if test "$ac_res" != no; then
12266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12267
12268 fi
12269
12270
12271 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12272     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12273 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12274 if test "${ac_cv_search_setupterm+set}" = set; then
12275   echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277   ac_func_search_save_LIBS=$LIBS
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284
12285 /* Override any GCC internal prototype to avoid an error.
12286    Use char because int might match the return type of a GCC
12287    builtin and then its argument prototype would still apply.  */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 char setupterm ();
12292 int
12293 main ()
12294 {
12295 return setupterm ();
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 for ac_lib in '' tinfo curses ncurses ncursesw; do
12301   if test -z "$ac_lib"; then
12302     ac_res="none required"
12303   else
12304     ac_res=-l$ac_lib
12305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12306   fi
12307   rm -f conftest.$ac_objext conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314   (eval "$ac_link") 2>conftest.er1
12315   ac_status=$?
12316   grep -v '^ *+' conftest.er1 >conftest.err
12317   rm -f conftest.er1
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } &&
12321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322   { (case "(($ac_try" in
12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324   *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327   (eval "$ac_try") 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; } &&
12331          { ac_try='test -s conftest$ac_exeext'
12332   { (case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_try") 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   ac_cv_search_setupterm=$ac_res
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346
12347 fi
12348
12349 rm -f core conftest.err conftest.$ac_objext \
12350       conftest$ac_exeext
12351   if test "${ac_cv_search_setupterm+set}" = set; then
12352   break
12353 fi
12354 done
12355 if test "${ac_cv_search_setupterm+set}" = set; then
12356   :
12357 else
12358   ac_cv_search_setupterm=no
12359 fi
12360 rm conftest.$ac_ext
12361 LIBS=$ac_func_search_save_LIBS
12362 fi
12363 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12364 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12365 ac_res=$ac_cv_search_setupterm
12366 if test "$ac_res" != no; then
12367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12368
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAVE_TERMINFO 1
12371 _ACEOF
12372
12373 fi
12374
12375 fi
12376
12377 if test "$llvm_cv_enable_libffi" = "yes" ; then
12378   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12379 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12380 if test "${ac_cv_search_ffi_call+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   ac_func_search_save_LIBS=$LIBS
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392    Use char because int might match the return type of a GCC
12393    builtin and then its argument prototype would still apply.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char ffi_call ();
12398 int
12399 main ()
12400 {
12401 return ffi_call ();
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 for ac_lib in '' ffi; do
12407   if test -z "$ac_lib"; then
12408     ac_res="none required"
12409   else
12410     ac_res=-l$ac_lib
12411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12412   fi
12413   rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_link") 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12437          { ac_try='test -s conftest$ac_exeext'
12438   { (case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_try") 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; }; then
12447   ac_cv_search_ffi_call=$ac_res
12448 else
12449   echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452
12453 fi
12454
12455 rm -f core conftest.err conftest.$ac_objext \
12456       conftest$ac_exeext
12457   if test "${ac_cv_search_ffi_call+set}" = set; then
12458   break
12459 fi
12460 done
12461 if test "${ac_cv_search_ffi_call+set}" = set; then
12462   :
12463 else
12464   ac_cv_search_ffi_call=no
12465 fi
12466 rm conftest.$ac_ext
12467 LIBS=$ac_func_search_save_LIBS
12468 fi
12469 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12470 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12471 ac_res=$ac_cv_search_ffi_call
12472 if test "$ac_res" != no; then
12473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12474
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_FFI_CALL 1
12477 _ACEOF
12478
12479 else
12480   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12481 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12482    { (exit 1); exit 1; }; }
12483 fi
12484
12485 fi
12486
12487 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12488 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12489 if test "${ac_cv_search_mallinfo+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492   ac_func_search_save_LIBS=$LIBS
12493 cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499
12500 /* Override any GCC internal prototype to avoid an error.
12501    Use char because int might match the return type of a GCC
12502    builtin and then its argument prototype would still apply.  */
12503 #ifdef __cplusplus
12504 extern "C"
12505 #endif
12506 char mallinfo ();
12507 int
12508 main ()
12509 {
12510 return mallinfo ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 for ac_lib in '' malloc; do
12516   if test -z "$ac_lib"; then
12517     ac_res="none required"
12518   else
12519     ac_res=-l$ac_lib
12520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12521   fi
12522   rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526   *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529   (eval "$ac_link") 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_try") 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; }; then
12556   ac_cv_search_mallinfo=$ac_res
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext \
12565       conftest$ac_exeext
12566   if test "${ac_cv_search_mallinfo+set}" = set; then
12567   break
12568 fi
12569 done
12570 if test "${ac_cv_search_mallinfo+set}" = set; then
12571   :
12572 else
12573   ac_cv_search_mallinfo=no
12574 fi
12575 rm conftest.$ac_ext
12576 LIBS=$ac_func_search_save_LIBS
12577 fi
12578 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12579 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12580 ac_res=$ac_cv_search_mallinfo
12581 if test "$ac_res" != no; then
12582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12583
12584 cat >>confdefs.h <<\_ACEOF
12585 #define HAVE_MALLINFO 1
12586 _ACEOF
12587
12588 fi
12589
12590
12591 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12592
12593 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12594 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12595 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   ac_check_lib_save_LIBS=$LIBS
12599 LIBS="-lpthread  $LIBS"
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608    Use char because int might match the return type of a GCC
12609    builtin and then its argument prototype would still apply.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char pthread_mutex_init ();
12614 int
12615 main ()
12616 {
12617 return pthread_mutex_init ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } &&
12636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637   { (case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_try") 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; } &&
12646          { ac_try='test -s conftest$ac_exeext'
12647   { (case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_try") 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; }; then
12656   ac_cv_lib_pthread_pthread_mutex_init=yes
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661         ac_cv_lib_pthread_pthread_mutex_init=no
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext \
12665       conftest$ac_exeext conftest.$ac_ext
12666 LIBS=$ac_check_lib_save_LIBS
12667 fi
12668 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12669 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12670 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12671   cat >>confdefs.h <<_ACEOF
12672 #define HAVE_LIBPTHREAD 1
12673 _ACEOF
12674
12675   LIBS="-lpthread $LIBS"
12676
12677 fi
12678
12679   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12680 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12681 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   ac_func_search_save_LIBS=$LIBS
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691
12692 /* Override any GCC internal prototype to avoid an error.
12693    Use char because int might match the return type of a GCC
12694    builtin and then its argument prototype would still apply.  */
12695 #ifdef __cplusplus
12696 extern "C"
12697 #endif
12698 char pthread_mutex_lock ();
12699 int
12700 main ()
12701 {
12702 return pthread_mutex_lock ();
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 for ac_lib in '' pthread; do
12708   if test -z "$ac_lib"; then
12709     ac_res="none required"
12710   else
12711     ac_res=-l$ac_lib
12712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12713   fi
12714   rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (ac_try="$ac_link"
12716 case "(($ac_try" in
12717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718   *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721   (eval "$ac_link") 2>conftest.er1
12722   ac_status=$?
12723   grep -v '^ *+' conftest.er1 >conftest.err
12724   rm -f conftest.er1
12725   cat conftest.err >&5
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); } &&
12728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12729   { (case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_try") 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; } &&
12738          { ac_try='test -s conftest$ac_exeext'
12739   { (case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_try") 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; }; then
12748   ac_cv_search_pthread_mutex_lock=$ac_res
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753
12754 fi
12755
12756 rm -f core conftest.err conftest.$ac_objext \
12757       conftest$ac_exeext
12758   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12759   break
12760 fi
12761 done
12762 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12763   :
12764 else
12765   ac_cv_search_pthread_mutex_lock=no
12766 fi
12767 rm conftest.$ac_ext
12768 LIBS=$ac_func_search_save_LIBS
12769 fi
12770 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12771 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12772 ac_res=$ac_cv_search_pthread_mutex_lock
12773 if test "$ac_res" != no; then
12774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12775
12776 cat >>confdefs.h <<\_ACEOF
12777 #define HAVE_PTHREAD_MUTEX_LOCK 1
12778 _ACEOF
12779
12780 fi
12781
12782   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12783 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12784 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   ac_func_search_save_LIBS=$LIBS
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796    Use char because int might match the return type of a GCC
12797    builtin and then its argument prototype would still apply.  */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char pthread_rwlock_init ();
12802 int
12803 main ()
12804 {
12805 return pthread_rwlock_init ();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 for ac_lib in '' pthread; do
12811   if test -z "$ac_lib"; then
12812     ac_res="none required"
12813   else
12814     ac_res=-l$ac_lib
12815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12816   fi
12817   rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_link") 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } &&
12831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832   { (case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_try") 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest$ac_exeext'
12842   { (case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_try") 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   ac_cv_search_pthread_rwlock_init=$ac_res
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856
12857 fi
12858
12859 rm -f core conftest.err conftest.$ac_objext \
12860       conftest$ac_exeext
12861   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12862   break
12863 fi
12864 done
12865 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12866   :
12867 else
12868   ac_cv_search_pthread_rwlock_init=no
12869 fi
12870 rm conftest.$ac_ext
12871 LIBS=$ac_func_search_save_LIBS
12872 fi
12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12874 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12875 ac_res=$ac_cv_search_pthread_rwlock_init
12876 if test "$ac_res" != no; then
12877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_PTHREAD_RWLOCK_INIT 1
12881 _ACEOF
12882
12883 fi
12884
12885   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12886 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12887 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   ac_func_search_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h.  */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h.  */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char pthread_getspecific ();
12905 int
12906 main ()
12907 {
12908 return pthread_getspecific ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 for ac_lib in '' pthread; do
12914   if test -z "$ac_lib"; then
12915     ac_res="none required"
12916   else
12917     ac_res=-l$ac_lib
12918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12919   fi
12920   rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_link") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935   { (case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_try") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; } &&
12944          { ac_try='test -s conftest$ac_exeext'
12945   { (case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_try") 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   ac_cv_search_pthread_getspecific=$ac_res
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960 fi
12961
12962 rm -f core conftest.err conftest.$ac_objext \
12963       conftest$ac_exeext
12964   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12965   break
12966 fi
12967 done
12968 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12969   :
12970 else
12971   ac_cv_search_pthread_getspecific=no
12972 fi
12973 rm conftest.$ac_ext
12974 LIBS=$ac_func_search_save_LIBS
12975 fi
12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12977 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12978 ac_res=$ac_cv_search_pthread_getspecific
12979 if test "$ac_res" != no; then
12980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_PTHREAD_GETSPECIFIC 1
12984 _ACEOF
12985
12986 fi
12987
12988 fi
12989
12990 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12991
12992 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12993 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12994 if test "${ac_cv_lib_z_compress2+set}" = set; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997   ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lz  $LIBS"
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char compress2 ();
13013 int
13014 main ()
13015 {
13016 return compress2 ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (ac_try="$ac_link"
13023 case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_link") 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } &&
13035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036   { (case "(($ac_try" in
13037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038   *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041   (eval "$ac_try") 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; } &&
13045          { ac_try='test -s conftest$ac_exeext'
13046   { (case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_try") 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   ac_cv_lib_z_compress2=yes
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060         ac_cv_lib_z_compress2=no
13061 fi
13062
13063 rm -f core conftest.err conftest.$ac_objext \
13064       conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13066 fi
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13068 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13069 if test $ac_cv_lib_z_compress2 = yes; then
13070   cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBZ 1
13072 _ACEOF
13073
13074   LIBS="-lz $LIBS"
13075
13076 fi
13077
13078 fi
13079
13080
13081 # Check whether --with-udis86 was given.
13082 if test "${with_udis86+set}" = set; then
13083   withval=$with_udis86;
13084       USE_UDIS86=1
13085
13086       case "$withval" in
13087         /usr/lib|yes) ;;
13088         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13089       esac
13090
13091 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13092 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13093 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13094   echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096   ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-ludis86  $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104
13105 /* Override any GCC internal prototype to avoid an error.
13106    Use char because int might match the return type of a GCC
13107    builtin and then its argument prototype would still apply.  */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char ud_init ();
13112 int
13113 main ()
13114 {
13115 return ud_init ();
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_link") 2>conftest.er1
13128   ac_status=$?
13129   grep -v '^ *+' conftest.er1 >conftest.err
13130   rm -f conftest.er1
13131   cat conftest.err >&5
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135   { (case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_try") 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; } &&
13144          { ac_try='test -s conftest$ac_exeext'
13145   { (case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_try") 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; }; then
13154   ac_cv_lib_udis86_ud_init=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159         ac_cv_lib_udis86_ud_init=no
13160 fi
13161
13162 rm -f core conftest.err conftest.$ac_objext \
13163       conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13165 fi
13166 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13167 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13168 if test $ac_cv_lib_udis86_ud_init = yes; then
13169   cat >>confdefs.h <<_ACEOF
13170 #define HAVE_LIBUDIS86 1
13171 _ACEOF
13172
13173   LIBS="-ludis86 $LIBS"
13174
13175 else
13176
13177         echo "Error! You need to have libudis86 around."
13178         exit -1
13179
13180 fi
13181
13182
13183 else
13184   USE_UDIS86=0
13185
13186 fi
13187
13188
13189 cat >>confdefs.h <<_ACEOF
13190 #define USE_UDIS86 $USE_UDIS86
13191 _ACEOF
13192
13193
13194
13195 # Check whether --with-oprofile was given.
13196 if test "${with_oprofile+set}" = set; then
13197   withval=$with_oprofile;
13198       USE_OPROFILE=1
13199
13200       case "$withval" in
13201         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13202         no) llvm_cv_oppath=
13203             USE_OPROFILE=0
13204  ;;
13205         *) llvm_cv_oppath="${withval}/lib/oprofile"
13206            CPPFLAGS="-I${withval}/include";;
13207       esac
13208       case $llvm_cv_os_type in
13209         Linux)
13210           if test -n "$llvm_cv_oppath" ; then
13211             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13212                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13213 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13214 if test "${ac_cv_search_bfd_init+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   ac_func_search_save_LIBS=$LIBS
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224
13225 /* Override any GCC internal prototype to avoid an error.
13226    Use char because int might match the return type of a GCC
13227    builtin and then its argument prototype would still apply.  */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 char bfd_init ();
13232 int
13233 main ()
13234 {
13235 return bfd_init ();
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 for ac_lib in '' bfd; do
13241   if test -z "$ac_lib"; then
13242     ac_res="none required"
13243   else
13244     ac_res=-l$ac_lib
13245     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13246   fi
13247   rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_link") 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262   { (case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_try") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; } &&
13271          { ac_try='test -s conftest$ac_exeext'
13272   { (case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_try") 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   ac_cv_search_bfd_init=$ac_res
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286
13287 fi
13288
13289 rm -f core conftest.err conftest.$ac_objext \
13290       conftest$ac_exeext
13291   if test "${ac_cv_search_bfd_init+set}" = set; then
13292   break
13293 fi
13294 done
13295 if test "${ac_cv_search_bfd_init+set}" = set; then
13296   :
13297 else
13298   ac_cv_search_bfd_init=no
13299 fi
13300 rm conftest.$ac_ext
13301 LIBS=$ac_func_search_save_LIBS
13302 fi
13303 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13304 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13305 ac_res=$ac_cv_search_bfd_init
13306 if test "$ac_res" != no; then
13307   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13308
13309 fi
13310
13311             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13312 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13313 if test "${ac_cv_search_op_open_agent+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   ac_func_search_save_LIBS=$LIBS
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323
13324 /* Override any GCC internal prototype to avoid an error.
13325    Use char because int might match the return type of a GCC
13326    builtin and then its argument prototype would still apply.  */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char op_open_agent ();
13331 int
13332 main ()
13333 {
13334 return op_open_agent ();
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 for ac_lib in '' opagent; do
13340   if test -z "$ac_lib"; then
13341     ac_res="none required"
13342   else
13343     ac_res=-l$ac_lib
13344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13345   fi
13346   rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_link") 2>conftest.er1
13354   ac_status=$?
13355   grep -v '^ *+' conftest.er1 >conftest.err
13356   rm -f conftest.er1
13357   cat conftest.err >&5
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } &&
13360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13361   { (case "(($ac_try" in
13362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363   *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366   (eval "$ac_try") 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; } &&
13370          { ac_try='test -s conftest$ac_exeext'
13371   { (case "(($ac_try" in
13372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373   *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376   (eval "$ac_try") 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ac_cv_search_op_open_agent=$ac_res
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385
13386 fi
13387
13388 rm -f core conftest.err conftest.$ac_objext \
13389       conftest$ac_exeext
13390   if test "${ac_cv_search_op_open_agent+set}" = set; then
13391   break
13392 fi
13393 done
13394 if test "${ac_cv_search_op_open_agent+set}" = set; then
13395   :
13396 else
13397   ac_cv_search_op_open_agent=no
13398 fi
13399 rm conftest.$ac_ext
13400 LIBS=$ac_func_search_save_LIBS
13401 fi
13402 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13403 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13404 ac_res=$ac_cv_search_op_open_agent
13405 if test "$ac_res" != no; then
13406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13407
13408 else
13409
13410               echo "Error! You need to have libopagent around."
13411               exit -1
13412
13413 fi
13414
13415             if test "${ac_cv_header_opagent_h+set}" = set; then
13416   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13417 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_opagent_h+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 fi
13421 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13423 else
13424   # Is the header compilable?
13425 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13426 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 $ac_includes_default
13434 #include <opagent.h>
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; } &&
13460          { ac_try='test -s conftest.$ac_objext'
13461   { (case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_try") 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   ac_header_compiler=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475         ac_header_compiler=no
13476 fi
13477
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13480 echo "${ECHO_T}$ac_header_compiler" >&6; }
13481
13482 # Is the header present?
13483 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13484 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <opagent.h>
13492 _ACEOF
13493 if { (ac_try="$ac_cpp conftest.$ac_ext"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } >/dev/null; then
13506   if test -s conftest.err; then
13507     ac_cpp_err=$ac_c_preproc_warn_flag
13508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13509   else
13510     ac_cpp_err=
13511   fi
13512 else
13513   ac_cpp_err=yes
13514 fi
13515 if test -z "$ac_cpp_err"; then
13516   ac_header_preproc=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521   ac_header_preproc=no
13522 fi
13523
13524 rm -f conftest.err conftest.$ac_ext
13525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6; }
13527
13528 # So?  What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530   yes:no: )
13531     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13534 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13535     ac_header_preproc=yes
13536     ;;
13537   no:yes:* )
13538     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13539 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13540     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13541 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13542     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13543 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13545 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13548     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13549 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13550     ( cat <<\_ASBOX
13551 ## ------------------------------------ ##
13552 ## Report this to http://llvm.org/bugs/ ##
13553 ## ------------------------------------ ##
13554 _ASBOX
13555      ) | sed "s/^/$as_me: WARNING:     /" >&2
13556     ;;
13557 esac
13558 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13559 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_opagent_h+set}" = set; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   ac_cv_header_opagent_h=$ac_header_preproc
13564 fi
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13567
13568 fi
13569 if test $ac_cv_header_opagent_h = yes; then
13570   :
13571 else
13572
13573               echo "Error! You need to have opagent.h around."
13574               exit -1
13575
13576 fi
13577
13578
13579           fi ;;
13580         *)
13581           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13582 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13583    { (exit 1); exit 1; }; } ;;
13584       esac
13585
13586 else
13587
13588       USE_OPROFILE=0
13589
13590
13591 fi
13592
13593
13594 cat >>confdefs.h <<_ACEOF
13595 #define LLVM_USE_OPROFILE $USE_OPROFILE
13596 _ACEOF
13597
13598
13599
13600 # Check whether --with-intel-jitevents was given.
13601 if test "${with_intel_jitevents+set}" = set; then
13602   withval=$with_intel_jitevents;
13603        case "$withval" in
13604           yes) USE_INTEL_JITEVENTS=1
13605 ;;
13606           no)  USE_INTEL_JITEVENTS=0
13607 ;;
13608           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13609 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13610    { (exit 1); exit 1; }; };;
13611        esac
13612
13613       case $llvm_cv_os_type in
13614         Linux|Win32|Cygwin|MingW) ;;
13615         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13616 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13617    { (exit 1); exit 1; }; };;
13618       esac
13619
13620       case "$llvm_cv_target_arch" in
13621         x86|x86_64) ;;
13622         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13623 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13624    { (exit 1); exit 1; }; };;
13625       esac
13626
13627 else
13628
13629       USE_INTEL_JITEVENTS=0
13630
13631
13632 fi
13633
13634
13635 cat >>confdefs.h <<_ACEOF
13636 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13637 _ACEOF
13638
13639
13640 for ac_prog in xml2-config
13641 do
13642   # Extract the first word of "$ac_prog", so it can be a program name with args.
13643 set dummy $ac_prog; ac_word=$2
13644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13646 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   if test -n "$XML2CONFIG"; then
13650   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13654 do
13655   IFS=$as_save_IFS
13656   test -z "$as_dir" && as_dir=.
13657   for ac_exec_ext in '' $ac_executable_extensions; do
13658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13659     ac_cv_prog_XML2CONFIG="$ac_prog"
13660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13661     break 2
13662   fi
13663 done
13664 done
13665 IFS=$as_save_IFS
13666
13667 fi
13668 fi
13669 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13670 if test -n "$XML2CONFIG"; then
13671   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13672 echo "${ECHO_T}$XML2CONFIG" >&6; }
13673 else
13674   { echo "$as_me:$LINENO: result: no" >&5
13675 echo "${ECHO_T}no" >&6; }
13676 fi
13677
13678
13679   test -n "$XML2CONFIG" && break
13680 done
13681
13682
13683 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13684 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13685 if test "x$XML2CONFIG" = "x"; then
13686  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13687 echo "${ECHO_T}xml2-config not found" >&6; }
13688 else
13689  LIBXML2_INC=`$XML2CONFIG --cflags`
13690  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13691 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13692  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13693 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697   ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lxml2  $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707    Use char because int might match the return type of a GCC
13708    builtin and then its argument prototype would still apply.  */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char xmlReadFile ();
13713 int
13714 main ()
13715 {
13716 return xmlReadFile ();
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725   *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728   (eval "$ac_link") 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } &&
13735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736   { (case "(($ac_try" in
13737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738   *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741   (eval "$ac_try") 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; } &&
13745          { ac_try='test -s conftest$ac_exeext'
13746   { (case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_try") 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   ac_cv_lib_xml2_xmlReadFile=yes
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760         ac_cv_lib_xml2_xmlReadFile=no
13761 fi
13762
13763 rm -f core conftest.err conftest.$ac_objext \
13764       conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13766 fi
13767 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13768 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13769 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13770
13771 cat >>confdefs.h <<\_ACEOF
13772 #define CLANG_HAVE_LIBXML 1
13773 _ACEOF
13774
13775                                 LIBXML2_LIBS="-lxml2"
13776 fi
13777
13778 fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788 ac_header_dirent=no
13789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13790   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13791 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13792 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802 #include <sys/types.h>
13803 #include <$ac_hdr>
13804
13805 int
13806 main ()
13807 {
13808 if ((DIR *) 0)
13809 return 0;
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_compile") 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } &&
13828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829   { (case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_try") 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; } &&
13838          { ac_try='test -s conftest.$ac_objext'
13839   { (case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_try") 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   eval "$as_ac_Header=yes"
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853         eval "$as_ac_Header=no"
13854 fi
13855
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 fi
13858 ac_res=`eval echo '${'$as_ac_Header'}'`
13859                { echo "$as_me:$LINENO: result: $ac_res" >&5
13860 echo "${ECHO_T}$ac_res" >&6; }
13861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13862   cat >>confdefs.h <<_ACEOF
13863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13864 _ACEOF
13865
13866 ac_header_dirent=$ac_hdr; break
13867 fi
13868
13869 done
13870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13871 if test $ac_header_dirent = dirent.h; then
13872   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13874 if test "${ac_cv_search_opendir+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   ac_func_search_save_LIBS=$LIBS
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884
13885 /* Override any GCC internal prototype to avoid an error.
13886    Use char because int might match the return type of a GCC
13887    builtin and then its argument prototype would still apply.  */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char opendir ();
13892 int
13893 main ()
13894 {
13895 return opendir ();
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 for ac_lib in '' dir; do
13901   if test -z "$ac_lib"; then
13902     ac_res="none required"
13903   else
13904     ac_res=-l$ac_lib
13905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13906   fi
13907   rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (ac_try="$ac_link"
13909 case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_link") 2>conftest.er1
13915   ac_status=$?
13916   grep -v '^ *+' conftest.er1 >conftest.err
13917   rm -f conftest.er1
13918   cat conftest.err >&5
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); } &&
13921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13922   { (case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927   (eval "$ac_try") 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; } &&
13931          { ac_try='test -s conftest$ac_exeext'
13932   { (case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_try") 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }; then
13941   ac_cv_search_opendir=$ac_res
13942 else
13943   echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946
13947 fi
13948
13949 rm -f core conftest.err conftest.$ac_objext \
13950       conftest$ac_exeext
13951   if test "${ac_cv_search_opendir+set}" = set; then
13952   break
13953 fi
13954 done
13955 if test "${ac_cv_search_opendir+set}" = set; then
13956   :
13957 else
13958   ac_cv_search_opendir=no
13959 fi
13960 rm conftest.$ac_ext
13961 LIBS=$ac_func_search_save_LIBS
13962 fi
13963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13965 ac_res=$ac_cv_search_opendir
13966 if test "$ac_res" != no; then
13967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13968
13969 fi
13970
13971 else
13972   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13974 if test "${ac_cv_search_opendir+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   ac_func_search_save_LIBS=$LIBS
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984
13985 /* Override any GCC internal prototype to avoid an error.
13986    Use char because int might match the return type of a GCC
13987    builtin and then its argument prototype would still apply.  */
13988 #ifdef __cplusplus
13989 extern "C"
13990 #endif
13991 char opendir ();
13992 int
13993 main ()
13994 {
13995 return opendir ();
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 for ac_lib in '' x; do
14001   if test -z "$ac_lib"; then
14002     ac_res="none required"
14003   else
14004     ac_res=-l$ac_lib
14005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14006   fi
14007   rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (ac_try="$ac_link"
14009 case "(($ac_try" in
14010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011   *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014   (eval "$ac_link") 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022   { (case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_try") 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; } &&
14031          { ac_try='test -s conftest$ac_exeext'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   ac_cv_search_opendir=$ac_res
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046
14047 fi
14048
14049 rm -f core conftest.err conftest.$ac_objext \
14050       conftest$ac_exeext
14051   if test "${ac_cv_search_opendir+set}" = set; then
14052   break
14053 fi
14054 done
14055 if test "${ac_cv_search_opendir+set}" = set; then
14056   :
14057 else
14058   ac_cv_search_opendir=no
14059 fi
14060 rm conftest.$ac_ext
14061 LIBS=$ac_func_search_save_LIBS
14062 fi
14063 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14064 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14065 ac_res=$ac_cv_search_opendir
14066 if test "$ac_res" != no; then
14067   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14068
14069 fi
14070
14071 fi
14072
14073 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14074 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14075 if test "${ac_cv_header_mmap_anon+set}" = set; then
14076   echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078    ac_ext=c
14079 ac_cpp='$CPP $CPPFLAGS'
14080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084   cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090 #include <sys/mman.h>
14091 #include <unistd.h>
14092 #include <fcntl.h>
14093 int
14094 main ()
14095 {
14096 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (ac_try="$ac_compile"
14103 case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_compile") 2>conftest.er1
14109   ac_status=$?
14110   grep -v '^ *+' conftest.er1 >conftest.err
14111   rm -f conftest.er1
14112   cat conftest.err >&5
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } &&
14115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116   { (case "(($ac_try" in
14117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118   *) ac_try_echo=$ac_try;;
14119 esac
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121   (eval "$ac_try") 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest.$ac_objext'
14126   { (case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_try") 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   ac_cv_header_mmap_anon=yes
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140         ac_cv_header_mmap_anon=no
14141 fi
14142
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144   ac_ext=c
14145 ac_cpp='$CPP $CPPFLAGS'
14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150
14151 fi
14152 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14153 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14154 if test "$ac_cv_header_mmap_anon" = yes; then
14155
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_MMAP_ANONYMOUS 1
14158 _ACEOF
14159
14160 fi
14161
14162 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14163 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_stat_broken+set}" = set; then
14165   echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167   cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h.  */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h.  */
14173 #include <sys/types.h>
14174 #include <sys/stat.h>
14175
14176 #if defined S_ISBLK && defined S_IFDIR
14177 # if S_ISBLK (S_IFDIR)
14178 You lose.
14179 # endif
14180 #endif
14181
14182 #if defined S_ISBLK && defined S_IFCHR
14183 # if S_ISBLK (S_IFCHR)
14184 You lose.
14185 # endif
14186 #endif
14187
14188 #if defined S_ISLNK && defined S_IFREG
14189 # if S_ISLNK (S_IFREG)
14190 You lose.
14191 # endif
14192 #endif
14193
14194 #if defined S_ISSOCK && defined S_IFREG
14195 # if S_ISSOCK (S_IFREG)
14196 You lose.
14197 # endif
14198 #endif
14199
14200 _ACEOF
14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202   $EGREP "You lose" >/dev/null 2>&1; then
14203   ac_cv_header_stat_broken=yes
14204 else
14205   ac_cv_header_stat_broken=no
14206 fi
14207 rm -f conftest*
14208
14209 fi
14210 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14211 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14212 if test $ac_cv_header_stat_broken = yes; then
14213
14214 cat >>confdefs.h <<\_ACEOF
14215 #define STAT_MACROS_BROKEN 1
14216 _ACEOF
14217
14218 fi
14219
14220 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14221 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14222 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231 #include <sys/types.h>
14232 #include <sys/wait.h>
14233 #ifndef WEXITSTATUS
14234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14235 #endif
14236 #ifndef WIFEXITED
14237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14238 #endif
14239
14240 int
14241 main ()
14242 {
14243   int s;
14244   wait (&s);
14245   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (ac_try="$ac_compile"
14252 case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_compile") 2>conftest.er1
14258   ac_status=$?
14259   grep -v '^ *+' conftest.er1 >conftest.err
14260   rm -f conftest.er1
14261   cat conftest.err >&5
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); } &&
14264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265   { (case "(($ac_try" in
14266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267   *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270   (eval "$ac_try") 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; } &&
14274          { ac_try='test -s conftest.$ac_objext'
14275   { (case "(($ac_try" in
14276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277   *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280   (eval "$ac_try") 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; }; then
14284   ac_cv_header_sys_wait_h=yes
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289         ac_cv_header_sys_wait_h=no
14290 fi
14291
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 fi
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14296 if test $ac_cv_header_sys_wait_h = yes; then
14297
14298 cat >>confdefs.h <<\_ACEOF
14299 #define HAVE_SYS_WAIT_H 1
14300 _ACEOF
14301
14302 fi
14303
14304 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14306 if test "${ac_cv_header_time+set}" = set; then
14307   echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309   cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h.  */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h.  */
14315 #include <sys/types.h>
14316 #include <sys/time.h>
14317 #include <time.h>
14318
14319 int
14320 main ()
14321 {
14322 if ((struct tm *) 0)
14323 return 0;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_compile") 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343   { (case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_try") 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; } &&
14352          { ac_try='test -s conftest.$ac_objext'
14353   { (case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_try") 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_cv_header_time=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         ac_cv_header_time=no
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 fi
14372 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14373 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14374 if test $ac_cv_header_time = yes; then
14375
14376 cat >>confdefs.h <<\_ACEOF
14377 #define TIME_WITH_SYS_TIME 1
14378 _ACEOF
14379
14380 fi
14381
14382
14383 ac_ext=cpp
14384 ac_cpp='$CXXCPP $CPPFLAGS'
14385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14388
14389 ac_ext=cpp
14390 ac_cpp='$CXXCPP $CPPFLAGS'
14391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14394 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14396 if test -z "$CXXCPP"; then
14397   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400       # Double quotes because CXXCPP needs to be expanded
14401     for CXXCPP in "$CXX -E" "/lib/cpp"
14402     do
14403       ac_preproc_ok=false
14404 for ac_cxx_preproc_warn_flag in '' yes
14405 do
14406   # Use a header file that comes with gcc, so configuring glibc
14407   # with a fresh cross-compiler works.
14408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14409   # <limits.h> exists even on freestanding compilers.
14410   # On the NeXT, cc -E runs the code through the compiler's parser,
14411   # not just through cpp. "Syntax error" is here to catch this case.
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 #ifdef __STDC__
14419 # include <limits.h>
14420 #else
14421 # include <assert.h>
14422 #endif
14423                      Syntax error
14424 _ACEOF
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } >/dev/null; then
14438   if test -s conftest.err; then
14439     ac_cpp_err=$ac_cxx_preproc_warn_flag
14440     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14441   else
14442     ac_cpp_err=
14443   fi
14444 else
14445   ac_cpp_err=yes
14446 fi
14447 if test -z "$ac_cpp_err"; then
14448   :
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453   # Broken: fails on valid input.
14454 continue
14455 fi
14456
14457 rm -f conftest.err conftest.$ac_ext
14458
14459   # OK, works on sane cases.  Now check whether nonexistent headers
14460   # can be detected and how.
14461   cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h.  */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h.  */
14467 #include <ac_nonexistent.h>
14468 _ACEOF
14469 if { (ac_try="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472   *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14476   ac_status=$?
14477   grep -v '^ *+' conftest.er1 >conftest.err
14478   rm -f conftest.er1
14479   cat conftest.err >&5
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } >/dev/null; then
14482   if test -s conftest.err; then
14483     ac_cpp_err=$ac_cxx_preproc_warn_flag
14484     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14485   else
14486     ac_cpp_err=
14487   fi
14488 else
14489   ac_cpp_err=yes
14490 fi
14491 if test -z "$ac_cpp_err"; then
14492   # Broken: success on invalid input.
14493 continue
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498   # Passes both tests.
14499 ac_preproc_ok=:
14500 break
14501 fi
14502
14503 rm -f conftest.err conftest.$ac_ext
14504
14505 done
14506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14507 rm -f conftest.err conftest.$ac_ext
14508 if $ac_preproc_ok; then
14509   break
14510 fi
14511
14512     done
14513     ac_cv_prog_CXXCPP=$CXXCPP
14514
14515 fi
14516   CXXCPP=$ac_cv_prog_CXXCPP
14517 else
14518   ac_cv_prog_CXXCPP=$CXXCPP
14519 fi
14520 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14521 echo "${ECHO_T}$CXXCPP" >&6; }
14522 ac_preproc_ok=false
14523 for ac_cxx_preproc_warn_flag in '' yes
14524 do
14525   # Use a header file that comes with gcc, so configuring glibc
14526   # with a fresh cross-compiler works.
14527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14528   # <limits.h> exists even on freestanding compilers.
14529   # On the NeXT, cc -E runs the code through the compiler's parser,
14530   # not just through cpp. "Syntax error" is here to catch this case.
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 #ifdef __STDC__
14538 # include <limits.h>
14539 #else
14540 # include <assert.h>
14541 #endif
14542                      Syntax error
14543 _ACEOF
14544 if { (ac_try="$ac_cpp conftest.$ac_ext"
14545 case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } >/dev/null; then
14557   if test -s conftest.err; then
14558     ac_cpp_err=$ac_cxx_preproc_warn_flag
14559     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14560   else
14561     ac_cpp_err=
14562   fi
14563 else
14564   ac_cpp_err=yes
14565 fi
14566 if test -z "$ac_cpp_err"; then
14567   :
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572   # Broken: fails on valid input.
14573 continue
14574 fi
14575
14576 rm -f conftest.err conftest.$ac_ext
14577
14578   # OK, works on sane cases.  Now check whether nonexistent headers
14579   # can be detected and how.
14580   cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 #include <ac_nonexistent.h>
14587 _ACEOF
14588 if { (ac_try="$ac_cpp conftest.$ac_ext"
14589 case "(($ac_try" in
14590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591   *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14595   ac_status=$?
14596   grep -v '^ *+' conftest.er1 >conftest.err
14597   rm -f conftest.er1
14598   cat conftest.err >&5
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); } >/dev/null; then
14601   if test -s conftest.err; then
14602     ac_cpp_err=$ac_cxx_preproc_warn_flag
14603     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14604   else
14605     ac_cpp_err=
14606   fi
14607 else
14608   ac_cpp_err=yes
14609 fi
14610 if test -z "$ac_cpp_err"; then
14611   # Broken: success on invalid input.
14612 continue
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617   # Passes both tests.
14618 ac_preproc_ok=:
14619 break
14620 fi
14621
14622 rm -f conftest.err conftest.$ac_ext
14623
14624 done
14625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14626 rm -f conftest.err conftest.$ac_ext
14627 if $ac_preproc_ok; then
14628   :
14629 else
14630   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14631 See \`config.log' for more details." >&5
14632 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14633 See \`config.log' for more details." >&2;}
14634    { (exit 1); exit 1; }; }
14635 fi
14636
14637 ac_ext=cpp
14638 ac_cpp='$CXXCPP $CPPFLAGS'
14639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14642
14643
14644
14645 for ac_header in cxxabi.h
14646 do
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652   echo $ECHO_N "(cached) $ECHO_C" >&6
14653 fi
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655                { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14657 else
14658   # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 $ac_includes_default
14668 #include <$ac_header>
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_compile") 2>conftest.er1
14678   ac_status=$?
14679   grep -v '^ *+' conftest.er1 >conftest.err
14680   rm -f conftest.er1
14681   cat conftest.err >&5
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } &&
14684          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14685   { (case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_try") 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; } &&
14694          { ac_try='test -s conftest.$ac_objext'
14695   { (case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_try") 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_header_compiler=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } >/dev/null; then
14740   if test -s conftest.err; then
14741     ac_cpp_err=$ac_cxx_preproc_warn_flag
14742     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14743   else
14744     ac_cpp_err=
14745   fi
14746 else
14747   ac_cpp_err=yes
14748 fi
14749 if test -z "$ac_cpp_err"; then
14750   ac_header_preproc=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755   ac_header_preproc=no
14756 fi
14757
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14761
14762 # So?  What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14764   yes:no: )
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769     ac_header_preproc=yes
14770     ;;
14771   no:yes:* )
14772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784     ( cat <<\_ASBOX
14785 ## ------------------------------------ ##
14786 ## Report this to http://llvm.org/bugs/ ##
14787 ## ------------------------------------ ##
14788 _ASBOX
14789      ) | sed "s/^/$as_me: WARNING:     /" >&2
14790     ;;
14791 esac
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   eval "$as_ac_Header=\$ac_header_preproc"
14798 fi
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800                { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14802
14803 fi
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805   cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807 _ACEOF
14808
14809 fi
14810
14811 done
14812
14813 ac_ext=c
14814 ac_cpp='$CPP $CPPFLAGS'
14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
14819
14820
14821
14822
14823
14824 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14825 do
14826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14828   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 fi
14833 ac_res=`eval echo '${'$as_ac_Header'}'`
14834                { echo "$as_me:$LINENO: result: $ac_res" >&5
14835 echo "${ECHO_T}$ac_res" >&6; }
14836 else
14837   # Is the header compilable?
14838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 $ac_includes_default
14847 #include <$ac_header>
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (ac_try="$ac_compile"
14851 case "(($ac_try" in
14852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853   *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856   (eval "$ac_compile") 2>conftest.er1
14857   ac_status=$?
14858   grep -v '^ *+' conftest.er1 >conftest.err
14859   rm -f conftest.er1
14860   cat conftest.err >&5
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); } &&
14863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14864   { (case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_try") 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); }; } &&
14873          { ac_try='test -s conftest.$ac_objext'
14874   { (case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_try") 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; }; then
14883   ac_header_compiler=yes
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888         ac_header_compiler=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14894
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <$ac_header>
14905 _ACEOF
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } >/dev/null; then
14919   if test -s conftest.err; then
14920     ac_cpp_err=$ac_c_preproc_warn_flag
14921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14922   else
14923     ac_cpp_err=
14924   fi
14925 else
14926   ac_cpp_err=yes
14927 fi
14928 if test -z "$ac_cpp_err"; then
14929   ac_header_preproc=yes
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934   ac_header_preproc=no
14935 fi
14936
14937 rm -f conftest.err conftest.$ac_ext
14938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14939 echo "${ECHO_T}$ac_header_preproc" >&6; }
14940
14941 # So?  What about this header?
14942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14943   yes:no: )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14948     ac_header_preproc=yes
14949     ;;
14950   no:yes:* )
14951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14963     ( cat <<\_ASBOX
14964 ## ------------------------------------ ##
14965 ## Report this to http://llvm.org/bugs/ ##
14966 ## ------------------------------------ ##
14967 _ASBOX
14968      ) | sed "s/^/$as_me: WARNING:     /" >&2
14969     ;;
14970 esac
14971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14974   echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976   eval "$as_ac_Header=\$ac_header_preproc"
14977 fi
14978 ac_res=`eval echo '${'$as_ac_Header'}'`
14979                { echo "$as_me:$LINENO: result: $ac_res" >&5
14980 echo "${ECHO_T}$ac_res" >&6; }
14981
14982 fi
14983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14984   cat >>confdefs.h <<_ACEOF
14985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986 _ACEOF
14987
14988 fi
14989
14990 done
14991
14992
14993
14994
14995
14996
14997
14998 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14999 do
15000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 fi
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008                { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 else
15011   # Is the header compilable?
15012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020 $ac_includes_default
15021 #include <$ac_header>
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030   (eval "$ac_compile") 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } &&
15037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; } &&
15047          { ac_try='test -s conftest.$ac_objext'
15048   { (case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_try") 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057   ac_header_compiler=yes
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062         ac_header_compiler=no
15063 fi
15064
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15067 echo "${ECHO_T}$ac_header_compiler" >&6; }
15068
15069 # Is the header present?
15070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078 #include <$ac_header>
15079 _ACEOF
15080 if { (ac_try="$ac_cpp conftest.$ac_ext"
15081 case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } >/dev/null; then
15093   if test -s conftest.err; then
15094     ac_cpp_err=$ac_c_preproc_warn_flag
15095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15096   else
15097     ac_cpp_err=
15098   fi
15099 else
15100   ac_cpp_err=yes
15101 fi
15102 if test -z "$ac_cpp_err"; then
15103   ac_header_preproc=yes
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108   ac_header_preproc=no
15109 fi
15110
15111 rm -f conftest.err conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15113 echo "${ECHO_T}$ac_header_preproc" >&6; }
15114
15115 # So?  What about this header?
15116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15117   yes:no: )
15118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15122     ac_header_preproc=yes
15123     ;;
15124   no:yes:* )
15125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15137     ( cat <<\_ASBOX
15138 ## ------------------------------------ ##
15139 ## Report this to http://llvm.org/bugs/ ##
15140 ## ------------------------------------ ##
15141 _ASBOX
15142      ) | sed "s/^/$as_me: WARNING:     /" >&2
15143     ;;
15144 esac
15145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   eval "$as_ac_Header=\$ac_header_preproc"
15151 fi
15152 ac_res=`eval echo '${'$as_ac_Header'}'`
15153                { echo "$as_me:$LINENO: result: $ac_res" >&5
15154 echo "${ECHO_T}$ac_res" >&6; }
15155
15156 fi
15157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15158   cat >>confdefs.h <<_ACEOF
15159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 _ACEOF
15161
15162 fi
15163
15164 done
15165
15166
15167 for ac_header in utime.h
15168 do
15169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 fi
15176 ac_res=`eval echo '${'$as_ac_Header'}'`
15177                { echo "$as_me:$LINENO: result: $ac_res" >&5
15178 echo "${ECHO_T}$ac_res" >&6; }
15179 else
15180   # Is the header compilable?
15181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h.  */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h.  */
15189 $ac_includes_default
15190 #include <$ac_header>
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196   *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199   (eval "$ac_compile") 2>conftest.er1
15200   ac_status=$?
15201   grep -v '^ *+' conftest.er1 >conftest.err
15202   rm -f conftest.er1
15203   cat conftest.err >&5
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } &&
15206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207   { (case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_try") 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; } &&
15216          { ac_try='test -s conftest.$ac_objext'
15217   { (case "(($ac_try" in
15218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219   *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222   (eval "$ac_try") 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; }; then
15226   ac_header_compiler=yes
15227 else
15228   echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231         ac_header_compiler=no
15232 fi
15233
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236 echo "${ECHO_T}$ac_header_compiler" >&6; }
15237
15238 # Is the header present?
15239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15241 cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247 #include <$ac_header>
15248 _ACEOF
15249 if { (ac_try="$ac_cpp conftest.$ac_ext"
15250 case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } >/dev/null; then
15262   if test -s conftest.err; then
15263     ac_cpp_err=$ac_c_preproc_warn_flag
15264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265   else
15266     ac_cpp_err=
15267   fi
15268 else
15269   ac_cpp_err=yes
15270 fi
15271 if test -z "$ac_cpp_err"; then
15272   ac_header_preproc=yes
15273 else
15274   echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277   ac_header_preproc=no
15278 fi
15279
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15283
15284 # So?  What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286   yes:no: )
15287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15291     ac_header_preproc=yes
15292     ;;
15293   no:yes:* )
15294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15306     ( cat <<\_ASBOX
15307 ## ------------------------------------ ##
15308 ## Report this to http://llvm.org/bugs/ ##
15309 ## ------------------------------------ ##
15310 _ASBOX
15311      ) | sed "s/^/$as_me: WARNING:     /" >&2
15312     ;;
15313 esac
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319   eval "$as_ac_Header=\$ac_header_preproc"
15320 fi
15321 ac_res=`eval echo '${'$as_ac_Header'}'`
15322                { echo "$as_me:$LINENO: result: $ac_res" >&5
15323 echo "${ECHO_T}$ac_res" >&6; }
15324
15325 fi
15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327   cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329 _ACEOF
15330
15331 fi
15332
15333 done
15334
15335
15336
15337
15338
15339
15340 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15341 do
15342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347   echo $ECHO_N "(cached) $ECHO_C" >&6
15348 fi
15349 ac_res=`eval echo '${'$as_ac_Header'}'`
15350                { echo "$as_me:$LINENO: result: $ac_res" >&5
15351 echo "${ECHO_T}$ac_res" >&6; }
15352 else
15353   # Is the header compilable?
15354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h.  */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h.  */
15362 $ac_includes_default
15363 #include <$ac_header>
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369   *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372   (eval "$ac_compile") 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15380   { (case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385   (eval "$ac_try") 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; } &&
15389          { ac_try='test -s conftest.$ac_objext'
15390   { (case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_try") 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; }; then
15399   ac_header_compiler=yes
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404         ac_header_compiler=no
15405 fi
15406
15407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409 echo "${ECHO_T}$ac_header_compiler" >&6; }
15410
15411 # Is the header present?
15412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h.  */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h.  */
15420 #include <$ac_header>
15421 _ACEOF
15422 if { (ac_try="$ac_cpp conftest.$ac_ext"
15423 case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } >/dev/null; then
15435   if test -s conftest.err; then
15436     ac_cpp_err=$ac_c_preproc_warn_flag
15437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15438   else
15439     ac_cpp_err=
15440   fi
15441 else
15442   ac_cpp_err=yes
15443 fi
15444 if test -z "$ac_cpp_err"; then
15445   ac_header_preproc=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450   ac_header_preproc=no
15451 fi
15452
15453 rm -f conftest.err conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15455 echo "${ECHO_T}$ac_header_preproc" >&6; }
15456
15457 # So?  What about this header?
15458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459   yes:no: )
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15464     ac_header_preproc=yes
15465     ;;
15466   no:yes:* )
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479     ( cat <<\_ASBOX
15480 ## ------------------------------------ ##
15481 ## Report this to http://llvm.org/bugs/ ##
15482 ## ------------------------------------ ##
15483 _ASBOX
15484      ) | sed "s/^/$as_me: WARNING:     /" >&2
15485     ;;
15486 esac
15487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   eval "$as_ac_Header=\$ac_header_preproc"
15493 fi
15494 ac_res=`eval echo '${'$as_ac_Header'}'`
15495                { echo "$as_me:$LINENO: result: $ac_res" >&5
15496 echo "${ECHO_T}$ac_res" >&6; }
15497
15498 fi
15499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15500   cat >>confdefs.h <<_ACEOF
15501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15502 _ACEOF
15503
15504 fi
15505
15506 done
15507
15508
15509
15510
15511 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15512 do
15513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 fi
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521                { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15523 else
15524   # Is the header compilable?
15525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h.  */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h.  */
15533 $ac_includes_default
15534 #include <$ac_header>
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_compile") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551   { (case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_try") 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; } &&
15560          { ac_try='test -s conftest.$ac_objext'
15561   { (case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_try") 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   ac_header_compiler=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_header_compiler=no
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15580 echo "${ECHO_T}$ac_header_compiler" >&6; }
15581
15582 # Is the header present?
15583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591 #include <$ac_header>
15592 _ACEOF
15593 if { (ac_try="$ac_cpp conftest.$ac_ext"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } >/dev/null; then
15606   if test -s conftest.err; then
15607     ac_cpp_err=$ac_c_preproc_warn_flag
15608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15609   else
15610     ac_cpp_err=
15611   fi
15612 else
15613   ac_cpp_err=yes
15614 fi
15615 if test -z "$ac_cpp_err"; then
15616   ac_header_preproc=yes
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621   ac_header_preproc=no
15622 fi
15623
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15627
15628 # So?  What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630   yes:no: )
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635     ac_header_preproc=yes
15636     ;;
15637   no:yes:* )
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15650     ( cat <<\_ASBOX
15651 ## ------------------------------------ ##
15652 ## Report this to http://llvm.org/bugs/ ##
15653 ## ------------------------------------ ##
15654 _ASBOX
15655      ) | sed "s/^/$as_me: WARNING:     /" >&2
15656     ;;
15657 esac
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   eval "$as_ac_Header=\$ac_header_preproc"
15664 fi
15665 ac_res=`eval echo '${'$as_ac_Header'}'`
15666                { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15668
15669 fi
15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671   cat >>confdefs.h <<_ACEOF
15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673 _ACEOF
15674
15675 fi
15676
15677 done
15678
15679
15680 for ac_header in valgrind/valgrind.h
15681 do
15682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 fi
15689 ac_res=`eval echo '${'$as_ac_Header'}'`
15690                { echo "$as_me:$LINENO: result: $ac_res" >&5
15691 echo "${ECHO_T}$ac_res" >&6; }
15692 else
15693   # Is the header compilable?
15694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702 $ac_includes_default
15703 #include <$ac_header>
15704 _ACEOF
15705 rm -f conftest.$ac_objext
15706 if { (ac_try="$ac_compile"
15707 case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_compile") 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; } &&
15729          { ac_try='test -s conftest.$ac_objext'
15730   { (case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_try") 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_header_compiler=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744         ac_header_compiler=no
15745 fi
15746
15747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15749 echo "${ECHO_T}$ac_header_compiler" >&6; }
15750
15751 # Is the header present?
15752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 #include <$ac_header>
15761 _ACEOF
15762 if { (ac_try="$ac_cpp conftest.$ac_ext"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } >/dev/null; then
15775   if test -s conftest.err; then
15776     ac_cpp_err=$ac_c_preproc_warn_flag
15777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15778   else
15779     ac_cpp_err=
15780   fi
15781 else
15782   ac_cpp_err=yes
15783 fi
15784 if test -z "$ac_cpp_err"; then
15785   ac_header_preproc=yes
15786 else
15787   echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790   ac_header_preproc=no
15791 fi
15792
15793 rm -f conftest.err conftest.$ac_ext
15794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15795 echo "${ECHO_T}$ac_header_preproc" >&6; }
15796
15797 # So?  What about this header?
15798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15799   yes:no: )
15800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15804     ac_header_preproc=yes
15805     ;;
15806   no:yes:* )
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15819     ( cat <<\_ASBOX
15820 ## ------------------------------------ ##
15821 ## Report this to http://llvm.org/bugs/ ##
15822 ## ------------------------------------ ##
15823 _ASBOX
15824      ) | sed "s/^/$as_me: WARNING:     /" >&2
15825     ;;
15826 esac
15827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15830   echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832   eval "$as_ac_Header=\$ac_header_preproc"
15833 fi
15834 ac_res=`eval echo '${'$as_ac_Header'}'`
15835                { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15837
15838 fi
15839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15840   cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15842 _ACEOF
15843
15844 fi
15845
15846 done
15847
15848
15849 for ac_header in fenv.h
15850 do
15851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 fi
15858 ac_res=`eval echo '${'$as_ac_Header'}'`
15859                { echo "$as_me:$LINENO: result: $ac_res" >&5
15860 echo "${ECHO_T}$ac_res" >&6; }
15861 else
15862   # Is the header compilable?
15863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871 $ac_includes_default
15872 #include <$ac_header>
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_compile") 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } &&
15888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15889   { (case "(($ac_try" in
15890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891   *) ac_try_echo=$ac_try;;
15892 esac
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894   (eval "$ac_try") 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); }; } &&
15898          { ac_try='test -s conftest.$ac_objext'
15899   { (case "(($ac_try" in
15900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901   *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904   (eval "$ac_try") 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); }; }; then
15908   ac_header_compiler=yes
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913         ac_header_compiler=no
15914 fi
15915
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15918 echo "${ECHO_T}$ac_header_compiler" >&6; }
15919
15920 # Is the header present?
15921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15923 cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 #include <$ac_header>
15930 _ACEOF
15931 if { (ac_try="$ac_cpp conftest.$ac_ext"
15932 case "(($ac_try" in
15933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934   *) ac_try_echo=$ac_try;;
15935 esac
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } >/dev/null; then
15944   if test -s conftest.err; then
15945     ac_cpp_err=$ac_c_preproc_warn_flag
15946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15947   else
15948     ac_cpp_err=
15949   fi
15950 else
15951   ac_cpp_err=yes
15952 fi
15953 if test -z "$ac_cpp_err"; then
15954   ac_header_preproc=yes
15955 else
15956   echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959   ac_header_preproc=no
15960 fi
15961
15962 rm -f conftest.err conftest.$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6; }
15965
15966 # So?  What about this header?
15967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968   yes:no: )
15969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15973     ac_header_preproc=yes
15974     ;;
15975   no:yes:* )
15976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15988     ( cat <<\_ASBOX
15989 ## ------------------------------------ ##
15990 ## Report this to http://llvm.org/bugs/ ##
15991 ## ------------------------------------ ##
15992 _ASBOX
15993      ) | sed "s/^/$as_me: WARNING:     /" >&2
15994     ;;
15995 esac
15996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   eval "$as_ac_Header=\$ac_header_preproc"
16002 fi
16003 ac_res=`eval echo '${'$as_ac_Header'}'`
16004                { echo "$as_me:$LINENO: result: $ac_res" >&5
16005 echo "${ECHO_T}$ac_res" >&6; }
16006
16007 fi
16008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16009   cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16011 _ACEOF
16012
16013 fi
16014
16015 done
16016
16017 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16018 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16019 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 #include <fenv.h>
16029
16030 int
16031 main ()
16032 {
16033 #ifndef FE_ALL_EXCEPT
16034   char *p = (char *) FE_ALL_EXCEPT;
16035   return !p;
16036 #endif
16037
16038   ;
16039   return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext
16043 if { (ac_try="$ac_compile"
16044 case "(($ac_try" in
16045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046   *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049   (eval "$ac_compile") 2>conftest.er1
16050   ac_status=$?
16051   grep -v '^ *+' conftest.er1 >conftest.err
16052   rm -f conftest.er1
16053   cat conftest.err >&5
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); } &&
16056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16057   { (case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_try") 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; } &&
16066          { ac_try='test -s conftest.$ac_objext'
16067   { (case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_try") 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081         ac_cv_have_decl_FE_ALL_EXCEPT=no
16082 fi
16083
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 fi
16086 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16087 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16088 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16089
16090 cat >>confdefs.h <<_ACEOF
16091 #define HAVE_DECL_FE_ALL_EXCEPT 1
16092 _ACEOF
16093
16094
16095 else
16096   cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_FE_ALL_EXCEPT 0
16098 _ACEOF
16099
16100
16101 fi
16102 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16103 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16104 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 #include <fenv.h>
16114
16115 int
16116 main ()
16117 {
16118 #ifndef FE_INEXACT
16119   char *p = (char *) FE_INEXACT;
16120   return !p;
16121 #endif
16122
16123   ;
16124   return 0;
16125 }
16126 _ACEOF
16127 rm -f conftest.$ac_objext
16128 if { (ac_try="$ac_compile"
16129 case "(($ac_try" in
16130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131   *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134   (eval "$ac_compile") 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (case "(($ac_try" in
16153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154   *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157   (eval "$ac_try") 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_have_decl_FE_INEXACT=yes
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166         ac_cv_have_decl_FE_INEXACT=no
16167 fi
16168
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 fi
16171 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16172 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16173 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16174
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_DECL_FE_INEXACT 1
16177 _ACEOF
16178
16179
16180 else
16181   cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_FE_INEXACT 0
16183 _ACEOF
16184
16185
16186 fi
16187
16188
16189 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16190
16191 for ac_header in pthread.h
16192 do
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 fi
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201                { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16203 else
16204   # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 $ac_includes_default
16214 #include <$ac_header>
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231   { (case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_try") 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; } &&
16240          { ac_try='test -s conftest.$ac_objext'
16241   { (case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_try") 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   ac_header_compiler=yes
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255         ac_header_compiler=no
16256 fi
16257
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16261
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 #include <$ac_header>
16272 _ACEOF
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } >/dev/null; then
16286   if test -s conftest.err; then
16287     ac_cpp_err=$ac_c_preproc_warn_flag
16288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16289   else
16290     ac_cpp_err=
16291   fi
16292 else
16293   ac_cpp_err=yes
16294 fi
16295 if test -z "$ac_cpp_err"; then
16296   ac_header_preproc=yes
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301   ac_header_preproc=no
16302 fi
16303
16304 rm -f conftest.err conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306 echo "${ECHO_T}$ac_header_preproc" >&6; }
16307
16308 # So?  What about this header?
16309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310   yes:no: )
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315     ac_header_preproc=yes
16316     ;;
16317   no:yes:* )
16318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330     ( cat <<\_ASBOX
16331 ## ------------------------------------ ##
16332 ## Report this to http://llvm.org/bugs/ ##
16333 ## ------------------------------------ ##
16334 _ASBOX
16335      ) | sed "s/^/$as_me: WARNING:     /" >&2
16336     ;;
16337 esac
16338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341   echo $ECHO_N "(cached) $ECHO_C" >&6
16342 else
16343   eval "$as_ac_Header=\$ac_header_preproc"
16344 fi
16345 ac_res=`eval echo '${'$as_ac_Header'}'`
16346                { echo "$as_me:$LINENO: result: $ac_res" >&5
16347 echo "${ECHO_T}$ac_res" >&6; }
16348
16349 fi
16350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351   cat >>confdefs.h <<_ACEOF
16352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16353 _ACEOF
16354  HAVE_PTHREAD=1
16355
16356 else
16357   HAVE_PTHREAD=0
16358
16359 fi
16360
16361 done
16362
16363 else
16364   HAVE_PTHREAD=0
16365
16366 fi
16367 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16368
16369 for ac_header in zlib.h
16370 do
16371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 fi
16378 ac_res=`eval echo '${'$as_ac_Header'}'`
16379                { echo "$as_me:$LINENO: result: $ac_res" >&5
16380 echo "${ECHO_T}$ac_res" >&6; }
16381 else
16382   # Is the header compilable?
16383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 $ac_includes_default
16392 #include <$ac_header>
16393 _ACEOF
16394 rm -f conftest.$ac_objext
16395 if { (ac_try="$ac_compile"
16396 case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_compile") 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } &&
16418          { ac_try='test -s conftest.$ac_objext'
16419   { (case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_try") 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; }; then
16428   ac_header_compiler=yes
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433         ac_header_compiler=no
16434 fi
16435
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16438 echo "${ECHO_T}$ac_header_compiler" >&6; }
16439
16440 # Is the header present?
16441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 #include <$ac_header>
16450 _ACEOF
16451 if { (ac_try="$ac_cpp conftest.$ac_ext"
16452 case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } >/dev/null; then
16464   if test -s conftest.err; then
16465     ac_cpp_err=$ac_c_preproc_warn_flag
16466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16467   else
16468     ac_cpp_err=
16469   fi
16470 else
16471   ac_cpp_err=yes
16472 fi
16473 if test -z "$ac_cpp_err"; then
16474   ac_header_preproc=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479   ac_header_preproc=no
16480 fi
16481
16482 rm -f conftest.err conftest.$ac_ext
16483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484 echo "${ECHO_T}$ac_header_preproc" >&6; }
16485
16486 # So?  What about this header?
16487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488   yes:no: )
16489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16493     ac_header_preproc=yes
16494     ;;
16495   no:yes:* )
16496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16508     ( cat <<\_ASBOX
16509 ## ------------------------------------ ##
16510 ## Report this to http://llvm.org/bugs/ ##
16511 ## ------------------------------------ ##
16512 _ASBOX
16513      ) | sed "s/^/$as_me: WARNING:     /" >&2
16514     ;;
16515 esac
16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   eval "$as_ac_Header=\$ac_header_preproc"
16522 fi
16523 ac_res=`eval echo '${'$as_ac_Header'}'`
16524                { echo "$as_me:$LINENO: result: $ac_res" >&5
16525 echo "${ECHO_T}$ac_res" >&6; }
16526
16527 fi
16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529   cat >>confdefs.h <<_ACEOF
16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16531 _ACEOF
16532  HAVE_LIBZ=1
16533
16534 else
16535   HAVE_LIBZ=0
16536
16537 fi
16538
16539 done
16540
16541 else
16542   HAVE_LIBZ=0
16543
16544 fi
16545
16546 if test "$llvm_cv_enable_libffi" = "yes" ; then
16547
16548
16549 for ac_header in ffi.h ffi/ffi.h
16550 do
16551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16556   echo $ECHO_N "(cached) $ECHO_C" >&6
16557 fi
16558 ac_res=`eval echo '${'$as_ac_Header'}'`
16559                { echo "$as_me:$LINENO: result: $ac_res" >&5
16560 echo "${ECHO_T}$ac_res" >&6; }
16561 else
16562   # Is the header compilable?
16563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571 $ac_includes_default
16572 #include <$ac_header>
16573 _ACEOF
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_compile") 2>conftest.er1
16582   ac_status=$?
16583   grep -v '^ *+' conftest.er1 >conftest.err
16584   rm -f conftest.er1
16585   cat conftest.err >&5
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } &&
16588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589   { (case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_try") 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; } &&
16598          { ac_try='test -s conftest.$ac_objext'
16599   { (case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_try") 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; }; then
16608   ac_header_compiler=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613         ac_header_compiler=no
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16618 echo "${ECHO_T}$ac_header_compiler" >&6; }
16619
16620 # Is the header present?
16621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629 #include <$ac_header>
16630 _ACEOF
16631 if { (ac_try="$ac_cpp conftest.$ac_ext"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } >/dev/null; then
16644   if test -s conftest.err; then
16645     ac_cpp_err=$ac_c_preproc_warn_flag
16646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16647   else
16648     ac_cpp_err=
16649   fi
16650 else
16651   ac_cpp_err=yes
16652 fi
16653 if test -z "$ac_cpp_err"; then
16654   ac_header_preproc=yes
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659   ac_header_preproc=no
16660 fi
16661
16662 rm -f conftest.err conftest.$ac_ext
16663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664 echo "${ECHO_T}$ac_header_preproc" >&6; }
16665
16666 # So?  What about this header?
16667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16668   yes:no: )
16669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16673     ac_header_preproc=yes
16674     ;;
16675   no:yes:* )
16676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16688     ( cat <<\_ASBOX
16689 ## ------------------------------------ ##
16690 ## Report this to http://llvm.org/bugs/ ##
16691 ## ------------------------------------ ##
16692 _ASBOX
16693      ) | sed "s/^/$as_me: WARNING:     /" >&2
16694     ;;
16695 esac
16696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16699   echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701   eval "$as_ac_Header=\$ac_header_preproc"
16702 fi
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704                { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16706
16707 fi
16708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16709   cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 _ACEOF
16712
16713 fi
16714
16715 done
16716
16717 fi
16718
16719
16720 for ac_header in CrashReporterClient.h
16721 do
16722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 fi
16729 ac_res=`eval echo '${'$as_ac_Header'}'`
16730                { echo "$as_me:$LINENO: result: $ac_res" >&5
16731 echo "${ECHO_T}$ac_res" >&6; }
16732 else
16733   # Is the header compilable?
16734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 $ac_includes_default
16743 #include <$ac_header>
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_compile") 2>conftest.er1
16753   ac_status=$?
16754   grep -v '^ *+' conftest.er1 >conftest.err
16755   rm -f conftest.er1
16756   cat conftest.err >&5
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } &&
16759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760   { (case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_try") 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; } &&
16769          { ac_try='test -s conftest.$ac_objext'
16770   { (case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_try") 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; }; then
16779   ac_header_compiler=yes
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784         ac_header_compiler=no
16785 fi
16786
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16789 echo "${ECHO_T}$ac_header_compiler" >&6; }
16790
16791 # Is the header present?
16792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h.  */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h.  */
16800 #include <$ac_header>
16801 _ACEOF
16802 if { (ac_try="$ac_cpp conftest.$ac_ext"
16803 case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16809   ac_status=$?
16810   grep -v '^ *+' conftest.er1 >conftest.err
16811   rm -f conftest.er1
16812   cat conftest.err >&5
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } >/dev/null; then
16815   if test -s conftest.err; then
16816     ac_cpp_err=$ac_c_preproc_warn_flag
16817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16818   else
16819     ac_cpp_err=
16820   fi
16821 else
16822   ac_cpp_err=yes
16823 fi
16824 if test -z "$ac_cpp_err"; then
16825   ac_header_preproc=yes
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830   ac_header_preproc=no
16831 fi
16832
16833 rm -f conftest.err conftest.$ac_ext
16834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16835 echo "${ECHO_T}$ac_header_preproc" >&6; }
16836
16837 # So?  What about this header?
16838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16839   yes:no: )
16840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16844     ac_header_preproc=yes
16845     ;;
16846   no:yes:* )
16847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16859     ( cat <<\_ASBOX
16860 ## ------------------------------------ ##
16861 ## Report this to http://llvm.org/bugs/ ##
16862 ## ------------------------------------ ##
16863 _ASBOX
16864      ) | sed "s/^/$as_me: WARNING:     /" >&2
16865     ;;
16866 esac
16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872   eval "$as_ac_Header=\$ac_header_preproc"
16873 fi
16874 ac_res=`eval echo '${'$as_ac_Header'}'`
16875                { echo "$as_me:$LINENO: result: $ac_res" >&5
16876 echo "${ECHO_T}$ac_res" >&6; }
16877
16878 fi
16879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16880   cat >>confdefs.h <<_ACEOF
16881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16882 _ACEOF
16883
16884 fi
16885
16886 done
16887
16888
16889 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16890 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16892
16893   /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898
16899     extern const char *__crashreporter_info__;
16900     int main() {
16901       __crashreporter_info__ = "test";
16902       return 0;
16903     }
16904
16905
16906 _ACEOF
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (ac_try="$ac_link"
16909 case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_link") 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } &&
16921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16931          { ac_try='test -s conftest$ac_exeext'
16932   { (case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_try") 2>&5
16938   ac_status=$?
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); }; }; then
16941
16942   { echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6; }
16944
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_CRASHREPORTER_INFO 1
16947 _ACEOF
16948
16949
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954
16955   { echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6; }
16957
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_CRASHREPORTER_INFO 0
16960 _ACEOF
16961
16962
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext \
16966       conftest$ac_exeext conftest.$ac_ext
16967
16968
16969
16970   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16971 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16972 if test "${ac_cv_huge_val_sanity+set}" = set; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975
16976     ac_ext=cpp
16977 ac_cpp='$CXXCPP $CPPFLAGS'
16978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16981
16982     ac_save_CXXFLAGS=$CXXFLAGS
16983     CXXFLAGS="$CXXFLAGS -pedantic"
16984     if test "$cross_compiling" = yes; then
16985   ac_cv_huge_val_sanity=yes
16986 else
16987   cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <math.h>
16994 int
16995 main ()
16996 {
16997 double x = HUGE_VAL; return x != x;
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_link") 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17013   { (case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_try") 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   ac_cv_huge_val_sanity=yes
17023 else
17024   echo "$as_me: program exited with status $ac_status" >&5
17025 echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ( exit $ac_status )
17029 ac_cv_huge_val_sanity=no
17030 fi
17031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17032 fi
17033
17034
17035     CXXFLAGS=$ac_save_CXXFLAGS
17036     ac_ext=c
17037 ac_cpp='$CPP $CPPFLAGS'
17038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17041
17042
17043 fi
17044 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17045 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17046   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17047
17048
17049 { echo "$as_me:$LINENO: checking for pid_t" >&5
17050 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17051 if test "${ac_cv_type_pid_t+set}" = set; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060 $ac_includes_default
17061 typedef pid_t ac__type_new_;
17062 int
17063 main ()
17064 {
17065 if ((ac__type_new_ *) 0)
17066   return 0;
17067 if (sizeof (ac__type_new_))
17068   return 0;
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (ac_try="$ac_compile"
17075 case "(($ac_try" in
17076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077   *) ac_try_echo=$ac_try;;
17078 esac
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080   (eval "$ac_compile") 2>conftest.er1
17081   ac_status=$?
17082   grep -v '^ *+' conftest.er1 >conftest.err
17083   rm -f conftest.er1
17084   cat conftest.err >&5
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); } &&
17087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17088   { (case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_try") 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; } &&
17097          { ac_try='test -s conftest.$ac_objext'
17098   { (case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_try") 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); }; }; then
17107   ac_cv_type_pid_t=yes
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112         ac_cv_type_pid_t=no
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116 fi
17117 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17118 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17119 if test $ac_cv_type_pid_t = yes; then
17120   :
17121 else
17122
17123 cat >>confdefs.h <<_ACEOF
17124 #define pid_t int
17125 _ACEOF
17126
17127 fi
17128
17129 { echo "$as_me:$LINENO: checking for size_t" >&5
17130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17131 if test "${ac_cv_type_size_t+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140 $ac_includes_default
17141 typedef size_t ac__type_new_;
17142 int
17143 main ()
17144 {
17145 if ((ac__type_new_ *) 0)
17146   return 0;
17147 if (sizeof (ac__type_new_))
17148   return 0;
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (ac_try="$ac_compile"
17155 case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_compile") 2>conftest.er1
17161   ac_status=$?
17162   grep -v '^ *+' conftest.er1 >conftest.err
17163   rm -f conftest.er1
17164   cat conftest.err >&5
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); } &&
17167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168   { (case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_try") 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; } &&
17177          { ac_try='test -s conftest.$ac_objext'
17178   { (case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_try") 2>&5
17184   ac_status=$?
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); }; }; then
17187   ac_cv_type_size_t=yes
17188 else
17189   echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192         ac_cv_type_size_t=no
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 fi
17197 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17198 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17199 if test $ac_cv_type_size_t = yes; then
17200   :
17201 else
17202
17203 cat >>confdefs.h <<_ACEOF
17204 #define size_t unsigned int
17205 _ACEOF
17206
17207 fi
17208
17209
17210 cat >>confdefs.h <<_ACEOF
17211 #define RETSIGTYPE void
17212 _ACEOF
17213
17214 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17215 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17216 if test "${ac_cv_struct_tm+set}" = set; then
17217   echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219   cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 #include <sys/types.h>
17226 #include <time.h>
17227
17228 int
17229 main ()
17230 {
17231 struct tm *tp; tp->tm_sec;
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (ac_try="$ac_compile"
17238 case "(($ac_try" in
17239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240   *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243   (eval "$ac_compile") 2>conftest.er1
17244   ac_status=$?
17245   grep -v '^ *+' conftest.er1 >conftest.err
17246   rm -f conftest.er1
17247   cat conftest.err >&5
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } &&
17250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251   { (case "(($ac_try" in
17252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253   *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256   (eval "$ac_try") 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; } &&
17260          { ac_try='test -s conftest.$ac_objext'
17261   { (case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_try") 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; }; then
17270   ac_cv_struct_tm=time.h
17271 else
17272   echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275         ac_cv_struct_tm=sys/time.h
17276 fi
17277
17278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 fi
17280 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17281 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17282 if test $ac_cv_struct_tm = sys/time.h; then
17283
17284 cat >>confdefs.h <<\_ACEOF
17285 #define TM_IN_SYS_TIME 1
17286 _ACEOF
17287
17288 fi
17289
17290 { echo "$as_me:$LINENO: checking for int64_t" >&5
17291 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17292 if test "${ac_cv_type_int64_t+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301 $ac_includes_default
17302 typedef int64_t ac__type_new_;
17303 int
17304 main ()
17305 {
17306 if ((ac__type_new_ *) 0)
17307   return 0;
17308 if (sizeof (ac__type_new_))
17309   return 0;
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_compile") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17329   { (case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_try") 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; } &&
17338          { ac_try='test -s conftest.$ac_objext'
17339   { (case "(($ac_try" in
17340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341   *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344   (eval "$ac_try") 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; }; then
17348   ac_cv_type_int64_t=yes
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353         ac_cv_type_int64_t=no
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17359 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17360 if test $ac_cv_type_int64_t = yes; then
17361
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_INT64_T 1
17364 _ACEOF
17365
17366
17367 else
17368   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17369 echo "$as_me: error: Type int64_t required but not found" >&2;}
17370    { (exit 1); exit 1; }; }
17371 fi
17372
17373 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17374 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17375 if test "${ac_cv_type_uint64_t+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h.  */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h.  */
17384 $ac_includes_default
17385 typedef uint64_t ac__type_new_;
17386 int
17387 main ()
17388 {
17389 if ((ac__type_new_ *) 0)
17390   return 0;
17391 if (sizeof (ac__type_new_))
17392   return 0;
17393   ;
17394   return 0;
17395 }
17396 _ACEOF
17397 rm -f conftest.$ac_objext
17398 if { (ac_try="$ac_compile"
17399 case "(($ac_try" in
17400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401   *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404   (eval "$ac_compile") 2>conftest.er1
17405   ac_status=$?
17406   grep -v '^ *+' conftest.er1 >conftest.err
17407   rm -f conftest.er1
17408   cat conftest.err >&5
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); } &&
17411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412   { (case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_try") 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; } &&
17421          { ac_try='test -s conftest.$ac_objext'
17422   { (case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_try") 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; }; then
17431   ac_cv_type_uint64_t=yes
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436         ac_cv_type_uint64_t=no
17437 fi
17438
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 fi
17441 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17442 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17443 if test $ac_cv_type_uint64_t = yes; then
17444
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_UINT64_T 1
17447 _ACEOF
17448
17449
17450 else
17451   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17452 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17453 if test "${ac_cv_type_u_int64_t+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h.  */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h.  */
17462 $ac_includes_default
17463 typedef u_int64_t ac__type_new_;
17464 int
17465 main ()
17466 {
17467 if ((ac__type_new_ *) 0)
17468   return 0;
17469 if (sizeof (ac__type_new_))
17470   return 0;
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_compile") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490   { (case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495   (eval "$ac_try") 2>&5
17496   ac_status=$?
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; } &&
17499          { ac_try='test -s conftest.$ac_objext'
17500   { (case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_try") 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   ac_cv_type_u_int64_t=yes
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514         ac_cv_type_u_int64_t=no
17515 fi
17516
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518 fi
17519 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17520 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17521 if test $ac_cv_type_u_int64_t = yes; then
17522
17523 cat >>confdefs.h <<_ACEOF
17524 #define HAVE_U_INT64_T 1
17525 _ACEOF
17526
17527
17528 else
17529   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17530 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17531    { (exit 1); exit 1; }; }
17532 fi
17533
17534 fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17546 do
17547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553   cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17561 #define $ac_func innocuous_$ac_func
17562
17563 /* System header to define __stub macros and hopefully few prototypes,
17564     which can conflict with char $ac_func (); below.
17565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17566     <limits.h> exists even on freestanding compilers.  */
17567
17568 #ifdef __STDC__
17569 # include <limits.h>
17570 #else
17571 # include <assert.h>
17572 #endif
17573
17574 #undef $ac_func
17575
17576 /* Override any GCC internal prototype to avoid an error.
17577    Use char because int might match the return type of a GCC
17578    builtin and then its argument prototype would still apply.  */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 char $ac_func ();
17583 /* The GNU C library defines this for functions which it implements
17584     to always fail with ENOSYS.  Some functions are actually named
17585     something starting with __ and the normal name is an alias.  */
17586 #if defined __stub_$ac_func || defined __stub___$ac_func
17587 choke me
17588 #endif
17589
17590 int
17591 main ()
17592 {
17593 return $ac_func ();
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17613   { (case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_try") 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; } &&
17622          { ac_try='test -s conftest$ac_exeext'
17623   { (case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_try") 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632   eval "$as_ac_var=yes"
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637         eval "$as_ac_var=no"
17638 fi
17639
17640 rm -f core conftest.err conftest.$ac_objext \
17641       conftest$ac_exeext conftest.$ac_ext
17642 fi
17643 ac_res=`eval echo '${'$as_ac_var'}'`
17644                { echo "$as_me:$LINENO: result: $ac_res" >&5
17645 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_var'}'` = yes; then
17647   cat >>confdefs.h <<_ACEOF
17648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 _ACEOF
17650
17651 fi
17652 done
17653
17654
17655
17656
17657
17658 for ac_func in powf fmodf strtof round
17659 do
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17664   echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666   cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h.  */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h.  */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17674 #define $ac_func innocuous_$ac_func
17675
17676 /* System header to define __stub macros and hopefully few prototypes,
17677     which can conflict with char $ac_func (); below.
17678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679     <limits.h> exists even on freestanding compilers.  */
17680
17681 #ifdef __STDC__
17682 # include <limits.h>
17683 #else
17684 # include <assert.h>
17685 #endif
17686
17687 #undef $ac_func
17688
17689 /* Override any GCC internal prototype to avoid an error.
17690    Use char because int might match the return type of a GCC
17691    builtin and then its argument prototype would still apply.  */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char $ac_func ();
17696 /* The GNU C library defines this for functions which it implements
17697     to always fail with ENOSYS.  Some functions are actually named
17698     something starting with __ and the normal name is an alias.  */
17699 #if defined __stub_$ac_func || defined __stub___$ac_func
17700 choke me
17701 #endif
17702
17703 int
17704 main ()
17705 {
17706 return $ac_func ();
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_link") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest$ac_exeext'
17736   { (case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_try") 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   eval "$as_ac_var=yes"
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750         eval "$as_ac_var=no"
17751 fi
17752
17753 rm -f core conftest.err conftest.$ac_objext \
17754       conftest$ac_exeext conftest.$ac_ext
17755 fi
17756 ac_res=`eval echo '${'$as_ac_var'}'`
17757                { echo "$as_me:$LINENO: result: $ac_res" >&5
17758 echo "${ECHO_T}$ac_res" >&6; }
17759 if test `eval echo '${'$as_ac_var'}'` = yes; then
17760   cat >>confdefs.h <<_ACEOF
17761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17762 _ACEOF
17763
17764 fi
17765 done
17766
17767
17768
17769
17770
17771
17772 for ac_func in log log2 log10 exp exp2
17773 do
17774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780   cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17788 #define $ac_func innocuous_$ac_func
17789
17790 /* System header to define __stub macros and hopefully few prototypes,
17791     which can conflict with char $ac_func (); below.
17792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17793     <limits.h> exists even on freestanding compilers.  */
17794
17795 #ifdef __STDC__
17796 # include <limits.h>
17797 #else
17798 # include <assert.h>
17799 #endif
17800
17801 #undef $ac_func
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804    Use char because int might match the return type of a GCC
17805    builtin and then its argument prototype would still apply.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char $ac_func ();
17810 /* The GNU C library defines this for functions which it implements
17811     to always fail with ENOSYS.  Some functions are actually named
17812     something starting with __ and the normal name is an alias.  */
17813 #if defined __stub_$ac_func || defined __stub___$ac_func
17814 choke me
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820 return $ac_func ();
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_link") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } &&
17839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17840   { (case "(($ac_try" in
17841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842   *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845   (eval "$ac_try") 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; } &&
17849          { ac_try='test -s conftest$ac_exeext'
17850   { (case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_try") 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; }; then
17859   eval "$as_ac_var=yes"
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864         eval "$as_ac_var=no"
17865 fi
17866
17867 rm -f core conftest.err conftest.$ac_objext \
17868       conftest$ac_exeext conftest.$ac_ext
17869 fi
17870 ac_res=`eval echo '${'$as_ac_var'}'`
17871                { echo "$as_me:$LINENO: result: $ac_res" >&5
17872 echo "${ECHO_T}$ac_res" >&6; }
17873 if test `eval echo '${'$as_ac_var'}'` = yes; then
17874   cat >>confdefs.h <<_ACEOF
17875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17876 _ACEOF
17877
17878 fi
17879 done
17880
17881
17882
17883
17884
17885
17886 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17887 do
17888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894   cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17902 #define $ac_func innocuous_$ac_func
17903
17904 /* System header to define __stub macros and hopefully few prototypes,
17905     which can conflict with char $ac_func (); below.
17906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17907     <limits.h> exists even on freestanding compilers.  */
17908
17909 #ifdef __STDC__
17910 # include <limits.h>
17911 #else
17912 # include <assert.h>
17913 #endif
17914
17915 #undef $ac_func
17916
17917 /* Override any GCC internal prototype to avoid an error.
17918    Use char because int might match the return type of a GCC
17919    builtin and then its argument prototype would still apply.  */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char $ac_func ();
17924 /* The GNU C library defines this for functions which it implements
17925     to always fail with ENOSYS.  Some functions are actually named
17926     something starting with __ and the normal name is an alias.  */
17927 #if defined __stub_$ac_func || defined __stub___$ac_func
17928 choke me
17929 #endif
17930
17931 int
17932 main ()
17933 {
17934 return $ac_func ();
17935   ;
17936   return 0;
17937 }
17938 _ACEOF
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (ac_try="$ac_link"
17941 case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_link") 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954   { (case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_try") 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; } &&
17963          { ac_try='test -s conftest$ac_exeext'
17964   { (case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969   (eval "$ac_try") 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; }; then
17973   eval "$as_ac_var=yes"
17974 else
17975   echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978         eval "$as_ac_var=no"
17979 fi
17980
17981 rm -f core conftest.err conftest.$ac_objext \
17982       conftest$ac_exeext conftest.$ac_ext
17983 fi
17984 ac_res=`eval echo '${'$as_ac_var'}'`
17985                { echo "$as_me:$LINENO: result: $ac_res" >&5
17986 echo "${ECHO_T}$ac_res" >&6; }
17987 if test `eval echo '${'$as_ac_var'}'` = yes; then
17988   cat >>confdefs.h <<_ACEOF
17989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17990 _ACEOF
17991
17992 fi
17993 done
17994
17995
17996
17997
17998 for ac_func in isatty mkdtemp mkstemp
17999 do
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006   cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18014 #define $ac_func innocuous_$ac_func
18015
18016 /* System header to define __stub macros and hopefully few prototypes,
18017     which can conflict with char $ac_func (); below.
18018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019     <limits.h> exists even on freestanding compilers.  */
18020
18021 #ifdef __STDC__
18022 # include <limits.h>
18023 #else
18024 # include <assert.h>
18025 #endif
18026
18027 #undef $ac_func
18028
18029 /* Override any GCC internal prototype to avoid an error.
18030    Use char because int might match the return type of a GCC
18031    builtin and then its argument prototype would still apply.  */
18032 #ifdef __cplusplus
18033 extern "C"
18034 #endif
18035 char $ac_func ();
18036 /* The GNU C library defines this for functions which it implements
18037     to always fail with ENOSYS.  Some functions are actually named
18038     something starting with __ and the normal name is an alias.  */
18039 #if defined __stub_$ac_func || defined __stub___$ac_func
18040 choke me
18041 #endif
18042
18043 int
18044 main ()
18045 {
18046 return $ac_func ();
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_link") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066   { (case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_try") 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest$ac_exeext'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085   eval "$as_ac_var=yes"
18086 else
18087   echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090         eval "$as_ac_var=no"
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094       conftest$ac_exeext conftest.$ac_ext
18095 fi
18096 ac_res=`eval echo '${'$as_ac_var'}'`
18097                { echo "$as_me:$LINENO: result: $ac_res" >&5
18098 echo "${ECHO_T}$ac_res" >&6; }
18099 if test `eval echo '${'$as_ac_var'}'` = yes; then
18100   cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18102 _ACEOF
18103
18104 fi
18105 done
18106
18107
18108
18109
18110
18111
18112
18113 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18114 do
18115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121   cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18129 #define $ac_func innocuous_$ac_func
18130
18131 /* System header to define __stub macros and hopefully few prototypes,
18132     which can conflict with char $ac_func (); below.
18133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18134     <limits.h> exists even on freestanding compilers.  */
18135
18136 #ifdef __STDC__
18137 # include <limits.h>
18138 #else
18139 # include <assert.h>
18140 #endif
18141
18142 #undef $ac_func
18143
18144 /* Override any GCC internal prototype to avoid an error.
18145    Use char because int might match the return type of a GCC
18146    builtin and then its argument prototype would still apply.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 char $ac_func ();
18151 /* The GNU C library defines this for functions which it implements
18152     to always fail with ENOSYS.  Some functions are actually named
18153     something starting with __ and the normal name is an alias.  */
18154 #if defined __stub_$ac_func || defined __stub___$ac_func
18155 choke me
18156 #endif
18157
18158 int
18159 main ()
18160 {
18161 return $ac_func ();
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_link") 2>conftest.er1
18174   ac_status=$?
18175   grep -v '^ *+' conftest.er1 >conftest.err
18176   rm -f conftest.er1
18177   cat conftest.err >&5
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } &&
18180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18181   { (case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_try") 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; } &&
18190          { ac_try='test -s conftest$ac_exeext'
18191   { (case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_try") 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; }; then
18200   eval "$as_ac_var=yes"
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205         eval "$as_ac_var=no"
18206 fi
18207
18208 rm -f core conftest.err conftest.$ac_objext \
18209       conftest$ac_exeext conftest.$ac_ext
18210 fi
18211 ac_res=`eval echo '${'$as_ac_var'}'`
18212                { echo "$as_me:$LINENO: result: $ac_res" >&5
18213 echo "${ECHO_T}$ac_res" >&6; }
18214 if test `eval echo '${'$as_ac_var'}'` = yes; then
18215   cat >>confdefs.h <<_ACEOF
18216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18217 _ACEOF
18218
18219 fi
18220 done
18221
18222
18223
18224
18225
18226 for ac_func in strerror strerror_r setenv arc4random
18227 do
18228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18232   echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234   cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h.  */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h.  */
18240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18242 #define $ac_func innocuous_$ac_func
18243
18244 /* System header to define __stub macros and hopefully few prototypes,
18245     which can conflict with char $ac_func (); below.
18246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18247     <limits.h> exists even on freestanding compilers.  */
18248
18249 #ifdef __STDC__
18250 # include <limits.h>
18251 #else
18252 # include <assert.h>
18253 #endif
18254
18255 #undef $ac_func
18256
18257 /* Override any GCC internal prototype to avoid an error.
18258    Use char because int might match the return type of a GCC
18259    builtin and then its argument prototype would still apply.  */
18260 #ifdef __cplusplus
18261 extern "C"
18262 #endif
18263 char $ac_func ();
18264 /* The GNU C library defines this for functions which it implements
18265     to always fail with ENOSYS.  Some functions are actually named
18266     something starting with __ and the normal name is an alias.  */
18267 #if defined __stub_$ac_func || defined __stub___$ac_func
18268 choke me
18269 #endif
18270
18271 int
18272 main ()
18273 {
18274 return $ac_func ();
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283   *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286   (eval "$ac_link") 2>conftest.er1
18287   ac_status=$?
18288   grep -v '^ *+' conftest.er1 >conftest.err
18289   rm -f conftest.er1
18290   cat conftest.err >&5
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } &&
18293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18294   { (case "(($ac_try" in
18295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296   *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299   (eval "$ac_try") 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; } &&
18303          { ac_try='test -s conftest$ac_exeext'
18304   { (case "(($ac_try" in
18305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306   *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309   (eval "$ac_try") 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; }; then
18313   eval "$as_ac_var=yes"
18314 else
18315   echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318         eval "$as_ac_var=no"
18319 fi
18320
18321 rm -f core conftest.err conftest.$ac_objext \
18322       conftest$ac_exeext conftest.$ac_ext
18323 fi
18324 ac_res=`eval echo '${'$as_ac_var'}'`
18325                { echo "$as_me:$LINENO: result: $ac_res" >&5
18326 echo "${ECHO_T}$ac_res" >&6; }
18327 if test `eval echo '${'$as_ac_var'}'` = yes; then
18328   cat >>confdefs.h <<_ACEOF
18329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18330 _ACEOF
18331
18332 fi
18333 done
18334
18335
18336
18337
18338
18339 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18340 do
18341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18345   echo $ECHO_N "(cached) $ECHO_C" >&6
18346 else
18347   cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h.  */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h.  */
18353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18355 #define $ac_func innocuous_$ac_func
18356
18357 /* System header to define __stub macros and hopefully few prototypes,
18358     which can conflict with char $ac_func (); below.
18359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18360     <limits.h> exists even on freestanding compilers.  */
18361
18362 #ifdef __STDC__
18363 # include <limits.h>
18364 #else
18365 # include <assert.h>
18366 #endif
18367
18368 #undef $ac_func
18369
18370 /* Override any GCC internal prototype to avoid an error.
18371    Use char because int might match the return type of a GCC
18372    builtin and then its argument prototype would still apply.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 char $ac_func ();
18377 /* The GNU C library defines this for functions which it implements
18378     to always fail with ENOSYS.  Some functions are actually named
18379     something starting with __ and the normal name is an alias.  */
18380 #if defined __stub_$ac_func || defined __stub___$ac_func
18381 choke me
18382 #endif
18383
18384 int
18385 main ()
18386 {
18387 return $ac_func ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396   *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399   (eval "$ac_link") 2>conftest.er1
18400   ac_status=$?
18401   grep -v '^ *+' conftest.er1 >conftest.err
18402   rm -f conftest.er1
18403   cat conftest.err >&5
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); } &&
18406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407   { (case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_try") 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_try") 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; }; then
18426   eval "$as_ac_var=yes"
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431         eval "$as_ac_var=no"
18432 fi
18433
18434 rm -f core conftest.err conftest.$ac_objext \
18435       conftest$ac_exeext conftest.$ac_ext
18436 fi
18437 ac_res=`eval echo '${'$as_ac_var'}'`
18438                { echo "$as_me:$LINENO: result: $ac_res" >&5
18439 echo "${ECHO_T}$ac_res" >&6; }
18440 if test `eval echo '${'$as_ac_var'}'` = yes; then
18441   cat >>confdefs.h <<_ACEOF
18442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18443 _ACEOF
18444
18445 fi
18446 done
18447
18448
18449
18450
18451
18452
18453 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18454 do
18455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18459   echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461   cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18469 #define $ac_func innocuous_$ac_func
18470
18471 /* System header to define __stub macros and hopefully few prototypes,
18472     which can conflict with char $ac_func (); below.
18473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474     <limits.h> exists even on freestanding compilers.  */
18475
18476 #ifdef __STDC__
18477 # include <limits.h>
18478 #else
18479 # include <assert.h>
18480 #endif
18481
18482 #undef $ac_func
18483
18484 /* Override any GCC internal prototype to avoid an error.
18485    Use char because int might match the return type of a GCC
18486    builtin and then its argument prototype would still apply.  */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 char $ac_func ();
18491 /* The GNU C library defines this for functions which it implements
18492     to always fail with ENOSYS.  Some functions are actually named
18493     something starting with __ and the normal name is an alias.  */
18494 #if defined __stub_$ac_func || defined __stub___$ac_func
18495 choke me
18496 #endif
18497
18498 int
18499 main ()
18500 {
18501 return $ac_func ();
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_link") 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } &&
18520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521   { (case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_try") 2>&5
18527   ac_status=$?
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); }; } &&
18530          { ac_try='test -s conftest$ac_exeext'
18531   { (case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_try") 2>&5
18537   ac_status=$?
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); }; }; then
18540   eval "$as_ac_var=yes"
18541 else
18542   echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545         eval "$as_ac_var=no"
18546 fi
18547
18548 rm -f core conftest.err conftest.$ac_objext \
18549       conftest$ac_exeext conftest.$ac_ext
18550 fi
18551 ac_res=`eval echo '${'$as_ac_var'}'`
18552                { echo "$as_me:$LINENO: result: $ac_res" >&5
18553 echo "${ECHO_T}$ac_res" >&6; }
18554 if test `eval echo '${'$as_ac_var'}'` = yes; then
18555   cat >>confdefs.h <<_ACEOF
18556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18557 _ACEOF
18558
18559 fi
18560 done
18561
18562
18563
18564 for ac_func in futimes futimens
18565 do
18566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18580 #define $ac_func innocuous_$ac_func
18581
18582 /* System header to define __stub macros and hopefully few prototypes,
18583     which can conflict with char $ac_func (); below.
18584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585     <limits.h> exists even on freestanding compilers.  */
18586
18587 #ifdef __STDC__
18588 # include <limits.h>
18589 #else
18590 # include <assert.h>
18591 #endif
18592
18593 #undef $ac_func
18594
18595 /* Override any GCC internal prototype to avoid an error.
18596    Use char because int might match the return type of a GCC
18597    builtin and then its argument prototype would still apply.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 char $ac_func ();
18602 /* The GNU C library defines this for functions which it implements
18603     to always fail with ENOSYS.  Some functions are actually named
18604     something starting with __ and the normal name is an alias.  */
18605 #if defined __stub_$ac_func || defined __stub___$ac_func
18606 choke me
18607 #endif
18608
18609 int
18610 main ()
18611 {
18612 return $ac_func ();
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621   *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624   (eval "$ac_link") 2>conftest.er1
18625   ac_status=$?
18626   grep -v '^ *+' conftest.er1 >conftest.err
18627   rm -f conftest.er1
18628   cat conftest.err >&5
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); } &&
18631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632   { (case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_try") 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest$ac_exeext'
18642   { (case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_try") 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; }; then
18651   eval "$as_ac_var=yes"
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656         eval "$as_ac_var=no"
18657 fi
18658
18659 rm -f core conftest.err conftest.$ac_objext \
18660       conftest$ac_exeext conftest.$ac_ext
18661 fi
18662 ac_res=`eval echo '${'$as_ac_var'}'`
18663                { echo "$as_me:$LINENO: result: $ac_res" >&5
18664 echo "${ECHO_T}$ac_res" >&6; }
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666   cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 _ACEOF
18669
18670 fi
18671 done
18672
18673 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18674 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18675 if test "${llvm_cv_c_printf_a+set}" = set; then
18676   echo $ECHO_N "(cached) $ECHO_C" >&6
18677 else
18678   ac_ext=c
18679 ac_cpp='$CPP $CPPFLAGS'
18680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18683
18684  if test "$cross_compiling" = yes; then
18685   llvmac_cv_c_printf_a=no
18686 else
18687   cat >conftest.$ac_ext <<_ACEOF
18688
18689   /* confdefs.h.  */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h.  */
18694
18695 #include <stdio.h>
18696 #include <stdlib.h>
18697
18698 int
18699 main ()
18700 {
18701
18702 volatile double A, B;
18703 char Buffer[100];
18704 A = 1;
18705 A /= 10.0;
18706 sprintf(Buffer, "%a", A);
18707 B = atof(Buffer);
18708 if (A != B)
18709   return (1);
18710 if (A != 0x1.999999999999ap-4)
18711   return (1);
18712 return (0);
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_link") 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728   { (case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_try") 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; }; then
18737   llvm_cv_c_printf_a=yes
18738 else
18739   echo "$as_me: program exited with status $ac_status" >&5
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ( exit $ac_status )
18744 llvmac_cv_c_printf_a=no
18745 fi
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18747 fi
18748
18749
18750  ac_ext=c
18751 ac_cpp='$CPP $CPPFLAGS'
18752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18755
18756 fi
18757 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18758 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18759  if test "$llvm_cv_c_printf_a" = "yes"; then
18760
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_PRINTF_A 1
18763 _ACEOF
18764
18765  fi
18766
18767
18768
18769   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18770 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18771 if test "${ac_cv_func_rand48+set}" = set; then
18772   echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774
18775     ac_ext=cpp
18776 ac_cpp='$CXXCPP $CPPFLAGS'
18777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18780
18781     cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787 #include <stdlib.h>
18788 int
18789 main ()
18790 {
18791 srand48(0);lrand48();drand48();
18792   ;
18793   return 0;
18794 }
18795 _ACEOF
18796 rm -f conftest.$ac_objext
18797 if { (ac_try="$ac_compile"
18798 case "(($ac_try" in
18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800   *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803   (eval "$ac_compile") 2>conftest.er1
18804   ac_status=$?
18805   grep -v '^ *+' conftest.er1 >conftest.err
18806   rm -f conftest.er1
18807   cat conftest.err >&5
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); } &&
18810          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18811   { (case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_try") 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; } &&
18820          { ac_try='test -s conftest.$ac_objext'
18821   { (case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_try") 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830   ac_cv_func_rand48=yes
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835         ac_cv_func_rand48=no
18836 fi
18837
18838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839     ac_ext=c
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18844
18845
18846 fi
18847 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18848 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18849
18850 if test "$ac_cv_func_rand48" = "yes" ; then
18851
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_RAND48 1
18854 _ACEOF
18855
18856 fi
18857
18858
18859 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18860 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18861 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18862   echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864   cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h.  */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h.  */
18870 $ac_includes_default
18871 int
18872 main ()
18873 {
18874 #ifndef strerror_s
18875   char *p = (char *) strerror_s;
18876   return !p;
18877 #endif
18878
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext
18884 if { (ac_try="$ac_compile"
18885 case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_compile") 2>conftest.er1
18891   ac_status=$?
18892   grep -v '^ *+' conftest.er1 >conftest.err
18893   rm -f conftest.er1
18894   cat conftest.err >&5
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); } &&
18897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898   { (case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_try") 2>&5
18904   ac_status=$?
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); }; } &&
18907          { ac_try='test -s conftest.$ac_objext'
18908   { (case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_try") 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917   ac_cv_have_decl_strerror_s=yes
18918 else
18919   echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922         ac_cv_have_decl_strerror_s=no
18923 fi
18924
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 fi
18927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18928 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18929 if test $ac_cv_have_decl_strerror_s = yes; then
18930
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_DECL_STRERROR_S 1
18933 _ACEOF
18934
18935
18936 else
18937   cat >>confdefs.h <<_ACEOF
18938 #define HAVE_DECL_STRERROR_S 0
18939 _ACEOF
18940
18941
18942 fi
18943
18944
18945
18946 if test "$llvm_cv_os_type" = "MingW" ; then
18947   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18948 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18949 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-lgcc  $LIBS"
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 /* Override any GCC internal prototype to avoid an error.
18962    Use char because int might match the return type of a GCC
18963    builtin and then its argument prototype would still apply.  */
18964 #ifdef __cplusplus
18965 extern "C"
18966 #endif
18967 char _alloca ();
18968 int
18969 main ()
18970 {
18971 return _alloca ();
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (ac_try="$ac_link"
18978 case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_link") 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } &&
18990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18991   { (case "(($ac_try" in
18992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993   *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996   (eval "$ac_try") 2>&5
18997   ac_status=$?
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); }; } &&
19000          { ac_try='test -s conftest$ac_exeext'
19001   { (case "(($ac_try" in
19002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003   *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006   (eval "$ac_try") 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; }; then
19010   ac_cv_lib_gcc__alloca=yes
19011 else
19012   echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015         ac_cv_lib_gcc__alloca=no
19016 fi
19017
19018 rm -f core conftest.err conftest.$ac_objext \
19019       conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19021 fi
19022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19023 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19024 if test $ac_cv_lib_gcc__alloca = yes; then
19025
19026 cat >>confdefs.h <<\_ACEOF
19027 #define HAVE__ALLOCA 1
19028 _ACEOF
19029
19030 fi
19031
19032   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19033 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19034 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-lgcc  $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045
19046 /* Override any GCC internal prototype to avoid an error.
19047    Use char because int might match the return type of a GCC
19048    builtin and then its argument prototype would still apply.  */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 char __alloca ();
19053 int
19054 main ()
19055 {
19056 return __alloca ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_link") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076   { (case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_try") 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest$ac_exeext'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_lib_gcc___alloca=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         ac_cv_lib_gcc___alloca=no
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext \
19104       conftest$ac_exeext conftest.$ac_ext
19105 LIBS=$ac_check_lib_save_LIBS
19106 fi
19107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19108 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19109 if test $ac_cv_lib_gcc___alloca = yes; then
19110
19111 cat >>confdefs.h <<\_ACEOF
19112 #define HAVE___ALLOCA 1
19113 _ACEOF
19114
19115 fi
19116
19117   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19118 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19119 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-lgcc  $LIBS"
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h.  */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h.  */
19130
19131 /* Override any GCC internal prototype to avoid an error.
19132    Use char because int might match the return type of a GCC
19133    builtin and then its argument prototype would still apply.  */
19134 #ifdef __cplusplus
19135 extern "C"
19136 #endif
19137 char __chkstk ();
19138 int
19139 main ()
19140 {
19141 return __chkstk ();
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153   (eval "$ac_link") 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } &&
19160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19161   { (case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_try") 2>&5
19167   ac_status=$?
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); }; } &&
19170          { ac_try='test -s conftest$ac_exeext'
19171   { (case "(($ac_try" in
19172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173   *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176   (eval "$ac_try") 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; }; then
19180   ac_cv_lib_gcc___chkstk=yes
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185         ac_cv_lib_gcc___chkstk=no
19186 fi
19187
19188 rm -f core conftest.err conftest.$ac_objext \
19189       conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19191 fi
19192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19193 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19194 if test $ac_cv_lib_gcc___chkstk = yes; then
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE___CHKSTK 1
19198 _ACEOF
19199
19200 fi
19201
19202   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19203 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19204 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207   ac_check_lib_save_LIBS=$LIBS
19208 LIBS="-lgcc  $LIBS"
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217    Use char because int might match the return type of a GCC
19218    builtin and then its argument prototype would still apply.  */
19219 #ifdef __cplusplus
19220 extern "C"
19221 #endif
19222 char ___chkstk ();
19223 int
19224 main ()
19225 {
19226 return ___chkstk ();
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235   *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238   (eval "$ac_link") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246   { (case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_try") 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest$ac_exeext'
19256   { (case "(($ac_try" in
19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258   *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261   (eval "$ac_try") 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; }; then
19265   ac_cv_lib_gcc____chkstk=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         ac_cv_lib_gcc____chkstk=no
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext \
19274       conftest$ac_exeext conftest.$ac_ext
19275 LIBS=$ac_check_lib_save_LIBS
19276 fi
19277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19278 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19279 if test $ac_cv_lib_gcc____chkstk = yes; then
19280
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE____CHKSTK 1
19283 _ACEOF
19284
19285 fi
19286
19287
19288   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19289 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19290 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19291   echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293   ac_check_lib_save_LIBS=$LIBS
19294 LIBS="-lgcc  $LIBS"
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301
19302 /* Override any GCC internal prototype to avoid an error.
19303    Use char because int might match the return type of a GCC
19304    builtin and then its argument prototype would still apply.  */
19305 #ifdef __cplusplus
19306 extern "C"
19307 #endif
19308 char __ashldi3 ();
19309 int
19310 main ()
19311 {
19312 return __ashldi3 ();
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (ac_try="$ac_link"
19319 case "(($ac_try" in
19320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321   *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324   (eval "$ac_link") 2>conftest.er1
19325   ac_status=$?
19326   grep -v '^ *+' conftest.er1 >conftest.err
19327   rm -f conftest.er1
19328   cat conftest.err >&5
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19332   { (case "(($ac_try" in
19333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334   *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337   (eval "$ac_try") 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; } &&
19341          { ac_try='test -s conftest$ac_exeext'
19342   { (case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_try") 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351   ac_cv_lib_gcc___ashldi3=yes
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356         ac_cv_lib_gcc___ashldi3=no
19357 fi
19358
19359 rm -f core conftest.err conftest.$ac_objext \
19360       conftest$ac_exeext conftest.$ac_ext
19361 LIBS=$ac_check_lib_save_LIBS
19362 fi
19363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19364 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19365 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19366
19367 cat >>confdefs.h <<\_ACEOF
19368 #define HAVE___ASHLDI3 1
19369 _ACEOF
19370
19371 fi
19372
19373   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19374 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19375 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19376   echo $ECHO_N "(cached) $ECHO_C" >&6
19377 else
19378   ac_check_lib_save_LIBS=$LIBS
19379 LIBS="-lgcc  $LIBS"
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386
19387 /* Override any GCC internal prototype to avoid an error.
19388    Use char because int might match the return type of a GCC
19389    builtin and then its argument prototype would still apply.  */
19390 #ifdef __cplusplus
19391 extern "C"
19392 #endif
19393 char __ashrdi3 ();
19394 int
19395 main ()
19396 {
19397 return __ashrdi3 ();
19398   ;
19399   return 0;
19400 }
19401 _ACEOF
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406   *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409   (eval "$ac_link") 2>conftest.er1
19410   ac_status=$?
19411   grep -v '^ *+' conftest.er1 >conftest.err
19412   rm -f conftest.er1
19413   cat conftest.err >&5
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); } &&
19416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19417   { (case "(($ac_try" in
19418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419   *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422   (eval "$ac_try") 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432   (eval "$ac_try") 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; }; then
19436   ac_cv_lib_gcc___ashrdi3=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441         ac_cv_lib_gcc___ashrdi3=no
19442 fi
19443
19444 rm -f core conftest.err conftest.$ac_objext \
19445       conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19447 fi
19448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19449 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19450 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19451
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE___ASHRDI3 1
19454 _ACEOF
19455
19456 fi
19457
19458   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19459 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19460 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   ac_check_lib_save_LIBS=$LIBS
19464 LIBS="-lgcc  $LIBS"
19465 cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471
19472 /* Override any GCC internal prototype to avoid an error.
19473    Use char because int might match the return type of a GCC
19474    builtin and then its argument prototype would still apply.  */
19475 #ifdef __cplusplus
19476 extern "C"
19477 #endif
19478 char __divdi3 ();
19479 int
19480 main ()
19481 {
19482 return __divdi3 ();
19483   ;
19484   return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (ac_try="$ac_link"
19489 case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_link") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } &&
19501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19502   { (case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507   (eval "$ac_try") 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; } &&
19511          { ac_try='test -s conftest$ac_exeext'
19512   { (case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_try") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; }; then
19521   ac_cv_lib_gcc___divdi3=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526         ac_cv_lib_gcc___divdi3=no
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext \
19530       conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19532 fi
19533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19534 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19535 if test $ac_cv_lib_gcc___divdi3 = yes; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE___DIVDI3 1
19539 _ACEOF
19540
19541 fi
19542
19543   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19544 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19545 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   ac_check_lib_save_LIBS=$LIBS
19549 LIBS="-lgcc  $LIBS"
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558    Use char because int might match the return type of a GCC
19559    builtin and then its argument prototype would still apply.  */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char __fixdfdi ();
19564 int
19565 main ()
19566 {
19567 return __fixdfdi ();
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576   *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579   (eval "$ac_link") 2>conftest.er1
19580   ac_status=$?
19581   grep -v '^ *+' conftest.er1 >conftest.err
19582   rm -f conftest.er1
19583   cat conftest.err >&5
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } &&
19586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19587   { (case "(($ac_try" in
19588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589   *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592   (eval "$ac_try") 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; } &&
19596          { ac_try='test -s conftest$ac_exeext'
19597   { (case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_try") 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; }; then
19606   ac_cv_lib_gcc___fixdfdi=yes
19607 else
19608   echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19610
19611         ac_cv_lib_gcc___fixdfdi=no
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext \
19615       conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19617 fi
19618 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19619 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19620 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19621
19622 cat >>confdefs.h <<\_ACEOF
19623 #define HAVE___FIXDFDI 1
19624 _ACEOF
19625
19626 fi
19627
19628   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19629 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19630 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19631   echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633   ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-lgcc  $LIBS"
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641
19642 /* Override any GCC internal prototype to avoid an error.
19643    Use char because int might match the return type of a GCC
19644    builtin and then its argument prototype would still apply.  */
19645 #ifdef __cplusplus
19646 extern "C"
19647 #endif
19648 char __fixsfdi ();
19649 int
19650 main ()
19651 {
19652 return __fixsfdi ();
19653   ;
19654   return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_link") 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } &&
19671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19672   { (case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_try") 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; } &&
19681          { ac_try='test -s conftest$ac_exeext'
19682   { (case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_try") 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; }; then
19691   ac_cv_lib_gcc___fixsfdi=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696         ac_cv_lib_gcc___fixsfdi=no
19697 fi
19698
19699 rm -f core conftest.err conftest.$ac_objext \
19700       conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19702 fi
19703 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19704 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19705 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE___FIXSFDI 1
19709 _ACEOF
19710
19711 fi
19712
19713   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19714 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19715 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_check_lib_save_LIBS=$LIBS
19719 LIBS="-lgcc  $LIBS"
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726
19727 /* Override any GCC internal prototype to avoid an error.
19728    Use char because int might match the return type of a GCC
19729    builtin and then its argument prototype would still apply.  */
19730 #ifdef __cplusplus
19731 extern "C"
19732 #endif
19733 char __floatdidf ();
19734 int
19735 main ()
19736 {
19737 return __floatdidf ();
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_link") 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } &&
19756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19757   { (case "(($ac_try" in
19758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759   *) ac_try_echo=$ac_try;;
19760 esac
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762   (eval "$ac_try") 2>&5
19763   ac_status=$?
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); }; } &&
19766          { ac_try='test -s conftest$ac_exeext'
19767   { (case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772   (eval "$ac_try") 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; }; then
19776   ac_cv_lib_gcc___floatdidf=yes
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781         ac_cv_lib_gcc___floatdidf=no
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext \
19785       conftest$ac_exeext conftest.$ac_ext
19786 LIBS=$ac_check_lib_save_LIBS
19787 fi
19788 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19789 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19790 if test $ac_cv_lib_gcc___floatdidf = yes; then
19791
19792 cat >>confdefs.h <<\_ACEOF
19793 #define HAVE___FLOATDIDF 1
19794 _ACEOF
19795
19796 fi
19797
19798   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19799 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lgcc  $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813    Use char because int might match the return type of a GCC
19814    builtin and then its argument prototype would still apply.  */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char __lshrdi3 ();
19819 int
19820 main ()
19821 {
19822 return __lshrdi3 ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_link") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } &&
19841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842   { (case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_try") 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; } &&
19851          { ac_try='test -s conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_lib_gcc___lshrdi3=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         ac_cv_lib_gcc___lshrdi3=no
19867 fi
19868
19869 rm -f core conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_check_lib_save_LIBS
19872 fi
19873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19874 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19875 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19876
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE___LSHRDI3 1
19879 _ACEOF
19880
19881 fi
19882
19883   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19884 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lgcc  $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19896
19897 /* Override any GCC internal prototype to avoid an error.
19898    Use char because int might match the return type of a GCC
19899    builtin and then its argument prototype would still apply.  */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char __moddi3 ();
19904 int
19905 main ()
19906 {
19907 return __moddi3 ();
19908   ;
19909   return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_link") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } &&
19926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19927   { (case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_try") 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } &&
19936          { ac_try='test -s conftest$ac_exeext'
19937   { (case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_try") 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_gcc___moddi3=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951         ac_cv_lib_gcc___moddi3=no
19952 fi
19953
19954 rm -f core conftest.err conftest.$ac_objext \
19955       conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19957 fi
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19959 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19960 if test $ac_cv_lib_gcc___moddi3 = yes; then
19961
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE___MODDI3 1
19964 _ACEOF
19965
19966 fi
19967
19968   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19969 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lgcc  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any GCC internal prototype to avoid an error.
19983    Use char because int might match the return type of a GCC
19984    builtin and then its argument prototype would still apply.  */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 char __udivdi3 ();
19989 int
19990 main ()
19991 {
19992 return __udivdi3 ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004   (eval "$ac_link") 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } &&
20011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012   { (case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_try") 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest$ac_exeext'
20022   { (case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_try") 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031   ac_cv_lib_gcc___udivdi3=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036         ac_cv_lib_gcc___udivdi3=no
20037 fi
20038
20039 rm -f core conftest.err conftest.$ac_objext \
20040       conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20042 fi
20043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20044 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20045 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20046
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE___UDIVDI3 1
20049 _ACEOF
20050
20051 fi
20052
20053   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20054 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20055 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058   ac_check_lib_save_LIBS=$LIBS
20059 LIBS="-lgcc  $LIBS"
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066
20067 /* Override any GCC internal prototype to avoid an error.
20068    Use char because int might match the return type of a GCC
20069    builtin and then its argument prototype would still apply.  */
20070 #ifdef __cplusplus
20071 extern "C"
20072 #endif
20073 char __umoddi3 ();
20074 int
20075 main ()
20076 {
20077 return __umoddi3 ();
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_link") 2>conftest.er1
20090   ac_status=$?
20091   grep -v '^ *+' conftest.er1 >conftest.err
20092   rm -f conftest.er1
20093   cat conftest.err >&5
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); } &&
20096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097   { (case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102   (eval "$ac_try") 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; } &&
20106          { ac_try='test -s conftest$ac_exeext'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   ac_cv_lib_gcc___umoddi3=yes
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         ac_cv_lib_gcc___umoddi3=no
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext \
20125       conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20129 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20130 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20131
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE___UMODDI3 1
20134 _ACEOF
20135
20136 fi
20137
20138
20139   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20140 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20141 if test "${ac_cv_lib_gcc___main+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   ac_check_lib_save_LIBS=$LIBS
20145 LIBS="-lgcc  $LIBS"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any GCC internal prototype to avoid an error.
20154    Use char because int might match the return type of a GCC
20155    builtin and then its argument prototype would still apply.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 #endif
20159 char __main ();
20160 int
20161 main ()
20162 {
20163 return __main ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } &&
20182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183   { (case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_try") 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest$ac_exeext'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_cv_lib_gcc___main=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         ac_cv_lib_gcc___main=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext \
20211       conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20213 fi
20214 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20215 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20216 if test $ac_cv_lib_gcc___main = yes; then
20217
20218 cat >>confdefs.h <<\_ACEOF
20219 #define HAVE___MAIN 1
20220 _ACEOF
20221
20222 fi
20223
20224   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20225 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20226 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229   ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lgcc  $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237
20238 /* Override any GCC internal prototype to avoid an error.
20239    Use char because int might match the return type of a GCC
20240    builtin and then its argument prototype would still apply.  */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char __cmpdi2 ();
20245 int
20246 main ()
20247 {
20248 return __cmpdi2 ();
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_link") 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } &&
20267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20268   { (case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_try") 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; } &&
20277          { ac_try='test -s conftest$ac_exeext'
20278   { (case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_try") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; }; then
20287   ac_cv_lib_gcc___cmpdi2=yes
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292         ac_cv_lib_gcc___cmpdi2=no
20293 fi
20294
20295 rm -f core conftest.err conftest.$ac_objext \
20296       conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20298 fi
20299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20300 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20301 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20302
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE___CMPDI2 1
20305 _ACEOF
20306
20307 fi
20308
20309 fi
20310
20311 if test "$llvm_cv_os_type" = "MingW" ; then
20312   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20313 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20314   cat >conftest.$ac_ext <<_ACEOF
20315
20316   /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321
20322     #include <windows.h>
20323     #include <imagehlp.h>
20324     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20325     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20326
20327
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_compile") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } &&
20343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20344   { (case "(($ac_try" in
20345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346   *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349   (eval "$ac_try") 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; } &&
20353          { ac_try='test -s conftest.$ac_objext'
20354   { (case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_try") 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363
20364   { echo "$as_me:$LINENO: result: yes" >&5
20365 echo "${ECHO_T}yes" >&6; }
20366   llvm_cv_win32_elmcb_pcstr="PCSTR"
20367
20368 else
20369   echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372
20373   { echo "$as_me:$LINENO: result: no" >&5
20374 echo "${ECHO_T}no" >&6; }
20375   llvm_cv_win32_elmcb_pcstr="PSTR"
20376
20377 fi
20378
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20383 _ACEOF
20384
20385 fi
20386
20387
20388
20389   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20390 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20391 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20392   echo $ECHO_N "(cached) $ECHO_C" >&6
20393 else
20394
20395     ac_ext=cpp
20396 ac_cpp='$CXXCPP $CPPFLAGS'
20397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20400
20401     cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407 #include <math.h>
20408 int
20409 main ()
20410 {
20411 float f; isnan(f);
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_compile") 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } &&
20430          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; } &&
20440          { ac_try='test -s conftest.$ac_objext'
20441   { (case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446   (eval "$ac_try") 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_cv_func_isnan_in_math_h=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         ac_cv_func_isnan_in_math_h=no
20456 fi
20457
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459     ac_ext=c
20460 ac_cpp='$CPP $CPPFLAGS'
20461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20464
20465
20466 fi
20467 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20469
20470
20471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_ISNAN_IN_MATH_H 1
20475 _ACEOF
20476
20477 fi
20478
20479
20480   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20481 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20482 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485
20486     ac_ext=cpp
20487 ac_cpp='$CXXCPP $CPPFLAGS'
20488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20491
20492     cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 #include <cmath>
20499 int
20500 main ()
20501 {
20502 float f; isnan(f);
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_compile") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } &&
20521          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20522   { (case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_try") 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; } &&
20531          { ac_try='test -s conftest.$ac_objext'
20532   { (case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_try") 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_func_isnan_in_cmath=yes
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546         ac_cv_func_isnan_in_cmath=no
20547 fi
20548
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550     ac_ext=c
20551 ac_cpp='$CPP $CPPFLAGS'
20552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20555
20556
20557 fi
20558 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20559 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20560
20561 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20562
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_ISNAN_IN_CMATH 1
20565 _ACEOF
20566
20567 fi
20568
20569
20570   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20571 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575
20576     ac_ext=cpp
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20581
20582     cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <cmath>
20589 int
20590 main ()
20591 {
20592 float f; std::isnan(f);
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601   *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604   (eval "$ac_compile") 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20612   { (case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_try") 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); }; } &&
20621          { ac_try='test -s conftest.$ac_objext'
20622   { (case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_try") 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_func_std_isnan_in_cmath=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636         ac_cv_func_std_isnan_in_cmath=no
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640     ac_ext=c
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
20646
20647 fi
20648 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20649 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20650
20651 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20652
20653 cat >>confdefs.h <<\_ACEOF
20654 #define HAVE_STD_ISNAN_IN_CMATH 1
20655 _ACEOF
20656
20657 fi
20658
20659
20660
20661
20662   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20663 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667
20668     ac_ext=cpp
20669 ac_cpp='$CXXCPP $CPPFLAGS'
20670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20673
20674     cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <math.h>
20681 int
20682 main ()
20683 {
20684 float f; isinf(f);
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693   *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696   (eval "$ac_compile") 2>conftest.er1
20697   ac_status=$?
20698   grep -v '^ *+' conftest.er1 >conftest.err
20699   rm -f conftest.er1
20700   cat conftest.err >&5
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } &&
20703          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; } &&
20713          { ac_try='test -s conftest.$ac_objext'
20714   { (case "(($ac_try" in
20715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716   *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719   (eval "$ac_try") 2>&5
20720   ac_status=$?
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); }; }; then
20723   ac_cv_func_isinf_in_math_h=yes
20724 else
20725   echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728         ac_cv_func_isinf_in_math_h=no
20729 fi
20730
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732     ac_ext=c
20733 ac_cpp='$CPP $CPPFLAGS'
20734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20737
20738
20739 fi
20740 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20741 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20742
20743 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20744
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ISINF_IN_MATH_H 1
20747 _ACEOF
20748
20749 fi
20750
20751
20752   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20753 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20754 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757
20758     ac_ext=cpp
20759 ac_cpp='$CXXCPP $CPPFLAGS'
20760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20763
20764     cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 #include <cmath>
20771 int
20772 main ()
20773 {
20774 float f; isinf(f);
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783   *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786   (eval "$ac_compile") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794   { (case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_try") 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; } &&
20803          { ac_try='test -s conftest.$ac_objext'
20804   { (case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_try") 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; }; then
20813   ac_cv_func_isinf_in_cmath=yes
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818         ac_cv_func_isinf_in_cmath=no
20819 fi
20820
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822     ac_ext=c
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
20828
20829 fi
20830 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20831 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20832
20833 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20834
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_ISINF_IN_CMATH 1
20837 _ACEOF
20838
20839 fi
20840
20841
20842   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20843 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20844 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20845   echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847
20848     ac_ext=cpp
20849 ac_cpp='$CXXCPP $CPPFLAGS'
20850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20853
20854     cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <cmath>
20861 int
20862 main ()
20863 {
20864 float f; std::isinf(f);
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } &&
20883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20884   { (case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_try") 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; } &&
20893          { ac_try='test -s conftest.$ac_objext'
20894   { (case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_try") 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   ac_cv_func_std_isinf_in_cmath=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_cv_func_std_isinf_in_cmath=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912     ac_ext=c
20913 ac_cpp='$CPP $CPPFLAGS'
20914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20917
20918
20919 fi
20920 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20921 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20922
20923 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_STD_ISINF_IN_CMATH 1
20927 _ACEOF
20928
20929 fi
20930
20931
20932   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20933 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20934 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20935   echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937
20938     ac_ext=cpp
20939 ac_cpp='$CXXCPP $CPPFLAGS'
20940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20943
20944     cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <ieeefp.h>
20951 int
20952 main ()
20953 {
20954 float f; finite(f);
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_compile") 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } &&
20973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974   { (case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_try") 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; } &&
20983          { ac_try='test -s conftest.$ac_objext'
20984   { (case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_try") 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   ac_cv_func_finite_in_ieeefp_h=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         ac_cv_func_finite_in_ieeefp_h=no
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002     ac_ext=c
21003 ac_cpp='$CPP $CPPFLAGS'
21004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007
21008
21009 fi
21010 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21011 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21012
21013 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21014
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_FINITE_IN_IEEEFP_H 1
21017 _ACEOF
21018
21019 fi
21020
21021
21022
21023 if test "$llvm_cv_platform_type" = "Unix" ; then
21024
21025
21026 for ac_header in stdlib.h unistd.h
21027 do
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 fi
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036                { echo "$as_me:$LINENO: result: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21038 else
21039   # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048 $ac_includes_default
21049 #include <$ac_header>
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } &&
21065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21066   { (case "(($ac_try" in
21067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068   *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071   (eval "$ac_try") 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; } &&
21075          { ac_try='test -s conftest.$ac_objext'
21076   { (case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_try") 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_header_compiler=yes
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090         ac_header_compiler=no
21091 fi
21092
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21095 echo "${ECHO_T}$ac_header_compiler" >&6; }
21096
21097 # Is the header present?
21098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 #include <$ac_header>
21107 _ACEOF
21108 if { (ac_try="$ac_cpp conftest.$ac_ext"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21115   ac_status=$?
21116   grep -v '^ *+' conftest.er1 >conftest.err
21117   rm -f conftest.er1
21118   cat conftest.err >&5
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } >/dev/null; then
21121   if test -s conftest.err; then
21122     ac_cpp_err=$ac_c_preproc_warn_flag
21123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21124   else
21125     ac_cpp_err=
21126   fi
21127 else
21128   ac_cpp_err=yes
21129 fi
21130 if test -z "$ac_cpp_err"; then
21131   ac_header_preproc=yes
21132 else
21133   echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136   ac_header_preproc=no
21137 fi
21138
21139 rm -f conftest.err conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21142
21143 # So?  What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21145   yes:no: )
21146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21150     ac_header_preproc=yes
21151     ;;
21152   no:yes:* )
21153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21165     ( cat <<\_ASBOX
21166 ## ------------------------------------ ##
21167 ## Report this to http://llvm.org/bugs/ ##
21168 ## ------------------------------------ ##
21169 _ASBOX
21170      ) | sed "s/^/$as_me: WARNING:     /" >&2
21171     ;;
21172 esac
21173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   eval "$as_ac_Header=\$ac_header_preproc"
21179 fi
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181                { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21183
21184 fi
21185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21186   cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21188 _ACEOF
21189
21190 fi
21191
21192 done
21193
21194
21195 for ac_func in getpagesize
21196 do
21197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21211 #define $ac_func innocuous_$ac_func
21212
21213 /* System header to define __stub macros and hopefully few prototypes,
21214     which can conflict with char $ac_func (); below.
21215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21216     <limits.h> exists even on freestanding compilers.  */
21217
21218 #ifdef __STDC__
21219 # include <limits.h>
21220 #else
21221 # include <assert.h>
21222 #endif
21223
21224 #undef $ac_func
21225
21226 /* Override any GCC internal prototype to avoid an error.
21227    Use char because int might match the return type of a GCC
21228    builtin and then its argument prototype would still apply.  */
21229 #ifdef __cplusplus
21230 extern "C"
21231 #endif
21232 char $ac_func ();
21233 /* The GNU C library defines this for functions which it implements
21234     to always fail with ENOSYS.  Some functions are actually named
21235     something starting with __ and the normal name is an alias.  */
21236 #if defined __stub_$ac_func || defined __stub___$ac_func
21237 choke me
21238 #endif
21239
21240 int
21241 main ()
21242 {
21243 return $ac_func ();
21244   ;
21245   return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (ac_try="$ac_link"
21250 case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_link") 2>conftest.er1
21256   ac_status=$?
21257   grep -v '^ *+' conftest.er1 >conftest.err
21258   rm -f conftest.er1
21259   cat conftest.err >&5
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); } &&
21262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263   { (case "(($ac_try" in
21264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265   *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268   (eval "$ac_try") 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; } &&
21272          { ac_try='test -s conftest$ac_exeext'
21273   { (case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_try") 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   eval "$as_ac_var=yes"
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287         eval "$as_ac_var=no"
21288 fi
21289
21290 rm -f core conftest.err conftest.$ac_objext \
21291       conftest$ac_exeext conftest.$ac_ext
21292 fi
21293 ac_res=`eval echo '${'$as_ac_var'}'`
21294                { echo "$as_me:$LINENO: result: $ac_res" >&5
21295 echo "${ECHO_T}$ac_res" >&6; }
21296 if test `eval echo '${'$as_ac_var'}'` = yes; then
21297   cat >>confdefs.h <<_ACEOF
21298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21299 _ACEOF
21300
21301 fi
21302 done
21303
21304 { echo "$as_me:$LINENO: checking for working mmap" >&5
21305 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21306 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21307   echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309   if test "$cross_compiling" = yes; then
21310   ac_cv_func_mmap_fixed_mapped=no
21311 else
21312   cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318 $ac_includes_default
21319 /* malloc might have been renamed as rpl_malloc. */
21320 #undef malloc
21321
21322 /* Thanks to Mike Haertel and Jim Avera for this test.
21323    Here is a matrix of mmap possibilities:
21324         mmap private not fixed
21325         mmap private fixed at somewhere currently unmapped
21326         mmap private fixed at somewhere already mapped
21327         mmap shared not fixed
21328         mmap shared fixed at somewhere currently unmapped
21329         mmap shared fixed at somewhere already mapped
21330    For private mappings, we should verify that changes cannot be read()
21331    back from the file, nor mmap's back from the file at a different
21332    address.  (There have been systems where private was not correctly
21333    implemented like the infamous i386 svr4.0, and systems where the
21334    VM page cache was not coherent with the file system buffer cache
21335    like early versions of FreeBSD and possibly contemporary NetBSD.)
21336    For shared mappings, we should conversely verify that changes get
21337    propagated back to all the places they're supposed to be.
21338
21339    Grep wants private fixed already mapped.
21340    The main things grep needs to know about mmap are:
21341    * does it exist and is it safe to write into the mmap'd area
21342    * how to use it (BSD variants)  */
21343
21344 #include <fcntl.h>
21345 #include <sys/mman.h>
21346
21347 #if !STDC_HEADERS && !HAVE_STDLIB_H
21348 char *malloc ();
21349 #endif
21350
21351 /* This mess was copied from the GNU getpagesize.h.  */
21352 #if !HAVE_GETPAGESIZE
21353 /* Assume that all systems that can run configure have sys/param.h.  */
21354 # if !HAVE_SYS_PARAM_H
21355 #  define HAVE_SYS_PARAM_H 1
21356 # endif
21357
21358 # ifdef _SC_PAGESIZE
21359 #  define getpagesize() sysconf(_SC_PAGESIZE)
21360 # else /* no _SC_PAGESIZE */
21361 #  if HAVE_SYS_PARAM_H
21362 #   include <sys/param.h>
21363 #   ifdef EXEC_PAGESIZE
21364 #    define getpagesize() EXEC_PAGESIZE
21365 #   else /* no EXEC_PAGESIZE */
21366 #    ifdef NBPG
21367 #     define getpagesize() NBPG * CLSIZE
21368 #     ifndef CLSIZE
21369 #      define CLSIZE 1
21370 #     endif /* no CLSIZE */
21371 #    else /* no NBPG */
21372 #     ifdef NBPC
21373 #      define getpagesize() NBPC
21374 #     else /* no NBPC */
21375 #      ifdef PAGESIZE
21376 #       define getpagesize() PAGESIZE
21377 #      endif /* PAGESIZE */
21378 #     endif /* no NBPC */
21379 #    endif /* no NBPG */
21380 #   endif /* no EXEC_PAGESIZE */
21381 #  else /* no HAVE_SYS_PARAM_H */
21382 #   define getpagesize() 8192   /* punt totally */
21383 #  endif /* no HAVE_SYS_PARAM_H */
21384 # endif /* no _SC_PAGESIZE */
21385
21386 #endif /* no HAVE_GETPAGESIZE */
21387
21388 int
21389 main ()
21390 {
21391   char *data, *data2, *data3;
21392   int i, pagesize;
21393   int fd;
21394
21395   pagesize = getpagesize ();
21396
21397   /* First, make a file with some known garbage in it. */
21398   data = (char *) malloc (pagesize);
21399   if (!data)
21400     return 1;
21401   for (i = 0; i < pagesize; ++i)
21402     *(data + i) = rand ();
21403   umask (0);
21404   fd = creat ("conftest.mmap", 0600);
21405   if (fd < 0)
21406     return 1;
21407   if (write (fd, data, pagesize) != pagesize)
21408     return 1;
21409   close (fd);
21410
21411   /* Next, try to mmap the file at a fixed address which already has
21412      something else allocated at it.  If we can, also make sure that
21413      we see the same garbage.  */
21414   fd = open ("conftest.mmap", O_RDWR);
21415   if (fd < 0)
21416     return 1;
21417   data2 = (char *) malloc (2 * pagesize);
21418   if (!data2)
21419     return 1;
21420   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21421   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21422                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21423     return 1;
21424   for (i = 0; i < pagesize; ++i)
21425     if (*(data + i) != *(data2 + i))
21426       return 1;
21427
21428   /* Finally, make sure that changes to the mapped area do not
21429      percolate back to the file as seen by read().  (This is a bug on
21430      some variants of i386 svr4.0.)  */
21431   for (i = 0; i < pagesize; ++i)
21432     *(data2 + i) = *(data2 + i) + 1;
21433   data3 = (char *) malloc (pagesize);
21434   if (!data3)
21435     return 1;
21436   if (read (fd, data3, pagesize) != pagesize)
21437     return 1;
21438   for (i = 0; i < pagesize; ++i)
21439     if (*(data + i) != *(data3 + i))
21440       return 1;
21441   close (fd);
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_link") 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21456   { (case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461   (eval "$ac_try") 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ac_cv_func_mmap_fixed_mapped=yes
21466 else
21467   echo "$as_me: program exited with status $ac_status" >&5
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471 ( exit $ac_status )
21472 ac_cv_func_mmap_fixed_mapped=no
21473 fi
21474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21475 fi
21476
21477
21478 fi
21479 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21480 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21481 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21482
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_MMAP 1
21485 _ACEOF
21486
21487 fi
21488 rm -f conftest.mmap
21489
21490   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21491 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21492 if test "${ac_cv_func_mmap_file+set}" = set; then
21493   echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495    ac_ext=c
21496 ac_cpp='$CPP $CPPFLAGS'
21497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21500
21501   if test "$cross_compiling" = yes; then
21502   ac_cv_func_mmap_file=no
21503 else
21504   cat >conftest.$ac_ext <<_ACEOF
21505
21506     /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511
21512 #include <sys/types.h>
21513 #include <sys/mman.h>
21514 #include <fcntl.h>
21515
21516 int
21517 main ()
21518 {
21519
21520   int fd;
21521   fd = creat ("foo",0777);
21522   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21523   unlink ("foo");
21524   return (fd != (int) MAP_FAILED);
21525   ;
21526   return 0;
21527 }
21528 _ACEOF
21529 rm -f conftest$ac_exeext
21530 if { (ac_try="$ac_link"
21531 case "(($ac_try" in
21532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533   *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536   (eval "$ac_link") 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21540   { (case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_try") 2>&5
21546   ac_status=$?
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); }; }; then
21549   ac_cv_func_mmap_file=yes
21550 else
21551   echo "$as_me: program exited with status $ac_status" >&5
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 ( exit $ac_status )
21556 ac_cv_func_mmap_file=no
21557 fi
21558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21559 fi
21560
21561
21562   ac_ext=c
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568
21569 fi
21570 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21571 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21572 if test "$ac_cv_func_mmap_file" = yes; then
21573
21574 cat >>confdefs.h <<\_ACEOF
21575 #define HAVE_MMAP_FILE
21576 _ACEOF
21577
21578    MMAP_FILE=yes
21579
21580 fi
21581
21582   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21583 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21584 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21585   echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587   if test "$llvm_cv_os_type" = "Interix" ; then
21588    ac_cv_need_dev_zero_for_mmap=yes
21589  else
21590    ac_cv_need_dev_zero_for_mmap=no
21591  fi
21592
21593 fi
21594 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21595 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21596 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21597
21598 cat >>confdefs.h <<\_ACEOF
21599 #define NEED_DEV_ZERO_FOR_MMAP 1
21600 _ACEOF
21601
21602 fi
21603
21604   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21605   then
21606     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21607 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21608   fi
21609   if test "$ac_cv_func_mmap_file" = "no"
21610   then
21611     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21612 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21613   fi
21614 fi
21615
21616 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21617 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21618 ac_ext=cpp
21619 ac_cpp='$CXXCPP $CPPFLAGS'
21620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21623
21624 cat >conftest.$ac_ext <<_ACEOF
21625
21626   /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631
21632     int main() {
21633       volatile unsigned long val = 1;
21634       __sync_synchronize();
21635       __sync_val_compare_and_swap(&val, 1, 0);
21636       __sync_add_and_fetch(&val, 1);
21637       __sync_sub_and_fetch(&val, 1);
21638       return 0;
21639     }
21640
21641
21642 _ACEOF
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650   (eval "$ac_link") 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21658   { (case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_try") 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; } &&
21667          { ac_try='test -s conftest$ac_exeext'
21668   { (case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_try") 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; }; then
21677
21678   { echo "$as_me:$LINENO: result: yes" >&5
21679 echo "${ECHO_T}yes" >&6; }
21680
21681 cat >>confdefs.h <<\_ACEOF
21682 #define LLVM_HAS_ATOMICS 1
21683 _ACEOF
21684
21685
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690
21691   { echo "$as_me:$LINENO: result: no" >&5
21692 echo "${ECHO_T}no" >&6; }
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define LLVM_HAS_ATOMICS 0
21696 _ACEOF
21697
21698   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21699 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21700
21701 fi
21702
21703 rm -f core conftest.err conftest.$ac_objext \
21704       conftest$ac_exeext conftest.$ac_ext
21705 ac_ext=c
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21710
21711
21712
21713 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21714   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21715 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21716 if test "${llvm_cv_linux_mixed+set}" = set; then
21717   echo $ECHO_N "(cached) $ECHO_C" >&6
21718 else
21719    ac_ext=c
21720 ac_cpp='$CPP $CPPFLAGS'
21721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21724
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 #ifndef __x86_64__
21732        error: Not x86-64 even if uname says so!
21733       #endif
21734
21735 int
21736 main ()
21737 {
21738
21739   ;
21740   return 0;
21741 }
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (ac_try="$ac_compile"
21745 case "(($ac_try" in
21746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747   *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750   (eval "$ac_compile") 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } &&
21757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21758   { (case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_try") 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; } &&
21767          { ac_try='test -s conftest.$ac_objext'
21768   { (case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_try") 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; }; then
21777   llvm_cv_linux_mixed=no
21778 else
21779   echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         llvm_cv_linux_mixed=yes
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786   ac_ext=c
21787 ac_cpp='$CPP $CPPFLAGS'
21788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21791
21792
21793 fi
21794 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21795 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21796
21797   if test "$llvm_cv_linux_mixed" = "yes"; then
21798     llvm_cv_target_arch="x86"
21799     ARCH="x86"
21800   fi
21801 fi
21802
21803
21804 for ac_func in __dso_handle
21805 do
21806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21820 #define $ac_func innocuous_$ac_func
21821
21822 /* System header to define __stub macros and hopefully few prototypes,
21823     which can conflict with char $ac_func (); below.
21824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21825     <limits.h> exists even on freestanding compilers.  */
21826
21827 #ifdef __STDC__
21828 # include <limits.h>
21829 #else
21830 # include <assert.h>
21831 #endif
21832
21833 #undef $ac_func
21834
21835 /* Override any GCC internal prototype to avoid an error.
21836    Use char because int might match the return type of a GCC
21837    builtin and then its argument prototype would still apply.  */
21838 #ifdef __cplusplus
21839 extern "C"
21840 #endif
21841 char $ac_func ();
21842 /* The GNU C library defines this for functions which it implements
21843     to always fail with ENOSYS.  Some functions are actually named
21844     something starting with __ and the normal name is an alias.  */
21845 #if defined __stub_$ac_func || defined __stub___$ac_func
21846 choke me
21847 #endif
21848
21849 int
21850 main ()
21851 {
21852 return $ac_func ();
21853   ;
21854   return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext conftest$ac_exeext
21858 if { (ac_try="$ac_link"
21859 case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_link") 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } &&
21871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21872   { (case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_try") 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; } &&
21881          { ac_try='test -s conftest$ac_exeext'
21882   { (case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887   (eval "$ac_try") 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); }; }; then
21891   eval "$as_ac_var=yes"
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896         eval "$as_ac_var=no"
21897 fi
21898
21899 rm -f core conftest.err conftest.$ac_objext \
21900       conftest$ac_exeext conftest.$ac_ext
21901 fi
21902 ac_res=`eval echo '${'$as_ac_var'}'`
21903                { echo "$as_me:$LINENO: result: $ac_res" >&5
21904 echo "${ECHO_T}$ac_res" >&6; }
21905 if test `eval echo '${'$as_ac_var'}'` = yes; then
21906   cat >>confdefs.h <<_ACEOF
21907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908 _ACEOF
21909
21910 fi
21911 done
21912
21913
21914 SHLIBEXT=$libltdl_cv_shlibext
21915
21916
21917 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21918
21919
21920 if test "${prefix}" = "NONE" ; then
21921   prefix="/usr/local"
21922 fi
21923 eval LLVM_PREFIX="${prefix}";
21924 eval LLVM_BINDIR="${prefix}/bin";
21925 eval LLVM_DATADIR="${prefix}/share/llvm";
21926 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21927 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21928 eval LLVM_INCLUDEDIR="${prefix}/include";
21929 eval LLVM_INFODIR="${prefix}/info";
21930 eval LLVM_MANDIR="${prefix}/man";
21931 LLVM_CONFIGTIME=`date`
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21943   LLVM_CONFIGTIME="(timestamp not enabled)"
21944 fi
21945
21946
21947 cat >>confdefs.h <<_ACEOF
21948 #define LLVM_PREFIX "$LLVM_PREFIX"
21949 _ACEOF
21950
21951
21952 cat >>confdefs.h <<_ACEOF
21953 #define LLVM_BINDIR "$LLVM_BINDIR"
21954 _ACEOF
21955
21956
21957 cat >>confdefs.h <<_ACEOF
21958 #define LLVM_DATADIR "$LLVM_DATADIR"
21959 _ACEOF
21960
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21964 _ACEOF
21965
21966
21967 cat >>confdefs.h <<_ACEOF
21968 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21969 _ACEOF
21970
21971
21972 cat >>confdefs.h <<_ACEOF
21973 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21974 _ACEOF
21975
21976
21977 cat >>confdefs.h <<_ACEOF
21978 #define LLVM_INFODIR "$LLVM_INFODIR"
21979 _ACEOF
21980
21981
21982 cat >>confdefs.h <<_ACEOF
21983 #define LLVM_MANDIR "$LLVM_MANDIR"
21984 _ACEOF
21985
21986
21987 cat >>confdefs.h <<_ACEOF
21988 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21989 _ACEOF
21990
21991
21992 cat >>confdefs.h <<_ACEOF
21993 #define LLVM_HOST_TRIPLE "$host"
21994 _ACEOF
21995
21996
21997 cat >>confdefs.h <<_ACEOF
21998 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21999 _ACEOF
22000
22001
22002 if test "$BINDINGS_TO_BUILD" = auto ; then
22003   BINDINGS_TO_BUILD=""
22004   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22005     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22006   fi
22007 fi
22008 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22009
22010
22011 ALL_BINDINGS=ocaml
22012
22013
22014 binding_prereqs_failed=0
22015 for a_binding in $BINDINGS_TO_BUILD ; do
22016   case "$a_binding" in
22017   ocaml)
22018     if test "x$OCAMLC" = x ; then
22019       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22020 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22021       binding_prereqs_failed=1
22022     fi
22023     if test "x$OCAMLDEP" = x ; then
22024       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22025 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22026       binding_prereqs_failed=1
22027     fi
22028     if test "x$OCAMLOPT" = x ; then
22029       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22030 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22031           fi
22032     if test "x$with_ocaml_libdir" != xauto ; then
22033       OCAML_LIBDIR=$with_ocaml_libdir
22034
22035     else
22036       ocaml_stdlib="`"$OCAMLC" -where`"
22037       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22038       then
22039         # ocaml stdlib is beneath our prefix; use stdlib
22040         OCAML_LIBDIR=$ocaml_stdlib
22041
22042       else
22043         # ocaml stdlib is outside our prefix; use libdir/ocaml
22044         OCAML_LIBDIR=${prefix}/lib/ocaml
22045
22046       fi
22047     fi
22048     ;;
22049   esac
22050 done
22051 if test "$binding_prereqs_failed" = 1 ; then
22052   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22053 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22054    { (exit 1); exit 1; }; }
22055 fi
22056
22057 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22058 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22059 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22060   echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062    ac_ext=cpp
22063 ac_cpp='$CXXCPP $CPPFLAGS'
22064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22067
22068   oldcxxflags="$CXXFLAGS"
22069   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22070   cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22077 int
22078 main ()
22079 {
22080 X<int>().f();
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_compile") 2>conftest.er1
22093   ac_status=$?
22094   grep -v '^ *+' conftest.er1 >conftest.err
22095   rm -f conftest.er1
22096   cat conftest.err >&5
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); } &&
22099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22100   { (case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_try") 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; } &&
22109          { ac_try='test -s conftest.$ac_objext'
22110   { (case "(($ac_try" in
22111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112   *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115   (eval "$ac_try") 2>&5
22116   ac_status=$?
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; }; then
22119   llvm_cv_cxx_visibility_inlines_hidden=yes
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124         llvm_cv_cxx_visibility_inlines_hidden=no
22125 fi
22126
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128   CXXFLAGS="$oldcxxflags"
22129   ac_ext=c
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22134
22135
22136 fi
22137 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22138 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22139 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22140   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22141
22142 else
22143   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22144
22145 fi
22146
22147
22148 if test "$llvm_cv_link_use_r" = "yes" ; then
22149   RPATH="-Wl,-R"
22150 else
22151   RPATH="-Wl,-rpath"
22152 fi
22153
22154
22155 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22156   RDYNAMIC="-rdynamic"
22157 else
22158   RDYNAMIC=""
22159 fi
22160
22161
22162
22163 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22164
22165
22166
22167
22168
22169
22170 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22171
22172 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22173
22174 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22175
22176 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22177
22178 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22179
22180
22181 ac_config_files="$ac_config_files Makefile.config"
22182
22183
22184 ac_config_files="$ac_config_files llvm.spec"
22185
22186
22187 ac_config_files="$ac_config_files docs/doxygen.cfg"
22188
22189
22190 if test "${clang_src_root}" = ""; then
22191   clang_src_root="$srcdir/tools/clang"
22192 fi
22193 if test -f ${clang_src_root}/README.txt; then
22194     configh="include/clang/Config/config.h"
22195   doxy="docs/doxygen.cfg"
22196   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22197
22198   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22199
22200 fi
22201
22202 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22203
22204
22205 test "x$program_prefix" = "xNONE" && program_prefix=""
22206
22207
22208
22209 ac_config_commands="$ac_config_commands setup"
22210
22211 ac_config_commands="$ac_config_commands Makefile"
22212
22213
22214 ac_config_commands="$ac_config_commands Makefile.common"
22215
22216
22217 ac_config_commands="$ac_config_commands examples/Makefile"
22218
22219
22220 ac_config_commands="$ac_config_commands lib/Makefile"
22221
22222
22223 ac_config_commands="$ac_config_commands runtime/Makefile"
22224
22225
22226 ac_config_commands="$ac_config_commands test/Makefile"
22227
22228
22229 ac_config_commands="$ac_config_commands test/Makefile.tests"
22230
22231
22232 ac_config_commands="$ac_config_commands unittests/Makefile"
22233
22234
22235 ac_config_commands="$ac_config_commands tools/Makefile"
22236
22237
22238 ac_config_commands="$ac_config_commands utils/Makefile"
22239
22240
22241 ac_config_commands="$ac_config_commands projects/Makefile"
22242
22243
22244 ac_config_commands="$ac_config_commands bindings/Makefile"
22245
22246
22247 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22248
22249
22250
22251 cat >confcache <<\_ACEOF
22252 # This file is a shell script that caches the results of configure
22253 # tests run on this system so they can be shared between configure
22254 # scripts and configure runs, see configure's option --config-cache.
22255 # It is not useful on other systems.  If it contains results you don't
22256 # want to keep, you may remove or edit it.
22257 #
22258 # config.status only pays attention to the cache file if you give it
22259 # the --recheck option to rerun configure.
22260 #
22261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22263 # following values.
22264
22265 _ACEOF
22266
22267 # The following way of writing the cache mishandles newlines in values,
22268 # but we know of no workaround that is simple, portable, and efficient.
22269 # So, we kill variables containing newlines.
22270 # Ultrix sh set writes to stderr and can't be redirected directly,
22271 # and sets the high bit in the cache file unless we assign to the vars.
22272 (
22273   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22274     eval ac_val=\$$ac_var
22275     case $ac_val in #(
22276     *${as_nl}*)
22277       case $ac_var in #(
22278       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22279 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22280       esac
22281       case $ac_var in #(
22282       _ | IFS | as_nl) ;; #(
22283       *) $as_unset $ac_var ;;
22284       esac ;;
22285     esac
22286   done
22287
22288   (set) 2>&1 |
22289     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22290     *${as_nl}ac_space=\ *)
22291       # `set' does not quote correctly, so add quotes (double-quote
22292       # substitution turns \\\\ into \\, and sed turns \\ into \).
22293       sed -n \
22294         "s/'/'\\\\''/g;
22295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22296       ;; #(
22297     *)
22298       # `set' quotes correctly as required by POSIX, so do not add quotes.
22299       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22300       ;;
22301     esac |
22302     sort
22303 ) |
22304   sed '
22305      /^ac_cv_env_/b end
22306      t clear
22307      :clear
22308      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22309      t end
22310      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22311      :end' >>confcache
22312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22313   if test -w "$cache_file"; then
22314     test "x$cache_file" != "x/dev/null" &&
22315       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22316 echo "$as_me: updating cache $cache_file" >&6;}
22317     cat confcache >$cache_file
22318   else
22319     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22320 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22321   fi
22322 fi
22323 rm -f confcache
22324
22325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22326 # Let make expand exec_prefix.
22327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22328
22329 DEFS=-DHAVE_CONFIG_H
22330
22331 ac_libobjs=
22332 ac_ltlibobjs=
22333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22334   # 1. Remove the extension, and $U if already installed.
22335   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22336   ac_i=`echo "$ac_i" | sed "$ac_script"`
22337   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22338   #    will be set to the directory where LIBOBJS objects are built.
22339   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22340   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22341 done
22342 LIBOBJS=$ac_libobjs
22343
22344 LTLIBOBJS=$ac_ltlibobjs
22345
22346
22347 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22348   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22349 Usually this means the macro was only invoked conditionally." >&5
22350 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22351 Usually this means the macro was only invoked conditionally." >&2;}
22352    { (exit 1); exit 1; }; }
22353 fi
22354 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22355   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22356 Usually this means the macro was only invoked conditionally." >&5
22357 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22358 Usually this means the macro was only invoked conditionally." >&2;}
22359    { (exit 1); exit 1; }; }
22360 fi
22361
22362 : ${CONFIG_STATUS=./config.status}
22363 ac_clean_files_save=$ac_clean_files
22364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22365 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22367 cat >$CONFIG_STATUS <<_ACEOF
22368 #! $SHELL
22369 # Generated by $as_me.
22370 # Run this file to recreate the current configuration.
22371 # Compiler output produced by configure, useful for debugging
22372 # configure, is in config.log if it exists.
22373
22374 debug=false
22375 ac_cs_recheck=false
22376 ac_cs_silent=false
22377 SHELL=\${CONFIG_SHELL-$SHELL}
22378 _ACEOF
22379
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 ## --------------------- ##
22382 ## M4sh Initialization.  ##
22383 ## --------------------- ##
22384
22385 # Be Bourne compatible
22386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22387   emulate sh
22388   NULLCMD=:
22389   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22390   # is contrary to our usage.  Disable this feature.
22391   alias -g '${1+"$@"}'='"$@"'
22392   setopt NO_GLOB_SUBST
22393 else
22394   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22395 fi
22396 BIN_SH=xpg4; export BIN_SH # for Tru64
22397 DUALCASE=1; export DUALCASE # for MKS sh
22398
22399
22400 # PATH needs CR
22401 # Avoid depending upon Character Ranges.
22402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22405 as_cr_digits='0123456789'
22406 as_cr_alnum=$as_cr_Letters$as_cr_digits
22407
22408 # The user is always right.
22409 if test "${PATH_SEPARATOR+set}" != set; then
22410   echo "#! /bin/sh" >conf$$.sh
22411   echo  "exit 0"   >>conf$$.sh
22412   chmod +x conf$$.sh
22413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22414     PATH_SEPARATOR=';'
22415   else
22416     PATH_SEPARATOR=:
22417   fi
22418   rm -f conf$$.sh
22419 fi
22420
22421 # Support unset when possible.
22422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22423   as_unset=unset
22424 else
22425   as_unset=false
22426 fi
22427
22428
22429 # IFS
22430 # We need space, tab and new line, in precisely that order.  Quoting is
22431 # there to prevent editors from complaining about space-tab.
22432 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22433 # splitting by setting IFS to empty value.)
22434 as_nl='
22435 '
22436 IFS=" ""        $as_nl"
22437
22438 # Find who we are.  Look in the path if we contain no directory separator.
22439 case $0 in
22440   *[\\/]* ) as_myself=$0 ;;
22441   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22442 for as_dir in $PATH
22443 do
22444   IFS=$as_save_IFS
22445   test -z "$as_dir" && as_dir=.
22446   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22447 done
22448 IFS=$as_save_IFS
22449
22450      ;;
22451 esac
22452 # We did not find ourselves, most probably we were run as `sh COMMAND'
22453 # in which case we are not to be found in the path.
22454 if test "x$as_myself" = x; then
22455   as_myself=$0
22456 fi
22457 if test ! -f "$as_myself"; then
22458   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22459   { (exit 1); exit 1; }
22460 fi
22461
22462 # Work around bugs in pre-3.0 UWIN ksh.
22463 for as_var in ENV MAIL MAILPATH
22464 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22465 done
22466 PS1='$ '
22467 PS2='> '
22468 PS4='+ '
22469
22470 # NLS nuisances.
22471 for as_var in \
22472   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22473   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22474   LC_TELEPHONE LC_TIME
22475 do
22476   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22477     eval $as_var=C; export $as_var
22478   else
22479     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22480   fi
22481 done
22482
22483 # Required to use basename.
22484 if expr a : '\(a\)' >/dev/null 2>&1 &&
22485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22486   as_expr=expr
22487 else
22488   as_expr=false
22489 fi
22490
22491 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22492   as_basename=basename
22493 else
22494   as_basename=false
22495 fi
22496
22497
22498 # Name of the executable.
22499 as_me=`$as_basename -- "$0" ||
22500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22501          X"$0" : 'X\(//\)$' \| \
22502          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22503 echo X/"$0" |
22504     sed '/^.*\/\([^/][^/]*\)\/*$/{
22505             s//\1/
22506             q
22507           }
22508           /^X\/\(\/\/\)$/{
22509             s//\1/
22510             q
22511           }
22512           /^X\/\(\/\).*/{
22513             s//\1/
22514             q
22515           }
22516           s/.*/./; q'`
22517
22518 # CDPATH.
22519 $as_unset CDPATH
22520
22521
22522
22523   as_lineno_1=$LINENO
22524   as_lineno_2=$LINENO
22525   test "x$as_lineno_1" != "x$as_lineno_2" &&
22526   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22527
22528   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22529   # uniformly replaced by the line number.  The first 'sed' inserts a
22530   # line-number line after each line using $LINENO; the second 'sed'
22531   # does the real work.  The second script uses 'N' to pair each
22532   # line-number line with the line containing $LINENO, and appends
22533   # trailing '-' during substitution so that $LINENO is not a special
22534   # case at line end.
22535   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22536   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22537   # E. McMahon (1931-1989) for sed's syntax.  :-)
22538   sed -n '
22539     p
22540     /[$]LINENO/=
22541   ' <$as_myself |
22542     sed '
22543       s/[$]LINENO.*/&-/
22544       t lineno
22545       b
22546       :lineno
22547       N
22548       :loop
22549       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22550       t loop
22551       s/-\n.*//
22552     ' >$as_me.lineno &&
22553   chmod +x "$as_me.lineno" ||
22554     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22555    { (exit 1); exit 1; }; }
22556
22557   # Don't try to exec as it changes $[0], causing all sort of problems
22558   # (the dirname of $[0] is not the place where we might find the
22559   # original and so on.  Autoconf is especially sensitive to this).
22560   . "./$as_me.lineno"
22561   # Exit status is that of the last command.
22562   exit
22563 }
22564
22565
22566 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22567   as_dirname=dirname
22568 else
22569   as_dirname=false
22570 fi
22571
22572 ECHO_C= ECHO_N= ECHO_T=
22573 case `echo -n x` in
22574 -n*)
22575   case `echo 'x\c'` in
22576   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22577   *)   ECHO_C='\c';;
22578   esac;;
22579 *)
22580   ECHO_N='-n';;
22581 esac
22582
22583 if expr a : '\(a\)' >/dev/null 2>&1 &&
22584    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22585   as_expr=expr
22586 else
22587   as_expr=false
22588 fi
22589
22590 rm -f conf$$ conf$$.exe conf$$.file
22591 if test -d conf$$.dir; then
22592   rm -f conf$$.dir/conf$$.file
22593 else
22594   rm -f conf$$.dir
22595   mkdir conf$$.dir
22596 fi
22597 echo >conf$$.file
22598 if ln -s conf$$.file conf$$ 2>/dev/null; then
22599   as_ln_s='ln -s'
22600   # ... but there are two gotchas:
22601   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22602   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22603   # In both cases, we have to default to `cp -p'.
22604   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22605     as_ln_s='cp -p'
22606 elif ln conf$$.file conf$$ 2>/dev/null; then
22607   as_ln_s=ln
22608 else
22609   as_ln_s='cp -p'
22610 fi
22611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22612 rmdir conf$$.dir 2>/dev/null
22613
22614 if mkdir -p . 2>/dev/null; then
22615   as_mkdir_p=:
22616 else
22617   test -d ./-p && rmdir ./-p
22618   as_mkdir_p=false
22619 fi
22620
22621 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22622 # systems may use methods other than mode bits to determine executability.
22623 cat >conf$$.file <<_ASEOF
22624 #! /bin/sh
22625 exit 0
22626 _ASEOF
22627 chmod +x conf$$.file
22628 if test -x conf$$.file >/dev/null 2>&1; then
22629   as_executable_p="test -x"
22630 else
22631   as_executable_p=:
22632 fi
22633 rm -f conf$$.file
22634
22635 # Sed expression to map a string onto a valid CPP name.
22636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22637
22638 # Sed expression to map a string onto a valid variable name.
22639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22640
22641
22642 exec 6>&1
22643
22644 # Save the log message, to keep $[0] and so on meaningful, and to
22645 # report actual input values of CONFIG_FILES etc. instead of their
22646 # values after options handling.
22647 ac_log="
22648 This file was extended by LLVM $as_me 3.4svn, which was
22649 generated by GNU Autoconf 2.60.  Invocation command line was
22650
22651   CONFIG_FILES    = $CONFIG_FILES
22652   CONFIG_HEADERS  = $CONFIG_HEADERS
22653   CONFIG_LINKS    = $CONFIG_LINKS
22654   CONFIG_COMMANDS = $CONFIG_COMMANDS
22655   $ $0 $@
22656
22657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22658 "
22659
22660 _ACEOF
22661
22662 cat >>$CONFIG_STATUS <<_ACEOF
22663 # Files that config.status was made for.
22664 config_files="$ac_config_files"
22665 config_headers="$ac_config_headers"
22666 config_commands="$ac_config_commands"
22667
22668 _ACEOF
22669
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 ac_cs_usage="\
22672 \`$as_me' instantiates files from templates according to the
22673 current configuration.
22674
22675 Usage: $0 [OPTIONS] [FILE]...
22676
22677   -h, --help       print this help, then exit
22678   -V, --version    print version number, then exit
22679   -q, --quiet      do not print progress messages
22680   -d, --debug      don't remove temporary files
22681       --recheck    update $as_me by reconfiguring in the same conditions
22682   --file=FILE[:TEMPLATE]
22683                    instantiate the configuration file FILE
22684   --header=FILE[:TEMPLATE]
22685                    instantiate the configuration header FILE
22686
22687 Configuration files:
22688 $config_files
22689
22690 Configuration headers:
22691 $config_headers
22692
22693 Configuration commands:
22694 $config_commands
22695
22696 Report bugs to <bug-autoconf@gnu.org>."
22697
22698 _ACEOF
22699 cat >>$CONFIG_STATUS <<_ACEOF
22700 ac_cs_version="\\
22701 LLVM config.status 3.4svn
22702 configured by $0, generated by GNU Autoconf 2.60,
22703   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22704
22705 Copyright (C) 2006 Free Software Foundation, Inc.
22706 This config.status script is free software; the Free Software Foundation
22707 gives unlimited permission to copy, distribute and modify it."
22708
22709 ac_pwd='$ac_pwd'
22710 srcdir='$srcdir'
22711 INSTALL='$INSTALL'
22712 _ACEOF
22713
22714 cat >>$CONFIG_STATUS <<\_ACEOF
22715 # If no file are specified by the user, then we need to provide default
22716 # value.  By we need to know if files were specified by the user.
22717 ac_need_defaults=:
22718 while test $# != 0
22719 do
22720   case $1 in
22721   --*=*)
22722     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22723     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22724     ac_shift=:
22725     ;;
22726   *)
22727     ac_option=$1
22728     ac_optarg=$2
22729     ac_shift=shift
22730     ;;
22731   esac
22732
22733   case $ac_option in
22734   # Handling of the options.
22735   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22736     ac_cs_recheck=: ;;
22737   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22738     echo "$ac_cs_version"; exit ;;
22739   --debug | --debu | --deb | --de | --d | -d )
22740     debug=: ;;
22741   --file | --fil | --fi | --f )
22742     $ac_shift
22743     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22744     ac_need_defaults=false;;
22745   --header | --heade | --head | --hea )
22746     $ac_shift
22747     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22748     ac_need_defaults=false;;
22749   --he | --h)
22750     # Conflict between --help and --header
22751     { echo "$as_me: error: ambiguous option: $1
22752 Try \`$0 --help' for more information." >&2
22753    { (exit 1); exit 1; }; };;
22754   --help | --hel | -h )
22755     echo "$ac_cs_usage"; exit ;;
22756   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22757   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22758     ac_cs_silent=: ;;
22759
22760   # This is an error.
22761   -*) { echo "$as_me: error: unrecognized option: $1
22762 Try \`$0 --help' for more information." >&2
22763    { (exit 1); exit 1; }; } ;;
22764
22765   *) ac_config_targets="$ac_config_targets $1"
22766      ac_need_defaults=false ;;
22767
22768   esac
22769   shift
22770 done
22771
22772 ac_configure_extra_args=
22773
22774 if $ac_cs_silent; then
22775   exec 6>/dev/null
22776   ac_configure_extra_args="$ac_configure_extra_args --silent"
22777 fi
22778
22779 _ACEOF
22780 cat >>$CONFIG_STATUS <<_ACEOF
22781 if \$ac_cs_recheck; then
22782   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22783   CONFIG_SHELL=$SHELL
22784   export CONFIG_SHELL
22785   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22786 fi
22787
22788 _ACEOF
22789 cat >>$CONFIG_STATUS <<\_ACEOF
22790 exec 5>>config.log
22791 {
22792   echo
22793   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22794 ## Running $as_me. ##
22795 _ASBOX
22796   echo "$ac_log"
22797 } >&5
22798
22799 _ACEOF
22800 cat >>$CONFIG_STATUS <<_ACEOF
22801 #
22802 # INIT-COMMANDS
22803 #
22804 llvm_src="${srcdir}"
22805
22806 _ACEOF
22807
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809
22810 # Handling of arguments.
22811 for ac_config_target in $ac_config_targets
22812 do
22813   case $ac_config_target in
22814     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22815     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22816     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22817     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22818     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22819     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22820     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22821     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22822     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22823     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22824     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22825     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22826     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22827     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22828     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22829     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22830     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22831     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22832     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22833     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22834     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22835     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22836     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22837     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22838     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22839     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22840     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22841
22842   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22843 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22844    { (exit 1); exit 1; }; };;
22845   esac
22846 done
22847
22848
22849 # If the user did not use the arguments to specify the items to instantiate,
22850 # then the envvar interface is used.  Set only those that are not.
22851 # We use the long form for the default assignment because of an extremely
22852 # bizarre bug on SunOS 4.1.3.
22853 if $ac_need_defaults; then
22854   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22855   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22856   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22857 fi
22858
22859 # Have a temporary directory for convenience.  Make it in the build tree
22860 # simply because there is no reason against having it here, and in addition,
22861 # creating and moving files from /tmp can sometimes cause problems.
22862 # Hook for its removal unless debugging.
22863 # Note that there is a small window in which the directory will not be cleaned:
22864 # after its creation but before its name has been assigned to `$tmp'.
22865 $debug ||
22866 {
22867   tmp=
22868   trap 'exit_status=$?
22869   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22870 ' 0
22871   trap '{ (exit 1); exit 1; }' 1 2 13 15
22872 }
22873 # Create a (secure) tmp directory for tmp files.
22874
22875 {
22876   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22877   test -n "$tmp" && test -d "$tmp"
22878 }  ||
22879 {
22880   tmp=./conf$$-$RANDOM
22881   (umask 077 && mkdir "$tmp")
22882 } ||
22883 {
22884    echo "$me: cannot create a temporary directory in ." >&2
22885    { (exit 1); exit 1; }
22886 }
22887
22888 #
22889 # Set up the sed scripts for CONFIG_FILES section.
22890 #
22891
22892 # No need to generate the scripts if there are no CONFIG_FILES.
22893 # This happens for instance when ./config.status config.h
22894 if test -n "$CONFIG_FILES"; then
22895
22896 _ACEOF
22897
22898
22899
22900 ac_delim='%!_!# '
22901 for ac_last_try in false false false false false :; do
22902   cat >conf$$subs.sed <<_ACEOF
22903 SHELL!$SHELL$ac_delim
22904 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22905 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22906 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22907 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22908 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22909 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22910 exec_prefix!$exec_prefix$ac_delim
22911 prefix!$prefix$ac_delim
22912 program_transform_name!$program_transform_name$ac_delim
22913 bindir!$bindir$ac_delim
22914 sbindir!$sbindir$ac_delim
22915 libexecdir!$libexecdir$ac_delim
22916 datarootdir!$datarootdir$ac_delim
22917 datadir!$datadir$ac_delim
22918 sysconfdir!$sysconfdir$ac_delim
22919 sharedstatedir!$sharedstatedir$ac_delim
22920 localstatedir!$localstatedir$ac_delim
22921 includedir!$includedir$ac_delim
22922 oldincludedir!$oldincludedir$ac_delim
22923 docdir!$docdir$ac_delim
22924 infodir!$infodir$ac_delim
22925 htmldir!$htmldir$ac_delim
22926 dvidir!$dvidir$ac_delim
22927 pdfdir!$pdfdir$ac_delim
22928 psdir!$psdir$ac_delim
22929 libdir!$libdir$ac_delim
22930 localedir!$localedir$ac_delim
22931 mandir!$mandir$ac_delim
22932 DEFS!$DEFS$ac_delim
22933 ECHO_C!$ECHO_C$ac_delim
22934 ECHO_N!$ECHO_N$ac_delim
22935 ECHO_T!$ECHO_T$ac_delim
22936 LIBS!$LIBS$ac_delim
22937 build_alias!$build_alias$ac_delim
22938 host_alias!$host_alias$ac_delim
22939 target_alias!$target_alias$ac_delim
22940 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22941 CC!$CC$ac_delim
22942 CFLAGS!$CFLAGS$ac_delim
22943 LDFLAGS!$LDFLAGS$ac_delim
22944 CPPFLAGS!$CPPFLAGS$ac_delim
22945 ac_ct_CC!$ac_ct_CC$ac_delim
22946 EXEEXT!$EXEEXT$ac_delim
22947 OBJEXT!$OBJEXT$ac_delim
22948 CXX!$CXX$ac_delim
22949 CXXFLAGS!$CXXFLAGS$ac_delim
22950 ac_ct_CXX!$ac_ct_CXX$ac_delim
22951 CPP!$CPP$ac_delim
22952 subdirs!$subdirs$ac_delim
22953 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22954 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22955 build!$build$ac_delim
22956 build_cpu!$build_cpu$ac_delim
22957 build_vendor!$build_vendor$ac_delim
22958 build_os!$build_os$ac_delim
22959 host!$host$ac_delim
22960 host_cpu!$host_cpu$ac_delim
22961 host_vendor!$host_vendor$ac_delim
22962 host_os!$host_os$ac_delim
22963 target!$target$ac_delim
22964 target_cpu!$target_cpu$ac_delim
22965 target_vendor!$target_vendor$ac_delim
22966 target_os!$target_os$ac_delim
22967 OS!$OS$ac_delim
22968 HOST_OS!$HOST_OS$ac_delim
22969 TARGET_OS!$TARGET_OS$ac_delim
22970 LINKALL!$LINKALL$ac_delim
22971 NOLINKALL!$NOLINKALL$ac_delim
22972 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22973 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22974 ARCH!$ARCH$ac_delim
22975 HOST_ARCH!$HOST_ARCH$ac_delim
22976 ENDIAN!$ENDIAN$ac_delim
22977 GREP!$GREP$ac_delim
22978 EGREP!$EGREP$ac_delim
22979 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22980 BUILD_CC!$BUILD_CC$ac_delim
22981 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22982 BUILD_CXX!$BUILD_CXX$ac_delim
22983 CVSBUILD!$CVSBUILD$ac_delim
22984 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22985 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22986 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22987 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22988 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22989 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22990 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22991 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22992 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22993 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22994 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22995 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22996 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22997 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22998 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22999 JIT!$JIT$ac_delim
23000 _ACEOF
23001
23002   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23003     break
23004   elif $ac_last_try; then
23005     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23007    { (exit 1); exit 1; }; }
23008   else
23009     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23010   fi
23011 done
23012
23013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23014 if test -n "$ac_eof"; then
23015   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23016   ac_eof=`expr $ac_eof + 1`
23017 fi
23018
23019 cat >>$CONFIG_STATUS <<_ACEOF
23020 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23022 _ACEOF
23023 sed '
23024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23025 s/^/s,@/; s/!/@,|#_!!_#|/
23026 :n
23027 t n
23028 s/'"$ac_delim"'$/,g/; t
23029 s/$/\\/; p
23030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23031 ' >>$CONFIG_STATUS <conf$$subs.sed
23032 rm -f conf$$subs.sed
23033 cat >>$CONFIG_STATUS <<_ACEOF
23034 CEOF$ac_eof
23035 _ACEOF
23036
23037
23038 ac_delim='%!_!# '
23039 for ac_last_try in false false false false false :; do
23040   cat >conf$$subs.sed <<_ACEOF
23041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23042 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23043 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23044 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23045 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23046 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23047 ENABLE_PIC!$ENABLE_PIC$ac_delim
23048 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23049 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23050 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23051 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23052 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23053 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23054 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23055 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23056 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23057 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23058 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23059 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23060 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23061 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23062 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23063 NM!$NM$ac_delim
23064 ifGNUmake!$ifGNUmake$ac_delim
23065 LN_S!$LN_S$ac_delim
23066 CMP!$CMP$ac_delim
23067 CP!$CP$ac_delim
23068 DATE!$DATE$ac_delim
23069 FIND!$FIND$ac_delim
23070 MKDIR!$MKDIR$ac_delim
23071 MV!$MV$ac_delim
23072 RANLIB!$RANLIB$ac_delim
23073 AR!$AR$ac_delim
23074 RM!$RM$ac_delim
23075 SED!$SED$ac_delim
23076 TAR!$TAR$ac_delim
23077 BINPWD!$BINPWD$ac_delim
23078 GRAPHVIZ!$GRAPHVIZ$ac_delim
23079 DOT!$DOT$ac_delim
23080 FDP!$FDP$ac_delim
23081 NEATO!$NEATO$ac_delim
23082 TWOPI!$TWOPI$ac_delim
23083 CIRCO!$CIRCO$ac_delim
23084 GV!$GV$ac_delim
23085 DOTTY!$DOTTY$ac_delim
23086 XDOT!$XDOT$ac_delim
23087 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23088 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23089 INSTALL_DATA!$INSTALL_DATA$ac_delim
23090 BZIP2!$BZIP2$ac_delim
23091 CAT!$CAT$ac_delim
23092 DOXYGEN!$DOXYGEN$ac_delim
23093 GROFF!$GROFF$ac_delim
23094 GZIPBIN!$GZIPBIN$ac_delim
23095 PDFROFF!$PDFROFF$ac_delim
23096 ZIP!$ZIP$ac_delim
23097 OCAMLC!$OCAMLC$ac_delim
23098 OCAMLOPT!$OCAMLOPT$ac_delim
23099 OCAMLDEP!$OCAMLDEP$ac_delim
23100 OCAMLDOC!$OCAMLDOC$ac_delim
23101 GAS!$GAS$ac_delim
23102 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23103 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23104 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23105 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23106 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23107 LIBADD_DL!$LIBADD_DL$ac_delim
23108 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23109 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23110 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23111 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23112 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23113 PYTHON!$PYTHON$ac_delim
23114 USE_UDIS86!$USE_UDIS86$ac_delim
23115 USE_OPROFILE!$USE_OPROFILE$ac_delim
23116 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23117 XML2CONFIG!$XML2CONFIG$ac_delim
23118 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23119 LIBXML2_INC!$LIBXML2_INC$ac_delim
23120 CXXCPP!$CXXCPP$ac_delim
23121 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23122 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23123 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23124 MMAP_FILE!$MMAP_FILE$ac_delim
23125 SHLIBEXT!$SHLIBEXT$ac_delim
23126 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23127 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23128 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23129 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23130 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23131 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23132 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23133 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23134 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23135 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23136 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23137 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23138 _ACEOF
23139
23140   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23141     break
23142   elif $ac_last_try; then
23143     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23145    { (exit 1); exit 1; }; }
23146   else
23147     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23148   fi
23149 done
23150
23151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23152 if test -n "$ac_eof"; then
23153   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23154   ac_eof=`expr $ac_eof + 1`
23155 fi
23156
23157 cat >>$CONFIG_STATUS <<_ACEOF
23158 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23160 _ACEOF
23161 sed '
23162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23163 s/^/s,@/; s/!/@,|#_!!_#|/
23164 :n
23165 t n
23166 s/'"$ac_delim"'$/,g/; t
23167 s/$/\\/; p
23168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23169 ' >>$CONFIG_STATUS <conf$$subs.sed
23170 rm -f conf$$subs.sed
23171 cat >>$CONFIG_STATUS <<_ACEOF
23172 CEOF$ac_eof
23173 _ACEOF
23174
23175
23176 ac_delim='%!_!# '
23177 for ac_last_try in false false false false false :; do
23178   cat >conf$$subs.sed <<_ACEOF
23179 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23180 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23181 RPATH!$RPATH$ac_delim
23182 RDYNAMIC!$RDYNAMIC$ac_delim
23183 program_prefix!$program_prefix$ac_delim
23184 LIBOBJS!$LIBOBJS$ac_delim
23185 LTLIBOBJS!$LTLIBOBJS$ac_delim
23186 _ACEOF
23187
23188   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23189     break
23190   elif $ac_last_try; then
23191     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23193    { (exit 1); exit 1; }; }
23194   else
23195     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23196   fi
23197 done
23198
23199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23200 if test -n "$ac_eof"; then
23201   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23202   ac_eof=`expr $ac_eof + 1`
23203 fi
23204
23205 cat >>$CONFIG_STATUS <<_ACEOF
23206 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23208 _ACEOF
23209 sed '
23210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23211 s/^/s,@/; s/!/@,|#_!!_#|/
23212 :n
23213 t n
23214 s/'"$ac_delim"'$/,g/; t
23215 s/$/\\/; p
23216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23217 ' >>$CONFIG_STATUS <conf$$subs.sed
23218 rm -f conf$$subs.sed
23219 cat >>$CONFIG_STATUS <<_ACEOF
23220 :end
23221 s/|#_!!_#|//g
23222 CEOF$ac_eof
23223 _ACEOF
23224
23225
23226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23228 # trailing colons and then remove the whole line if VPATH becomes empty
23229 # (actually we leave an empty line to preserve line numbers).
23230 if test "x$srcdir" = x.; then
23231   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23232 s/:*\$(srcdir):*/:/
23233 s/:*\${srcdir}:*/:/
23234 s/:*@srcdir@:*/:/
23235 s/^\([^=]*=[     ]*\):*/\1/
23236 s/:*$//
23237 s/^[^=]*=[       ]*$//
23238 }'
23239 fi
23240
23241 cat >>$CONFIG_STATUS <<\_ACEOF
23242 fi # test -n "$CONFIG_FILES"
23243
23244
23245 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23246 do
23247   case $ac_tag in
23248   :[FHLC]) ac_mode=$ac_tag; continue;;
23249   esac
23250   case $ac_mode$ac_tag in
23251   :[FHL]*:*);;
23252   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23254    { (exit 1); exit 1; }; };;
23255   :[FH]-) ac_tag=-:-;;
23256   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23257   esac
23258   ac_save_IFS=$IFS
23259   IFS=:
23260   set x $ac_tag
23261   IFS=$ac_save_IFS
23262   shift
23263   ac_file=$1
23264   shift
23265
23266   case $ac_mode in
23267   :L) ac_source=$1;;
23268   :[FH])
23269     ac_file_inputs=
23270     for ac_f
23271     do
23272       case $ac_f in
23273       -) ac_f="$tmp/stdin";;
23274       *) # Look for the file first in the build tree, then in the source tree
23275          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23276          # because $ac_f cannot contain `:'.
23277          test -f "$ac_f" ||
23278            case $ac_f in
23279            [\\/$]*) false;;
23280            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23281            esac ||
23282            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23284    { (exit 1); exit 1; }; };;
23285       esac
23286       ac_file_inputs="$ac_file_inputs $ac_f"
23287     done
23288
23289     # Let's still pretend it is `configure' which instantiates (i.e., don't
23290     # use $as_me), people would be surprised to read:
23291     #    /* config.h.  Generated by config.status.  */
23292     configure_input="Generated from "`IFS=:
23293           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23294     if test x"$ac_file" != x-; then
23295       configure_input="$ac_file.  $configure_input"
23296       { echo "$as_me:$LINENO: creating $ac_file" >&5
23297 echo "$as_me: creating $ac_file" >&6;}
23298     fi
23299
23300     case $ac_tag in
23301     *:-:* | *:-) cat >"$tmp/stdin";;
23302     esac
23303     ;;
23304   esac
23305
23306   ac_dir=`$as_dirname -- "$ac_file" ||
23307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23308          X"$ac_file" : 'X\(//\)[^/]' \| \
23309          X"$ac_file" : 'X\(//\)$' \| \
23310          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23311 echo X"$ac_file" |
23312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23313             s//\1/
23314             q
23315           }
23316           /^X\(\/\/\)[^/].*/{
23317             s//\1/
23318             q
23319           }
23320           /^X\(\/\/\)$/{
23321             s//\1/
23322             q
23323           }
23324           /^X\(\/\).*/{
23325             s//\1/
23326             q
23327           }
23328           s/.*/./; q'`
23329   { as_dir="$ac_dir"
23330   case $as_dir in #(
23331   -*) as_dir=./$as_dir;;
23332   esac
23333   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23334     as_dirs=
23335     while :; do
23336       case $as_dir in #(
23337       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23338       *) as_qdir=$as_dir;;
23339       esac
23340       as_dirs="'$as_qdir' $as_dirs"
23341       as_dir=`$as_dirname -- "$as_dir" ||
23342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23343          X"$as_dir" : 'X\(//\)[^/]' \| \
23344          X"$as_dir" : 'X\(//\)$' \| \
23345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23346 echo X"$as_dir" |
23347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23348             s//\1/
23349             q
23350           }
23351           /^X\(\/\/\)[^/].*/{
23352             s//\1/
23353             q
23354           }
23355           /^X\(\/\/\)$/{
23356             s//\1/
23357             q
23358           }
23359           /^X\(\/\).*/{
23360             s//\1/
23361             q
23362           }
23363           s/.*/./; q'`
23364       test -d "$as_dir" && break
23365     done
23366     test -z "$as_dirs" || eval "mkdir $as_dirs"
23367   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23369    { (exit 1); exit 1; }; }; }
23370   ac_builddir=.
23371
23372 case "$ac_dir" in
23373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23374 *)
23375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23376   # A ".." for each directory in $ac_dir_suffix.
23377   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23378   case $ac_top_builddir_sub in
23379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23381   esac ;;
23382 esac
23383 ac_abs_top_builddir=$ac_pwd
23384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23385 # for backward compatibility:
23386 ac_top_builddir=$ac_top_build_prefix
23387
23388 case $srcdir in
23389   .)  # We are building in place.
23390     ac_srcdir=.
23391     ac_top_srcdir=$ac_top_builddir_sub
23392     ac_abs_top_srcdir=$ac_pwd ;;
23393   [\\/]* | ?:[\\/]* )  # Absolute name.
23394     ac_srcdir=$srcdir$ac_dir_suffix;
23395     ac_top_srcdir=$srcdir
23396     ac_abs_top_srcdir=$srcdir ;;
23397   *) # Relative name.
23398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23399     ac_top_srcdir=$ac_top_build_prefix$srcdir
23400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23401 esac
23402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23403
23404
23405   case $ac_mode in
23406   :F)
23407   #
23408   # CONFIG_FILE
23409   #
23410
23411   case $INSTALL in
23412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23413   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23414   esac
23415 _ACEOF
23416
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 # If the template does not know about datarootdir, expand it.
23419 # FIXME: This hack should be removed a few years after 2.60.
23420 ac_datarootdir_hack=; ac_datarootdir_seen=
23421
23422 case `sed -n '/datarootdir/ {
23423   p
23424   q
23425 }
23426 /@datadir@/p
23427 /@docdir@/p
23428 /@infodir@/p
23429 /@localedir@/p
23430 /@mandir@/p
23431 ' $ac_file_inputs` in
23432 *datarootdir*) ac_datarootdir_seen=yes;;
23433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23434   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23436 _ACEOF
23437 cat >>$CONFIG_STATUS <<_ACEOF
23438   ac_datarootdir_hack='
23439   s&@datadir@&$datadir&g
23440   s&@docdir@&$docdir&g
23441   s&@infodir@&$infodir&g
23442   s&@localedir@&$localedir&g
23443   s&@mandir@&$mandir&g
23444     s&\\\${datarootdir}&$datarootdir&g' ;;
23445 esac
23446 _ACEOF
23447
23448 # Neutralize VPATH when `$srcdir' = `.'.
23449 # Shell code in configure.ac might set extrasub.
23450 # FIXME: do we really want to maintain this feature?
23451 cat >>$CONFIG_STATUS <<_ACEOF
23452   sed "$ac_vpsub
23453 $extrasub
23454 _ACEOF
23455 cat >>$CONFIG_STATUS <<\_ACEOF
23456 :t
23457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23458 s&@configure_input@&$configure_input&;t t
23459 s&@top_builddir@&$ac_top_builddir_sub&;t t
23460 s&@srcdir@&$ac_srcdir&;t t
23461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23462 s&@top_srcdir@&$ac_top_srcdir&;t t
23463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23464 s&@builddir@&$ac_builddir&;t t
23465 s&@abs_builddir@&$ac_abs_builddir&;t t
23466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23467 s&@INSTALL@&$ac_INSTALL&;t t
23468 $ac_datarootdir_hack
23469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23470
23471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23472   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23473   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23474   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23475 which seems to be undefined.  Please make sure it is defined." >&5
23476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23477 which seems to be undefined.  Please make sure it is defined." >&2;}
23478
23479   rm -f "$tmp/stdin"
23480   case $ac_file in
23481   -) cat "$tmp/out"; rm -f "$tmp/out";;
23482   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23483   esac
23484  ;;
23485   :H)
23486   #
23487   # CONFIG_HEADER
23488   #
23489 _ACEOF
23490
23491 # Transform confdefs.h into a sed script `conftest.defines', that
23492 # substitutes the proper values into config.h.in to produce config.h.
23493 rm -f conftest.defines conftest.tail
23494 # First, append a space to every undef/define line, to ease matching.
23495 echo 's/$/ /' >conftest.defines
23496 # Then, protect against being on the right side of a sed subst, or in
23497 # an unquoted here document, in config.status.  If some macros were
23498 # called several times there might be several #defines for the same
23499 # symbol, which is useless.  But do not sort them, since the last
23500 # AC_DEFINE must be honored.
23501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23504 # PARAMS is the parameter list in the macro definition--in most cases, it's
23505 # just an empty string.
23506 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23507 ac_dB='\\)[      (].*,\\1define\\2'
23508 ac_dC=' '
23509 ac_dD=' ,'
23510
23511 uniq confdefs.h |
23512   sed -n '
23513         t rset
23514         :rset
23515         s/^[     ]*#[    ]*define[       ][      ]*//
23516         t ok
23517         d
23518         :ok
23519         s/[\\&,]/\\&/g
23520         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23521         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23522   ' >>conftest.defines
23523
23524 # Remove the space that was appended to ease matching.
23525 # Then replace #undef with comments.  This is necessary, for
23526 # example, in the case of _POSIX_SOURCE, which is predefined and required
23527 # on some systems where configure will not decide to define it.
23528 # (The regexp can be short, since the line contains either #define or #undef.)
23529 echo 's/ $//
23530 s,^[     #]*u.*,/* & */,' >>conftest.defines
23531
23532 # Break up conftest.defines:
23533 ac_max_sed_lines=50
23534
23535 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23536 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23537 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23538 # et cetera.
23539 ac_in='$ac_file_inputs'
23540 ac_out='"$tmp/out1"'
23541 ac_nxt='"$tmp/out2"'
23542
23543 while :
23544 do
23545   # Write a here document:
23546     cat >>$CONFIG_STATUS <<_ACEOF
23547     # First, check the format of the line:
23548     cat >"\$tmp/defines.sed" <<\\CEOF
23549 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23550 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23551 b
23552 :def
23553 _ACEOF
23554   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23555   echo 'CEOF
23556     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23557   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23558   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23559   grep . conftest.tail >/dev/null || break
23560   rm -f conftest.defines
23561   mv conftest.tail conftest.defines
23562 done
23563 rm -f conftest.defines conftest.tail
23564
23565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567   if test x"$ac_file" != x-; then
23568     echo "/* $configure_input  */" >"$tmp/config.h"
23569     cat "$ac_result" >>"$tmp/config.h"
23570     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23571       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23572 echo "$as_me: $ac_file is unchanged" >&6;}
23573     else
23574       rm -f $ac_file
23575       mv "$tmp/config.h" $ac_file
23576     fi
23577   else
23578     echo "/* $configure_input  */"
23579     cat "$ac_result"
23580   fi
23581   rm -f "$tmp/out12"
23582  ;;
23583
23584   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23585 echo "$as_me: executing $ac_file commands" >&6;}
23586  ;;
23587   esac
23588
23589
23590   case $ac_file$ac_mode in
23591     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23592    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23593     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23594    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23595     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23596    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23597     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23598    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23599     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23600    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23601     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23602    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23603     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23604    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23605     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23606    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23607     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23608    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23609     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23610    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23611     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23612    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23613     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23614    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23615     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23616    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23617
23618   esac
23619 done # for ac_tag
23620
23621
23622 { (exit 0); exit 0; }
23623 _ACEOF
23624 chmod +x $CONFIG_STATUS
23625 ac_clean_files=$ac_clean_files_save
23626
23627
23628 # configure is writing to config.log, and then calls config.status.
23629 # config.status does its own redirection, appending to config.log.
23630 # Unfortunately, on DOS this fails, as config.log is still kept open
23631 # by configure, so config.status won't be able to write to it; its
23632 # output is simply discarded.  So we exec the FD to /dev/null,
23633 # effectively closing config.log, so it can be properly (re)opened and
23634 # appended to by config.status.  When coming back to configure, we
23635 # need to make the FD available again.
23636 if test "$no_create" != yes; then
23637   ac_cs_success=:
23638   ac_config_status_args=
23639   test "$silent" = yes &&
23640     ac_config_status_args="$ac_config_status_args --quiet"
23641   exec 5>/dev/null
23642   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23643   exec 5>>config.log
23644   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23645   # would make configure fail if this is the last instruction.
23646   $ac_cs_success || { (exit 1); exit 1; }
23647 fi
23648
23649 #
23650 # CONFIG_SUBDIRS section.
23651 #
23652 if test "$no_recursion" != yes; then
23653
23654   # Remove --cache-file and --srcdir arguments so they do not pile up.
23655   ac_sub_configure_args=
23656   ac_prev=
23657   eval "set x $ac_configure_args"
23658   shift
23659   for ac_arg
23660   do
23661     if test -n "$ac_prev"; then
23662       ac_prev=
23663       continue
23664     fi
23665     case $ac_arg in
23666     -cache-file | --cache-file | --cache-fil | --cache-fi \
23667     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23668       ac_prev=cache_file ;;
23669     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23670     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23671     | --c=*)
23672       ;;
23673     --config-cache | -C)
23674       ;;
23675     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23676       ac_prev=srcdir ;;
23677     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23678       ;;
23679     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23680       ac_prev=prefix ;;
23681     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23682       ;;
23683     *)
23684       case $ac_arg in
23685       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23686       esac
23687       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23688     esac
23689   done
23690
23691   # Always prepend --prefix to ensure using the same prefix
23692   # in subdir configurations.
23693   ac_arg="--prefix=$prefix"
23694   case $ac_arg in
23695   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23696   esac
23697   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23698
23699   ac_popdir=`pwd`
23700   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23701
23702     # Do not complain, so a configure script can configure whichever
23703     # parts of a large source tree are present.
23704     test -d "$srcdir/$ac_dir" || continue
23705
23706     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23707     echo "$as_me:$LINENO: $ac_msg" >&5
23708     echo "$ac_msg" >&6
23709     { as_dir="$ac_dir"
23710   case $as_dir in #(
23711   -*) as_dir=./$as_dir;;
23712   esac
23713   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23714     as_dirs=
23715     while :; do
23716       case $as_dir in #(
23717       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23718       *) as_qdir=$as_dir;;
23719       esac
23720       as_dirs="'$as_qdir' $as_dirs"
23721       as_dir=`$as_dirname -- "$as_dir" ||
23722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723          X"$as_dir" : 'X\(//\)[^/]' \| \
23724          X"$as_dir" : 'X\(//\)$' \| \
23725          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23726 echo X"$as_dir" |
23727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23728             s//\1/
23729             q
23730           }
23731           /^X\(\/\/\)[^/].*/{
23732             s//\1/
23733             q
23734           }
23735           /^X\(\/\/\)$/{
23736             s//\1/
23737             q
23738           }
23739           /^X\(\/\).*/{
23740             s//\1/
23741             q
23742           }
23743           s/.*/./; q'`
23744       test -d "$as_dir" && break
23745     done
23746     test -z "$as_dirs" || eval "mkdir $as_dirs"
23747   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23749    { (exit 1); exit 1; }; }; }
23750     ac_builddir=.
23751
23752 case "$ac_dir" in
23753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23754 *)
23755   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23756   # A ".." for each directory in $ac_dir_suffix.
23757   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23758   case $ac_top_builddir_sub in
23759   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23760   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23761   esac ;;
23762 esac
23763 ac_abs_top_builddir=$ac_pwd
23764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23765 # for backward compatibility:
23766 ac_top_builddir=$ac_top_build_prefix
23767
23768 case $srcdir in
23769   .)  # We are building in place.
23770     ac_srcdir=.
23771     ac_top_srcdir=$ac_top_builddir_sub
23772     ac_abs_top_srcdir=$ac_pwd ;;
23773   [\\/]* | ?:[\\/]* )  # Absolute name.
23774     ac_srcdir=$srcdir$ac_dir_suffix;
23775     ac_top_srcdir=$srcdir
23776     ac_abs_top_srcdir=$srcdir ;;
23777   *) # Relative name.
23778     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23779     ac_top_srcdir=$ac_top_build_prefix$srcdir
23780     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23781 esac
23782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23783
23784
23785     cd "$ac_dir"
23786
23787     # Check for guested configure; otherwise get Cygnus style configure.
23788     if test -f "$ac_srcdir/configure.gnu"; then
23789       ac_sub_configure=$ac_srcdir/configure.gnu
23790     elif test -f "$ac_srcdir/configure"; then
23791       ac_sub_configure=$ac_srcdir/configure
23792     elif test -f "$ac_srcdir/configure.in"; then
23793       # This should be Cygnus configure.
23794       ac_sub_configure=$ac_aux_dir/configure
23795     else
23796       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23797 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23798       ac_sub_configure=
23799     fi
23800
23801     # The recursion is here.
23802     if test -n "$ac_sub_configure"; then
23803       # Make the cache file name correct relative to the subdirectory.
23804       case $cache_file in
23805       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23806       *) # Relative name.
23807         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23808       esac
23809
23810       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23811 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23812       # The eval makes quoting arguments work.
23813       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23814            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23815         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23816 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23817    { (exit 1); exit 1; }; }
23818     fi
23819
23820     cd "$ac_popdir"
23821   done
23822 fi
23823