Regenerate with changes for -rdynamic.
[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-libffi         Check for the presence of libffi (default is NO)
1457   --enable-ltdl-install   install libltdl
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-optimize-option  Select the compiler options to use for optimized
1463                           builds
1464   --with-extra-options    Specify additional options to compile LLVM with
1465   --with-extra-ld-options Specify additional options to link LLVM with
1466   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1467                           is stdlib)
1468   --with-clang-srcdir     Directory to the out-of-tree Clang source
1469   --with-clang-resource-dir
1470                           Relative directory from the Clang binary for
1471                           resource files
1472   --with-c-include-dirs   Colon separated list of directories clang will
1473                           search for headers
1474   --with-gcc-toolchain    Directory where gcc is installed.
1475   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1476   --with-binutils-include Specify path to binutils/include/ containing
1477                           plugin-api.h file for gold plugin.
1478   --with-bug-report-url   Specify the URL where bug reports should be
1479                           submitted (default=http://llvm.org/bugs/)
1480   --with-internal-prefix  Installation directory for internal files
1481   --with-python           path to python
1482   --with-udis86=<path>    Use udis86 external x86 disassembler library
1483   --with-oprofile=<prefix>
1484                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1485   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1486
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CPP         C preprocessor
1498   CXXCPP      C++ preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574   exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60.  Invocation command line was
1582
1583   $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1601
1602 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1603 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1606 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1607 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1608 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644   for ac_arg
1645   do
1646     case $ac_arg in
1647     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649     | -silent | --silent | --silen | --sile | --sil)
1650       continue ;;
1651     *\'*)
1652       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653     esac
1654     case $ac_pass in
1655     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656     2)
1657       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658       if test $ac_must_keep_next = true; then
1659         ac_must_keep_next=false # Got value, back to normal.
1660       else
1661         case $ac_arg in
1662           *=* | --config-cache | -C | -disable-* | --disable-* \
1663           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665           | -with-* | --with-* | -without-* | --without-* | --x)
1666             case "$ac_configure_args0 " in
1667               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668             esac
1669             ;;
1670           -* ) ac_must_keep_next=true ;;
1671         esac
1672       fi
1673       ac_configure_args="$ac_configure_args '$ac_arg'"
1674       ;;
1675     esac
1676   done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log.  We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687   # Save into config.log some information that might help in debugging.
1688   {
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696     echo
1697     # The following way of writing the cache mishandles newlines in values,
1698 (
1699   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700     eval ac_val=\$$ac_var
1701     case $ac_val in #(
1702     *${as_nl}*)
1703       case $ac_var in #(
1704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706       esac
1707       case $ac_var in #(
1708       _ | IFS | as_nl) ;; #(
1709       *) $as_unset $ac_var ;;
1710       esac ;;
1711     esac
1712   done
1713   (set) 2>&1 |
1714     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715     *${as_nl}ac_space=\ *)
1716       sed -n \
1717         "s/'\''/'\''\\\\'\'''\''/g;
1718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719       ;; #(
1720     *)
1721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722       ;;
1723     esac |
1724     sort
1725 )
1726     echo
1727
1728     cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1743
1744     if test -n "$ac_subst_files"; then
1745       cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750       echo
1751       for ac_var in $ac_subst_files
1752       do
1753         eval ac_val=\$$ac_var
1754         case $ac_val in
1755         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756         esac
1757         echo "$ac_var='\''$ac_val'\''"
1758       done | sort
1759       echo
1760     fi
1761
1762     if test -s confdefs.h; then
1763       cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768       echo
1769       cat confdefs.h
1770       echo
1771     fi
1772     test "$ac_signal" != 0 &&
1773       echo "$as_me: caught signal $ac_signal"
1774     echo "$as_me: exit $exit_status"
1775   } >&5
1776   rm -f core *.core core.conftest.* &&
1777     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778     exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1784
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1787
1788 # Predefined preprocessor variables.
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1813
1814
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818   set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822   set x "$ac_default_prefix/share/config.site" \
1823         "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828   if test -r "$ac_site_file"; then
1829     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831     sed 's/^/| /' "$ac_site_file" >&5
1832     . "$ac_site_file"
1833   fi
1834 done
1835
1836 if test -r "$cache_file"; then
1837   # Some versions of bash will fail to source /dev/null (special
1838   # files actually), so we avoid doing that.
1839   if test -f "$cache_file"; then
1840     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842     case $cache_file in
1843       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844       *)                      . "./$cache_file";;
1845     esac
1846   fi
1847 else
1848   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850   >$cache_file
1851 fi
1852
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858   eval ac_new_set=\$ac_env_${ac_var}_set
1859   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860   eval ac_new_val=\$ac_env_${ac_var}_value
1861   case $ac_old_set,$ac_new_set in
1862     set,)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,set)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,);;
1871     *)
1872       if test "x$ac_old_val" != "x$ac_new_val"; then
1873         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1876 echo "$as_me:   former value:  $ac_old_val" >&2;}
1877         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1878 echo "$as_me:   current value: $ac_new_val" >&2;}
1879         ac_cache_corrupted=:
1880       fi;;
1881   esac
1882   # Pass precious variables to config.status.
1883   if test "$ac_new_set" = set; then
1884     case $ac_new_val in
1885     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     *) ac_arg=$ac_var=$ac_new_val ;;
1887     esac
1888     case " $ac_configure_args " in
1889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891     esac
1892   fi
1893 done
1894 if $ac_cache_corrupted; then
1895   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1941 _ACEOF
1942
1943
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945
1946
1947
1948
1949
1950
1951
1952 ac_aux_dir=
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1981
1982
1983
1984 if test ${srcdir} != "." ; then
1985   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988    { (exit 1); exit 1; }; }
1989   fi
1990 fi
1991
1992 ${CFLAGS=}
1993 ${CXXFLAGS=}
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001   for ac_prog in clang llvm-gcc gcc
2002   do
2003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040     test -n "$CC" && break
2041   done
2042 fi
2043 if test -z "$CC"; then
2044   ac_ct_CC=$CC
2045   for ac_prog in clang llvm-gcc gcc
2046 do
2047   # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_ac_ct_CC="$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084   test -n "$ac_ct_CC" && break
2085 done
2086
2087   if test "x$ac_ct_CC" = x; then
2088     CC=""
2089   else
2090     case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100     CC=$ac_ct_CC
2101   fi
2102 fi
2103
2104
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120   (eval "$ac_compiler --version >&5") 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130   (eval "$ac_compiler -v >&5") 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler -V >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 #
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort.  b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 #
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions.  Remove them first so a
2176 # subsequent execution test works.
2177 ac_rmfiles=
2178 for ac_file in $ac_files
2179 do
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183   esac
2184 done
2185 rm -f $ac_rmfiles
2186
2187 if { (ac_try="$ac_link_default"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193   (eval "$ac_link_default") 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2201 # Autoconf.
2202 for ac_file in $ac_files
2203 do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207         ;;
2208     [ab].out )
2209         # We found the default executable, but exeext='' is most
2210         # certainly right.
2211         break;;
2212     *.* )
2213         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214         then :; else
2215            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         fi
2217         # We set ac_cv_exeext here because the later test for it is not
2218         # safe: cross compilers may not add the suffix if given an `-o'
2219         # argument, so we may need to know it at that point already.
2220         # Even if this section looks crufty: it has the advantage of
2221         # actually working.
2222         break;;
2223     * )
2224         break;;
2225   esac
2226 done
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237    { (exit 77); exit 77; }; }
2238 fi
2239
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2243
2244 # Check that the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251   if { ac_try='./$ac_file'
2252   { (case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_try") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2287
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_link") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 # `rm'.
2304 for ac_file in conftest.exe conftest conftest.*; do
2305   test -f "$ac_file" || continue
2306   case $ac_file in
2307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309           break;;
2310     * ) break;;
2311   esac
2312 done
2313 else
2314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355   (eval "$ac_compile") 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   for ac_file in conftest.o conftest.obj conftest.*; do
2360   test -f "$ac_file" || continue;
2361   case $ac_file in
2362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364        break;;
2365   esac
2366 done
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2377
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399 #ifndef __GNUC__
2400        choke me
2401 #endif
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_compile") 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   ac_compiler_gnu=yes
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446         ac_compiler_gnu=no
2447 fi
2448
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451
2452 fi
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   ac_save_c_werror_flag=$ac_c_werror_flag
2464    ac_c_werror_flag=yes
2465    ac_cv_prog_cc_g=no
2466    CFLAGS="-g"
2467    cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_compile") 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497   { (case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_try") 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_g=yes
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521         CFLAGS=""
2522       cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compile") 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   :
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576         ac_c_werror_flag=$ac_save_c_werror_flag
2577          CFLAGS="-g"
2578          cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_compile") 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613   (eval "$ac_try") 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_prog_cc_g=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632
2633 fi
2634
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642    ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647   CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649   if test "$GCC" = yes; then
2650     CFLAGS="-g -O2"
2651   else
2652     CFLAGS="-g"
2653   fi
2654 else
2655   if test "$GCC" = yes; then
2656     CFLAGS="-O2"
2657   else
2658     CFLAGS=
2659   fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2684 {
2685   return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2695 }
2696
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2698    function prototypes and stuff, but not '\xHH' hex character constants.
2699    These don't provoke an error unfortunately, instead are silently treated
2700    as 'x'.  The following induces an error, until -std is added to get
2701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2702    array size at least.  It's necessary to write '\x00'==0 to get something
2703    that's true only with -std.  */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707    inside strings and character constants.  */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2719 {
2720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744   { (case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_prog_cc_c89=$ac_arg
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext
2772   test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 done
2774 rm -f conftest.$ac_ext
2775 CC=$ac_save_CC
2776
2777 fi
2778 # AC_CACHE_VAL
2779 case "x$ac_cv_prog_cc_c89" in
2780   x)
2781     { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2783   xno)
2784     { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2786   *)
2787     CC="$CC $ac_cv_prog_cc_c89"
2788     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 esac
2791
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799 ac_ext=cpp
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805   if test -n "$CCC"; then
2806     CXX=$CCC
2807   else
2808     if test -n "$ac_tool_prefix"; then
2809   for ac_prog in clang++ llvm-g++ g++
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$CXX"; then
2819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CXX=$ac_cv_prog_CXX
2839 if test -n "$CXX"; then
2840   { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848     test -n "$CXX" && break
2849   done
2850 fi
2851 if test -z "$CXX"; then
2852   ac_ct_CXX=$CXX
2853   for ac_prog in clang++ llvm-g++ g++
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CXX"; then
2863   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_ac_ct_CXX="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CXX" && break
2893 done
2894
2895   if test "x$ac_ct_CXX" = x; then
2896     CXX="g++"
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet.  If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet.  If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908     CXX=$ac_ct_CXX
2909   fi
2910 fi
2911
2912   fi
2913 fi
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler --version >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler -v >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -V >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963 #ifndef __GNUC__
2964        choke me
2965 #endif
2966
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986   { (case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_try") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_try") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   ac_compiler_gnu=yes
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010         ac_compiler_gnu=no
3011 fi
3012
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028    ac_cxx_werror_flag=yes
3029    ac_cv_prog_cxx_g=no
3030    CXXFLAGS="-g"
3031    cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037
3038 int
3039 main ()
3040 {
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_compile") 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_prog_cxx_g=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085         CXXFLAGS=""
3086       cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141          CXXFLAGS="-g"
3142          cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_try") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; } &&
3181          { ac_try='test -s conftest.$ac_objext'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269                      Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   :
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Broken: fails on valid input.
3300 continue
3301 fi
3302
3303 rm -f conftest.err conftest.$ac_ext
3304
3305   # OK, works on sane cases.  Now check whether nonexistent headers
3306   # can be detected and how.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   # Broken: success on invalid input.
3339 continue
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344   # Passes both tests.
3345 ac_preproc_ok=:
3346 break
3347 fi
3348
3349 rm -f conftest.err conftest.$ac_ext
3350
3351 done
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3355   break
3356 fi
3357
3358     done
3359     ac_cv_prog_CPP=$CPP
3360
3361 fi
3362   CPP=$ac_cv_prog_CPP
3363 else
3364   ac_cv_prog_CPP=$CPP
3365 fi
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371   # Use a header file that comes with gcc, so configuring glibc
3372   # with a fresh cross-compiler works.
3373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374   # <limits.h> exists even on freestanding compilers.
3375   # On the NeXT, cc -E runs the code through the compiler's parser,
3376   # not just through cpp. "Syntax error" is here to catch this case.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388                      Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   :
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418   # Broken: fails on valid input.
3419 continue
3420 fi
3421
3422 rm -f conftest.err conftest.$ac_ext
3423
3424   # OK, works on sane cases.  Now check whether nonexistent headers
3425   # can be detected and how.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   # Broken: success on invalid input.
3458 continue
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463   # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3467
3468 rm -f conftest.err conftest.$ac_ext
3469
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3474   :
3475 else
3476   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490 if test "$CXX" = "clang++" ; then
3491   { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493   ac_ext=cpp
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498
3499
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <limits>
3507 #if __has_include (<cxxabi.h>)
3508 #include <cxxabi.h>
3509 #endif
3510 #if __has_include (<unwind.h>)
3511 #include <unwind.h>
3512 #endif
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_try") 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3556
3557   { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3559
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564
3565   { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567   { { 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
3568 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;}
3569    { (exit 1); exit 1; }; }
3570
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574   ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580 fi
3581
3582
3583
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585   subdirs="$subdirs projects/llvm-gcc"
3586
3587 fi
3588
3589 if test -d ${srcdir}/projects/test-suite ; then
3590   subdirs="$subdirs projects/test-suite"
3591
3592 fi
3593
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595   subdirs="$subdirs projects/llvm-test"
3596
3597 fi
3598
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600   subdirs="$subdirs projects/poolalloc"
3601
3602 fi
3603
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605   subdirs="$subdirs projects/llvm-poolalloc"
3606
3607 fi
3608
3609 for i in `ls ${srcdir}/projects`
3610 do
3611   if test -d ${srcdir}/projects/${i} ; then
3612     case ${i} in
3613       sample)       subdirs="$subdirs projects/sample"
3614     ;;
3615       privbracket)  subdirs="$subdirs projects/privbracket"
3616  ;;
3617       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618  ;;
3619       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3620 ;;
3621       llvm-java)    subdirs="$subdirs projects/llvm-java"
3622  ;;
3623       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3624    ;;
3625       safecode)     subdirs="$subdirs projects/safecode"
3626  ;;
3627       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3628  ;;
3629       compiler-rt)       ;;
3630       llvm-gcc)       ;;
3631       test-suite)     ;;
3632       llvm-test)      ;;
3633       poolalloc)      ;;
3634       llvm-poolalloc) ;;
3635       *)
3636         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638         ;;
3639     esac
3640   fi
3641 done
3642
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645   enableval=$enable_polly;
3646 else
3647   enableval=default
3648 fi
3649
3650 case "$enableval" in
3651   yes) ENABLE_POLLY=1
3652  ;;
3653   no)  ENABLE_POLLY=0
3654  ;;
3655   default) ENABLE_POLLY=1
3656  ;;
3657   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659    { (exit 1); exit 1; }; } ;;
3660 esac
3661
3662
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664   LLVM_HAS_POLLY=1
3665
3666   subdirs="$subdirs tools/polly"
3667
3668 fi
3669
3670
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675    { (exit 1); exit 1; }; }
3676
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688    { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692    { (exit 1); exit 1; }; }
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701    { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715
3716
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test "x$host_alias" = x; then
3723   ac_cv_host=$ac_cv_build
3724 else
3725   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738    { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test "x$target_alias" = x; then
3760   ac_cv_target=$ac_cv_host
3761 else
3762   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775    { (exit 1); exit 1; }; };;
3776 esac
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_target
3780 shift
3781 target_cpu=$1
3782 target_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 target_os=$*
3787 IFS=$ac_save_IFS
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794   test "$program_prefix$program_suffix$program_transform_name" = \
3795     NONENONEs,x,x, &&
3796   program_prefix=${target_alias}-
3797
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   case $host in
3804   *-*-aix*)
3805     llvm_cv_link_all_option="-Wl,--whole-archive"
3806     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807     llvm_cv_os_type="AIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-irix*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="IRIX"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-cygwin*)
3815     llvm_cv_link_all_option="-Wl,--whole-archive"
3816     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817     llvm_cv_os_type="Cygwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-darwin*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Darwin"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-minix*)
3825     llvm_cv_link_all_option="-Wl,-all_load"
3826     llvm_cv_no_link_all_option="-Wl,-noall_load"
3827     llvm_cv_os_type="Minix"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-freebsd*)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="FreeBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-kfreebsd-gnu)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="GNU/kFreeBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-openbsd*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="OpenBSD"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-netbsd*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="NetBSD"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-dragonfly*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="DragonFly"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-hpux*)
3855     llvm_cv_link_all_option="-Wl,--whole-archive"
3856     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857     llvm_cv_os_type="HP-UX"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-interix*)
3860     llvm_cv_link_all_option="-Wl,--whole-archive"
3861     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862     llvm_cv_os_type="Interix"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-linux*)
3865     llvm_cv_link_all_option="-Wl,--whole-archive"
3866     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867     llvm_cv_os_type="Linux"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-gnu*)
3870     llvm_cv_link_all_option="-Wl,--whole-archive"
3871     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872     llvm_cv_os_type="GNU"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-solaris*)
3875     llvm_cv_link_all_option="-Wl,-z,allextract"
3876     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877     llvm_cv_os_type="SunOS"
3878     llvm_cv_platform_type="Unix" ;;
3879   *-*-auroraux*)
3880     llvm_cv_link_all_option="-Wl,-z,allextract"
3881     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882     llvm_cv_os_type="AuroraUX"
3883     llvm_cv_platform_type="Unix" ;;
3884   *-*-win32*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="Win32"
3888     llvm_cv_platform_type="Win32" ;;
3889   *-*-mingw*)
3890     llvm_cv_link_all_option="-Wl,--whole-archive"
3891     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892     llvm_cv_os_type="MingW"
3893     llvm_cv_platform_type="Win32" ;;
3894   *-*-haiku*)
3895     llvm_cv_link_all_option="-Wl,--whole-archive"
3896     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897     llvm_cv_os_type="Haiku"
3898     llvm_cv_platform_type="Unix" ;;
3899   *-unknown-eabi*)
3900     llvm_cv_link_all_option="-Wl,--whole-archive"
3901     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902     llvm_cv_os_type="Freestanding"
3903     llvm_cv_platform_type="Unix" ;;
3904   *-unknown-elf*)
3905     llvm_cv_link_all_option="-Wl,--whole-archive"
3906     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907     llvm_cv_os_type="Freestanding"
3908     llvm_cv_platform_type="Unix" ;;
3909   *)
3910     llvm_cv_link_all_option=""
3911     llvm_cv_no_link_all_option=""
3912     llvm_cv_os_type="Unknown"
3913     llvm_cv_platform_type="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3918
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $target in
3925   *-*-aix*)
3926     llvm_cv_target_os_type="AIX" ;;
3927   *-*-irix*)
3928     llvm_cv_target_os_type="IRIX" ;;
3929   *-*-cygwin*)
3930     llvm_cv_target_os_type="Cygwin" ;;
3931   *-*-darwin*)
3932     llvm_cv_target_os_type="Darwin" ;;
3933   *-*-minix*)
3934     llvm_cv_target_os_type="Minix" ;;
3935   *-*-freebsd*)
3936     llvm_cv_target_os_type="FreeBSD" ;;
3937   *-*-kfreebsd-gnu)
3938     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3939   *-*-openbsd*)
3940     llvm_cv_target_os_type="OpenBSD" ;;
3941   *-*-netbsd*)
3942     llvm_cv_target_os_type="NetBSD" ;;
3943   *-*-dragonfly*)
3944     llvm_cv_target_os_type="DragonFly" ;;
3945   *-*-hpux*)
3946     llvm_cv_target_os_type="HP-UX" ;;
3947   *-*-interix*)
3948     llvm_cv_target_os_type="Interix" ;;
3949   *-*-linux*)
3950     llvm_cv_target_os_type="Linux" ;;
3951   *-*-gnu*)
3952     llvm_cv_target_os_type="GNU" ;;
3953   *-*-solaris*)
3954     llvm_cv_target_os_type="SunOS" ;;
3955   *-*-auroraux*)
3956     llvm_cv_target_os_type="AuroraUX" ;;
3957   *-*-win32*)
3958     llvm_cv_target_os_type="Win32" ;;
3959   *-*-mingw*)
3960     llvm_cv_target_os_type="MingW" ;;
3961   *-*-haiku*)
3962     llvm_cv_target_os_type="Haiku" ;;
3963   *-*-rtems*)
3964     llvm_cv_target_os_type="RTEMS" ;;
3965   *-*-nacl*)
3966     llvm_cv_target_os_type="NativeClient" ;;
3967   *-unknown-eabi*)
3968     llvm_cv_target_os_type="Freestanding" ;;
3969   *)
3970     llvm_cv_target_os_type="Unknown" ;;
3971 esac
3972 fi
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3975
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979    { (exit 1); exit 1; }; }
3980 fi
3981
3982 OS=$llvm_cv_os_type
3983
3984 HOST_OS=$llvm_cv_os_type
3985
3986 TARGET_OS=$llvm_cv_target_os_type
3987
3988
3989 LINKALL=$llvm_cv_link_all_option
3990
3991 NOLINKALL=$llvm_cv_no_link_all_option
3992
3993
3994 case $llvm_cv_platform_type in
3995   Unix)
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
3999 _ACEOF
4000
4001     LLVM_ON_UNIX=1
4002
4003     LLVM_ON_WIN32=0
4004
4005     ;;
4006   Win32)
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4010 _ACEOF
4011
4012     LLVM_ON_UNIX=0
4013
4014     LLVM_ON_WIN32=1
4015
4016     ;;
4017 esac
4018
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   case $target in
4025   i?86-*)                 llvm_cv_target_arch="x86" ;;
4026   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4027   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4028   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4029   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4030   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4031   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4032   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4033   xcore-*)                llvm_cv_target_arch="XCore" ;;
4034   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4035   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4036   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4037   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4038   *)                      llvm_cv_target_arch="Unknown" ;;
4039 esac
4040 fi
4041 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4042 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4043
4044 if test "$llvm_cv_target_arch" = "Unknown" ; then
4045   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4046 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4047 fi
4048
4049 case "$llvm_cv_target_arch" in
4050     x86)     LLVM_NATIVE_ARCH="X86" ;;
4051     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4052     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4053 esac
4054
4055 ARCH=$llvm_cv_target_arch
4056
4057
4058 case $host in
4059   i?86-*)                 host_arch="x86" ;;
4060   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4061   sparc*-*)               host_arch="Sparc" ;;
4062   powerpc*-*)             host_arch="PowerPC" ;;
4063   arm*-*)                 host_arch="ARM" ;;
4064   aarch64*-*)             host_arch="AArch64" ;;
4065   mips-* | mips64-*)      host_arch="Mips" ;;
4066   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4067   xcore-*)                host_arch="XCore" ;;
4068   msp430-*)               host_arch="MSP430" ;;
4069   hexagon-*)              host_arch="Hexagon" ;;
4070   s390x-*)                host_arch="SystemZ" ;;
4071   *)                      host_arch="Unknown" ;;
4072 esac
4073
4074 if test "$host_arch" = "Unknown" ; then
4075   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4076 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4077 fi
4078
4079 HOST_ARCH=$host_arch
4080
4081
4082
4083
4084 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4085 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_GREP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   # Extract the first word of "grep ggrep" to use in msg output
4090 if test -z "$GREP"; then
4091 set dummy grep ggrep; ac_prog_name=$2
4092 if test "${ac_cv_path_GREP+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   ac_path_GREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102   for ac_prog in grep ggrep; do
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4105     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4106     # Check for GNU ac_path_GREP and select it if it is found.
4107   # Check for GNU $ac_path_GREP
4108 case `"$ac_path_GREP" --version 2>&1` in
4109 *GNU*)
4110   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4111 *)
4112   ac_count=0
4113   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4114   while :
4115   do
4116     cat "conftest.in" "conftest.in" >"conftest.tmp"
4117     mv "conftest.tmp" "conftest.in"
4118     cp "conftest.in" "conftest.nl"
4119     echo 'GREP' >> "conftest.nl"
4120     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122     ac_count=`expr $ac_count + 1`
4123     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4124       # Best one so far, save it but keep looking for a better one
4125       ac_cv_path_GREP="$ac_path_GREP"
4126       ac_path_GREP_max=$ac_count
4127     fi
4128     # 10*(2^10) chars as input seems more than enough
4129     test $ac_count -gt 10 && break
4130   done
4131   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4133
4134
4135     $ac_path_GREP_found && break 3
4136   done
4137 done
4138
4139 done
4140 IFS=$as_save_IFS
4141
4142
4143 fi
4144
4145 GREP="$ac_cv_path_GREP"
4146 if test -z "$GREP"; then
4147   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4148 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4149    { (exit 1); exit 1; }; }
4150 fi
4151
4152 else
4153   ac_cv_path_GREP=$GREP
4154 fi
4155
4156
4157 fi
4158 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4159 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4160  GREP="$ac_cv_path_GREP"
4161
4162
4163 { echo "$as_me:$LINENO: checking for egrep" >&5
4164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169    then ac_cv_path_EGREP="$GREP -E"
4170    else
4171      # Extract the first word of "egrep" to use in msg output
4172 if test -z "$EGREP"; then
4173 set dummy egrep; ac_prog_name=$2
4174 if test "${ac_cv_path_EGREP+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   ac_path_EGREP_found=false
4178 # Loop through the user's path and test for each of PROGNAME-LIST
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184   for ac_prog in egrep; do
4185   for ac_exec_ext in '' $ac_executable_extensions; do
4186     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4187     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4188     # Check for GNU ac_path_EGREP and select it if it is found.
4189   # Check for GNU $ac_path_EGREP
4190 case `"$ac_path_EGREP" --version 2>&1` in
4191 *GNU*)
4192   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4193 *)
4194   ac_count=0
4195   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4196   while :
4197   do
4198     cat "conftest.in" "conftest.in" >"conftest.tmp"
4199     mv "conftest.tmp" "conftest.in"
4200     cp "conftest.in" "conftest.nl"
4201     echo 'EGREP' >> "conftest.nl"
4202     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204     ac_count=`expr $ac_count + 1`
4205     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4206       # Best one so far, save it but keep looking for a better one
4207       ac_cv_path_EGREP="$ac_path_EGREP"
4208       ac_path_EGREP_max=$ac_count
4209     fi
4210     # 10*(2^10) chars as input seems more than enough
4211     test $ac_count -gt 10 && break
4212   done
4213   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214 esac
4215
4216
4217     $ac_path_EGREP_found && break 3
4218   done
4219 done
4220
4221 done
4222 IFS=$as_save_IFS
4223
4224
4225 fi
4226
4227 EGREP="$ac_cv_path_EGREP"
4228 if test -z "$EGREP"; then
4229   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4230 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4231    { (exit 1); exit 1; }; }
4232 fi
4233
4234 else
4235   ac_cv_path_EGREP=$EGREP
4236 fi
4237
4238
4239    fi
4240 fi
4241 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4242 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4243  EGREP="$ac_cv_path_EGREP"
4244
4245
4246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 #include <stdlib.h>
4258 #include <stdarg.h>
4259 #include <string.h>
4260 #include <float.h>
4261
4262 int
4263 main ()
4264 {
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_compile") 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } &&
4284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285   { (case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_try") 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; }; then
4304   ac_cv_header_stdc=yes
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309         ac_cv_header_stdc=no
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 #include <string.h>
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326   $EGREP "memchr" >/dev/null 2>&1; then
4327   :
4328 else
4329   ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4332
4333 fi
4334
4335 if test $ac_cv_header_stdc = yes; then
4336   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337   cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 #include <stdlib.h>
4344
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347   $EGREP "free" >/dev/null 2>&1; then
4348   :
4349 else
4350   ac_cv_header_stdc=no
4351 fi
4352 rm -f conftest*
4353
4354 fi
4355
4356 if test $ac_cv_header_stdc = yes; then
4357   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358   if test "$cross_compiling" = yes; then
4359   :
4360 else
4361   cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <ctype.h>
4368 #include <stdlib.h>
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #else
4373 # define ISLOWER(c) \
4374                    (('a' <= (c) && (c) <= 'i') \
4375                      || ('j' <= (c) && (c) <= 'r') \
4376                      || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378 #endif
4379
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 int
4382 main ()
4383 {
4384   int i;
4385   for (i = 0; i < 256; i++)
4386     if (XOR (islower (i), ISLOWER (i))
4387         || toupper (i) != TOUPPER (i))
4388       return 2;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest$ac_exeext
4393 if { (ac_try="$ac_link"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_link") 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403   { (case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; }; then
4412   :
4413 else
4414   echo "$as_me: program exited with status $ac_status" >&5
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 ( exit $ac_status )
4419 ac_cv_header_stdc=no
4420 fi
4421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 fi
4423
4424
4425 fi
4426 fi
4427 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4428 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4429 if test $ac_cv_header_stdc = yes; then
4430
4431 cat >>confdefs.h <<\_ACEOF
4432 #define STDC_HEADERS 1
4433 _ACEOF
4434
4435 fi
4436
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448                   inttypes.h stdint.h unistd.h
4449 do
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 $ac_includes_default
4463
4464 #include <$ac_header>
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_compile") 2>conftest.er1
4474   ac_status=$?
4475   grep -v '^ *+' conftest.er1 >conftest.err
4476   rm -f conftest.er1
4477   cat conftest.err >&5
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } &&
4480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4481   { (case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486   (eval "$ac_try") 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; } &&
4490          { ac_try='test -s conftest.$ac_objext'
4491   { (case "(($ac_try" in
4492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493   *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496   (eval "$ac_try") 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; }; then
4500   eval "$as_ac_Header=yes"
4501 else
4502   echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505         eval "$as_ac_Header=no"
4506 fi
4507
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 fi
4510 ac_res=`eval echo '${'$as_ac_Header'}'`
4511                { echo "$as_me:$LINENO: result: $ac_res" >&5
4512 echo "${ECHO_T}$ac_res" >&6; }
4513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4514   cat >>confdefs.h <<_ACEOF
4515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516 _ACEOF
4517
4518 fi
4519
4520 done
4521
4522
4523 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4525 if test "${ac_cv_c_bigendian+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   # See if sys/param.h defines the BYTE_ORDER macro.
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 #include <sys/types.h>
4536 #include <sys/param.h>
4537
4538 int
4539 main ()
4540 {
4541 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4542  bogus endian macros
4543 #endif
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_compile") 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } &&
4563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_try") 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   # It does; now see whether it defined to BIG_ENDIAN or not.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590 #include <sys/types.h>
4591 #include <sys/param.h>
4592
4593 int
4594 main ()
4595 {
4596 #if BYTE_ORDER != BIG_ENDIAN
4597  not big endian
4598 #endif
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_compile") 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4619   { (case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624   (eval "$ac_try") 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; } &&
4628          { ac_try='test -s conftest.$ac_objext'
4629   { (case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_try") 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   ac_cv_c_bigendian=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643         ac_cv_c_bigendian=no
4644 fi
4645
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651         # It does not; compile a test program.
4652 if test "$cross_compiling" = yes; then
4653   # try to guess the endianness by grepping values into an object file
4654   ac_cv_c_bigendian=unknown
4655   cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4662 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4663 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4664 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4665 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4666 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4667 int
4668 main ()
4669 {
4670  _ascii (); _ebcdic ();
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_compile") 2>conftest.er1
4683   ac_status=$?
4684   grep -v '^ *+' conftest.er1 >conftest.err
4685   rm -f conftest.er1
4686   cat conftest.err >&5
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690   { (case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695   (eval "$ac_try") 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; } &&
4699          { ac_try='test -s conftest.$ac_objext'
4700   { (case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705   (eval "$ac_try") 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4710   ac_cv_c_bigendian=yes
4711 fi
4712 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4713   if test "$ac_cv_c_bigendian" = unknown; then
4714     ac_cv_c_bigendian=no
4715   else
4716     # finding both strings is unlikely to happen, but who knows?
4717     ac_cv_c_bigendian=unknown
4718   fi
4719 fi
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724
4725 fi
4726
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 else
4729   cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h.  */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h.  */
4735 $ac_includes_default
4736 int
4737 main ()
4738 {
4739
4740   /* Are we little or big endian?  From Harbison&Steele.  */
4741   union
4742   {
4743     long int l;
4744     char c[sizeof (long int)];
4745   } u;
4746   u.l = 1;
4747   return u.c[sizeof (long int) - 1] == 1;
4748
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760   (eval "$ac_link") 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764   { (case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769   (eval "$ac_try") 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   ac_cv_c_bigendian=no
4774 else
4775   echo "$as_me: program exited with status $ac_status" >&5
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 ( exit $ac_status )
4780 ac_cv_c_bigendian=yes
4781 fi
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 fi
4784
4785
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4791 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4792 case $ac_cv_c_bigendian in
4793   yes)
4794     ENDIAN=big
4795  ;;
4796   no)
4797     ENDIAN=little
4798  ;;
4799   *)
4800     { { echo "$as_me:$LINENO: error: unknown endianness
4801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4802 echo "$as_me: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4804    { (exit 1); exit 1; }; } ;;
4805 esac
4806
4807
4808 if test "$cross_compiling" = yes; then
4809   LLVM_CROSS_COMPILING=1
4810
4811
4812 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4813 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4814 if test "${ac_cv_build_exeext+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4818   ac_cv_build_exeext=.exe
4819 else
4820   ac_build_prefix=${build_alias}-
4821
4822   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4823 set dummy ${ac_build_prefix}gcc; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$BUILD_CC"; then
4830   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 BUILD_CC=$ac_cv_prog_BUILD_CC
4850 if test -n "$BUILD_CC"; then
4851   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4852 echo "${ECHO_T}$BUILD_CC" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859   if test -z "$BUILD_CC"; then
4860      # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$BUILD_CC"; then
4868   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_prog_BUILD_CC="gcc"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 BUILD_CC=$ac_cv_prog_BUILD_CC
4888 if test -n "$BUILD_CC"; then
4889   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4890 echo "${ECHO_T}$BUILD_CC" >&6; }
4891 else
4892   { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896
4897      if test -z "$BUILD_CC"; then
4898        # Extract the first word of "cc", so it can be a program name with args.
4899 set dummy cc; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   if test -n "$BUILD_CC"; then
4906   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4907 else
4908   ac_prog_rejected=no
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4917        ac_prog_rejected=yes
4918        continue
4919      fi
4920     ac_cv_prog_BUILD_CC="cc"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 if test $ac_prog_rejected = yes; then
4929   # We found a bogon in the path, so make sure we never use it.
4930   set dummy $ac_cv_prog_BUILD_CC
4931   shift
4932   if test $# != 0; then
4933     # We chose a different compiler from the bogus one.
4934     # However, it has the same basename, so the bogon will be chosen
4935     # first if we set BUILD_CC to just the basename; use the full file name.
4936     shift
4937     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4938   fi
4939 fi
4940 fi
4941 fi
4942 BUILD_CC=$ac_cv_prog_BUILD_CC
4943 if test -n "$BUILD_CC"; then
4944   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4945 echo "${ECHO_T}$BUILD_CC" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952      fi
4953   fi
4954   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4956    { (exit 1); exit 1; }; }
4957   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4958   rm -f conftest*
4959   echo 'int main () { return 0; }' > conftest.$ac_ext
4960   ac_cv_build_exeext=
4961   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4962   (eval $ac_build_link) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; then
4966     for file in conftest.*; do
4967       case $file in
4968       *.c | *.o | *.obj | *.dSYM) ;;
4969       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4970       esac
4971     done
4972   else
4973     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4974 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4975    { (exit 1); exit 1; }; }
4976   fi
4977   rm -f conftest*
4978   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4979 fi
4980 fi
4981
4982 BUILD_EXEEXT=""
4983 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4984 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4985 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4986 ac_build_exeext=$BUILD_EXEEXT
4987
4988   ac_build_prefix=${build_alias}-
4989   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4990 set dummy ${ac_build_prefix}g++; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   if test -n "$BUILD_CXX"; then
4997   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5017 if test -n "$BUILD_CXX"; then
5018   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5019 echo "${ECHO_T}$BUILD_CXX" >&6; }
5020 else
5021   { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5023 fi
5024
5025
5026   if test -z "$BUILD_CXX"; then
5027      # Extract the first word of "g++", so it can be a program name with args.
5028 set dummy g++; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test -n "$BUILD_CXX"; then
5035   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_prog_BUILD_CXX="g++"
5045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5055 if test -n "$BUILD_CXX"; then
5056   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5057 echo "${ECHO_T}$BUILD_CXX" >&6; }
5058 else
5059   { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5061 fi
5062
5063
5064      if test -z "$BUILD_CXX"; then
5065        # Extract the first word of "c++", so it can be a program name with args.
5066 set dummy c++; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   if test -n "$BUILD_CXX"; then
5073   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5074 else
5075   ac_prog_rejected=no
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081   for ac_exec_ext in '' $ac_executable_extensions; do
5082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5083     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5084        ac_prog_rejected=yes
5085        continue
5086      fi
5087     ac_cv_prog_BUILD_CXX="c++"
5088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 if test $ac_prog_rejected = yes; then
5096   # We found a bogon in the path, so make sure we never use it.
5097   set dummy $ac_cv_prog_BUILD_CXX
5098   shift
5099   if test $# != 0; then
5100     # We chose a different compiler from the bogus one.
5101     # However, it has the same basename, so the bogon will be chosen
5102     # first if we set BUILD_CXX to just the basename; use the full file name.
5103     shift
5104     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5105   fi
5106 fi
5107 fi
5108 fi
5109 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5110 if test -n "$BUILD_CXX"; then
5111   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5112 echo "${ECHO_T}$BUILD_CXX" >&6; }
5113 else
5114   { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116 fi
5117
5118
5119      fi
5120   fi
5121 else
5122   LLVM_CROSS_COMPILING=0
5123
5124 fi
5125
5126 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5127   cvsbuild="yes"
5128   optimize="no"
5129   CVSBUILD=CVSBUILD=1
5130
5131 else
5132   cvsbuild="no"
5133   optimize="yes"
5134 fi
5135
5136
5137 # Check whether --enable-libcpp was given.
5138 if test "${enable_libcpp+set}" = set; then
5139   enableval=$enable_libcpp;
5140 else
5141   enableval=default
5142 fi
5143
5144 case "$enableval" in
5145   yes) ENABLE_LIBCPP=1
5146  ;;
5147   no)  ENABLE_LIBCPP=0
5148  ;;
5149   default) ENABLE_LIBCPP=0
5150 ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155
5156 # Check whether --enable-cxx11 was given.
5157 if test "${enable_cxx11+set}" = set; then
5158   enableval=$enable_cxx11;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_CXX11=1
5165  ;;
5166   no)  ENABLE_CXX11=0
5167  ;;
5168   default) ENABLE_CXX11=0
5169 ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-split-dwarf was given.
5176 if test "${enable_split_dwarf+set}" = set; then
5177   enableval=$enable_split_dwarf;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) ENABLE_SPLIT_DWARF=1
5184  ;;
5185   no)  ENABLE_SPLIT_DWARF=0
5186  ;;
5187   default) ENABLE_SPLIT_DWARF=0
5188 ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 clang_arcmt="yes"
5195 # Check whether --enable-clang-arcmt was given.
5196 if test "${enable_clang_arcmt+set}" = set; then
5197   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5198 else
5199   enableval="yes"
5200 fi
5201
5202 case "$enableval" in
5203   yes) ENABLE_CLANG_ARCMT=1
5204  ;;
5205   no)  ENABLE_CLANG_ARCMT=0
5206  ;;
5207   default) ENABLE_CLANG_ARCMT=1
5208 ;;
5209   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5211    { (exit 1); exit 1; }; } ;;
5212 esac
5213
5214 clang_static_analyzer="yes"
5215 # Check whether --enable-clang-static-analyzer was given.
5216 if test "${enable_clang_static_analyzer+set}" = set; then
5217   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5218 else
5219   enableval="yes"
5220 fi
5221
5222 case "$enableval" in
5223   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5224  ;;
5225   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5226  ;;
5227   default) ENABLE_CLANG_STATIC_ANALYZER=1
5228 ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-clang-rewriter was given.
5235 if test "${enable_clang_rewriter+set}" = set; then
5236   enableval=$enable_clang_rewriter;
5237 else
5238   enableval="yes"
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_CLANG_REWRITER=1
5243  ;;
5244   no)
5245     if test ${clang_arcmt} != "no" ; then
5246       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5247 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5248    { (exit 1); exit 1; }; }
5249     fi
5250     if test ${clang_static_analyzer} != "no" ; then
5251       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5252 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5253    { (exit 1); exit 1; }; }
5254     fi
5255     ENABLE_CLANG_REWRITER=0
5256
5257     ;;
5258   default) ENABLE_CLANG_REWRITER=1
5259 ;;
5260   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5262    { (exit 1); exit 1; }; } ;;
5263 esac
5264
5265 # Check whether --enable-optimized was given.
5266 if test "${enable_optimized+set}" = set; then
5267   enableval=$enable_optimized;
5268 else
5269   enableval=$optimize
5270 fi
5271
5272 if test ${enableval} = "no" ; then
5273   ENABLE_OPTIMIZED=
5274
5275 else
5276   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5277
5278 fi
5279
5280 # Check whether --enable-profiling was given.
5281 if test "${enable_profiling+set}" = set; then
5282   enableval=$enable_profiling;
5283 else
5284   enableval="no"
5285 fi
5286
5287 if test ${enableval} = "no" ; then
5288   ENABLE_PROFILING=
5289
5290 else
5291   ENABLE_PROFILING=ENABLE_PROFILING=1
5292
5293 fi
5294
5295 # Check whether --enable-assertions was given.
5296 if test "${enable_assertions+set}" = set; then
5297   enableval=$enable_assertions;
5298 else
5299   enableval="yes"
5300 fi
5301
5302 if test ${enableval} = "yes" ; then
5303   DISABLE_ASSERTIONS=
5304
5305 else
5306   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5307
5308 fi
5309
5310 # Check whether --enable-werror was given.
5311 if test "${enable_werror+set}" = set; then
5312   enableval=$enable_werror;
5313 else
5314   enableval="no"
5315 fi
5316
5317 case "$enableval" in
5318   yes) ENABLE_WERROR=1
5319  ;;
5320   no)  ENABLE_WERROR=0
5321  ;;
5322   default) ENABLE_WERROR=0
5323 ;;
5324   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5326    { (exit 1); exit 1; }; } ;;
5327 esac
5328
5329 # Check whether --enable-expensive-checks was given.
5330 if test "${enable_expensive_checks+set}" = set; then
5331   enableval=$enable_expensive_checks;
5332 else
5333   enableval="no"
5334 fi
5335
5336 if test ${enableval} = "yes" ; then
5337   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5338
5339   EXPENSIVE_CHECKS=yes
5340
5341 else
5342   ENABLE_EXPENSIVE_CHECKS=
5343
5344   EXPENSIVE_CHECKS=no
5345
5346 fi
5347
5348 # Check whether --enable-debug-runtime was given.
5349 if test "${enable_debug_runtime+set}" = set; then
5350   enableval=$enable_debug_runtime;
5351 else
5352   enableval=no
5353 fi
5354
5355 if test ${enableval} = "no" ; then
5356   DEBUG_RUNTIME=
5357
5358 else
5359   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5360
5361 fi
5362
5363 # Check whether --enable-debug-symbols was given.
5364 if test "${enable_debug_symbols+set}" = set; then
5365   enableval=$enable_debug_symbols;
5366 else
5367   enableval=no
5368 fi
5369
5370 if test ${enableval} = "no" ; then
5371   DEBUG_SYMBOLS=
5372
5373 else
5374   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5375
5376 fi
5377
5378 # Check whether --enable-keep-symbols was given.
5379 if test "${enable_keep_symbols+set}" = set; then
5380   enableval=$enable_keep_symbols;
5381 else
5382   enableval=no
5383 fi
5384
5385 if test ${enableval} = "no" ; then
5386   KEEP_SYMBOLS=
5387
5388 else
5389   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5390
5391 fi
5392
5393 # Check whether --enable-jit was given.
5394 if test "${enable_jit+set}" = set; then
5395   enableval=$enable_jit;
5396 else
5397   enableval=default
5398 fi
5399
5400 if test ${enableval} = "no"
5401 then
5402   JIT=
5403
5404 else
5405   case "$llvm_cv_target_arch" in
5406     x86)         TARGET_HAS_JIT=1
5407  ;;
5408     Sparc)       TARGET_HAS_JIT=0
5409  ;;
5410     PowerPC)     TARGET_HAS_JIT=1
5411  ;;
5412     x86_64)      TARGET_HAS_JIT=1
5413  ;;
5414     ARM)         TARGET_HAS_JIT=1
5415  ;;
5416     AArch64)     TARGET_HAS_JIT=0
5417  ;;
5418     Mips)        TARGET_HAS_JIT=1
5419  ;;
5420     XCore)       TARGET_HAS_JIT=0
5421  ;;
5422     MSP430)      TARGET_HAS_JIT=0
5423  ;;
5424     Hexagon)     TARGET_HAS_JIT=0
5425  ;;
5426     NVPTX)       TARGET_HAS_JIT=0
5427  ;;
5428     SystemZ)     TARGET_HAS_JIT=1
5429  ;;
5430     *)           TARGET_HAS_JIT=0
5431  ;;
5432   esac
5433 fi
5434
5435 # Check whether --enable-docs was given.
5436 if test "${enable_docs+set}" = set; then
5437   enableval=$enable_docs;
5438 else
5439   enableval=default
5440 fi
5441
5442 case "$enableval" in
5443   yes) ENABLE_DOCS=1
5444  ;;
5445   no)  ENABLE_DOCS=0
5446  ;;
5447   default) ENABLE_DOCS=1
5448  ;;
5449   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5450 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5451    { (exit 1); exit 1; }; } ;;
5452 esac
5453
5454 # Check whether --enable-doxygen was given.
5455 if test "${enable_doxygen+set}" = set; then
5456   enableval=$enable_doxygen;
5457 else
5458   enableval=default
5459 fi
5460
5461 case "$enableval" in
5462   yes) ENABLE_DOXYGEN=1
5463  ;;
5464   no)  ENABLE_DOXYGEN=0
5465  ;;
5466   default) ENABLE_DOXYGEN=0
5467  ;;
5468   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5469 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5470    { (exit 1); exit 1; }; } ;;
5471 esac
5472
5473 # Check whether --enable-threads was given.
5474 if test "${enable_threads+set}" = set; then
5475   enableval=$enable_threads;
5476 else
5477   enableval=default
5478 fi
5479
5480 case "$enableval" in
5481   yes) LLVM_ENABLE_THREADS=1
5482  ;;
5483   no)  LLVM_ENABLE_THREADS=0
5484  ;;
5485   default) LLVM_ENABLE_THREADS=1
5486  ;;
5487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5489    { (exit 1); exit 1; }; } ;;
5490 esac
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5494 _ACEOF
5495
5496
5497 # Check whether --enable-pthreads was given.
5498 if test "${enable_pthreads+set}" = set; then
5499   enableval=$enable_pthreads;
5500 else
5501   enableval=default
5502 fi
5503
5504 case "$enableval" in
5505   yes) ENABLE_PTHREADS=1
5506  ;;
5507   no)  ENABLE_PTHREADS=0
5508  ;;
5509   default) ENABLE_PTHREADS=1
5510  ;;
5511   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5512 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5513    { (exit 1); exit 1; }; } ;;
5514 esac
5515
5516 # Check whether --enable-zlib was given.
5517 if test "${enable_zlib+set}" = set; then
5518   enableval=$enable_zlib;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) LLVM_ENABLE_ZLIB=1
5525  ;;
5526   no)  LLVM_ENABLE_ZLIB=0
5527  ;;
5528   default) LLVM_ENABLE_ZLIB=1
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5537 _ACEOF
5538
5539
5540 # Check whether --enable-pic was given.
5541 if test "${enable_pic+set}" = set; then
5542   enableval=$enable_pic;
5543 else
5544   enableval=default
5545 fi
5546
5547 case "$enableval" in
5548   yes) ENABLE_PIC=1
5549  ;;
5550   no)  ENABLE_PIC=0
5551  ;;
5552   default) ENABLE_PIC=1
5553  ;;
5554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557 esac
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define ENABLE_PIC $ENABLE_PIC
5561 _ACEOF
5562
5563
5564 # Check whether --enable-shared was given.
5565 if test "${enable_shared+set}" = set; then
5566   enableval=$enable_shared;
5567 else
5568   enableval=default
5569 fi
5570
5571 case "$enableval" in
5572   yes) ENABLE_SHARED=1
5573  ;;
5574   no)  ENABLE_SHARED=0
5575  ;;
5576   default) ENABLE_SHARED=0
5577  ;;
5578   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5579 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5580    { (exit 1); exit 1; }; } ;;
5581 esac
5582
5583 # Check whether --enable-embed-stdcxx was given.
5584 if test "${enable_embed_stdcxx+set}" = set; then
5585   enableval=$enable_embed_stdcxx;
5586 else
5587   enableval=default
5588 fi
5589
5590 case "$enableval" in
5591   yes) ENABLE_EMBED_STDCXX=1
5592  ;;
5593   no)  ENABLE_EMBED_STDCXX=0
5594  ;;
5595   default) ENABLE_EMBED_STDCXX=0
5596  ;;
5597   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5598 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5599    { (exit 1); exit 1; }; } ;;
5600 esac
5601
5602 # Check whether --enable-timestamps was given.
5603 if test "${enable_timestamps+set}" = set; then
5604   enableval=$enable_timestamps;
5605 else
5606   enableval=default
5607 fi
5608
5609 case "$enableval" in
5610   yes) ENABLE_TIMESTAMPS=1
5611  ;;
5612   no)  ENABLE_TIMESTAMPS=0
5613  ;;
5614   default) ENABLE_TIMESTAMPS=1
5615  ;;
5616   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5617 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5618    { (exit 1); exit 1; }; } ;;
5619 esac
5620
5621 cat >>confdefs.h <<_ACEOF
5622 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5623 _ACEOF
5624
5625
5626
5627 # Check whether --enable-backtraces was given.
5628 if test "${enable_backtraces+set}" = set; then
5629   enableval=$enable_backtraces;
5630 else
5631   enableval=default
5632 fi
5633
5634 case "$enableval" in
5635   yes) ENABLE_BACKTRACES=1
5636  ;;
5637   no)  ENABLE_BACKTRACES=0
5638  ;;
5639   default) ENABLE_BACKTRACES=1
5640  ;;
5641   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644 esac
5645
5646 cat >>confdefs.h <<_ACEOF
5647 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5648 _ACEOF
5649
5650
5651 TARGETS_TO_BUILD=""
5652 # Check whether --enable-targets was given.
5653 if test "${enable_targets+set}" = set; then
5654   enableval=$enable_targets;
5655 else
5656   enableval=all
5657 fi
5658
5659 if test "$enableval" = host-only ; then
5660   enableval=host
5661 fi
5662 case "$enableval" in
5663   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5664   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5665       case "$a_target" in
5666         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5667         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5668         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5669         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5670         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5671         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5672         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5673         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5674         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5677         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5678         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5679         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5680         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5681         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5682         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5683         host) case "$llvm_cv_target_arch" in
5684             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5685             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5686             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5687             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5688             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5689             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5690             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5691             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5692             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5693             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5694             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5695             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5696             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5697 echo "$as_me: error: Can not set target to build" >&2;}
5698    { (exit 1); exit 1; }; } ;;
5699           esac ;;
5700         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5701 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5702    { (exit 1); exit 1; }; } ;;
5703       esac
5704   done
5705   ;;
5706 esac
5707
5708 # Check whether --enable-experimental-targets was given.
5709 if test "${enable_experimental_targets+set}" = set; then
5710   enableval=$enable_experimental_targets;
5711 else
5712   enableval=disable
5713 fi
5714
5715
5716 if test ${enableval} != "disable"
5717 then
5718   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5719 fi
5720
5721 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5722
5723
5724 for a_target in $TARGETS_TO_BUILD; do
5725   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5726
5727 cat >>confdefs.h <<_ACEOF
5728 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5729 _ACEOF
5730
5731     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5732     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5733     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5734     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5735     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5736       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5737     fi
5738     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5739       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5740     fi
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5744 _ACEOF
5745
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5749 _ACEOF
5750
5751
5752 cat >>confdefs.h <<_ACEOF
5753 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5754 _ACEOF
5755
5756
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5759 _ACEOF
5760
5761     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5762
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5765 _ACEOF
5766
5767     fi
5768     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5772 _ACEOF
5773
5774     fi
5775   fi
5776 done
5777
5778 LLVM_ENUM_TARGETS=""
5779 LLVM_ENUM_ASM_PRINTERS=""
5780 LLVM_ENUM_ASM_PARSERS=""
5781 LLVM_ENUM_DISASSEMBLERS=""
5782 for target_to_build in $TARGETS_TO_BUILD; do
5783   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5784   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5785     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5786   fi
5787   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5788     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5789   fi
5790   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5791     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5792   fi
5793 done
5794
5795
5796
5797
5798
5799
5800 # Check whether --with-optimize-option was given.
5801 if test "${with_optimize_option+set}" = set; then
5802   withval=$with_optimize_option;
5803 else
5804   withval=default
5805 fi
5806
5807 { echo "$as_me:$LINENO: checking optimization flags" >&5
5808 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5809 case "$withval" in
5810   default)
5811     case "$llvm_cv_os_type" in
5812     FreeBSD) optimize_option=-O2 ;;
5813     MingW) optimize_option=-O2 ;;
5814     *)     optimize_option=-O3 ;;
5815     esac ;;
5816   *) optimize_option="$withval" ;;
5817 esac
5818 OPTIMIZE_OPTION=$optimize_option
5819
5820 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5821 echo "${ECHO_T}$optimize_option" >&6; }
5822
5823
5824 # Check whether --with-extra-options was given.
5825 if test "${with_extra_options+set}" = set; then
5826   withval=$with_extra_options;
5827 else
5828   withval=default
5829 fi
5830
5831 case "$withval" in
5832   default) EXTRA_OPTIONS= ;;
5833   *) EXTRA_OPTIONS=$withval ;;
5834 esac
5835 EXTRA_OPTIONS=$EXTRA_OPTIONS
5836
5837
5838
5839 # Check whether --with-extra-ld-options was given.
5840 if test "${with_extra_ld_options+set}" = set; then
5841   withval=$with_extra_ld_options;
5842 else
5843   withval=default
5844 fi
5845
5846 case "$withval" in
5847   default) EXTRA_LD_OPTIONS= ;;
5848   *) EXTRA_LD_OPTIONS=$withval ;;
5849 esac
5850 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5851
5852
5853 # Check whether --enable-bindings was given.
5854 if test "${enable_bindings+set}" = set; then
5855   enableval=$enable_bindings;
5856 else
5857   enableval=default
5858 fi
5859
5860 BINDINGS_TO_BUILD=""
5861 case "$enableval" in
5862   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5863   all ) BINDINGS_TO_BUILD="ocaml" ;;
5864   none | no) BINDINGS_TO_BUILD="" ;;
5865   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5866       case "$a_binding" in
5867         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5868         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5869 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5870    { (exit 1); exit 1; }; } ;;
5871       esac
5872   done
5873   ;;
5874 esac
5875
5876
5877 # Check whether --with-ocaml-libdir was given.
5878 if test "${with_ocaml_libdir+set}" = set; then
5879   withval=$with_ocaml_libdir;
5880 else
5881   withval=auto
5882 fi
5883
5884 case "$withval" in
5885   auto) with_ocaml_libdir="$withval" ;;
5886   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5887   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5888 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5889    { (exit 1); exit 1; }; } ;;
5890 esac
5891
5892
5893 # Check whether --with-clang-srcdir was given.
5894 if test "${with_clang_srcdir+set}" = set; then
5895   withval=$with_clang_srcdir;
5896 else
5897   withval="-"
5898 fi
5899
5900 case "$withval" in
5901   -) clang_src_root="" ;;
5902   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5903   *) clang_src_root="$ac_pwd/$withval" ;;
5904 esac
5905 CLANG_SRC_ROOT=$clang_src_root
5906
5907
5908
5909 # Check whether --with-clang-resource-dir was given.
5910 if test "${with_clang_resource_dir+set}" = set; then
5911   withval=$with_clang_resource_dir;
5912 else
5913   withval=""
5914 fi
5915
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define CLANG_RESOURCE_DIR "$withval"
5919 _ACEOF
5920
5921
5922
5923 # Check whether --with-c-include-dirs was given.
5924 if test "${with_c_include_dirs+set}" = set; then
5925   withval=$with_c_include_dirs;
5926 else
5927   withval=""
5928 fi
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define C_INCLUDE_DIRS "$withval"
5933 _ACEOF
5934
5935
5936 # Clang normally uses the system c++ headers and libraries. With this option,
5937 # clang will use the ones provided by a gcc installation instead. This option should
5938 # be passed the same value that was used with --prefix when configuring gcc.
5939
5940 # Check whether --with-gcc-toolchain was given.
5941 if test "${with_gcc_toolchain+set}" = set; then
5942   withval=$with_gcc_toolchain;
5943 else
5944   withval=""
5945 fi
5946
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define GCC_INSTALL_PREFIX "$withval"
5950 _ACEOF
5951
5952
5953
5954 # Check whether --with-default-sysroot was given.
5955 if test "${with_default_sysroot+set}" = set; then
5956   withval=$with_default_sysroot;
5957 else
5958   withval=""
5959 fi
5960
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define DEFAULT_SYSROOT "$withval"
5964 _ACEOF
5965
5966
5967
5968 # Check whether --with-binutils-include was given.
5969 if test "${with_binutils_include+set}" = set; then
5970   withval=$with_binutils_include;
5971 else
5972   withval=default
5973 fi
5974
5975 case "$withval" in
5976   default) WITH_BINUTILS_INCDIR=default ;;
5977   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5978   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5979 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5980    { (exit 1); exit 1; }; } ;;
5981 esac
5982 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5983   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5984
5985   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5986      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5987      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5988 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5989    { (exit 1); exit 1; }; };
5990   fi
5991 fi
5992
5993
5994 # Check whether --with-bug-report-url was given.
5995 if test "${with_bug_report_url+set}" = set; then
5996   withval=$with_bug_report_url;
5997 else
5998   withval="http://llvm.org/bugs/"
5999 fi
6000
6001
6002 cat >>confdefs.h <<_ACEOF
6003 #define BUG_REPORT_URL "$withval"
6004 _ACEOF
6005
6006
6007 # Check whether --enable-libffi was given.
6008 if test "${enable_libffi+set}" = set; then
6009   enableval=$enable_libffi; case "$enableval" in
6010     yes) llvm_cv_enable_libffi="yes" ;;
6011     no)  llvm_cv_enable_libffi="no"  ;;
6012     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6013 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6014    { (exit 1); exit 1; }; } ;;
6015   esac
6016 else
6017   llvm_cv_enable_libffi=no
6018 fi
6019
6020
6021
6022 # Check whether --with-internal-prefix was given.
6023 if test "${with_internal_prefix+set}" = set; then
6024   withval=$with_internal_prefix;
6025 else
6026   withval=""
6027 fi
6028
6029 INTERNAL_PREFIX=$withval
6030
6031
6032
6033 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6034 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6035 if test "${lt_cv_path_NM+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   if test -n "$NM"; then
6039   # Let the user override the test.
6040   lt_cv_path_NM="$NM"
6041 else
6042   lt_nm_to_check="${ac_tool_prefix}nm"
6043   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6044     lt_nm_to_check="$lt_nm_to_check nm"
6045   fi
6046   for lt_tmp_nm in $lt_nm_to_check; do
6047     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6049       IFS="$lt_save_ifs"
6050       test -z "$ac_dir" && ac_dir=.
6051       tmp_nm="$ac_dir/$lt_tmp_nm"
6052       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6053         # Check to see if the nm accepts a BSD-compat flag.
6054         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6055         #   nm: unknown option "B" ignored
6056         # Tru64's nm complains that /dev/null is an invalid object file
6057         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6058         */dev/null* | *'Invalid file or object type'*)
6059           lt_cv_path_NM="$tmp_nm -B"
6060           break
6061           ;;
6062         *)
6063           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6064           */dev/null*)
6065             lt_cv_path_NM="$tmp_nm -p"
6066             break
6067             ;;
6068           *)
6069             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6070             continue # so that we can try to find one that supports BSD flags
6071             ;;
6072           esac
6073           ;;
6074         esac
6075       fi
6076     done
6077     IFS="$lt_save_ifs"
6078   done
6079   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6080 fi
6081 fi
6082 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6083 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6084 NM="$lt_cv_path_NM"
6085
6086
6087
6088 { echo "$as_me:$LINENO: checking for GNU make" >&5
6089 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6090 if test "${llvm_cv_gnu_make_command+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   llvm_cv_gnu_make_command=''
6094  for a in "$MAKE" make gmake gnumake ; do
6095   if test -z "$a" ; then continue ; fi ;
6096   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6097   then
6098    llvm_cv_gnu_make_command=$a ;
6099    break;
6100   fi
6101  done
6102 fi
6103 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6104 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6105  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6106    ifGNUmake='' ;
6107  else
6108    ifGNUmake='#' ;
6109    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6110 echo "${ECHO_T}\"Not found\"" >&6; };
6111  fi
6112
6113
6114 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6115 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6116 LN_S=$as_ln_s
6117 if test "$LN_S" = "ln -s"; then
6118   { echo "$as_me:$LINENO: result: yes" >&5
6119 echo "${ECHO_T}yes" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6122 echo "${ECHO_T}no, using $LN_S" >&6; }
6123 fi
6124
6125 # Extract the first word of "cmp", so it can be a program name with args.
6126 set dummy cmp; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_CMP+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   case $CMP in
6133   [\\/]* | ?:[\\/]*)
6134   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6135   ;;
6136   *)
6137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6153   ;;
6154 esac
6155 fi
6156 CMP=$ac_cv_path_CMP
6157 if test -n "$CMP"; then
6158   { echo "$as_me:$LINENO: result: $CMP" >&5
6159 echo "${ECHO_T}$CMP" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165
6166 # Extract the first word of "cp", so it can be a program name with args.
6167 set dummy cp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CP+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   case $CP in
6174   [\\/]* | ?:[\\/]*)
6175   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6176   ;;
6177   *)
6178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183   for ac_exec_ext in '' $ac_executable_extensions; do
6184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6194   ;;
6195 esac
6196 fi
6197 CP=$ac_cv_path_CP
6198 if test -n "$CP"; then
6199   { echo "$as_me:$LINENO: result: $CP" >&5
6200 echo "${ECHO_T}$CP" >&6; }
6201 else
6202   { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207 # Extract the first word of "date", so it can be a program name with args.
6208 set dummy date; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_DATE+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   case $DATE in
6215   [\\/]* | ?:[\\/]*)
6216   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6217   ;;
6218   *)
6219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6235   ;;
6236 esac
6237 fi
6238 DATE=$ac_cv_path_DATE
6239 if test -n "$DATE"; then
6240   { echo "$as_me:$LINENO: result: $DATE" >&5
6241 echo "${ECHO_T}$DATE" >&6; }
6242 else
6243   { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6246
6247
6248 # Extract the first word of "find", so it can be a program name with args.
6249 set dummy find; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_FIND+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   case $FIND in
6256   [\\/]* | ?:[\\/]*)
6257   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6258   ;;
6259   *)
6260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265   for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6276   ;;
6277 esac
6278 fi
6279 FIND=$ac_cv_path_FIND
6280 if test -n "$FIND"; then
6281   { echo "$as_me:$LINENO: result: $FIND" >&5
6282 echo "${ECHO_T}$FIND" >&6; }
6283 else
6284   { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288
6289 # Extract the first word of "grep", so it can be a program name with args.
6290 set dummy grep; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_GREP+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $GREP in
6297   [\\/]* | ?:[\\/]*)
6298   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6299   ;;
6300   *)
6301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6317   ;;
6318 esac
6319 fi
6320 GREP=$ac_cv_path_GREP
6321 if test -n "$GREP"; then
6322   { echo "$as_me:$LINENO: result: $GREP" >&5
6323 echo "${ECHO_T}$GREP" >&6; }
6324 else
6325   { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6328
6329
6330 # Extract the first word of "mkdir", so it can be a program name with args.
6331 set dummy mkdir; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_MKDIR+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   case $MKDIR in
6338   [\\/]* | ?:[\\/]*)
6339   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6340   ;;
6341   *)
6342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347   for ac_exec_ext in '' $ac_executable_extensions; do
6348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6358   ;;
6359 esac
6360 fi
6361 MKDIR=$ac_cv_path_MKDIR
6362 if test -n "$MKDIR"; then
6363   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6364 echo "${ECHO_T}$MKDIR" >&6; }
6365 else
6366   { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 fi
6369
6370
6371 # Extract the first word of "mv", so it can be a program name with args.
6372 set dummy mv; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MV+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   case $MV in
6379   [\\/]* | ?:[\\/]*)
6380   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6381   ;;
6382   *)
6383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6399   ;;
6400 esac
6401 fi
6402 MV=$ac_cv_path_MV
6403 if test -n "$MV"; then
6404   { echo "$as_me:$LINENO: result: $MV" >&5
6405 echo "${ECHO_T}$MV" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6410
6411
6412 if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_RANLIB+set}" = set; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   if test -n "$RANLIB"; then
6421   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428   for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 RANLIB=$ac_cv_prog_RANLIB
6441 if test -n "$RANLIB"; then
6442   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6443 echo "${ECHO_T}$RANLIB" >&6; }
6444 else
6445   { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452   ac_ct_RANLIB=$RANLIB
6453   # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   if test -n "$ac_ct_RANLIB"; then
6461   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468   for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_RANLIB="ranlib"
6471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481 if test -n "$ac_ct_RANLIB"; then
6482   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6483 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6484 else
6485   { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_RANLIB" = x; then
6490     RANLIB=":"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6495 whose name does not start with the host triplet.  If you think this
6496 configuration is useful to you, please write to autoconf@gnu.org." >&5
6497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet.  If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502     RANLIB=$ac_ct_RANLIB
6503   fi
6504 else
6505   RANLIB="$ac_cv_prog_RANLIB"
6506 fi
6507
6508 if test -n "$ac_tool_prefix"; then
6509   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   if test -n "$AR"; then
6517   ac_cv_prog_AR="$AR" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_prog_AR="${ac_tool_prefix}ar"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 AR=$ac_cv_prog_AR
6537 if test -n "$AR"; then
6538   { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6540 else
6541   { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_AR"; then
6548   ac_ct_AR=$AR
6549   # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test -n "$ac_ct_AR"; then
6557   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564   for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_ac_ct_AR="ar"
6567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585   if test "x$ac_ct_AR" = x; then
6586     AR="false"
6587   else
6588     case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet.  If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet.  If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598     AR=$ac_ct_AR
6599   fi
6600 else
6601   AR="$ac_cv_prog_AR"
6602 fi
6603
6604 # Extract the first word of "rm", so it can be a program name with args.
6605 set dummy rm; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_RM+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $RM in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6632   ;;
6633 esac
6634 fi
6635 RM=$ac_cv_path_RM
6636 if test -n "$RM"; then
6637   { echo "$as_me:$LINENO: result: $RM" >&5
6638 echo "${ECHO_T}$RM" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 # Extract the first word of "sed", so it can be a program name with args.
6646 set dummy sed; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_SED+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   case $SED in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6673   ;;
6674 esac
6675 fi
6676 SED=$ac_cv_path_SED
6677 if test -n "$SED"; then
6678   { echo "$as_me:$LINENO: result: $SED" >&5
6679 echo "${ECHO_T}$SED" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 # Extract the first word of "tar", so it can be a program name with args.
6687 set dummy tar; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_TAR+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   case $TAR in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6714   ;;
6715 esac
6716 fi
6717 TAR=$ac_cv_path_TAR
6718 if test -n "$TAR"; then
6719   { echo "$as_me:$LINENO: result: $TAR" >&5
6720 echo "${ECHO_T}$TAR" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 # Extract the first word of "pwd", so it can be a program name with args.
6728 set dummy pwd; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_BINPWD+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $BINPWD in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6755   ;;
6756 esac
6757 fi
6758 BINPWD=$ac_cv_path_BINPWD
6759 if test -n "$BINPWD"; then
6760   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6761 echo "${ECHO_T}$BINPWD" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768
6769 # Extract the first word of "Graphviz", so it can be a program name with args.
6770 set dummy Graphviz; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   case $GRAPHVIZ in
6777   [\\/]* | ?:[\\/]*)
6778   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6779   ;;
6780   *)
6781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6797   ;;
6798 esac
6799 fi
6800 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6801 if test -n "$GRAPHVIZ"; then
6802   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6803 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6804 else
6805   { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6807 fi
6808
6809
6810 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6811
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_GRAPHVIZ 1
6814 _ACEOF
6815
6816     if test "$llvm_cv_os_type" = "MingW" ; then
6817     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6818   fi
6819
6820 cat >>confdefs.h <<_ACEOF
6821 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6822 _ACEOF
6823
6824 fi
6825 # Extract the first word of "dot", so it can be a program name with args.
6826 set dummy dot; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_DOT+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   case $DOT in
6833   [\\/]* | ?:[\\/]*)
6834   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6835   ;;
6836   *)
6837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6853   ;;
6854 esac
6855 fi
6856 DOT=$ac_cv_path_DOT
6857 if test -n "$DOT"; then
6858   { echo "$as_me:$LINENO: result: $DOT" >&5
6859 echo "${ECHO_T}$DOT" >&6; }
6860 else
6861   { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865
6866 if test "$DOT" != "echo dot" ; then
6867
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_DOT 1
6870 _ACEOF
6871
6872     if test "$llvm_cv_os_type" = "MingW" ; then
6873     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6874   fi
6875
6876 cat >>confdefs.h <<_ACEOF
6877 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6878 _ACEOF
6879
6880 fi
6881 # Extract the first word of "fdp", so it can be a program name with args.
6882 set dummy fdp; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_FDP+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   case $FDP in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898   for ac_exec_ext in '' $ac_executable_extensions; do
6899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6909   ;;
6910 esac
6911 fi
6912 FDP=$ac_cv_path_FDP
6913 if test -n "$FDP"; then
6914   { echo "$as_me:$LINENO: result: $FDP" >&5
6915 echo "${ECHO_T}$FDP" >&6; }
6916 else
6917   { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6920
6921
6922 if test "$FDP" != "echo fdp" ; then
6923
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_FDP 1
6926 _ACEOF
6927
6928     if test "$llvm_cv_os_type" = "MingW" ; then
6929     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930   fi
6931
6932 cat >>confdefs.h <<_ACEOF
6933 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6934 _ACEOF
6935
6936 fi
6937 # Extract the first word of "neato", so it can be a program name with args.
6938 set dummy neato; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_NEATO+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   case $NEATO in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954   for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6965   ;;
6966 esac
6967 fi
6968 NEATO=$ac_cv_path_NEATO
6969 if test -n "$NEATO"; then
6970   { echo "$as_me:$LINENO: result: $NEATO" >&5
6971 echo "${ECHO_T}$NEATO" >&6; }
6972 else
6973   { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6976
6977
6978 if test "$NEATO" != "echo neato" ; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_NEATO 1
6982 _ACEOF
6983
6984     if test "$llvm_cv_os_type" = "MingW" ; then
6985     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6986   fi
6987
6988 cat >>confdefs.h <<_ACEOF
6989 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6990 _ACEOF
6991
6992 fi
6993 # Extract the first word of "twopi", so it can be a program name with args.
6994 set dummy twopi; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_TWOPI+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   case $TWOPI in
7001   [\\/]* | ?:[\\/]*)
7002   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7003   ;;
7004   *)
7005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7021   ;;
7022 esac
7023 fi
7024 TWOPI=$ac_cv_path_TWOPI
7025 if test -n "$TWOPI"; then
7026   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7027 echo "${ECHO_T}$TWOPI" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 if test "$TWOPI" != "echo twopi" ; then
7035
7036 cat >>confdefs.h <<\_ACEOF
7037 #define HAVE_TWOPI 1
7038 _ACEOF
7039
7040     if test "$llvm_cv_os_type" = "MingW" ; then
7041     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7042   fi
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7046 _ACEOF
7047
7048 fi
7049 # Extract the first word of "circo", so it can be a program name with args.
7050 set dummy circo; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_CIRCO+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $CIRCO in
7057   [\\/]* | ?:[\\/]*)
7058   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7059   ;;
7060   *)
7061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7077   ;;
7078 esac
7079 fi
7080 CIRCO=$ac_cv_path_CIRCO
7081 if test -n "$CIRCO"; then
7082   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7083 echo "${ECHO_T}$CIRCO" >&6; }
7084 else
7085   { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089
7090 if test "$CIRCO" != "echo circo" ; then
7091
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_CIRCO 1
7094 _ACEOF
7095
7096     if test "$llvm_cv_os_type" = "MingW" ; then
7097     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7098   fi
7099
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7102 _ACEOF
7103
7104 fi
7105 for ac_prog in gv gsview32
7106 do
7107   # Extract the first word of "$ac_prog", so it can be a program name with args.
7108 set dummy $ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_GV+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   case $GV in
7115   [\\/]* | ?:[\\/]*)
7116   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7117   ;;
7118   *)
7119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122   IFS=$as_save_IFS
7123   test -z "$as_dir" && as_dir=.
7124   for ac_exec_ext in '' $ac_executable_extensions; do
7125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129   fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134   ;;
7135 esac
7136 fi
7137 GV=$ac_cv_path_GV
7138 if test -n "$GV"; then
7139   { echo "$as_me:$LINENO: result: $GV" >&5
7140 echo "${ECHO_T}$GV" >&6; }
7141 else
7142   { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7145
7146
7147   test -n "$GV" && break
7148 done
7149 test -n "$GV" || GV="echo gv"
7150
7151 if test "$GV" != "echo gv" ; then
7152
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_GV 1
7155 _ACEOF
7156
7157     if test "$llvm_cv_os_type" = "MingW" ; then
7158     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7159   fi
7160
7161 cat >>confdefs.h <<_ACEOF
7162 #define LLVM_PATH_GV "$GV${EXEEXT}"
7163 _ACEOF
7164
7165 fi
7166 # Extract the first word of "dotty", so it can be a program name with args.
7167 set dummy dotty; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_DOTTY+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   case $DOTTY in
7174   [\\/]* | ?:[\\/]*)
7175   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7176   ;;
7177   *)
7178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183   for ac_exec_ext in '' $ac_executable_extensions; do
7184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7194   ;;
7195 esac
7196 fi
7197 DOTTY=$ac_cv_path_DOTTY
7198 if test -n "$DOTTY"; then
7199   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7200 echo "${ECHO_T}$DOTTY" >&6; }
7201 else
7202   { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7204 fi
7205
7206
7207 if test "$DOTTY" != "echo dotty" ; then
7208
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_DOTTY 1
7211 _ACEOF
7212
7213     if test "$llvm_cv_os_type" = "MingW" ; then
7214     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7215   fi
7216
7217 cat >>confdefs.h <<_ACEOF
7218 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7219 _ACEOF
7220
7221 fi
7222 for ac_prog in xdot xdot.py
7223 do
7224   # Extract the first word of "$ac_prog", so it can be a program name with args.
7225 set dummy $ac_prog; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_XDOT+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   case $XDOT in
7232   [\\/]* | ?:[\\/]*)
7233   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7234   ;;
7235   *)
7236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251   ;;
7252 esac
7253 fi
7254 XDOT=$ac_cv_path_XDOT
7255 if test -n "$XDOT"; then
7256   { echo "$as_me:$LINENO: result: $XDOT" >&5
7257 echo "${ECHO_T}$XDOT" >&6; }
7258 else
7259   { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7261 fi
7262
7263
7264   test -n "$XDOT" && break
7265 done
7266 test -n "$XDOT" || XDOT="echo xdot"
7267
7268 if test "$XDOT" != "echo xdot" ; then
7269
7270 cat >>confdefs.h <<\_ACEOF
7271 #define HAVE_XDOT 1
7272 _ACEOF
7273
7274     if test "$llvm_cv_os_type" = "MingW" ; then
7275     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7276   fi
7277
7278 cat >>confdefs.h <<_ACEOF
7279 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7280 _ACEOF
7281
7282 fi
7283
7284 # Find a good install program.  We prefer a C program (faster),
7285 # so one script is as good as another.  But avoid the broken or
7286 # incompatible versions:
7287 # SysV /etc/install, /usr/sbin/install
7288 # SunOS /usr/etc/install
7289 # IRIX /sbin/install
7290 # AIX /bin/install
7291 # AmigaOS /C/install, which installs bootblocks on floppy discs
7292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7295 # OS/2's system install, which has a completely different semantic
7296 # ./install, which can be erroneously created by make from ./install.sh.
7297 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7299 if test -z "$INSTALL"; then
7300 if test "${ac_cv_path_install+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   # Account for people who put trailing slashes in PATH elements.
7309 case $as_dir/ in
7310   ./ | .// | /cC/* | \
7311   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7312   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7313   /usr/ucb/* ) ;;
7314   *)
7315     # OSF1 and SCO ODT 3.0 have their own names for install.
7316     # Don't use installbsd from OSF since it installs stuff as root
7317     # by default.
7318     for ac_prog in ginstall scoinst install; do
7319       for ac_exec_ext in '' $ac_executable_extensions; do
7320         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7321           if test $ac_prog = install &&
7322             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7323             # AIX install.  It has an incompatible calling convention.
7324             :
7325           elif test $ac_prog = install &&
7326             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7327             # program-specific install script used by HP pwplus--don't use.
7328             :
7329           else
7330             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7331             break 3
7332           fi
7333         fi
7334       done
7335     done
7336     ;;
7337 esac
7338 done
7339 IFS=$as_save_IFS
7340
7341
7342 fi
7343   if test "${ac_cv_path_install+set}" = set; then
7344     INSTALL=$ac_cv_path_install
7345   else
7346     # As a last resort, use the slow shell script.  Don't cache a
7347     # value for INSTALL within a source directory, because that will
7348     # break other packages using the cache if that directory is
7349     # removed, or if the value is a relative name.
7350     INSTALL=$ac_install_sh
7351   fi
7352 fi
7353 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7354 echo "${ECHO_T}$INSTALL" >&6; }
7355
7356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7357 # It thinks the first close brace ends the variable substitution.
7358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7359
7360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7361
7362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7363
7364 case "$INSTALL" in
7365  [\\/$]* | ?:[\\/]* ) ;;
7366  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7367 esac
7368
7369 # Extract the first word of "bzip2", so it can be a program name with args.
7370 set dummy bzip2; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_path_BZIP2+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   case $BZIP2 in
7377   [\\/]* | ?:[\\/]*)
7378   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7379   ;;
7380   *)
7381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386   for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396   ;;
7397 esac
7398 fi
7399 BZIP2=$ac_cv_path_BZIP2
7400 if test -n "$BZIP2"; then
7401   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7402 echo "${ECHO_T}$BZIP2" >&6; }
7403 else
7404   { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7407
7408
7409 # Extract the first word of "cat", so it can be a program name with args.
7410 set dummy cat; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_CAT+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   case $CAT in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436   ;;
7437 esac
7438 fi
7439 CAT=$ac_cv_path_CAT
7440 if test -n "$CAT"; then
7441   { echo "$as_me:$LINENO: result: $CAT" >&5
7442 echo "${ECHO_T}$CAT" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449 # Extract the first word of "doxygen", so it can be a program name with args.
7450 set dummy doxygen; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   case $DOXYGEN in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466   for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476   ;;
7477 esac
7478 fi
7479 DOXYGEN=$ac_cv_path_DOXYGEN
7480 if test -n "$DOXYGEN"; then
7481   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7482 echo "${ECHO_T}$DOXYGEN" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489 # Extract the first word of "groff", so it can be a program name with args.
7490 set dummy groff; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_GROFF+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case $GROFF in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516   ;;
7517 esac
7518 fi
7519 GROFF=$ac_cv_path_GROFF
7520 if test -n "$GROFF"; then
7521   { echo "$as_me:$LINENO: result: $GROFF" >&5
7522 echo "${ECHO_T}$GROFF" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529 # Extract the first word of "gzip", so it can be a program name with args.
7530 set dummy gzip; ac_word=$2
7531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   case $GZIPBIN in
7537   [\\/]* | ?:[\\/]*)
7538   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7539   ;;
7540   *)
7541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546   for ac_exec_ext in '' $ac_executable_extensions; do
7547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7548     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556   ;;
7557 esac
7558 fi
7559 GZIPBIN=$ac_cv_path_GZIPBIN
7560 if test -n "$GZIPBIN"; then
7561   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7562 echo "${ECHO_T}$GZIPBIN" >&6; }
7563 else
7564   { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566 fi
7567
7568
7569 # Extract the first word of "pdfroff", so it can be a program name with args.
7570 set dummy pdfroff; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PDFROFF+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   case $PDFROFF in
7577   [\\/]* | ?:[\\/]*)
7578   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7579   ;;
7580   *)
7581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596   ;;
7597 esac
7598 fi
7599 PDFROFF=$ac_cv_path_PDFROFF
7600 if test -n "$PDFROFF"; then
7601   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7602 echo "${ECHO_T}$PDFROFF" >&6; }
7603 else
7604   { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7606 fi
7607
7608
7609 # Extract the first word of "zip", so it can be a program name with args.
7610 set dummy zip; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_ZIP+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $ZIP in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   ;;
7637 esac
7638 fi
7639 ZIP=$ac_cv_path_ZIP
7640 if test -n "$ZIP"; then
7641   { echo "$as_me:$LINENO: result: $ZIP" >&5
7642 echo "${ECHO_T}$ZIP" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649 for ac_prog in ocamlc
7650 do
7651   # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_path_OCAMLC+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   case $OCAMLC in
7659   [\\/]* | ?:[\\/]*)
7660   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7661   ;;
7662   *)
7663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668   for ac_exec_ext in '' $ac_executable_extensions; do
7669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7670     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678   ;;
7679 esac
7680 fi
7681 OCAMLC=$ac_cv_path_OCAMLC
7682 if test -n "$OCAMLC"; then
7683   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7684 echo "${ECHO_T}$OCAMLC" >&6; }
7685 else
7686   { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7688 fi
7689
7690
7691   test -n "$OCAMLC" && break
7692 done
7693
7694 for ac_prog in ocamlopt
7695 do
7696   # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   case $OCAMLOPT in
7704   [\\/]* | ?:[\\/]*)
7705   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7706   ;;
7707   *)
7708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713   for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723   ;;
7724 esac
7725 fi
7726 OCAMLOPT=$ac_cv_path_OCAMLOPT
7727 if test -n "$OCAMLOPT"; then
7728   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7729 echo "${ECHO_T}$OCAMLOPT" >&6; }
7730 else
7731   { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7733 fi
7734
7735
7736   test -n "$OCAMLOPT" && break
7737 done
7738
7739 for ac_prog in ocamldep
7740 do
7741   # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $OCAMLDEP in
7749   [\\/]* | ?:[\\/]*)
7750   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7751   ;;
7752   *)
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768   ;;
7769 esac
7770 fi
7771 OCAMLDEP=$ac_cv_path_OCAMLDEP
7772 if test -n "$OCAMLDEP"; then
7773   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7774 echo "${ECHO_T}$OCAMLDEP" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780
7781   test -n "$OCAMLDEP" && break
7782 done
7783
7784 for ac_prog in ocamldoc
7785 do
7786   # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   case $OCAMLDOC in
7794   [\\/]* | ?:[\\/]*)
7795   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7796   ;;
7797   *)
7798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813   ;;
7814 esac
7815 fi
7816 OCAMLDOC=$ac_cv_path_OCAMLDOC
7817 if test -n "$OCAMLDOC"; then
7818   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7819 echo "${ECHO_T}$OCAMLDOC" >&6; }
7820 else
7821   { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7823 fi
7824
7825
7826   test -n "$OCAMLDOC" && break
7827 done
7828
7829 for ac_prog in gas as
7830 do
7831   # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_GAS+set}" = set; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838   case $GAS in
7839   [\\/]* | ?:[\\/]*)
7840   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7841   ;;
7842   *)
7843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848   for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858   ;;
7859 esac
7860 fi
7861 GAS=$ac_cv_path_GAS
7862 if test -n "$GAS"; then
7863   { echo "$as_me:$LINENO: result: $GAS" >&5
7864 echo "${ECHO_T}$GAS" >&6; }
7865 else
7866   { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7868 fi
7869
7870
7871   test -n "$GAS" && break
7872 done
7873
7874
7875 { echo "$as_me:$LINENO: checking for linker version" >&5
7876 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7877 if test "${llvm_cv_link_version+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880
7881    version_string="$(ld -v 2>&1 | head -1)"
7882
7883    # Check for ld64.
7884    if (echo "$version_string" | grep -q "ld64"); then
7885      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7886    else
7887      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7888    fi
7889
7890 fi
7891 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7892 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7893
7894 cat >>confdefs.h <<_ACEOF
7895 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7896 _ACEOF
7897
7898
7899
7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7901 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_r+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905    ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911   oldcflags="$CFLAGS"
7912   CFLAGS="$CFLAGS -Wl,-R."
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919
7920 int
7921 main ()
7922 {
7923
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935   (eval "$ac_link") 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } &&
7942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943   { (case "(($ac_try" in
7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945   *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948   (eval "$ac_try") 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; } &&
7952          { ac_try='test -s conftest$ac_exeext'
7953   { (case "(($ac_try" in
7954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955   *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958   (eval "$ac_try") 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   llvm_cv_link_use_r=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967         llvm_cv_link_use_r=no
7968 fi
7969
7970 rm -f core conftest.err conftest.$ac_objext \
7971       conftest$ac_exeext conftest.$ac_ext
7972   CFLAGS="$oldcflags"
7973   ac_ext=c
7974 ac_cpp='$CPP $CPPFLAGS'
7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978
7979
7980 fi
7981 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7982 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7983 if test "$llvm_cv_link_use_r" = yes ; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LINK_R 1
7987 _ACEOF
7988
7989   fi
7990
7991
7992 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7993 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997    ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003   oldcflags="$CFLAGS"
8004   CFLAGS="$CFLAGS -rdynamic"
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 int
8013 main ()
8014 {
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_link") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035   { (case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040   (eval "$ac_try") 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest$ac_exeext'
8045   { (case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_try") 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   llvm_cv_link_use_export_dynamic=yes
8055 else
8056   echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059         llvm_cv_link_use_export_dynamic=no
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext \
8063       conftest$ac_exeext conftest.$ac_ext
8064   CFLAGS="$oldcflags"
8065   ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072 fi
8073 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8074 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8075 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_LINK_EXPORT_DYNAMIC 1
8079 _ACEOF
8080
8081   fi
8082
8083
8084 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8085 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8086 if test "${llvm_cv_link_use_version_script+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089    ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095   oldcflags="$CFLAGS"
8096
8097   # The following code is from the autoconf manual,
8098   # "11.13: Limitations of Usual Tools".
8099   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8100   # Use mktemp if possible; otherwise fall back on mkdir,
8101   # with $RANDOM to make collisions less likely.
8102   : ${TMPDIR=/tmp}
8103   {
8104     tmp=`
8105       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8106     ` &&
8107     test -n "$tmp" && test -d "$tmp"
8108   } || {
8109     tmp=$TMPDIR/foo$$-$RANDOM
8110     (umask 077 && mkdir "$tmp")
8111   } || exit $?
8112
8113   echo "{" > "$tmp/export.map"
8114   echo "  global: main;" >> "$tmp/export.map"
8115   echo "  local: *;" >> "$tmp/export.map"
8116   echo "};" >> "$tmp/export.map"
8117
8118   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8119   cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125
8126 int
8127 main ()
8128 {
8129
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8136 case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_link") 2>conftest.er1
8142   ac_status=$?
8143   grep -v '^ *+' conftest.er1 >conftest.err
8144   rm -f conftest.er1
8145   cat conftest.err >&5
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8149   { (case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154   (eval "$ac_try") 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; } &&
8158          { ac_try='test -s conftest$ac_exeext'
8159   { (case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164   (eval "$ac_try") 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   llvm_cv_link_use_version_script=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173         llvm_cv_link_use_version_script=no
8174 fi
8175
8176 rm -f core conftest.err conftest.$ac_objext \
8177       conftest$ac_exeext conftest.$ac_ext
8178   rm "$tmp/export.map"
8179   rmdir "$tmp"
8180   CFLAGS="$oldcflags"
8181   ac_ext=c
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8186
8187
8188 fi
8189 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8190 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8191 if test "$llvm_cv_link_use_version_script" = yes ; then
8192   HAVE_LINK_VERSION_SCRIPT=1
8193
8194   fi
8195
8196
8197
8198
8199 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8201 if test "${ac_cv_c_const+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 int
8212 main ()
8213 {
8214 /* FIXME: Include the comments suggested by Paul. */
8215 #ifndef __cplusplus
8216   /* Ultrix mips cc rejects this.  */
8217   typedef int charset[2];
8218   const charset x;
8219   /* SunOS 4.1.1 cc rejects this.  */
8220   char const *const *ccp;
8221   char **p;
8222   /* NEC SVR4.0.2 mips cc rejects this.  */
8223   struct point {int x, y;};
8224   static struct point const zero = {0,0};
8225   /* AIX XL C 1.02.0.0 rejects this.
8226      It does not let you subtract one const X* pointer from another in
8227      an arm of an if-expression whose if-part is not a constant
8228      expression */
8229   const char *g = "string";
8230   ccp = &g + (g ? g-g : 0);
8231   /* HPUX 7.0 cc rejects these. */
8232   ++ccp;
8233   p = (char**) ccp;
8234   ccp = (char const *const *) p;
8235   { /* SCO 3.2v4 cc rejects this.  */
8236     char *t;
8237     char const *s = 0 ? (char *) 0 : (char const *) 0;
8238
8239     *t++ = 0;
8240     if (s) return 0;
8241   }
8242   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8243     int x[] = {25, 17};
8244     const int *foo = &x[0];
8245     ++foo;
8246   }
8247   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8248     typedef const int *iptr;
8249     iptr p = 0;
8250     ++p;
8251   }
8252   { /* AIX XL C 1.02.0.0 rejects this saying
8253        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8254     struct s { int j; const int *ap[3]; };
8255     struct s *b; b->j = 5;
8256   }
8257   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8258     const int foo = 10;
8259     if (!foo) return 0;
8260   }
8261   return !x[0] && !zero.x;
8262 #endif
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_compile") 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283   { (case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_try") 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; } &&
8292          { ac_try='test -s conftest.$ac_objext'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_cv_c_const=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307         ac_cv_c_const=no
8308 fi
8309
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8314 if test $ac_cv_c_const = no; then
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define const
8318 _ACEOF
8319
8320 fi
8321
8322
8323
8324
8325
8326
8327 ac_header_dirent=no
8328 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8329   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8330 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8331 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 #include <sys/types.h>
8342 #include <$ac_hdr>
8343
8344 int
8345 main ()
8346 {
8347 if ((DIR *) 0)
8348 return 0;
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_compile") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_try") 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   eval "$as_ac_Header=yes"
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         eval "$as_ac_Header=no"
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398                { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8403 _ACEOF
8404
8405 ac_header_dirent=$ac_hdr; break
8406 fi
8407
8408 done
8409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8410 if test $ac_header_dirent = dirent.h; then
8411   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413 if test "${ac_cv_search_opendir+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_func_search_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 /* Override any GCC internal prototype to avoid an error.
8425    Use char because int might match the return type of a GCC
8426    builtin and then its argument prototype would still apply.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char opendir ();
8431 int
8432 main ()
8433 {
8434 return opendir ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 for ac_lib in '' dir; do
8440   if test -z "$ac_lib"; then
8441     ac_res="none required"
8442   else
8443     ac_res=-l$ac_lib
8444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8445   fi
8446   rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_link") 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } &&
8460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461   { (case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_try") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; } &&
8470          { ac_try='test -s conftest$ac_exeext'
8471   { (case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_try") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_cv_search_opendir=$ac_res
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485
8486 fi
8487
8488 rm -f core conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext
8490   if test "${ac_cv_search_opendir+set}" = set; then
8491   break
8492 fi
8493 done
8494 if test "${ac_cv_search_opendir+set}" = set; then
8495   :
8496 else
8497   ac_cv_search_opendir=no
8498 fi
8499 rm conftest.$ac_ext
8500 LIBS=$ac_func_search_save_LIBS
8501 fi
8502 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8504 ac_res=$ac_cv_search_opendir
8505 if test "$ac_res" != no; then
8506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8507
8508 fi
8509
8510 else
8511   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8512 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8513 if test "${ac_cv_search_opendir+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   ac_func_search_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523
8524 /* Override any GCC internal prototype to avoid an error.
8525    Use char because int might match the return type of a GCC
8526    builtin and then its argument prototype would still apply.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 char opendir ();
8531 int
8532 main ()
8533 {
8534 return opendir ();
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 for ac_lib in '' x; do
8540   if test -z "$ac_lib"; then
8541     ac_res="none required"
8542   else
8543     ac_res=-l$ac_lib
8544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8545   fi
8546   rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_link") 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561   { (case "(($ac_try" in
8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563   *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566   (eval "$ac_try") 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; } &&
8570          { ac_try='test -s conftest$ac_exeext'
8571   { (case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_try") 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_search_opendir=$ac_res
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585
8586 fi
8587
8588 rm -f core conftest.err conftest.$ac_objext \
8589       conftest$ac_exeext
8590   if test "${ac_cv_search_opendir+set}" = set; then
8591   break
8592 fi
8593 done
8594 if test "${ac_cv_search_opendir+set}" = set; then
8595   :
8596 else
8597   ac_cv_search_opendir=no
8598 fi
8599 rm conftest.$ac_ext
8600 LIBS=$ac_func_search_save_LIBS
8601 fi
8602 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8603 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8604 ac_res=$ac_cv_search_opendir
8605 if test "$ac_res" != no; then
8606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8607
8608 fi
8609
8610 fi
8611
8612
8613 for ac_header in dlfcn.h
8614 do
8615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 fi
8622 ac_res=`eval echo '${'$as_ac_Header'}'`
8623                { echo "$as_me:$LINENO: result: $ac_res" >&5
8624 echo "${ECHO_T}$ac_res" >&6; }
8625 else
8626   # Is the header compilable?
8627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 $ac_includes_default
8636 #include <$ac_header>
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_compile") 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653   { (case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_try") 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; } &&
8662          { ac_try='test -s conftest.$ac_objext'
8663   { (case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_try") 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   ac_header_compiler=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677         ac_header_compiler=no
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8682 echo "${ECHO_T}$ac_header_compiler" >&6; }
8683
8684 # Is the header present?
8685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693 #include <$ac_header>
8694 _ACEOF
8695 if { (ac_try="$ac_cpp conftest.$ac_ext"
8696 case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8702   ac_status=$?
8703   grep -v '^ *+' conftest.er1 >conftest.err
8704   rm -f conftest.er1
8705   cat conftest.err >&5
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } >/dev/null; then
8708   if test -s conftest.err; then
8709     ac_cpp_err=$ac_c_preproc_warn_flag
8710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711   else
8712     ac_cpp_err=
8713   fi
8714 else
8715   ac_cpp_err=yes
8716 fi
8717 if test -z "$ac_cpp_err"; then
8718   ac_header_preproc=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723   ac_header_preproc=no
8724 fi
8725
8726 rm -f conftest.err conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8728 echo "${ECHO_T}$ac_header_preproc" >&6; }
8729
8730 # So?  What about this header?
8731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8732   yes:no: )
8733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8737     ac_header_preproc=yes
8738     ;;
8739   no:yes:* )
8740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8752     ( cat <<\_ASBOX
8753 ## ------------------------------------ ##
8754 ## Report this to http://llvm.org/bugs/ ##
8755 ## ------------------------------------ ##
8756 _ASBOX
8757      ) | sed "s/^/$as_me: WARNING:     /" >&2
8758     ;;
8759 esac
8760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   eval "$as_ac_Header=\$ac_header_preproc"
8766 fi
8767 ac_res=`eval echo '${'$as_ac_Header'}'`
8768                { echo "$as_me:$LINENO: result: $ac_res" >&5
8769 echo "${ECHO_T}$ac_res" >&6; }
8770
8771 fi
8772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773   cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 _ACEOF
8776
8777 fi
8778
8779 done
8780
8781 # Check whether --enable-ltdl-install was given.
8782 if test "${enable_ltdl_install+set}" = set; then
8783   enableval=$enable_ltdl_install;
8784 fi
8785
8786
8787
8788
8789 if test x"${enable_ltdl_install-no}" != xno; then
8790   INSTALL_LTDL_TRUE=
8791   INSTALL_LTDL_FALSE='#'
8792 else
8793   INSTALL_LTDL_TRUE='#'
8794   INSTALL_LTDL_FALSE=
8795 fi
8796
8797
8798
8799 if test x"${enable_ltdl_convenience-no}" != xno; then
8800   CONVENIENCE_LTDL_TRUE=
8801   CONVENIENCE_LTDL_FALSE='#'
8802 else
8803   CONVENIENCE_LTDL_TRUE='#'
8804   CONVENIENCE_LTDL_FALSE=
8805 fi
8806
8807
8808 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8810 library_names_spec=
8811 libname_spec='lib$name'
8812 soname_spec=
8813 shrext_cmds=".so"
8814 postinstall_cmds=
8815 postuninstall_cmds=
8816 finish_cmds=
8817 finish_eval=
8818 shlibpath_var=
8819 shlibpath_overrides_runpath=unknown
8820 version_type=none
8821 dynamic_linker="$host_os ld.so"
8822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8823 if test "$GCC" = yes; then
8824   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8825   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8826     # if the path contains ";" then we assume it to be the separator
8827     # otherwise default to the standard path separator (i.e. ":") - it is
8828     # assumed that no part of a normal pathname contains ";" but that should
8829     # okay in the real world where ";" in dirpaths is itself problematic.
8830     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831   else
8832     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8833   fi
8834 else
8835   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8836 fi
8837 need_lib_prefix=unknown
8838 hardcode_into_libs=no
8839
8840 # when you set need_version to no, make sure it does not cause -set_version
8841 # flags to be left without arguments
8842 need_version=unknown
8843
8844 case $host_os in
8845 aix3*)
8846   version_type=linux
8847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8848   shlibpath_var=LIBPATH
8849
8850   # AIX 3 has no versioning support, so we append a major version to the name.
8851   soname_spec='${libname}${release}${shared_ext}$major'
8852   ;;
8853
8854 aix4* | aix5*)
8855   version_type=linux
8856   need_lib_prefix=no
8857   need_version=no
8858   hardcode_into_libs=yes
8859   if test "$host_cpu" = ia64; then
8860     # AIX 5 supports IA64
8861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8862     shlibpath_var=LD_LIBRARY_PATH
8863   else
8864     # With GCC up to 2.95.x, collect2 would create an import file
8865     # for dependence libraries.  The import file would start with
8866     # the line `#! .'.  This would cause the generated library to
8867     # depend on `.', always an invalid library.  This was fixed in
8868     # development snapshots of GCC prior to 3.0.
8869     case $host_os in
8870       aix4 | aix4.[01] | aix4.[01].*)
8871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8872            echo ' yes '
8873            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8874         :
8875       else
8876         can_build_shared=no
8877       fi
8878       ;;
8879     esac
8880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8881     # soname into executable. Probably we can add versioning support to
8882     # collect2, so additional links can be useful in future.
8883     if test "$aix_use_runtimelinking" = yes; then
8884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8885       # instead of lib<name>.a to let people know that these are not
8886       # typical AIX shared libraries.
8887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888     else
8889       # We preserve .a as extension for shared libraries through AIX4.2
8890       # and later when we are not doing run time linking.
8891       library_names_spec='${libname}${release}.a $libname.a'
8892       soname_spec='${libname}${release}${shared_ext}$major'
8893     fi
8894     shlibpath_var=LIBPATH
8895   fi
8896   ;;
8897
8898 amigaos*)
8899   library_names_spec='$libname.ixlibrary $libname.a'
8900   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8901   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'
8902   ;;
8903
8904 beos*)
8905   library_names_spec='${libname}${shared_ext}'
8906   dynamic_linker="$host_os ld.so"
8907   shlibpath_var=LIBRARY_PATH
8908   ;;
8909
8910 bsdi[45]*)
8911   version_type=linux
8912   need_version=no
8913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8916   shlibpath_var=LD_LIBRARY_PATH
8917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8919   # the default ld.so.conf also contains /usr/contrib/lib and
8920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8921   # libtool to hard-code these into programs
8922   ;;
8923
8924 cygwin* | mingw* | pw32*)
8925   version_type=windows
8926   shrext_cmds=".dll"
8927   need_version=no
8928   need_lib_prefix=no
8929
8930   case $GCC,$host_os in
8931   yes,cygwin* | yes,mingw* | yes,pw32*)
8932     library_names_spec='$libname.dll.a'
8933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8934     postinstall_cmds='base_file=`basename \${file}`~
8935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8936       dldir=$destdir/`dirname \$dlpath`~
8937       test -d \$dldir || mkdir -p \$dldir~
8938       $install_prog $dir/$dlname \$dldir/$dlname~
8939       chmod a+x \$dldir/$dlname'
8940     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8941       dlpath=$dir/\$dldll~
8942        $rm \$dlpath'
8943     shlibpath_overrides_runpath=yes
8944
8945     case $host_os in
8946     cygwin*)
8947       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8948       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8950       ;;
8951     mingw*)
8952       # MinGW DLLs use traditional 'lib' prefix
8953       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8954       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8956         # It is most probably a Windows format PATH printed by
8957         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8958         # path with ; separators, and with drive letters. We can handle the
8959         # drive letters (cygwin fileutils understands them), so leave them,
8960         # especially as we might pass files found there to a mingw objdump,
8961         # which wouldn't understand a cygwinified path. Ahh.
8962         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8963       else
8964         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8965       fi
8966       ;;
8967     pw32*)
8968       # pw32 DLLs use 'pw' prefix rather than 'lib'
8969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970       ;;
8971     esac
8972     ;;
8973
8974   *)
8975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8976     ;;
8977   esac
8978   dynamic_linker='Win32 ld.exe'
8979   # FIXME: first we should search . and the directory the executable is in
8980   shlibpath_var=PATH
8981   ;;
8982
8983 darwin* | rhapsody*)
8984   dynamic_linker="$host_os dyld"
8985   version_type=darwin
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8989   soname_spec='${libname}${release}${major}$shared_ext'
8990   shlibpath_overrides_runpath=yes
8991   shlibpath_var=DYLD_LIBRARY_PATH
8992   shrext_cmds='.dylib'
8993   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8994   if test "$GCC" = yes; then
8995     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"`
8996   else
8997     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8998   fi
8999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9000   ;;
9001
9002 dgux*)
9003   version_type=linux
9004   need_lib_prefix=no
9005   need_version=no
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   shlibpath_var=LD_LIBRARY_PATH
9009   ;;
9010
9011 freebsd1.*)
9012   dynamic_linker=no
9013   ;;
9014
9015 kfreebsd*-gnu)
9016   version_type=linux
9017   need_lib_prefix=no
9018   need_version=no
9019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020   soname_spec='${libname}${release}${shared_ext}$major'
9021   shlibpath_var=LD_LIBRARY_PATH
9022   shlibpath_overrides_runpath=no
9023   hardcode_into_libs=yes
9024   dynamic_linker='GNU ld.so'
9025   ;;
9026
9027 freebsd* | dragonfly*)
9028   # DragonFly does not have aout.  When/if they implement a new
9029   # versioning mechanism, adjust this.
9030   if test -x /usr/bin/objformat; then
9031     objformat=`/usr/bin/objformat`
9032   else
9033     case $host_os in
9034     freebsd[123].*) objformat=aout ;;
9035     *) objformat=elf ;;
9036     esac
9037   fi
9038   version_type=freebsd-$objformat
9039   case $version_type in
9040     freebsd-elf*)
9041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9042       need_version=no
9043       need_lib_prefix=no
9044       ;;
9045     freebsd-*)
9046       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9047       need_version=yes
9048       ;;
9049   esac
9050   shlibpath_var=LD_LIBRARY_PATH
9051   case $host_os in
9052   freebsd2.*)
9053     shlibpath_overrides_runpath=yes
9054     ;;
9055   freebsd3.[01]* | freebsdelf3.[01]*)
9056     shlibpath_overrides_runpath=yes
9057     hardcode_into_libs=yes
9058     ;;
9059   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9060   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9061     shlibpath_overrides_runpath=no
9062     hardcode_into_libs=yes
9063     ;;
9064   freebsd*) # from 4.6 on
9065     shlibpath_overrides_runpath=yes
9066     hardcode_into_libs=yes
9067     ;;
9068   esac
9069   ;;
9070
9071 gnu*)
9072   version_type=linux
9073   need_lib_prefix=no
9074   need_version=no
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9076   soname_spec='${libname}${release}${shared_ext}$major'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   hardcode_into_libs=yes
9079   ;;
9080
9081 hpux9* | hpux10* | hpux11*)
9082   # Give a soname corresponding to the major version so that dld.sl refuses to
9083   # link against other versions.
9084   version_type=sunos
9085   need_lib_prefix=no
9086   need_version=no
9087   case $host_cpu in
9088   ia64*)
9089     shrext_cmds='.so'
9090     hardcode_into_libs=yes
9091     dynamic_linker="$host_os dld.so"
9092     shlibpath_var=LD_LIBRARY_PATH
9093     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095     soname_spec='${libname}${release}${shared_ext}$major'
9096     if test "X$HPUX_IA64_MODE" = X32; then
9097       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9098     else
9099       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9100     fi
9101     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9102     ;;
9103    hppa*64*)
9104      shrext_cmds='.sl'
9105      hardcode_into_libs=yes
9106      dynamic_linker="$host_os dld.sl"
9107      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9108      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110      soname_spec='${libname}${release}${shared_ext}$major'
9111      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9112      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9113      ;;
9114    *)
9115     shrext_cmds='.sl'
9116     dynamic_linker="$host_os dld.sl"
9117     shlibpath_var=SHLIB_PATH
9118     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120     soname_spec='${libname}${release}${shared_ext}$major'
9121     ;;
9122   esac
9123   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9124   postinstall_cmds='chmod 555 $lib'
9125   ;;
9126
9127 interix3*)
9128   version_type=linux
9129   need_lib_prefix=no
9130   need_version=no
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9132   soname_spec='${libname}${release}${shared_ext}$major'
9133   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9134   shlibpath_var=LD_LIBRARY_PATH
9135   shlibpath_overrides_runpath=no
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 irix5* | irix6* | nonstopux*)
9140   case $host_os in
9141     nonstopux*) version_type=nonstopux ;;
9142     *)
9143         if test "$lt_cv_prog_gnu_ld" = yes; then
9144                 version_type=linux
9145         else
9146                 version_type=irix
9147         fi ;;
9148   esac
9149   need_lib_prefix=no
9150   need_version=no
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9153   case $host_os in
9154   irix5* | nonstopux*)
9155     libsuff= shlibsuff=
9156     ;;
9157   *)
9158     case $LD in # libtool.m4 will add one of these switches to LD
9159     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9160       libsuff= shlibsuff= libmagic=32-bit;;
9161     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9162       libsuff=32 shlibsuff=N32 libmagic=N32;;
9163     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9164       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9165     *) libsuff= shlibsuff= libmagic=never-match;;
9166     esac
9167     ;;
9168   esac
9169   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9170   shlibpath_overrides_runpath=no
9171   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9172   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9173   hardcode_into_libs=yes
9174   ;;
9175
9176 # No shared lib support for Linux oldld, aout, or coff.
9177 linux*oldld* | linux*aout* | linux*coff*)
9178   dynamic_linker=no
9179   ;;
9180
9181 # This must be Linux ELF.
9182 linux*)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9189   shlibpath_var=LD_LIBRARY_PATH
9190   shlibpath_overrides_runpath=no
9191   # This implies no fast_install, which is unacceptable.
9192   # Some rework will be needed to allow for fast_install
9193   # before this can be enabled.
9194   hardcode_into_libs=yes
9195
9196   # Append ld.so.conf contents to the search path
9197   if test -f /etc/ld.so.conf; then
9198     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' ' '`
9199     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9200   fi
9201
9202   # We used to test for /lib/ld.so.1 and disable shared libraries on
9203   # powerpc, because MkLinux only supported shared libraries with the
9204   # GNU dynamic linker.  Since this was broken with cross compilers,
9205   # most powerpc-linux boxes support dynamic linking these days and
9206   # people can always --disable-shared, the test was removed, and we
9207   # assume the GNU/Linux dynamic linker is in use.
9208   dynamic_linker='GNU/Linux ld.so'
9209   ;;
9210
9211 knetbsd*-gnu)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=no
9219   hardcode_into_libs=yes
9220   dynamic_linker='GNU ld.so'
9221   ;;
9222
9223 netbsd*)
9224   version_type=sunos
9225   need_lib_prefix=no
9226   need_version=no
9227   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230     dynamic_linker='NetBSD (a.out) ld.so'
9231   else
9232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233     soname_spec='${libname}${release}${shared_ext}$major'
9234     dynamic_linker='NetBSD ld.elf_so'
9235   fi
9236   shlibpath_var=LD_LIBRARY_PATH
9237   shlibpath_overrides_runpath=yes
9238   hardcode_into_libs=yes
9239   ;;
9240
9241 newsos6)
9242   version_type=linux
9243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244   shlibpath_var=LD_LIBRARY_PATH
9245   shlibpath_overrides_runpath=yes
9246   ;;
9247
9248 nto-qnx*)
9249   version_type=linux
9250   need_lib_prefix=no
9251   need_version=no
9252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253   soname_spec='${libname}${release}${shared_ext}$major'
9254   shlibpath_var=LD_LIBRARY_PATH
9255   shlibpath_overrides_runpath=yes
9256   ;;
9257
9258 openbsd* | bitrig*)
9259   version_type=sunos
9260   sys_lib_dlsearch_path_spec="/usr/lib"
9261   need_lib_prefix=no
9262   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9263   case $host_os in
9264     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9265     *)                         need_version=no  ;;
9266   esac
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9269   shlibpath_var=LD_LIBRARY_PATH
9270   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9271     case $host_os in
9272       openbsd2.[89] | openbsd2.[89].*)
9273         shlibpath_overrides_runpath=no
9274         ;;
9275       *)
9276         shlibpath_overrides_runpath=yes
9277         ;;
9278       esac
9279   else
9280     shlibpath_overrides_runpath=yes
9281   fi
9282   ;;
9283
9284 os2*)
9285   libname_spec='$name'
9286   shrext_cmds=".dll"
9287   need_lib_prefix=no
9288   library_names_spec='$libname${shared_ext} $libname.a'
9289   dynamic_linker='OS/2 ld.exe'
9290   shlibpath_var=LIBPATH
9291   ;;
9292
9293 osf3* | osf4* | osf5*)
9294   version_type=osf
9295   need_lib_prefix=no
9296   need_version=no
9297   soname_spec='${libname}${release}${shared_ext}$major'
9298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299   shlibpath_var=LD_LIBRARY_PATH
9300   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9301   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9302   ;;
9303
9304 solaris*)
9305   version_type=linux
9306   need_lib_prefix=no
9307   need_version=no
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   soname_spec='${libname}${release}${shared_ext}$major'
9310   shlibpath_var=LD_LIBRARY_PATH
9311   shlibpath_overrides_runpath=yes
9312   hardcode_into_libs=yes
9313   # ldd complains unless libraries are executable
9314   postinstall_cmds='chmod +x $lib'
9315   ;;
9316
9317 sunos4*)
9318   version_type=sunos
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   shlibpath_overrides_runpath=yes
9323   if test "$with_gnu_ld" = yes; then
9324     need_lib_prefix=no
9325   fi
9326   need_version=yes
9327   ;;
9328
9329 sysv4 | sysv4.3*)
9330   version_type=linux
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   case $host_vendor in
9335     sni)
9336       shlibpath_overrides_runpath=no
9337       need_lib_prefix=no
9338       export_dynamic_flag_spec='${wl}-Blargedynsym'
9339       runpath_var=LD_RUN_PATH
9340       ;;
9341     siemens)
9342       need_lib_prefix=no
9343       ;;
9344     motorola)
9345       need_lib_prefix=no
9346       need_version=no
9347       shlibpath_overrides_runpath=no
9348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9349       ;;
9350   esac
9351   ;;
9352
9353 sysv4*MP*)
9354   if test -d /usr/nec ;then
9355     version_type=linux
9356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9357     soname_spec='$libname${shared_ext}.$major'
9358     shlibpath_var=LD_LIBRARY_PATH
9359   fi
9360   ;;
9361
9362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9363   version_type=freebsd-elf
9364   need_lib_prefix=no
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   hardcode_into_libs=yes
9370   if test "$with_gnu_ld" = yes; then
9371     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9372     shlibpath_overrides_runpath=no
9373   else
9374     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9375     shlibpath_overrides_runpath=yes
9376     case $host_os in
9377       sco3.2v5*)
9378         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9379         ;;
9380     esac
9381   fi
9382   sys_lib_dlsearch_path_spec='/usr/lib'
9383   ;;
9384
9385 uts4*)
9386   version_type=linux
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   ;;
9391
9392 *)
9393   dynamic_linker=no
9394   ;;
9395 esac
9396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9397 echo "${ECHO_T}$dynamic_linker" >&6; }
9398 test "$dynamic_linker" = no && can_build_shared=no
9399
9400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9401 if test "$GCC" = yes; then
9402   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9403 fi
9404
9405
9406 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9407 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_shlibext+set}" = set; then
9409   echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411
9412 module=yes
9413 eval libltdl_cv_shlibext=$shrext_cmds
9414
9415 fi
9416 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9417 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9418 if test -n "$libltdl_cv_shlibext"; then
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9422 _ACEOF
9423
9424 fi
9425
9426
9427 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9428 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_sys_search_path+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9433 fi
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9436 if test -n "$libltdl_cv_sys_search_path"; then
9437   sys_search_path=
9438   for dir in $libltdl_cv_sys_search_path; do
9439     if test -z "$sys_search_path"; then
9440       sys_search_path="$dir"
9441     else
9442       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9443     fi
9444   done
9445
9446 cat >>confdefs.h <<_ACEOF
9447 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9448 _ACEOF
9449
9450 fi
9451
9452 { echo "$as_me:$LINENO: checking for objdir" >&5
9453 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_objdir+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   libltdl_cv_objdir="$objdir"
9458   if test -n "$objdir"; then
9459     :
9460   else
9461     rm -f .libs 2>/dev/null
9462     mkdir .libs 2>/dev/null
9463     if test -d .libs; then
9464       libltdl_cv_objdir=.libs
9465     else
9466       # MS-DOS does not allow filenames that begin with a dot.
9467       libltdl_cv_objdir=_libs
9468     fi
9469   rmdir .libs 2>/dev/null
9470   fi
9471
9472 fi
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9475
9476 cat >>confdefs.h <<_ACEOF
9477 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9478 _ACEOF
9479
9480
9481
9482
9483
9484
9485 # Check for command to grab the raw symbol name followed by C symbol from nm.
9486 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491
9492 # These are sane defaults that work on at least a few old systems.
9493 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9494
9495 # Character class describing NM global symbol codes.
9496 symcode='[BCDEGRST]'
9497
9498 # Regexp to match symbols that can be accessed directly from C.
9499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9500
9501 # Transform an extracted symbol line into a proper C declaration
9502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9503
9504 # Transform an extracted symbol line into symbol name and symbol address
9505 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'"
9506
9507 # Define system-specific variables.
9508 case $host_os in
9509 aix*)
9510   symcode='[BCDT]'
9511   ;;
9512 cygwin* | mingw* | pw32*)
9513   symcode='[ABCDGISTW]'
9514   ;;
9515 hpux*) # Its linker distinguishes data from code symbols
9516   if test "$host_cpu" = ia64; then
9517     symcode='[ABCDEGRST]'
9518   fi
9519   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520   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'"
9521   ;;
9522 linux*)
9523   if test "$host_cpu" = ia64; then
9524     symcode='[ABCDGIRSTW]'
9525     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526     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'"
9527   fi
9528   ;;
9529 irix* | nonstopux*)
9530   symcode='[BCDEGRST]'
9531   ;;
9532 osf*)
9533   symcode='[BCDEGQRST]'
9534   ;;
9535 solaris*)
9536   symcode='[BDRT]'
9537   ;;
9538 sco3.2v5*)
9539   symcode='[DT]'
9540   ;;
9541 sysv4.2uw2*)
9542   symcode='[DT]'
9543   ;;
9544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9545   symcode='[ABDT]'
9546   ;;
9547 sysv4)
9548   symcode='[DFNSTU]'
9549   ;;
9550 esac
9551
9552 # Handle CRLF in mingw tool chain
9553 opt_cr=
9554 case $build_os in
9555 mingw*)
9556   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9557   ;;
9558 esac
9559
9560 # If we're using GNU nm, then use its standard symbol codes.
9561 case `$NM -V 2>&1` in
9562 *GNU* | *'with BFD'*)
9563   symcode='[ABCDGIRSTW]' ;;
9564 esac
9565
9566 # Try without a prefix undercore, then with it.
9567 for ac_symprfx in "" "_"; do
9568
9569   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570   symxfrm="\\1 $ac_symprfx\\2 \\2"
9571
9572   # Write the raw and C identifiers.
9573   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9574
9575   # Check to see that the pipe works correctly.
9576   pipe_works=no
9577
9578   rm -f conftest*
9579   cat > conftest.$ac_ext <<EOF
9580 #ifdef __cplusplus
9581 extern "C" {
9582 #endif
9583 char nm_test_var;
9584 void nm_test_func(){}
9585 #ifdef __cplusplus
9586 }
9587 #endif
9588 int main(){nm_test_var='a';nm_test_func();return(0);}
9589 EOF
9590
9591   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592   (eval $ac_compile) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; then
9596     # Now try to grab the symbols.
9597     nlist=conftest.nm
9598     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } && test -s "$nlist"; then
9603       # Try sorting and uniquifying the output.
9604       if sort "$nlist" | uniq > "$nlist"T; then
9605         mv -f "$nlist"T "$nlist"
9606       else
9607         rm -f "$nlist"T
9608       fi
9609
9610       # Make sure that we snagged all the symbols we need.
9611       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613           cat <<EOF > conftest.$ac_ext
9614 #ifdef __cplusplus
9615 extern "C" {
9616 #endif
9617
9618 EOF
9619           # Now generate the symbol file.
9620           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9621
9622           cat <<EOF >> conftest.$ac_ext
9623 #if defined (__STDC__) && __STDC__
9624 # define lt_ptr_t void *
9625 #else
9626 # define lt_ptr_t char *
9627 # define const
9628 #endif
9629
9630 /* The mapping between symbol names and symbols. */
9631 const struct {
9632   const char *name;
9633   lt_ptr_t address;
9634 }
9635 lt_preloaded_symbols[] =
9636 {
9637 EOF
9638           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639           cat <<\EOF >> conftest.$ac_ext
9640   {0, (lt_ptr_t) 0}
9641 };
9642
9643 #ifdef __cplusplus
9644 }
9645 #endif
9646 EOF
9647           # Now try linking the two files.
9648           mv conftest.$ac_objext conftstm.$ac_objext
9649           lt_save_LIBS="$LIBS"
9650           lt_save_CFLAGS="$CFLAGS"
9651           LIBS="conftstm.$ac_objext"
9652           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654   (eval $ac_link) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9658             pipe_works=yes
9659           fi
9660           LIBS="$lt_save_LIBS"
9661           CFLAGS="$lt_save_CFLAGS"
9662         else
9663           echo "cannot find nm_test_func in $nlist" >&5
9664         fi
9665       else
9666         echo "cannot find nm_test_var in $nlist" >&5
9667       fi
9668     else
9669       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9670     fi
9671   else
9672     echo "$progname: failed program was:" >&5
9673     cat conftest.$ac_ext >&5
9674   fi
9675   rm -f conftest* conftst*
9676
9677   # Do not use the global_symbol_pipe unless it works.
9678   if test "$pipe_works" = yes; then
9679     break
9680   else
9681     lt_cv_sys_global_symbol_pipe=
9682   fi
9683 done
9684
9685 fi
9686
9687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688   lt_cv_sys_global_symbol_to_cdecl=
9689 fi
9690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9691   { echo "$as_me:$LINENO: result: failed" >&5
9692 echo "${ECHO_T}failed" >&6; }
9693 else
9694   { echo "$as_me:$LINENO: result: ok" >&5
9695 echo "${ECHO_T}ok" >&6; }
9696 fi
9697
9698
9699 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9701 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705     libltdl_cv_preloaded_symbols=yes
9706   else
9707     libltdl_cv_preloaded_symbols=no
9708   fi
9709
9710 fi
9711 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9713 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9714
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_PRELOADED_SYMBOLS 1
9717 _ACEOF
9718
9719 fi
9720
9721 LIBADD_DL=
9722
9723 ac_ext=c
9724 ac_cpp='$CPP $CPPFLAGS'
9725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728
9729
9730 { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9743 #define shl_load innocuous_shl_load
9744
9745 /* System header to define __stub macros and hopefully few prototypes,
9746     which can conflict with char shl_load (); below.
9747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748     <limits.h> exists even on freestanding compilers.  */
9749
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9755
9756 #undef shl_load
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759    Use char because int might match the return type of a GCC
9760    builtin and then its argument prototype would still apply.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char shl_load ();
9765 /* The GNU C library defines this for functions which it implements
9766     to always fail with ENOSYS.  Some functions are actually named
9767     something starting with __ and the normal name is an alias.  */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9769 choke me
9770 #endif
9771
9772 int
9773 main ()
9774 {
9775 return shl_load ();
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_link") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } &&
9794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795   { (case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_try") 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_try") 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814   ac_cv_func_shl_load=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819         ac_cv_func_shl_load=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext \
9823       conftest$ac_exeext conftest.$ac_ext
9824 fi
9825 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9827 if test $ac_cv_func_shl_load = yes; then
9828
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9831 _ACEOF
9832
9833 else
9834   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldld  $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any GCC internal prototype to avoid an error.
9849    Use char because int might match the return type of a GCC
9850    builtin and then its argument prototype would still apply.  */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char shl_load ();
9855 int
9856 main ()
9857 {
9858 return shl_load ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_lib_dld_shl_load=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         ac_cv_lib_dld_shl_load=no
9903 fi
9904
9905 rm -f core conftest.err conftest.$ac_objext \
9906       conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9911 if test $ac_cv_lib_dld_shl_load = yes; then
9912
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SHL_LOAD 1
9915 _ACEOF
9916
9917         LIBADD_DL="$LIBADD_DL -ldld"
9918 else
9919   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldl  $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dlopen ();
9940 int
9941 main ()
9942 {
9943 return dlopen ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963   { (case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_try") 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_try") 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_lib_dl_dlopen=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987         ac_cv_lib_dl_dlopen=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext \
9991       conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996 if test $ac_cv_lib_dl_dlopen = yes; then
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_LIBDL 1
10000 _ACEOF
10001
10002                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10003 else
10004   cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010 #if HAVE_DLFCN_H
10011 #  include <dlfcn.h>
10012 #endif
10013
10014 int
10015 main ()
10016 {
10017 dlopen(0, 0);
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_link") 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } &&
10036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; } &&
10046          { ac_try='test -s conftest$ac_exeext'
10047   { (case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052   (eval "$ac_try") 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10059 _ACEOF
10060  libltdl_cv_func_dlopen="yes"
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lsvld  $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dlopen ();
10086 int
10087 main ()
10088 {
10089 return dlopen ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_link") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109   { (case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_try") 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; } &&
10118          { ac_try='test -s conftest$ac_exeext'
10119   { (case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_try") 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_lib_svld_dlopen=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133         ac_cv_lib_svld_dlopen=no
10134 fi
10135
10136 rm -f core conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_LIBDL 1
10146 _ACEOF
10147
10148                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10149 else
10150   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld  $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165    Use char because int might match the return type of a GCC
10166    builtin and then its argument prototype would still apply.  */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dld_link ();
10171 int
10172 main ()
10173 {
10174 return dld_link ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_lib_dld_dld_link=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218         ac_cv_lib_dld_dld_link=no
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext \
10222       conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10224 fi
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10227 if test $ac_cv_lib_dld_dld_link = yes; then
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_DLD 1
10231 _ACEOF
10232
10233                 LIBADD_DL="$LIBADD_DL -ldld"
10234 else
10235   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10237 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10248 #define _dyld_func_lookup innocuous__dyld_func_lookup
10249
10250 /* System header to define __stub macros and hopefully few prototypes,
10251     which can conflict with char _dyld_func_lookup (); below.
10252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253     <limits.h> exists even on freestanding compilers.  */
10254
10255 #ifdef __STDC__
10256 # include <limits.h>
10257 #else
10258 # include <assert.h>
10259 #endif
10260
10261 #undef _dyld_func_lookup
10262
10263 /* Override any GCC internal prototype to avoid an error.
10264    Use char because int might match the return type of a GCC
10265    builtin and then its argument prototype would still apply.  */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char _dyld_func_lookup ();
10270 /* The GNU C library defines this for functions which it implements
10271     to always fail with ENOSYS.  Some functions are actually named
10272     something starting with __ and the normal name is an alias.  */
10273 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10274 choke me
10275 #endif
10276
10277 int
10278 main ()
10279 {
10280 return _dyld_func_lookup ();
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_link") 2>conftest.er1
10293   ac_status=$?
10294   grep -v '^ *+' conftest.er1 >conftest.err
10295   rm -f conftest.er1
10296   cat conftest.err >&5
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300   { (case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_try") 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_try") 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   ac_cv_func__dyld_func_lookup=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324         ac_cv_func__dyld_func_lookup=no
10325 fi
10326
10327 rm -f core conftest.err conftest.$ac_objext \
10328       conftest$ac_exeext conftest.$ac_ext
10329 fi
10330 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10332 if test $ac_cv_func__dyld_func_lookup = yes; then
10333
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_DYLD 1
10336 _ACEOF
10337
10338 fi
10339
10340
10341 fi
10342
10343
10344 fi
10345
10346
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext \
10350       conftest$ac_exeext conftest.$ac_ext
10351
10352 fi
10353
10354
10355 fi
10356
10357
10358 fi
10359
10360
10361 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10362 then
10363   lt_save_LIBS="$LIBS"
10364   LIBS="$LIBS $LIBADD_DL"
10365
10366 for ac_func in dlerror
10367 do
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h.  */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h.  */
10380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10382 #define $ac_func innocuous_$ac_func
10383
10384 /* System header to define __stub macros and hopefully few prototypes,
10385     which can conflict with char $ac_func (); below.
10386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387     <limits.h> exists even on freestanding compilers.  */
10388
10389 #ifdef __STDC__
10390 # include <limits.h>
10391 #else
10392 # include <assert.h>
10393 #endif
10394
10395 #undef $ac_func
10396
10397 /* Override any GCC internal prototype to avoid an error.
10398    Use char because int might match the return type of a GCC
10399    builtin and then its argument prototype would still apply.  */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char $ac_func ();
10404 /* The GNU C library defines this for functions which it implements
10405     to always fail with ENOSYS.  Some functions are actually named
10406     something starting with __ and the normal name is an alias.  */
10407 #if defined __stub_$ac_func || defined __stub___$ac_func
10408 choke me
10409 #endif
10410
10411 int
10412 main ()
10413 {
10414 return $ac_func ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_link") 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } &&
10433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434   { (case "(($ac_try" in
10435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436   *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439   (eval "$ac_try") 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; } &&
10443          { ac_try='test -s conftest$ac_exeext'
10444   { (case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_try") 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; }; then
10453   eval "$as_ac_var=yes"
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458         eval "$as_ac_var=no"
10459 fi
10460
10461 rm -f core conftest.err conftest.$ac_objext \
10462       conftest$ac_exeext conftest.$ac_ext
10463 fi
10464 ac_res=`eval echo '${'$as_ac_var'}'`
10465                { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468   cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470 _ACEOF
10471
10472 fi
10473 done
10474
10475   LIBS="$lt_save_LIBS"
10476 fi
10477 ac_ext=c
10478 ac_cpp='$CPP $CPPFLAGS'
10479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10482
10483
10484
10485 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10487 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   ac_cv_sys_symbol_underscore=no
10491   cat > conftest.$ac_ext <<EOF
10492 void nm_test_func(){}
10493 int main(){nm_test_func;return 0;}
10494 EOF
10495   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496   (eval $ac_compile) 2>&5
10497   ac_status=$?
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); }; then
10500     # Now try to grab the symbols.
10501     ac_nlist=conftest.nm
10502     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } && test -s "$ac_nlist"; then
10507       # See whether the symbols have a leading underscore.
10508       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509         ac_cv_sys_symbol_underscore=yes
10510       else
10511         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10512           :
10513         else
10514           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10515         fi
10516       fi
10517     else
10518       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519     fi
10520   else
10521     echo "configure: failed program was:" >&5
10522     cat conftest.c >&5
10523   fi
10524   rm -rf conftest*
10525
10526 fi
10527 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10529
10530
10531 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532   if test x"$libltdl_cv_func_dlopen" = xyes ||
10533      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10534         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10536 if test "${libltdl_cv_need_uscore+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539   libltdl_cv_need_uscore=unknown
10540           save_LIBS="$LIBS"
10541           LIBS="$LIBS $LIBADD_DL"
10542           if test "$cross_compiling" = yes; then :
10543   libltdl_cv_need_uscore=cross
10544 else
10545   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546   lt_status=$lt_dlunknown
10547   cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10550
10551 #if HAVE_DLFCN_H
10552 #include <dlfcn.h>
10553 #endif
10554
10555 #include <stdio.h>
10556
10557 #ifdef RTLD_GLOBAL
10558 #  define LT_DLGLOBAL           RTLD_GLOBAL
10559 #else
10560 #  ifdef DL_GLOBAL
10561 #    define LT_DLGLOBAL         DL_GLOBAL
10562 #  else
10563 #    define LT_DLGLOBAL         0
10564 #  endif
10565 #endif
10566
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568    find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10570 #  ifdef RTLD_LAZY
10571 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10572 #  else
10573 #    ifdef DL_LAZY
10574 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10575 #    else
10576 #      ifdef RTLD_NOW
10577 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10578 #      else
10579 #        ifdef DL_NOW
10580 #          define LT_DLLAZY_OR_NOW      DL_NOW
10581 #        else
10582 #          define LT_DLLAZY_OR_NOW      0
10583 #        endif
10584 #      endif
10585 #    endif
10586 #  endif
10587 #endif
10588
10589 #ifdef __cplusplus
10590 extern "C" void exit (int);
10591 #endif
10592
10593 void fnord() { int i=42;}
10594 int main ()
10595 {
10596   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597   int status = $lt_dlunknown;
10598
10599   if (self)
10600     {
10601       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10602       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603       /* dlclose (self); */
10604     }
10605   else
10606     puts (dlerror ());
10607
10608     exit (status);
10609 }
10610 EOF
10611   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616     (./conftest; exit; ) >&5 2>/dev/null
10617     lt_status=$?
10618     case x$lt_status in
10619       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10621       x$lt_dlunknown|x*)  ;;
10622     esac
10623   else :
10624     # compilation failed
10625
10626   fi
10627 fi
10628 rm -fr conftest*
10629
10630           LIBS="$save_LIBS"
10631
10632 fi
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10635   fi
10636 fi
10637
10638 if test x"$libltdl_cv_need_uscore" = xyes; then
10639
10640 cat >>confdefs.h <<\_ACEOF
10641 #define NEED_USCORE 1
10642 _ACEOF
10643
10644 fi
10645
10646
10647 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10649 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   # PORTME does your system automatically load deplibs for dlopen?
10653   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654   # For now, we just catch OSes we know something about -- in the
10655   # future, we'll try test this programmatically.
10656   libltdl_cv_sys_dlopen_deplibs=unknown
10657   case "$host_os" in
10658   aix3*|aix4.1.*|aix4.2.*)
10659     # Unknown whether this is true for these versions of AIX, but
10660     # we want this `case' here to explicitly catch those versions.
10661     libltdl_cv_sys_dlopen_deplibs=unknown
10662     ;;
10663   aix[45]*)
10664     libltdl_cv_sys_dlopen_deplibs=yes
10665     ;;
10666   darwin*)
10667     # Assuming the user has installed a libdl from somewhere, this is true
10668     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669     libltdl_cv_sys_dlopen_deplibs=yes
10670     ;;
10671   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672     # GNU and its variants, using gnu ld.so (Glibc)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   hpux10*|hpux11*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   interix*)
10679     libltdl_cv_sys_dlopen_deplibs=yes
10680     ;;
10681   irix[12345]*|irix6.[01]*)
10682     # Catch all versions of IRIX before 6.2, and indicate that we don't
10683     # know how it worked for any of those versions.
10684     libltdl_cv_sys_dlopen_deplibs=unknown
10685     ;;
10686   irix*)
10687     # The case above catches anything before 6.2, and it's known that
10688     # at 6.2 and later dlopen does load deplibs.
10689     libltdl_cv_sys_dlopen_deplibs=yes
10690     ;;
10691   netbsd*)
10692     libltdl_cv_sys_dlopen_deplibs=yes
10693     ;;
10694   openbsd*)
10695     libltdl_cv_sys_dlopen_deplibs=yes
10696     ;;
10697   osf[1234]*)
10698     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699     # it did *not* use an RPATH in a shared library to find objects the
10700     # library depends on, so we explicitly say `no'.
10701     libltdl_cv_sys_dlopen_deplibs=no
10702     ;;
10703   osf5.0|osf5.0a|osf5.1)
10704     # dlopen *does* load deplibs and with the right loader patch applied
10705     # it even uses RPATH in a shared library to search for shared objects
10706     # that the library depends on, but there's no easy way to know if that
10707     # patch is installed.  Since this is the case, all we can really
10708     # say is unknown -- it depends on the patch being installed.  If
10709     # it is, this changes to `yes'.  Without it, it would be `no'.
10710     libltdl_cv_sys_dlopen_deplibs=unknown
10711     ;;
10712   osf*)
10713     # the two cases above should catch all versions of osf <= 5.1.  Read
10714     # the comments above for what we know about them.
10715     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716     # is used to find them so we can finally say `yes'.
10717     libltdl_cv_sys_dlopen_deplibs=yes
10718     ;;
10719   solaris*)
10720     libltdl_cv_sys_dlopen_deplibs=yes
10721     ;;
10722   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723     libltdl_cv_sys_dlopen_deplibs=yes
10724     ;;
10725   esac
10726
10727 fi
10728 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10730 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define LTDL_DLOPEN_DEPLIBS 1
10734 _ACEOF
10735
10736 fi
10737
10738
10739 for ac_header in argz.h
10740 do
10741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746   echo $ECHO_N "(cached) $ECHO_C" >&6
10747 fi
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749                { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10751 else
10752   # Is the header compilable?
10753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 $ac_includes_default
10762 #include <$ac_header>
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_compile") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } &&
10778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779   { (case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_try") 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; } &&
10788          { ac_try='test -s conftest.$ac_objext'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798   ac_header_compiler=yes
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         ac_header_compiler=no
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808 echo "${ECHO_T}$ac_header_compiler" >&6; }
10809
10810 # Is the header present?
10811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <$ac_header>
10820 _ACEOF
10821 if { (ac_try="$ac_cpp conftest.$ac_ext"
10822 case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } >/dev/null; then
10834   if test -s conftest.err; then
10835     ac_cpp_err=$ac_c_preproc_warn_flag
10836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837   else
10838     ac_cpp_err=
10839   fi
10840 else
10841   ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844   ac_header_preproc=yes
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849   ac_header_preproc=no
10850 fi
10851
10852 rm -f conftest.err conftest.$ac_ext
10853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854 echo "${ECHO_T}$ac_header_preproc" >&6; }
10855
10856 # So?  What about this header?
10857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858   yes:no: )
10859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863     ac_header_preproc=yes
10864     ;;
10865   no:yes:* )
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10878     ( cat <<\_ASBOX
10879 ## ------------------------------------ ##
10880 ## Report this to http://llvm.org/bugs/ ##
10881 ## ------------------------------------ ##
10882 _ASBOX
10883      ) | sed "s/^/$as_me: WARNING:     /" >&2
10884     ;;
10885 esac
10886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   eval "$as_ac_Header=\$ac_header_preproc"
10892 fi
10893 ac_res=`eval echo '${'$as_ac_Header'}'`
10894                { echo "$as_me:$LINENO: result: $ac_res" >&5
10895 echo "${ECHO_T}$ac_res" >&6; }
10896
10897 fi
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 fi
10904
10905 done
10906
10907
10908 { echo "$as_me:$LINENO: checking for error_t" >&5
10909 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10910 if test "${ac_cv_type_error_t+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 #if HAVE_ARGZ_H
10920 #  include <argz.h>
10921 #endif
10922
10923 typedef error_t ac__type_new_;
10924 int
10925 main ()
10926 {
10927 if ((ac__type_new_ *) 0)
10928   return 0;
10929 if (sizeof (ac__type_new_))
10930   return 0;
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   ac_cv_type_error_t=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         ac_cv_type_error_t=no
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 fi
10979 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10981 if test $ac_cv_type_error_t = yes; then
10982
10983 cat >>confdefs.h <<_ACEOF
10984 #define HAVE_ERROR_T 1
10985 _ACEOF
10986
10987
10988 else
10989
10990 cat >>confdefs.h <<\_ACEOF
10991 #define error_t int
10992 _ACEOF
10993
10994 fi
10995
10996
10997
10998
10999
11000
11001
11002 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11003 do
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11018 #define $ac_func innocuous_$ac_func
11019
11020 /* System header to define __stub macros and hopefully few prototypes,
11021     which can conflict with char $ac_func (); below.
11022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023     <limits.h> exists even on freestanding compilers.  */
11024
11025 #ifdef __STDC__
11026 # include <limits.h>
11027 #else
11028 # include <assert.h>
11029 #endif
11030
11031 #undef $ac_func
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034    Use char because int might match the return type of a GCC
11035    builtin and then its argument prototype would still apply.  */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char $ac_func ();
11040 /* The GNU C library defines this for functions which it implements
11041     to always fail with ENOSYS.  Some functions are actually named
11042     something starting with __ and the normal name is an alias.  */
11043 #if defined __stub_$ac_func || defined __stub___$ac_func
11044 choke me
11045 #endif
11046
11047 int
11048 main ()
11049 {
11050 return $ac_func ();
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062   (eval "$ac_link") 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070   { (case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_try") 2>&5
11076   ac_status=$?
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); }; } &&
11079          { ac_try='test -s conftest$ac_exeext'
11080   { (case "(($ac_try" in
11081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082   *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085   (eval "$ac_try") 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   eval "$as_ac_var=yes"
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094         eval "$as_ac_var=no"
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext \
11098       conftest$ac_exeext conftest.$ac_ext
11099 fi
11100 ac_res=`eval echo '${'$as_ac_var'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104   cat >>confdefs.h <<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106 _ACEOF
11107
11108 fi
11109 done
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133 for ac_header in errno.h malloc.h memory.h unistd.h
11134 do
11135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 fi
11142 ac_res=`eval echo '${'$as_ac_Header'}'`
11143                { echo "$as_me:$LINENO: result: $ac_res" >&5
11144 echo "${ECHO_T}$ac_res" >&6; }
11145 else
11146   # Is the header compilable?
11147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155 $ac_includes_default
11156 #include <$ac_header>
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (ac_try="$ac_compile"
11160 case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_compile") 2>conftest.er1
11166   ac_status=$?
11167   grep -v '^ *+' conftest.er1 >conftest.err
11168   rm -f conftest.er1
11169   cat conftest.err >&5
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173   { (case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_try") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; } &&
11182          { ac_try='test -s conftest.$ac_objext'
11183   { (case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_try") 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   ac_header_compiler=yes
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197         ac_header_compiler=no
11198 fi
11199
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11202 echo "${ECHO_T}$ac_header_compiler" >&6; }
11203
11204 # Is the header present?
11205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h.  */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h.  */
11213 #include <$ac_header>
11214 _ACEOF
11215 if { (ac_try="$ac_cpp conftest.$ac_ext"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } >/dev/null; then
11228   if test -s conftest.err; then
11229     ac_cpp_err=$ac_c_preproc_warn_flag
11230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11231   else
11232     ac_cpp_err=
11233   fi
11234 else
11235   ac_cpp_err=yes
11236 fi
11237 if test -z "$ac_cpp_err"; then
11238   ac_header_preproc=yes
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243   ac_header_preproc=no
11244 fi
11245
11246 rm -f conftest.err conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11248 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249
11250 # So?  What about this header?
11251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252   yes:no: )
11253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11257     ac_header_preproc=yes
11258     ;;
11259   no:yes:* )
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11272     ( cat <<\_ASBOX
11273 ## ------------------------------------ ##
11274 ## Report this to http://llvm.org/bugs/ ##
11275 ## ------------------------------------ ##
11276 _ASBOX
11277      ) | sed "s/^/$as_me: WARNING:     /" >&2
11278     ;;
11279 esac
11280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   eval "$as_ac_Header=\$ac_header_preproc"
11286 fi
11287 ac_res=`eval echo '${'$as_ac_Header'}'`
11288                { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290
11291 fi
11292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11293   cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11295 _ACEOF
11296
11297 fi
11298
11299 done
11300
11301
11302 for ac_header in mach-o/dyld.h
11303 do
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 fi
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312                { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 else
11315   # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_compile") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; } &&
11351          { ac_try='test -s conftest.$ac_objext'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   ac_header_compiler=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_header_compiler=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11372
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #include <$ac_header>
11383 _ACEOF
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null; then
11397   if test -s conftest.err; then
11398     ac_cpp_err=$ac_c_preproc_warn_flag
11399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400   else
11401     ac_cpp_err=
11402   fi
11403 else
11404   ac_cpp_err=yes
11405 fi
11406 if test -z "$ac_cpp_err"; then
11407   ac_header_preproc=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412   ac_header_preproc=no
11413 fi
11414
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419 # So?  What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421   yes:no: )
11422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426     ac_header_preproc=yes
11427     ;;
11428   no:yes:* )
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441     ( cat <<\_ASBOX
11442 ## ------------------------------------ ##
11443 ## Report this to http://llvm.org/bugs/ ##
11444 ## ------------------------------------ ##
11445 _ASBOX
11446      ) | sed "s/^/$as_me: WARNING:     /" >&2
11447     ;;
11448 esac
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   eval "$as_ac_Header=\$ac_header_preproc"
11455 fi
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457                { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11459
11460 fi
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 fi
11467
11468 done
11469
11470
11471
11472
11473
11474 for ac_func in closedir opendir readdir
11475 do
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11490 #define $ac_func innocuous_$ac_func
11491
11492 /* System header to define __stub macros and hopefully few prototypes,
11493     which can conflict with char $ac_func (); below.
11494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495     <limits.h> exists even on freestanding compilers.  */
11496
11497 #ifdef __STDC__
11498 # include <limits.h>
11499 #else
11500 # include <assert.h>
11501 #endif
11502
11503 #undef $ac_func
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char $ac_func ();
11512 /* The GNU C library defines this for functions which it implements
11513     to always fail with ENOSYS.  Some functions are actually named
11514     something starting with __ and the normal name is an alias.  */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11516 choke me
11517 #endif
11518
11519 int
11520 main ()
11521 {
11522 return $ac_func ();
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_link") 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542   { (case "(($ac_try" in
11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544   *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547   (eval "$ac_try") 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); }; } &&
11551          { ac_try='test -s conftest$ac_exeext'
11552   { (case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_try") 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   eval "$as_ac_var=yes"
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566         eval "$as_ac_var=no"
11567 fi
11568
11569 rm -f core conftest.err conftest.$ac_objext \
11570       conftest$ac_exeext conftest.$ac_ext
11571 fi
11572 ac_res=`eval echo '${'$as_ac_var'}'`
11573                { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576   cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581 done
11582
11583
11584
11585 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11586 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11587
11588 ICC=no
11589 IXX=no
11590 case $CC in
11591   icc*|icpc*)
11592     ICC=yes
11593     IXX=yes
11594     ;;
11595    *)
11596     ;;
11597 esac
11598
11599 if test "$GCC" != "yes" && test "$ICC" != "yes"
11600 then
11601   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11602 echo "$as_me: error: gcc|icc required but not found" >&2;}
11603    { (exit 1); exit 1; }; }
11604 fi
11605
11606 if test "$GXX" != "yes" && test "$IXX" != "yes"
11607 then
11608   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11609 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11610    { (exit 1); exit 1; }; }
11611 fi
11612
11613 if test "$GCC" = "yes"
11614 then
11615   cat >conftest.$ac_ext <<_ACEOF
11616
11617   /* confdefs.h.  */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h.  */
11622
11623     #if !defined(__GNUC__) || __GNUC__ < 3
11624     #error Unsupported GCC version
11625     #endif
11626
11627
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (ac_try="$ac_compile"
11631 case "(($ac_try" in
11632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633   *) ac_try_echo=$ac_try;;
11634 esac
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636   (eval "$ac_compile") 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644   { (case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_try") 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; } &&
11653          { ac_try='test -s conftest.$ac_objext'
11654   { (case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_try") 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   :
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11669 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11670    { (exit 1); exit 1; }; }
11671 fi
11672
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 fi
11675
11676 if test -z "$llvm_cv_gnu_make_command"
11677 then
11678   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11679 echo "$as_me: error: GNU Make required but not found" >&2;}
11680    { (exit 1); exit 1; }; }
11681 fi
11682
11683 { echo "$as_me:$LINENO: result: ok" >&5
11684 echo "${ECHO_T}ok" >&6; }
11685
11686 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11687 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11688 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11689
11690 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11691
11692 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11693
11694
11695 NO_UNINITIALIZED=
11696 NO_MAYBE_UNINITIALIZED=
11697 if test "$GXX" = "yes"
11698 then
11699   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11700
11701         if test -z "$NO_MAYBE_UNINITIALIZED"
11702   then
11703     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11704
11705   fi
11706 fi
11707 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11708 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11709
11710
11711 # Check whether --with-python was given.
11712 if test "${with_python+set}" = set; then
11713   withval=$with_python; PYTHON="$withval"
11714 fi
11715
11716
11717 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11718   { echo "$as_me:$LINENO: checking for python" >&5
11719 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11720   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11721 echo "${ECHO_T}user defined: $with_python" >&6; }
11722 else
11723   if test -n "$PYTHON" ; then
11724     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11725 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11726   fi
11727
11728   # Extract the first word of "python python2 python26", so it can be a program name with args.
11729 set dummy python python2 python26; ac_word=$2
11730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11732 if test "${ac_cv_path_PYTHON+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   case $PYTHON in
11736   [\\/]* | ?:[\\/]*)
11737   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11738   ;;
11739   *)
11740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743   IFS=$as_save_IFS
11744   test -z "$as_dir" && as_dir=.
11745   for ac_exec_ext in '' $ac_executable_extensions; do
11746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11747     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11749     break 2
11750   fi
11751 done
11752 done
11753 IFS=$as_save_IFS
11754
11755   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11756 echo "${ECHO_T}not found" >&6; }
11757                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11758 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11759    { (exit 1); exit 1; }; }"
11760   ;;
11761 esac
11762 fi
11763 PYTHON=$ac_cv_path_PYTHON
11764 if test -n "$PYTHON"; then
11765   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11766 echo "${ECHO_T}$PYTHON" >&6; }
11767 else
11768   { echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6; }
11770 fi
11771
11772
11773 fi
11774
11775 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11776 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11777 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11778 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11779 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11780 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11781 if   test "$ac_python_version_major" -eq "2" \
11782    && test "$ac_python_version_minor" -ge "5" ; then
11783   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11784 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11785 else
11786   { echo "$as_me:$LINENO: result: not found" >&5
11787 echo "${ECHO_T}not found" >&6; }
11788   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11789 See \`config.log' for more details." >&5
11790 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11791 See \`config.log' for more details." >&2;}
11792    { (exit 1); exit 1; }; }
11793 fi
11794
11795
11796
11797 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11798 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11799 if test "${ac_cv_lib_m_sin+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lm  $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810
11811 /* Override any GCC internal prototype to avoid an error.
11812    Use char because int might match the return type of a GCC
11813    builtin and then its argument prototype would still apply.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char sin ();
11818 int
11819 main ()
11820 {
11821 return sin ();
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_link") 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest$ac_exeext'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }; then
11860   ac_cv_lib_m_sin=yes
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865         ac_cv_lib_m_sin=no
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext \
11869       conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11873 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11874 if test $ac_cv_lib_m_sin = yes; then
11875   cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBM 1
11877 _ACEOF
11878
11879   LIBS="-lm $LIBS"
11880
11881 fi
11882
11883 if test "$llvm_cv_os_type" = "MingW" ; then
11884
11885 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11886 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11887 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-limagehlp  $LIBS"
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898
11899
11900 int
11901 main ()
11902 {
11903 return main ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_lib_imagehlp_main=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         ac_cv_lib_imagehlp_main=no
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11955 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11956 if test $ac_cv_lib_imagehlp_main = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define HAVE_LIBIMAGEHLP 1
11959 _ACEOF
11960
11961   LIBS="-limagehlp $LIBS"
11962
11963 fi
11964
11965
11966 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11967 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11968 if test "${ac_cv_lib_psapi_main+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-lpsapi  $LIBS"
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979
11980
11981 int
11982 main ()
11983 {
11984 return main ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_link") 2>conftest.er1
11997   ac_status=$?
11998   grep -v '^ *+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12004   { (case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_try") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; } &&
12013          { ac_try='test -s conftest$ac_exeext'
12014   { (case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_try") 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; }; then
12023   ac_cv_lib_psapi_main=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         ac_cv_lib_psapi_main=no
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext \
12032       conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12036 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12037 if test $ac_cv_lib_psapi_main = yes; then
12038   cat >>confdefs.h <<_ACEOF
12039 #define HAVE_LIBPSAPI 1
12040 _ACEOF
12041
12042   LIBS="-lpsapi $LIBS"
12043
12044 fi
12045
12046 fi
12047
12048 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12049 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12050 if test "${ac_cv_search_dlopen+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   ac_func_search_save_LIBS=$LIBS
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 /* Override any GCC internal prototype to avoid an error.
12062    Use char because int might match the return type of a GCC
12063    builtin and then its argument prototype would still apply.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char dlopen ();
12068 int
12069 main ()
12070 {
12071 return dlopen ();
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 for ac_lib in '' dl; do
12077   if test -z "$ac_lib"; then
12078     ac_res="none required"
12079   else
12080     ac_res=-l$ac_lib
12081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12082   fi
12083   rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (ac_try="$ac_link"
12085 case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_link") 2>conftest.er1
12091   ac_status=$?
12092   grep -v '^ *+' conftest.er1 >conftest.err
12093   rm -f conftest.er1
12094   cat conftest.err >&5
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } &&
12097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098   { (case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103   (eval "$ac_try") 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; } &&
12107          { ac_try='test -s conftest$ac_exeext'
12108   { (case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_try") 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; }; then
12117   ac_cv_search_dlopen=$ac_res
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122
12123 fi
12124
12125 rm -f core conftest.err conftest.$ac_objext \
12126       conftest$ac_exeext
12127   if test "${ac_cv_search_dlopen+set}" = set; then
12128   break
12129 fi
12130 done
12131 if test "${ac_cv_search_dlopen+set}" = set; then
12132   :
12133 else
12134   ac_cv_search_dlopen=no
12135 fi
12136 rm conftest.$ac_ext
12137 LIBS=$ac_func_search_save_LIBS
12138 fi
12139 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12141 ac_res=$ac_cv_search_dlopen
12142 if test "$ac_res" != no; then
12143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12144
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_DLOPEN 1
12147 _ACEOF
12148
12149 else
12150   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12151 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12152 fi
12153
12154
12155 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12156 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12157 if test "${ac_cv_search_clock_gettime+set}" = set; then
12158   echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160   ac_func_search_save_LIBS=$LIBS
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169    Use char because int might match the return type of a GCC
12170    builtin and then its argument prototype would still apply.  */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char clock_gettime ();
12175 int
12176 main ()
12177 {
12178 return clock_gettime ();
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 for ac_lib in '' rt; do
12184   if test -z "$ac_lib"; then
12185     ac_res="none required"
12186   else
12187     ac_res=-l$ac_lib
12188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12189   fi
12190   rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_link") 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205   { (case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210   (eval "$ac_try") 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest$ac_exeext'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_search_clock_gettime=$ac_res
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext \
12233       conftest$ac_exeext
12234   if test "${ac_cv_search_clock_gettime+set}" = set; then
12235   break
12236 fi
12237 done
12238 if test "${ac_cv_search_clock_gettime+set}" = set; then
12239   :
12240 else
12241   ac_cv_search_clock_gettime=no
12242 fi
12243 rm conftest.$ac_ext
12244 LIBS=$ac_func_search_save_LIBS
12245 fi
12246 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12247 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12248 ac_res=$ac_cv_search_clock_gettime
12249 if test "$ac_res" != no; then
12250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12251
12252 fi
12253
12254
12255 if test "$llvm_cv_enable_libffi" = "yes" ; then
12256   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12257 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12258 if test "${ac_cv_search_ffi_call+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   ac_func_search_save_LIBS=$LIBS
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269 /* Override any GCC internal prototype to avoid an error.
12270    Use char because int might match the return type of a GCC
12271    builtin and then its argument prototype would still apply.  */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char ffi_call ();
12276 int
12277 main ()
12278 {
12279 return ffi_call ();
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 for ac_lib in '' ffi; do
12285   if test -z "$ac_lib"; then
12286     ac_res="none required"
12287   else
12288     ac_res=-l$ac_lib
12289     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12290   fi
12291   rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_link") 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } &&
12305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12306   { (case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_try") 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; } &&
12315          { ac_try='test -s conftest$ac_exeext'
12316   { (case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_try") 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_search_ffi_call=$ac_res
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330
12331 fi
12332
12333 rm -f core conftest.err conftest.$ac_objext \
12334       conftest$ac_exeext
12335   if test "${ac_cv_search_ffi_call+set}" = set; then
12336   break
12337 fi
12338 done
12339 if test "${ac_cv_search_ffi_call+set}" = set; then
12340   :
12341 else
12342   ac_cv_search_ffi_call=no
12343 fi
12344 rm conftest.$ac_ext
12345 LIBS=$ac_func_search_save_LIBS
12346 fi
12347 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12348 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12349 ac_res=$ac_cv_search_ffi_call
12350 if test "$ac_res" != no; then
12351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12352
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_FFI_CALL 1
12355 _ACEOF
12356
12357 else
12358   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12359 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12360    { (exit 1); exit 1; }; }
12361 fi
12362
12363 fi
12364
12365 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12366 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12367 if test "${ac_cv_search_mallinfo+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   ac_func_search_save_LIBS=$LIBS
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377
12378 /* Override any GCC internal prototype to avoid an error.
12379    Use char because int might match the return type of a GCC
12380    builtin and then its argument prototype would still apply.  */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char mallinfo ();
12385 int
12386 main ()
12387 {
12388 return mallinfo ();
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 for ac_lib in '' malloc; do
12394   if test -z "$ac_lib"; then
12395     ac_res="none required"
12396   else
12397     ac_res=-l$ac_lib
12398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12399   fi
12400   rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (ac_try="$ac_link"
12402 case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_link") 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_try") 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434   ac_cv_search_mallinfo=$ac_res
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439
12440 fi
12441
12442 rm -f core conftest.err conftest.$ac_objext \
12443       conftest$ac_exeext
12444   if test "${ac_cv_search_mallinfo+set}" = set; then
12445   break
12446 fi
12447 done
12448 if test "${ac_cv_search_mallinfo+set}" = set; then
12449   :
12450 else
12451   ac_cv_search_mallinfo=no
12452 fi
12453 rm conftest.$ac_ext
12454 LIBS=$ac_func_search_save_LIBS
12455 fi
12456 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12457 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12458 ac_res=$ac_cv_search_mallinfo
12459 if test "$ac_res" != no; then
12460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12461
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_MALLINFO 1
12464 _ACEOF
12465
12466 fi
12467
12468
12469 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12470
12471 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12472 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lpthread  $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484
12485 /* Override any GCC internal prototype to avoid an error.
12486    Use char because int might match the return type of a GCC
12487    builtin and then its argument prototype would still apply.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char pthread_mutex_init ();
12492 int
12493 main ()
12494 {
12495 return pthread_mutex_init ();
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_link") 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515   { (case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_try") 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; } &&
12524          { ac_try='test -s conftest$ac_exeext'
12525   { (case "(($ac_try" in
12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527   *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530   (eval "$ac_try") 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; }; then
12534   ac_cv_lib_pthread_pthread_mutex_init=yes
12535 else
12536   echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539         ac_cv_lib_pthread_pthread_mutex_init=no
12540 fi
12541
12542 rm -f core conftest.err conftest.$ac_objext \
12543       conftest$ac_exeext conftest.$ac_ext
12544 LIBS=$ac_check_lib_save_LIBS
12545 fi
12546 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12547 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12548 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12549   cat >>confdefs.h <<_ACEOF
12550 #define HAVE_LIBPTHREAD 1
12551 _ACEOF
12552
12553   LIBS="-lpthread $LIBS"
12554
12555 fi
12556
12557   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12558 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12559 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   ac_func_search_save_LIBS=$LIBS
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 /* Override any GCC internal prototype to avoid an error.
12571    Use char because int might match the return type of a GCC
12572    builtin and then its argument prototype would still apply.  */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char pthread_mutex_lock ();
12577 int
12578 main ()
12579 {
12580 return pthread_mutex_lock ();
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 for ac_lib in '' pthread; do
12586   if test -z "$ac_lib"; then
12587     ac_res="none required"
12588   else
12589     ac_res=-l$ac_lib
12590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12591   fi
12592   rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (ac_try="$ac_link"
12594 case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_link") 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } &&
12606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12607   { (case "(($ac_try" in
12608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609   *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612   (eval "$ac_try") 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; } &&
12616          { ac_try='test -s conftest$ac_exeext'
12617   { (case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_try") 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_search_pthread_mutex_lock=$ac_res
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631
12632 fi
12633
12634 rm -f core conftest.err conftest.$ac_objext \
12635       conftest$ac_exeext
12636   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12637   break
12638 fi
12639 done
12640 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12641   :
12642 else
12643   ac_cv_search_pthread_mutex_lock=no
12644 fi
12645 rm conftest.$ac_ext
12646 LIBS=$ac_func_search_save_LIBS
12647 fi
12648 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12649 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12650 ac_res=$ac_cv_search_pthread_mutex_lock
12651 if test "$ac_res" != no; then
12652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12653
12654 cat >>confdefs.h <<\_ACEOF
12655 #define HAVE_PTHREAD_MUTEX_LOCK 1
12656 _ACEOF
12657
12658 fi
12659
12660   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12661 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12662 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   ac_func_search_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674    Use char because int might match the return type of a GCC
12675    builtin and then its argument prototype would still apply.  */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char pthread_rwlock_init ();
12680 int
12681 main ()
12682 {
12683 return pthread_rwlock_init ();
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 for ac_lib in '' pthread; do
12689   if test -z "$ac_lib"; then
12690     ac_res="none required"
12691   else
12692     ac_res=-l$ac_lib
12693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12694   fi
12695   rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_link") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest$ac_exeext'
12720   { (case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_try") 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   ac_cv_search_pthread_rwlock_init=$ac_res
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734
12735 fi
12736
12737 rm -f core conftest.err conftest.$ac_objext \
12738       conftest$ac_exeext
12739   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12740   break
12741 fi
12742 done
12743 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12744   :
12745 else
12746   ac_cv_search_pthread_rwlock_init=no
12747 fi
12748 rm conftest.$ac_ext
12749 LIBS=$ac_func_search_save_LIBS
12750 fi
12751 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12752 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12753 ac_res=$ac_cv_search_pthread_rwlock_init
12754 if test "$ac_res" != no; then
12755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12756
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_PTHREAD_RWLOCK_INIT 1
12759 _ACEOF
12760
12761 fi
12762
12763   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12764 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12765 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   ac_func_search_save_LIBS=$LIBS
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775
12776 /* Override any GCC internal prototype to avoid an error.
12777    Use char because int might match the return type of a GCC
12778    builtin and then its argument prototype would still apply.  */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char pthread_getspecific ();
12783 int
12784 main ()
12785 {
12786 return pthread_getspecific ();
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 for ac_lib in '' pthread; do
12792   if test -z "$ac_lib"; then
12793     ac_res="none required"
12794   else
12795     ac_res=-l$ac_lib
12796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12797   fi
12798   rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (ac_try="$ac_link"
12800 case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_link") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12813   { (case "(($ac_try" in
12814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815   *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818   (eval "$ac_try") 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; } &&
12822          { ac_try='test -s conftest$ac_exeext'
12823   { (case "(($ac_try" in
12824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825   *) ac_try_echo=$ac_try;;
12826 esac
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828   (eval "$ac_try") 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; }; then
12832   ac_cv_search_pthread_getspecific=$ac_res
12833 else
12834   echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext \
12841       conftest$ac_exeext
12842   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12843   break
12844 fi
12845 done
12846 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12847   :
12848 else
12849   ac_cv_search_pthread_getspecific=no
12850 fi
12851 rm conftest.$ac_ext
12852 LIBS=$ac_func_search_save_LIBS
12853 fi
12854 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12855 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12856 ac_res=$ac_cv_search_pthread_getspecific
12857 if test "$ac_res" != no; then
12858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_PTHREAD_GETSPECIFIC 1
12862 _ACEOF
12863
12864 fi
12865
12866 fi
12867
12868 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12869
12870 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12871 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12872 if test "${ac_cv_lib_z_compress2+set}" = set; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-lz  $LIBS"
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883
12884 /* Override any GCC internal prototype to avoid an error.
12885    Use char because int might match the return type of a GCC
12886    builtin and then its argument prototype would still apply.  */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char compress2 ();
12891 int
12892 main ()
12893 {
12894 return compress2 ();
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_link") 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12914   { (case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_try") 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; } &&
12923          { ac_try='test -s conftest$ac_exeext'
12924   { (case "(($ac_try" in
12925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926   *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929   (eval "$ac_try") 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; }; then
12933   ac_cv_lib_z_compress2=yes
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938         ac_cv_lib_z_compress2=no
12939 fi
12940
12941 rm -f core conftest.err conftest.$ac_objext \
12942       conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12946 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12947 if test $ac_cv_lib_z_compress2 = yes; then
12948   cat >>confdefs.h <<_ACEOF
12949 #define HAVE_LIBZ 1
12950 _ACEOF
12951
12952   LIBS="-lz $LIBS"
12953
12954 fi
12955
12956 fi
12957
12958
12959 # Check whether --with-udis86 was given.
12960 if test "${with_udis86+set}" = set; then
12961   withval=$with_udis86;
12962       USE_UDIS86=1
12963
12964       case "$withval" in
12965         /usr/lib|yes) ;;
12966         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12967       esac
12968
12969 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12970 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12971 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-ludis86  $LIBS"
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984    Use char because int might match the return type of a GCC
12985    builtin and then its argument prototype would still apply.  */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char ud_init ();
12990 int
12991 main ()
12992 {
12993 return ud_init ();
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (ac_try="$ac_link"
13000 case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_link") 2>conftest.er1
13006   ac_status=$?
13007   grep -v '^ *+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } &&
13012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013   { (case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_try") 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; } &&
13022          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   ac_cv_lib_udis86_ud_init=yes
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037         ac_cv_lib_udis86_ud_init=no
13038 fi
13039
13040 rm -f core conftest.err conftest.$ac_objext \
13041       conftest$ac_exeext conftest.$ac_ext
13042 LIBS=$ac_check_lib_save_LIBS
13043 fi
13044 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13045 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13046 if test $ac_cv_lib_udis86_ud_init = yes; then
13047   cat >>confdefs.h <<_ACEOF
13048 #define HAVE_LIBUDIS86 1
13049 _ACEOF
13050
13051   LIBS="-ludis86 $LIBS"
13052
13053 else
13054
13055         echo "Error! You need to have libudis86 around."
13056         exit -1
13057
13058 fi
13059
13060
13061 else
13062   USE_UDIS86=0
13063
13064 fi
13065
13066
13067 cat >>confdefs.h <<_ACEOF
13068 #define USE_UDIS86 $USE_UDIS86
13069 _ACEOF
13070
13071
13072
13073 # Check whether --with-oprofile was given.
13074 if test "${with_oprofile+set}" = set; then
13075   withval=$with_oprofile;
13076       USE_OPROFILE=1
13077
13078       case "$withval" in
13079         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13080         no) llvm_cv_oppath=
13081             USE_OPROFILE=0
13082  ;;
13083         *) llvm_cv_oppath="${withval}/lib/oprofile"
13084            CPPFLAGS="-I${withval}/include";;
13085       esac
13086       case $llvm_cv_os_type in
13087         Linux)
13088           if test -n "$llvm_cv_oppath" ; then
13089             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13090                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13091 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13092 if test "${ac_cv_search_bfd_init+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   ac_func_search_save_LIBS=$LIBS
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h.  */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h.  */
13102
13103 /* Override any GCC internal prototype to avoid an error.
13104    Use char because int might match the return type of a GCC
13105    builtin and then its argument prototype would still apply.  */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 char bfd_init ();
13110 int
13111 main ()
13112 {
13113 return bfd_init ();
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 for ac_lib in '' bfd; do
13119   if test -z "$ac_lib"; then
13120     ac_res="none required"
13121   else
13122     ac_res=-l$ac_lib
13123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13124   fi
13125   rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_link") 2>conftest.er1
13133   ac_status=$?
13134   grep -v '^ *+' conftest.er1 >conftest.err
13135   rm -f conftest.er1
13136   cat conftest.err >&5
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13140   { (case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_try") 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; } &&
13149          { ac_try='test -s conftest$ac_exeext'
13150   { (case "(($ac_try" in
13151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152   *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155   (eval "$ac_try") 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_cv_search_bfd_init=$ac_res
13160 else
13161   echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164
13165 fi
13166
13167 rm -f core conftest.err conftest.$ac_objext \
13168       conftest$ac_exeext
13169   if test "${ac_cv_search_bfd_init+set}" = set; then
13170   break
13171 fi
13172 done
13173 if test "${ac_cv_search_bfd_init+set}" = set; then
13174   :
13175 else
13176   ac_cv_search_bfd_init=no
13177 fi
13178 rm conftest.$ac_ext
13179 LIBS=$ac_func_search_save_LIBS
13180 fi
13181 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13182 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13183 ac_res=$ac_cv_search_bfd_init
13184 if test "$ac_res" != no; then
13185   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13186
13187 fi
13188
13189             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13190 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13191 if test "${ac_cv_search_op_open_agent+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   ac_func_search_save_LIBS=$LIBS
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h.  */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char op_open_agent ();
13209 int
13210 main ()
13211 {
13212 return op_open_agent ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 for ac_lib in '' opagent; do
13218   if test -z "$ac_lib"; then
13219     ac_res="none required"
13220   else
13221     ac_res=-l$ac_lib
13222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13223   fi
13224   rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_link") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239   { (case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_try") 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; } &&
13248          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; }; then
13258   ac_cv_search_op_open_agent=$ac_res
13259 else
13260   echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263
13264 fi
13265
13266 rm -f core conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext
13268   if test "${ac_cv_search_op_open_agent+set}" = set; then
13269   break
13270 fi
13271 done
13272 if test "${ac_cv_search_op_open_agent+set}" = set; then
13273   :
13274 else
13275   ac_cv_search_op_open_agent=no
13276 fi
13277 rm conftest.$ac_ext
13278 LIBS=$ac_func_search_save_LIBS
13279 fi
13280 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13281 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13282 ac_res=$ac_cv_search_op_open_agent
13283 if test "$ac_res" != no; then
13284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285
13286 else
13287
13288               echo "Error! You need to have libopagent around."
13289               exit -1
13290
13291 fi
13292
13293             if test "${ac_cv_header_opagent_h+set}" = set; then
13294   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13295 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13296 if test "${ac_cv_header_opagent_h+set}" = set; then
13297   echo $ECHO_N "(cached) $ECHO_C" >&6
13298 fi
13299 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13300 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13301 else
13302   # Is the header compilable?
13303 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13304 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h.  */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h.  */
13311 $ac_includes_default
13312 #include <opagent.h>
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_compile") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest.$ac_objext'
13339   { (case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_try") 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   ac_header_compiler=yes
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353         ac_header_compiler=no
13354 fi
13355
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13359
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13362 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 #include <opagent.h>
13370 _ACEOF
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } >/dev/null; then
13384   if test -s conftest.err; then
13385     ac_cpp_err=$ac_c_preproc_warn_flag
13386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13387   else
13388     ac_cpp_err=
13389   fi
13390 else
13391   ac_cpp_err=yes
13392 fi
13393 if test -z "$ac_cpp_err"; then
13394   ac_header_preproc=yes
13395 else
13396   echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399   ac_header_preproc=no
13400 fi
13401
13402 rm -f conftest.err conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13404 echo "${ECHO_T}$ac_header_preproc" >&6; }
13405
13406 # So?  What about this header?
13407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13408   yes:no: )
13409     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13410 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13412 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13413     ac_header_preproc=yes
13414     ;;
13415   no:yes:* )
13416     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13417 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13418     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13419 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13420     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13421 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13422     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13423 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13424     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13425 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13426     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13427 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13428     ( cat <<\_ASBOX
13429 ## ------------------------------------ ##
13430 ## Report this to http://llvm.org/bugs/ ##
13431 ## ------------------------------------ ##
13432 _ASBOX
13433      ) | sed "s/^/$as_me: WARNING:     /" >&2
13434     ;;
13435 esac
13436 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13437 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_opagent_h+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   ac_cv_header_opagent_h=$ac_header_preproc
13442 fi
13443 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13444 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13445
13446 fi
13447 if test $ac_cv_header_opagent_h = yes; then
13448   :
13449 else
13450
13451               echo "Error! You need to have opagent.h around."
13452               exit -1
13453
13454 fi
13455
13456
13457           fi ;;
13458         *)
13459           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13460 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13461    { (exit 1); exit 1; }; } ;;
13462       esac
13463
13464 else
13465
13466       USE_OPROFILE=0
13467
13468
13469 fi
13470
13471
13472 cat >>confdefs.h <<_ACEOF
13473 #define LLVM_USE_OPROFILE $USE_OPROFILE
13474 _ACEOF
13475
13476
13477
13478 # Check whether --with-intel-jitevents was given.
13479 if test "${with_intel_jitevents+set}" = set; then
13480   withval=$with_intel_jitevents;
13481        case "$withval" in
13482           yes) USE_INTEL_JITEVENTS=1
13483 ;;
13484           no)  USE_INTEL_JITEVENTS=0
13485 ;;
13486           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13487 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13488    { (exit 1); exit 1; }; };;
13489        esac
13490
13491       case $llvm_cv_os_type in
13492         Linux|Win32|Cygwin|MingW) ;;
13493         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13494 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13495    { (exit 1); exit 1; }; };;
13496       esac
13497
13498       case "$llvm_cv_target_arch" in
13499         x86|x86_64) ;;
13500         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13501 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13502    { (exit 1); exit 1; }; };;
13503       esac
13504
13505 else
13506
13507       USE_INTEL_JITEVENTS=0
13508
13509
13510 fi
13511
13512
13513 cat >>confdefs.h <<_ACEOF
13514 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13515 _ACEOF
13516
13517
13518 for ac_prog in xml2-config
13519 do
13520   # Extract the first word of "$ac_prog", so it can be a program name with args.
13521 set dummy $ac_prog; ac_word=$2
13522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13524 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   if test -n "$XML2CONFIG"; then
13528   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535   for ac_exec_ext in '' $ac_executable_extensions; do
13536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13537     ac_cv_prog_XML2CONFIG="$ac_prog"
13538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542 done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13548 if test -n "$XML2CONFIG"; then
13549   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13550 echo "${ECHO_T}$XML2CONFIG" >&6; }
13551 else
13552   { echo "$as_me:$LINENO: result: no" >&5
13553 echo "${ECHO_T}no" >&6; }
13554 fi
13555
13556
13557   test -n "$XML2CONFIG" && break
13558 done
13559
13560
13561 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13562 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13563 if test "x$XML2CONFIG" = "x"; then
13564  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13565 echo "${ECHO_T}xml2-config not found" >&6; }
13566 else
13567  LIBXML2_INC=`$XML2CONFIG --cflags`
13568  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13569 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13570  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13571 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lxml2  $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h.  */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h.  */
13583
13584 /* Override any GCC internal prototype to avoid an error.
13585    Use char because int might match the return type of a GCC
13586    builtin and then its argument prototype would still apply.  */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char xmlReadFile ();
13591 int
13592 main ()
13593 {
13594 return xmlReadFile ();
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603   *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606   (eval "$ac_link") 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614   { (case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_try") 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest$ac_exeext'
13624   { (case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_try") 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_cv_lib_xml2_xmlReadFile=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638         ac_cv_lib_xml2_xmlReadFile=no
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext \
13642       conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13644 fi
13645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13646 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13647 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13648
13649 cat >>confdefs.h <<\_ACEOF
13650 #define CLANG_HAVE_LIBXML 1
13651 _ACEOF
13652
13653                                 LIBXML2_LIBS="-lxml2"
13654 fi
13655
13656 fi
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 ac_header_dirent=no
13667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13668   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680 #include <sys/types.h>
13681 #include <$ac_hdr>
13682
13683 int
13684 main ()
13685 {
13686 if ((DIR *) 0)
13687 return 0;
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest.$ac_objext'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   eval "$as_ac_Header=yes"
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         eval "$as_ac_Header=no"
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 ac_res=`eval echo '${'$as_ac_Header'}'`
13737                { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13740   cat >>confdefs.h <<_ACEOF
13741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13742 _ACEOF
13743
13744 ac_header_dirent=$ac_hdr; break
13745 fi
13746
13747 done
13748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13749 if test $ac_header_dirent = dirent.h; then
13750   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752 if test "${ac_cv_search_opendir+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   ac_func_search_save_LIBS=$LIBS
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762
13763 /* Override any GCC internal prototype to avoid an error.
13764    Use char because int might match the return type of a GCC
13765    builtin and then its argument prototype would still apply.  */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char opendir ();
13770 int
13771 main ()
13772 {
13773 return opendir ();
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 for ac_lib in '' dir; do
13779   if test -z "$ac_lib"; then
13780     ac_res="none required"
13781   else
13782     ac_res=-l$ac_lib
13783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13784   fi
13785   rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_link") 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800   { (case "(($ac_try" in
13801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802   *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805   (eval "$ac_try") 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest$ac_exeext'
13810   { (case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_try") 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; }; then
13819   ac_cv_search_opendir=$ac_res
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824
13825 fi
13826
13827 rm -f core conftest.err conftest.$ac_objext \
13828       conftest$ac_exeext
13829   if test "${ac_cv_search_opendir+set}" = set; then
13830   break
13831 fi
13832 done
13833 if test "${ac_cv_search_opendir+set}" = set; then
13834   :
13835 else
13836   ac_cv_search_opendir=no
13837 fi
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13840 fi
13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then
13845   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13846
13847 fi
13848
13849 else
13850   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13852 if test "${ac_cv_search_opendir+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   ac_func_search_save_LIBS=$LIBS
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13862
13863 /* Override any GCC internal prototype to avoid an error.
13864    Use char because int might match the return type of a GCC
13865    builtin and then its argument prototype would still apply.  */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char opendir ();
13870 int
13871 main ()
13872 {
13873 return opendir ();
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 for ac_lib in '' x; do
13879   if test -z "$ac_lib"; then
13880     ac_res="none required"
13881   else
13882     ac_res=-l$ac_lib
13883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13884   fi
13885   rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892   (eval "$ac_link") 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; } &&
13909          { ac_try='test -s conftest$ac_exeext'
13910   { (case "(($ac_try" in
13911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912   *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915   (eval "$ac_try") 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_cv_search_opendir=$ac_res
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924
13925 fi
13926
13927 rm -f core conftest.err conftest.$ac_objext \
13928       conftest$ac_exeext
13929   if test "${ac_cv_search_opendir+set}" = set; then
13930   break
13931 fi
13932 done
13933 if test "${ac_cv_search_opendir+set}" = set; then
13934   :
13935 else
13936   ac_cv_search_opendir=no
13937 fi
13938 rm conftest.$ac_ext
13939 LIBS=$ac_func_search_save_LIBS
13940 fi
13941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13943 ac_res=$ac_cv_search_opendir
13944 if test "$ac_res" != no; then
13945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13946
13947 fi
13948
13949 fi
13950
13951 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13952 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_mmap_anon+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956    ac_ext=c
13957 ac_cpp='$CPP $CPPFLAGS'
13958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961
13962   cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 #include <sys/mman.h>
13969 #include <unistd.h>
13970 #include <fcntl.h>
13971 int
13972 main ()
13973 {
13974 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_compile") 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994   { (case "(($ac_try" in
13995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996   *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999   (eval "$ac_try") 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; } &&
14003          { ac_try='test -s conftest.$ac_objext'
14004   { (case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_try") 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_header_mmap_anon=yes
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018         ac_cv_header_mmap_anon=no
14019 fi
14020
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022   ac_ext=c
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028
14029 fi
14030 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14031 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14032 if test "$ac_cv_header_mmap_anon" = yes; then
14033
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_MMAP_ANONYMOUS 1
14036 _ACEOF
14037
14038 fi
14039
14040 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14041 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_stat_broken+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 #include <sys/types.h>
14052 #include <sys/stat.h>
14053
14054 #if defined S_ISBLK && defined S_IFDIR
14055 # if S_ISBLK (S_IFDIR)
14056 You lose.
14057 # endif
14058 #endif
14059
14060 #if defined S_ISBLK && defined S_IFCHR
14061 # if S_ISBLK (S_IFCHR)
14062 You lose.
14063 # endif
14064 #endif
14065
14066 #if defined S_ISLNK && defined S_IFREG
14067 # if S_ISLNK (S_IFREG)
14068 You lose.
14069 # endif
14070 #endif
14071
14072 #if defined S_ISSOCK && defined S_IFREG
14073 # if S_ISSOCK (S_IFREG)
14074 You lose.
14075 # endif
14076 #endif
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "You lose" >/dev/null 2>&1; then
14081   ac_cv_header_stat_broken=yes
14082 else
14083   ac_cv_header_stat_broken=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14089 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14090 if test $ac_cv_header_stat_broken = yes; then
14091
14092 cat >>confdefs.h <<\_ACEOF
14093 #define STAT_MACROS_BROKEN 1
14094 _ACEOF
14095
14096 fi
14097
14098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h.  */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h.  */
14109 #include <sys/types.h>
14110 #include <sys/wait.h>
14111 #ifndef WEXITSTATUS
14112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14113 #endif
14114 #ifndef WIFEXITED
14115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14116 #endif
14117
14118 int
14119 main ()
14120 {
14121   int s;
14122   wait (&s);
14123   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132   *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143   { (case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148   (eval "$ac_try") 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest.$ac_objext'
14153   { (case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_try") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_header_sys_wait_h=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167         ac_cv_header_sys_wait_h=no
14168 fi
14169
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14173 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14174 if test $ac_cv_header_sys_wait_h = yes; then
14175
14176 cat >>confdefs.h <<\_ACEOF
14177 #define HAVE_SYS_WAIT_H 1
14178 _ACEOF
14179
14180 fi
14181
14182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14184 if test "${ac_cv_header_time+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193 #include <sys/types.h>
14194 #include <sys/time.h>
14195 #include <time.h>
14196
14197 int
14198 main ()
14199 {
14200 if ((struct tm *) 0)
14201 return 0;
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_compile") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_header_time=yes
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245         ac_cv_header_time=no
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14251 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14252 if test $ac_cv_header_time = yes; then
14253
14254 cat >>confdefs.h <<\_ACEOF
14255 #define TIME_WITH_SYS_TIME 1
14256 _ACEOF
14257
14258 fi
14259
14260
14261 ac_ext=cpp
14262 ac_cpp='$CXXCPP $CPPFLAGS'
14263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14266
14267 ac_ext=cpp
14268 ac_cpp='$CXXCPP $CPPFLAGS'
14269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14272 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14273 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14274 if test -z "$CXXCPP"; then
14275   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278       # Double quotes because CXXCPP needs to be expanded
14279     for CXXCPP in "$CXX -E" "/lib/cpp"
14280     do
14281       ac_preproc_ok=false
14282 for ac_cxx_preproc_warn_flag in '' yes
14283 do
14284   # Use a header file that comes with gcc, so configuring glibc
14285   # with a fresh cross-compiler works.
14286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287   # <limits.h> exists even on freestanding compilers.
14288   # On the NeXT, cc -E runs the code through the compiler's parser,
14289   # not just through cpp. "Syntax error" is here to catch this case.
14290   cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 #ifdef __STDC__
14297 # include <limits.h>
14298 #else
14299 # include <assert.h>
14300 #endif
14301                      Syntax error
14302 _ACEOF
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } >/dev/null; then
14316   if test -s conftest.err; then
14317     ac_cpp_err=$ac_cxx_preproc_warn_flag
14318     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14319   else
14320     ac_cpp_err=
14321   fi
14322 else
14323   ac_cpp_err=yes
14324 fi
14325 if test -z "$ac_cpp_err"; then
14326   :
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331   # Broken: fails on valid input.
14332 continue
14333 fi
14334
14335 rm -f conftest.err conftest.$ac_ext
14336
14337   # OK, works on sane cases.  Now check whether nonexistent headers
14338   # can be detected and how.
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <ac_nonexistent.h>
14346 _ACEOF
14347 if { (ac_try="$ac_cpp conftest.$ac_ext"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } >/dev/null; then
14360   if test -s conftest.err; then
14361     ac_cpp_err=$ac_cxx_preproc_warn_flag
14362     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14363   else
14364     ac_cpp_err=
14365   fi
14366 else
14367   ac_cpp_err=yes
14368 fi
14369 if test -z "$ac_cpp_err"; then
14370   # Broken: success on invalid input.
14371 continue
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376   # Passes both tests.
14377 ac_preproc_ok=:
14378 break
14379 fi
14380
14381 rm -f conftest.err conftest.$ac_ext
14382
14383 done
14384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14385 rm -f conftest.err conftest.$ac_ext
14386 if $ac_preproc_ok; then
14387   break
14388 fi
14389
14390     done
14391     ac_cv_prog_CXXCPP=$CXXCPP
14392
14393 fi
14394   CXXCPP=$ac_cv_prog_CXXCPP
14395 else
14396   ac_cv_prog_CXXCPP=$CXXCPP
14397 fi
14398 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14399 echo "${ECHO_T}$CXXCPP" >&6; }
14400 ac_preproc_ok=false
14401 for ac_cxx_preproc_warn_flag in '' yes
14402 do
14403   # Use a header file that comes with gcc, so configuring glibc
14404   # with a fresh cross-compiler works.
14405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406   # <limits.h> exists even on freestanding compilers.
14407   # On the NeXT, cc -E runs the code through the compiler's parser,
14408   # not just through cpp. "Syntax error" is here to catch this case.
14409   cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 #ifdef __STDC__
14416 # include <limits.h>
14417 #else
14418 # include <assert.h>
14419 #endif
14420                      Syntax error
14421 _ACEOF
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } >/dev/null; then
14435   if test -s conftest.err; then
14436     ac_cpp_err=$ac_cxx_preproc_warn_flag
14437     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14438   else
14439     ac_cpp_err=
14440   fi
14441 else
14442   ac_cpp_err=yes
14443 fi
14444 if test -z "$ac_cpp_err"; then
14445   :
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450   # Broken: fails on valid input.
14451 continue
14452 fi
14453
14454 rm -f conftest.err conftest.$ac_ext
14455
14456   # OK, works on sane cases.  Now check whether nonexistent headers
14457   # can be detected and how.
14458   cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h.  */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h.  */
14464 #include <ac_nonexistent.h>
14465 _ACEOF
14466 if { (ac_try="$ac_cpp conftest.$ac_ext"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } >/dev/null; then
14479   if test -s conftest.err; then
14480     ac_cpp_err=$ac_cxx_preproc_warn_flag
14481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14482   else
14483     ac_cpp_err=
14484   fi
14485 else
14486   ac_cpp_err=yes
14487 fi
14488 if test -z "$ac_cpp_err"; then
14489   # Broken: success on invalid input.
14490 continue
14491 else
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495   # Passes both tests.
14496 ac_preproc_ok=:
14497 break
14498 fi
14499
14500 rm -f conftest.err conftest.$ac_ext
14501
14502 done
14503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14504 rm -f conftest.err conftest.$ac_ext
14505 if $ac_preproc_ok; then
14506   :
14507 else
14508   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14509 See \`config.log' for more details." >&5
14510 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14511 See \`config.log' for more details." >&2;}
14512    { (exit 1); exit 1; }; }
14513 fi
14514
14515 ac_ext=cpp
14516 ac_cpp='$CXXCPP $CPPFLAGS'
14517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14520
14521
14522
14523 for ac_header in cxxabi.h
14524 do
14525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 fi
14532 ac_res=`eval echo '${'$as_ac_Header'}'`
14533                { echo "$as_me:$LINENO: result: $ac_res" >&5
14534 echo "${ECHO_T}$ac_res" >&6; }
14535 else
14536   # Is the header compilable?
14537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 $ac_includes_default
14546 #include <$ac_header>
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555   (eval "$ac_compile") 2>conftest.er1
14556   ac_status=$?
14557   grep -v '^ *+' conftest.er1 >conftest.err
14558   rm -f conftest.er1
14559   cat conftest.err >&5
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } &&
14562          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14563   { (case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_try") 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_try") 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   ac_header_compiler=yes
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587         ac_header_compiler=no
14588 fi
14589
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14592 echo "${ECHO_T}$ac_header_compiler" >&6; }
14593
14594 # Is the header present?
14595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603 #include <$ac_header>
14604 _ACEOF
14605 if { (ac_try="$ac_cpp conftest.$ac_ext"
14606 case "(($ac_try" in
14607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608   *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14612   ac_status=$?
14613   grep -v '^ *+' conftest.er1 >conftest.err
14614   rm -f conftest.er1
14615   cat conftest.err >&5
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); } >/dev/null; then
14618   if test -s conftest.err; then
14619     ac_cpp_err=$ac_cxx_preproc_warn_flag
14620     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14621   else
14622     ac_cpp_err=
14623   fi
14624 else
14625   ac_cpp_err=yes
14626 fi
14627 if test -z "$ac_cpp_err"; then
14628   ac_header_preproc=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633   ac_header_preproc=no
14634 fi
14635
14636 rm -f conftest.err conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638 echo "${ECHO_T}$ac_header_preproc" >&6; }
14639
14640 # So?  What about this header?
14641 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14642   yes:no: )
14643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14647     ac_header_preproc=yes
14648     ;;
14649   no:yes:* )
14650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14662     ( cat <<\_ASBOX
14663 ## ------------------------------------ ##
14664 ## Report this to http://llvm.org/bugs/ ##
14665 ## ------------------------------------ ##
14666 _ASBOX
14667      ) | sed "s/^/$as_me: WARNING:     /" >&2
14668     ;;
14669 esac
14670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675   eval "$as_ac_Header=\$ac_header_preproc"
14676 fi
14677 ac_res=`eval echo '${'$as_ac_Header'}'`
14678                { echo "$as_me:$LINENO: result: $ac_res" >&5
14679 echo "${ECHO_T}$ac_res" >&6; }
14680
14681 fi
14682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14683   cat >>confdefs.h <<_ACEOF
14684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14685 _ACEOF
14686
14687 fi
14688
14689 done
14690
14691 ac_ext=c
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14696
14697
14698
14699
14700
14701
14702 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14703 do
14704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 fi
14711 ac_res=`eval echo '${'$as_ac_Header'}'`
14712                { echo "$as_me:$LINENO: result: $ac_res" >&5
14713 echo "${ECHO_T}$ac_res" >&6; }
14714 else
14715   # Is the header compilable?
14716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724 $ac_includes_default
14725 #include <$ac_header>
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_compile") 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742   { (case "(($ac_try" in
14743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744   *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747   (eval "$ac_try") 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; } &&
14751          { ac_try='test -s conftest.$ac_objext'
14752   { (case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757   (eval "$ac_try") 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_header_compiler=yes
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766         ac_header_compiler=no
14767 fi
14768
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6; }
14772
14773 # Is the header present?
14774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782 #include <$ac_header>
14783 _ACEOF
14784 if { (ac_try="$ac_cpp conftest.$ac_ext"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } >/dev/null; then
14797   if test -s conftest.err; then
14798     ac_cpp_err=$ac_c_preproc_warn_flag
14799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800   else
14801     ac_cpp_err=
14802   fi
14803 else
14804   ac_cpp_err=yes
14805 fi
14806 if test -z "$ac_cpp_err"; then
14807   ac_header_preproc=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812   ac_header_preproc=no
14813 fi
14814
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14818
14819 # So?  What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821   yes:no: )
14822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826     ac_header_preproc=yes
14827     ;;
14828   no:yes:* )
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14841     ( cat <<\_ASBOX
14842 ## ------------------------------------ ##
14843 ## Report this to http://llvm.org/bugs/ ##
14844 ## ------------------------------------ ##
14845 _ASBOX
14846      ) | sed "s/^/$as_me: WARNING:     /" >&2
14847     ;;
14848 esac
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   eval "$as_ac_Header=\$ac_header_preproc"
14855 fi
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857                { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14859
14860 fi
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14864 _ACEOF
14865
14866 fi
14867
14868 done
14869
14870
14871
14872
14873
14874
14875
14876 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14877 do
14878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 fi
14885 ac_res=`eval echo '${'$as_ac_Header'}'`
14886                { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14888 else
14889   # Is the header compilable?
14890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 $ac_includes_default
14899 #include <$ac_header>
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_compile") 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916   { (case "(($ac_try" in
14917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918   *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921   (eval "$ac_try") 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_try") 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_header_compiler=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940         ac_header_compiler=no
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945 echo "${ECHO_T}$ac_header_compiler" >&6; }
14946
14947 # Is the header present?
14948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 #include <$ac_header>
14957 _ACEOF
14958 if { (ac_try="$ac_cpp conftest.$ac_ext"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } >/dev/null; then
14971   if test -s conftest.err; then
14972     ac_cpp_err=$ac_c_preproc_warn_flag
14973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14974   else
14975     ac_cpp_err=
14976   fi
14977 else
14978   ac_cpp_err=yes
14979 fi
14980 if test -z "$ac_cpp_err"; then
14981   ac_header_preproc=yes
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986   ac_header_preproc=no
14987 fi
14988
14989 rm -f conftest.err conftest.$ac_ext
14990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991 echo "${ECHO_T}$ac_header_preproc" >&6; }
14992
14993 # So?  What about this header?
14994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14995   yes:no: )
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000     ac_header_preproc=yes
15001     ;;
15002   no:yes:* )
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15015     ( cat <<\_ASBOX
15016 ## ------------------------------------ ##
15017 ## Report this to http://llvm.org/bugs/ ##
15018 ## ------------------------------------ ##
15019 _ASBOX
15020      ) | sed "s/^/$as_me: WARNING:     /" >&2
15021     ;;
15022 esac
15023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   eval "$as_ac_Header=\$ac_header_preproc"
15029 fi
15030 ac_res=`eval echo '${'$as_ac_Header'}'`
15031                { echo "$as_me:$LINENO: result: $ac_res" >&5
15032 echo "${ECHO_T}$ac_res" >&6; }
15033
15034 fi
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036   cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041
15042 done
15043
15044
15045 for ac_header in utime.h
15046 do
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 fi
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055                { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 else
15058   # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 $ac_includes_default
15068 #include <$ac_header>
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_compile") 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085   { (case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_try") 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; } &&
15094          { ac_try='test -s conftest.$ac_objext'
15095   { (case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_try") 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   ac_header_compiler=yes
15105 else
15106   echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109         ac_header_compiler=no
15110 fi
15111
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6; }
15115
15116 # Is the header present?
15117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 #include <$ac_header>
15126 _ACEOF
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } >/dev/null; then
15140   if test -s conftest.err; then
15141     ac_cpp_err=$ac_c_preproc_warn_flag
15142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15143   else
15144     ac_cpp_err=
15145   fi
15146 else
15147   ac_cpp_err=yes
15148 fi
15149 if test -z "$ac_cpp_err"; then
15150   ac_header_preproc=yes
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155   ac_header_preproc=no
15156 fi
15157
15158 rm -f conftest.err conftest.$ac_ext
15159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160 echo "${ECHO_T}$ac_header_preproc" >&6; }
15161
15162 # So?  What about this header?
15163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15164   yes:no: )
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169     ac_header_preproc=yes
15170     ;;
15171   no:yes:* )
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15184     ( cat <<\_ASBOX
15185 ## ------------------------------------ ##
15186 ## Report this to http://llvm.org/bugs/ ##
15187 ## ------------------------------------ ##
15188 _ASBOX
15189      ) | sed "s/^/$as_me: WARNING:     /" >&2
15190     ;;
15191 esac
15192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   eval "$as_ac_Header=\$ac_header_preproc"
15198 fi
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200                { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15202
15203 fi
15204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15205   cat >>confdefs.h <<_ACEOF
15206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15207 _ACEOF
15208
15209 fi
15210
15211 done
15212
15213
15214
15215
15216
15217
15218 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15219 do
15220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 fi
15227 ac_res=`eval echo '${'$as_ac_Header'}'`
15228                { echo "$as_me:$LINENO: result: $ac_res" >&5
15229 echo "${ECHO_T}$ac_res" >&6; }
15230 else
15231   # Is the header compilable?
15232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 $ac_includes_default
15241 #include <$ac_header>
15242 _ACEOF
15243 rm -f conftest.$ac_objext
15244 if { (ac_try="$ac_compile"
15245 case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_compile") 2>conftest.er1
15251   ac_status=$?
15252   grep -v '^ *+' conftest.er1 >conftest.err
15253   rm -f conftest.er1
15254   cat conftest.err >&5
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15258   { (case "(($ac_try" in
15259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260   *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263   (eval "$ac_try") 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; } &&
15267          { ac_try='test -s conftest.$ac_objext'
15268   { (case "(($ac_try" in
15269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270   *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273   (eval "$ac_try") 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; }; then
15277   ac_header_compiler=yes
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282         ac_header_compiler=no
15283 fi
15284
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15287 echo "${ECHO_T}$ac_header_compiler" >&6; }
15288
15289 # Is the header present?
15290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 #include <$ac_header>
15299 _ACEOF
15300 if { (ac_try="$ac_cpp conftest.$ac_ext"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15307   ac_status=$?
15308   grep -v '^ *+' conftest.er1 >conftest.err
15309   rm -f conftest.er1
15310   cat conftest.err >&5
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } >/dev/null; then
15313   if test -s conftest.err; then
15314     ac_cpp_err=$ac_c_preproc_warn_flag
15315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15316   else
15317     ac_cpp_err=
15318   fi
15319 else
15320   ac_cpp_err=yes
15321 fi
15322 if test -z "$ac_cpp_err"; then
15323   ac_header_preproc=yes
15324 else
15325   echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15327
15328   ac_header_preproc=no
15329 fi
15330
15331 rm -f conftest.err conftest.$ac_ext
15332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15333 echo "${ECHO_T}$ac_header_preproc" >&6; }
15334
15335 # So?  What about this header?
15336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15337   yes:no: )
15338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15342     ac_header_preproc=yes
15343     ;;
15344   no:yes:* )
15345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15348 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15352 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15355     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15357     ( cat <<\_ASBOX
15358 ## ------------------------------------ ##
15359 ## Report this to http://llvm.org/bugs/ ##
15360 ## ------------------------------------ ##
15361 _ASBOX
15362      ) | sed "s/^/$as_me: WARNING:     /" >&2
15363     ;;
15364 esac
15365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   eval "$as_ac_Header=\$ac_header_preproc"
15371 fi
15372 ac_res=`eval echo '${'$as_ac_Header'}'`
15373                { echo "$as_me:$LINENO: result: $ac_res" >&5
15374 echo "${ECHO_T}$ac_res" >&6; }
15375
15376 fi
15377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15378   cat >>confdefs.h <<_ACEOF
15379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15380 _ACEOF
15381
15382 fi
15383
15384 done
15385
15386
15387
15388
15389 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15390 do
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 fi
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399                { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15401 else
15402   # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 $ac_includes_default
15412 #include <$ac_header>
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } &&
15428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429   { (case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest.$ac_objext'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448   ac_header_compiler=yes
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453         ac_header_compiler=no
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <$ac_header>
15470 _ACEOF
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } >/dev/null; then
15484   if test -s conftest.err; then
15485     ac_cpp_err=$ac_c_preproc_warn_flag
15486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487   else
15488     ac_cpp_err=
15489   fi
15490 else
15491   ac_cpp_err=yes
15492 fi
15493 if test -z "$ac_cpp_err"; then
15494   ac_header_preproc=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499   ac_header_preproc=no
15500 fi
15501
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506 # So?  What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508   yes:no: )
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513     ac_header_preproc=yes
15514     ;;
15515   no:yes:* )
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528     ( cat <<\_ASBOX
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15532 _ASBOX
15533      ) | sed "s/^/$as_me: WARNING:     /" >&2
15534     ;;
15535 esac
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   eval "$as_ac_Header=\$ac_header_preproc"
15542 fi
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544                { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15546
15547 fi
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557
15558 for ac_header in valgrind/valgrind.h
15559 do
15560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565   echo $ECHO_N "(cached) $ECHO_C" >&6
15566 fi
15567 ac_res=`eval echo '${'$as_ac_Header'}'`
15568                { echo "$as_me:$LINENO: result: $ac_res" >&5
15569 echo "${ECHO_T}$ac_res" >&6; }
15570 else
15571   # Is the header compilable?
15572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 $ac_includes_default
15581 #include <$ac_header>
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_compile") 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } &&
15597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598   { (case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_try") 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_try") 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); }; }; then
15617   ac_header_compiler=yes
15618 else
15619   echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622         ac_header_compiler=no
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6; }
15628
15629 # Is the header present?
15630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 #include <$ac_header>
15639 _ACEOF
15640 if { (ac_try="$ac_cpp conftest.$ac_ext"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } >/dev/null; then
15653   if test -s conftest.err; then
15654     ac_cpp_err=$ac_c_preproc_warn_flag
15655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15656   else
15657     ac_cpp_err=
15658   fi
15659 else
15660   ac_cpp_err=yes
15661 fi
15662 if test -z "$ac_cpp_err"; then
15663   ac_header_preproc=yes
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668   ac_header_preproc=no
15669 fi
15670
15671 rm -f conftest.err conftest.$ac_ext
15672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6; }
15674
15675 # So?  What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15677   yes:no: )
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682     ac_header_preproc=yes
15683     ;;
15684   no:yes:* )
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15697     ( cat <<\_ASBOX
15698 ## ------------------------------------ ##
15699 ## Report this to http://llvm.org/bugs/ ##
15700 ## ------------------------------------ ##
15701 _ASBOX
15702      ) | sed "s/^/$as_me: WARNING:     /" >&2
15703     ;;
15704 esac
15705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   eval "$as_ac_Header=\$ac_header_preproc"
15711 fi
15712 ac_res=`eval echo '${'$as_ac_Header'}'`
15713                { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15715
15716 fi
15717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15718   cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 _ACEOF
15721
15722 fi
15723
15724 done
15725
15726
15727 for ac_header in fenv.h
15728 do
15729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 fi
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737                { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15739 else
15740   # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749 $ac_includes_default
15750 #include <$ac_header>
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_compile") 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15767   { (case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_try") 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; } &&
15776          { ac_try='test -s conftest.$ac_objext'
15777   { (case "(($ac_try" in
15778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779   *) ac_try_echo=$ac_try;;
15780 esac
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782   (eval "$ac_try") 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; }; then
15786   ac_header_compiler=yes
15787 else
15788   echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15790
15791         ac_header_compiler=no
15792 fi
15793
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15796 echo "${ECHO_T}$ac_header_compiler" >&6; }
15797
15798 # Is the header present?
15799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 #include <$ac_header>
15808 _ACEOF
15809 if { (ac_try="$ac_cpp conftest.$ac_ext"
15810 case "(($ac_try" in
15811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812   *) ac_try_echo=$ac_try;;
15813 esac
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } >/dev/null; then
15822   if test -s conftest.err; then
15823     ac_cpp_err=$ac_c_preproc_warn_flag
15824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15825   else
15826     ac_cpp_err=
15827   fi
15828 else
15829   ac_cpp_err=yes
15830 fi
15831 if test -z "$ac_cpp_err"; then
15832   ac_header_preproc=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837   ac_header_preproc=no
15838 fi
15839
15840 rm -f conftest.err conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842 echo "${ECHO_T}$ac_header_preproc" >&6; }
15843
15844 # So?  What about this header?
15845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15846   yes:no: )
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15851     ac_header_preproc=yes
15852     ;;
15853   no:yes:* )
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15866     ( cat <<\_ASBOX
15867 ## ------------------------------------ ##
15868 ## Report this to http://llvm.org/bugs/ ##
15869 ## ------------------------------------ ##
15870 _ASBOX
15871      ) | sed "s/^/$as_me: WARNING:     /" >&2
15872     ;;
15873 esac
15874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   eval "$as_ac_Header=\$ac_header_preproc"
15880 fi
15881 ac_res=`eval echo '${'$as_ac_Header'}'`
15882                { echo "$as_me:$LINENO: result: $ac_res" >&5
15883 echo "${ECHO_T}$ac_res" >&6; }
15884
15885 fi
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887   cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889 _ACEOF
15890
15891 fi
15892
15893 done
15894
15895 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15896 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15897 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 #include <fenv.h>
15907
15908 int
15909 main ()
15910 {
15911 #ifndef FE_ALL_EXCEPT
15912   char *p = (char *) FE_ALL_EXCEPT;
15913   return !p;
15914 #endif
15915
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924   *) ac_try_echo=$ac_try;;
15925 esac
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927   (eval "$ac_compile") 2>conftest.er1
15928   ac_status=$?
15929   grep -v '^ *+' conftest.er1 >conftest.err
15930   rm -f conftest.er1
15931   cat conftest.err >&5
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15935   { (case "(($ac_try" in
15936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937   *) ac_try_echo=$ac_try;;
15938 esac
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940   (eval "$ac_try") 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; } &&
15944          { ac_try='test -s conftest.$ac_objext'
15945   { (case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_try") 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; }; then
15954   ac_cv_have_decl_FE_ALL_EXCEPT=yes
15955 else
15956   echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959         ac_cv_have_decl_FE_ALL_EXCEPT=no
15960 fi
15961
15962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963 fi
15964 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15965 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15966 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15967
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_DECL_FE_ALL_EXCEPT 1
15970 _ACEOF
15971
15972
15973 else
15974   cat >>confdefs.h <<_ACEOF
15975 #define HAVE_DECL_FE_ALL_EXCEPT 0
15976 _ACEOF
15977
15978
15979 fi
15980 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15981 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15982 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #include <fenv.h>
15992
15993 int
15994 main ()
15995 {
15996 #ifndef FE_INEXACT
15997   char *p = (char *) FE_INEXACT;
15998   return !p;
15999 #endif
16000
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_compile") 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; } &&
16029          { ac_try='test -s conftest.$ac_objext'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   ac_cv_have_decl_FE_INEXACT=yes
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044         ac_cv_have_decl_FE_INEXACT=no
16045 fi
16046
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 fi
16049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16050 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16051 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16052
16053 cat >>confdefs.h <<_ACEOF
16054 #define HAVE_DECL_FE_INEXACT 1
16055 _ACEOF
16056
16057
16058 else
16059   cat >>confdefs.h <<_ACEOF
16060 #define HAVE_DECL_FE_INEXACT 0
16061 _ACEOF
16062
16063
16064 fi
16065
16066
16067 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16068
16069 for ac_header in pthread.h
16070 do
16071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 fi
16078 ac_res=`eval echo '${'$as_ac_Header'}'`
16079                { echo "$as_me:$LINENO: result: $ac_res" >&5
16080 echo "${ECHO_T}$ac_res" >&6; }
16081 else
16082   # Is the header compilable?
16083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 $ac_includes_default
16092 #include <$ac_header>
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098   *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101   (eval "$ac_compile") 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109   { (case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_try") 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest.$ac_objext'
16119   { (case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_try") 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }; then
16128   ac_header_compiler=yes
16129 else
16130   echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133         ac_header_compiler=no
16134 fi
16135
16136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16138 echo "${ECHO_T}$ac_header_compiler" >&6; }
16139
16140 # Is the header present?
16141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h.  */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h.  */
16149 #include <$ac_header>
16150 _ACEOF
16151 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16158   ac_status=$?
16159   grep -v '^ *+' conftest.er1 >conftest.err
16160   rm -f conftest.er1
16161   cat conftest.err >&5
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); } >/dev/null; then
16164   if test -s conftest.err; then
16165     ac_cpp_err=$ac_c_preproc_warn_flag
16166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16167   else
16168     ac_cpp_err=
16169   fi
16170 else
16171   ac_cpp_err=yes
16172 fi
16173 if test -z "$ac_cpp_err"; then
16174   ac_header_preproc=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179   ac_header_preproc=no
16180 fi
16181
16182 rm -f conftest.err conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16184 echo "${ECHO_T}$ac_header_preproc" >&6; }
16185
16186 # So?  What about this header?
16187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16188   yes:no: )
16189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16193     ac_header_preproc=yes
16194     ;;
16195   no:yes:* )
16196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16208     ( cat <<\_ASBOX
16209 ## ------------------------------------ ##
16210 ## Report this to http://llvm.org/bugs/ ##
16211 ## ------------------------------------ ##
16212 _ASBOX
16213      ) | sed "s/^/$as_me: WARNING:     /" >&2
16214     ;;
16215 esac
16216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16219   echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221   eval "$as_ac_Header=\$ac_header_preproc"
16222 fi
16223 ac_res=`eval echo '${'$as_ac_Header'}'`
16224                { echo "$as_me:$LINENO: result: $ac_res" >&5
16225 echo "${ECHO_T}$ac_res" >&6; }
16226
16227 fi
16228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16229   cat >>confdefs.h <<_ACEOF
16230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16231 _ACEOF
16232  HAVE_PTHREAD=1
16233
16234 else
16235   HAVE_PTHREAD=0
16236
16237 fi
16238
16239 done
16240
16241 else
16242   HAVE_PTHREAD=0
16243
16244 fi
16245 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16246
16247 for ac_header in zlib.h
16248 do
16249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16251   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16254   echo $ECHO_N "(cached) $ECHO_C" >&6
16255 fi
16256 ac_res=`eval echo '${'$as_ac_Header'}'`
16257                { echo "$as_me:$LINENO: result: $ac_res" >&5
16258 echo "${ECHO_T}$ac_res" >&6; }
16259 else
16260   # Is the header compilable?
16261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 $ac_includes_default
16270 #include <$ac_header>
16271 _ACEOF
16272 rm -f conftest.$ac_objext
16273 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16287   { (case "(($ac_try" in
16288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289   *) ac_try_echo=$ac_try;;
16290 esac
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292   (eval "$ac_try") 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest.$ac_objext'
16297   { (case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_try") 2>&5
16303   ac_status=$?
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); }; }; then
16306   ac_header_compiler=yes
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311         ac_header_compiler=no
16312 fi
16313
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16316 echo "${ECHO_T}$ac_header_compiler" >&6; }
16317
16318 # Is the header present?
16319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 #include <$ac_header>
16328 _ACEOF
16329 if { (ac_try="$ac_cpp conftest.$ac_ext"
16330 case "(($ac_try" in
16331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332   *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16336   ac_status=$?
16337   grep -v '^ *+' conftest.er1 >conftest.err
16338   rm -f conftest.er1
16339   cat conftest.err >&5
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } >/dev/null; then
16342   if test -s conftest.err; then
16343     ac_cpp_err=$ac_c_preproc_warn_flag
16344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16345   else
16346     ac_cpp_err=
16347   fi
16348 else
16349   ac_cpp_err=yes
16350 fi
16351 if test -z "$ac_cpp_err"; then
16352   ac_header_preproc=yes
16353 else
16354   echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357   ac_header_preproc=no
16358 fi
16359
16360 rm -f conftest.err conftest.$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6; }
16363
16364 # So?  What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366   yes:no: )
16367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16371     ac_header_preproc=yes
16372     ;;
16373   no:yes:* )
16374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16386     ( cat <<\_ASBOX
16387 ## ------------------------------------ ##
16388 ## Report this to http://llvm.org/bugs/ ##
16389 ## ------------------------------------ ##
16390 _ASBOX
16391      ) | sed "s/^/$as_me: WARNING:     /" >&2
16392     ;;
16393 esac
16394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399   eval "$as_ac_Header=\$ac_header_preproc"
16400 fi
16401 ac_res=`eval echo '${'$as_ac_Header'}'`
16402                { echo "$as_me:$LINENO: result: $ac_res" >&5
16403 echo "${ECHO_T}$ac_res" >&6; }
16404
16405 fi
16406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16407   cat >>confdefs.h <<_ACEOF
16408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16409 _ACEOF
16410  HAVE_LIBZ=1
16411
16412 else
16413   HAVE_LIBZ=0
16414
16415 fi
16416
16417 done
16418
16419 else
16420   HAVE_LIBZ=0
16421
16422 fi
16423
16424 if test "$llvm_cv_enable_libffi" = "yes" ; then
16425
16426
16427 for ac_header in ffi.h ffi/ffi.h
16428 do
16429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16431   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 fi
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437                { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16439 else
16440   # Is the header compilable?
16441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16442 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
16450 #include <$ac_header>
16451 _ACEOF
16452 rm -f conftest.$ac_objext
16453 if { (ac_try="$ac_compile"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_compile") 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } &&
16466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16467   { (case "(($ac_try" in
16468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469   *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472   (eval "$ac_try") 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; } &&
16476          { ac_try='test -s conftest.$ac_objext'
16477   { (case "(($ac_try" in
16478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479   *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482   (eval "$ac_try") 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   ac_header_compiler=yes
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491         ac_header_compiler=no
16492 fi
16493
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16496 echo "${ECHO_T}$ac_header_compiler" >&6; }
16497
16498 # Is the header present?
16499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h.  */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h.  */
16507 #include <$ac_header>
16508 _ACEOF
16509 if { (ac_try="$ac_cpp conftest.$ac_ext"
16510 case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16516   ac_status=$?
16517   grep -v '^ *+' conftest.er1 >conftest.err
16518   rm -f conftest.er1
16519   cat conftest.err >&5
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); } >/dev/null; then
16522   if test -s conftest.err; then
16523     ac_cpp_err=$ac_c_preproc_warn_flag
16524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16525   else
16526     ac_cpp_err=
16527   fi
16528 else
16529   ac_cpp_err=yes
16530 fi
16531 if test -z "$ac_cpp_err"; then
16532   ac_header_preproc=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537   ac_header_preproc=no
16538 fi
16539
16540 rm -f conftest.err conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16542 echo "${ECHO_T}$ac_header_preproc" >&6; }
16543
16544 # So?  What about this header?
16545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16546   yes:no: )
16547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16551     ac_header_preproc=yes
16552     ;;
16553   no:yes:* )
16554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16566     ( cat <<\_ASBOX
16567 ## ------------------------------------ ##
16568 ## Report this to http://llvm.org/bugs/ ##
16569 ## ------------------------------------ ##
16570 _ASBOX
16571      ) | sed "s/^/$as_me: WARNING:     /" >&2
16572     ;;
16573 esac
16574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   eval "$as_ac_Header=\$ac_header_preproc"
16580 fi
16581 ac_res=`eval echo '${'$as_ac_Header'}'`
16582                { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16584
16585 fi
16586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16587   cat >>confdefs.h <<_ACEOF
16588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16589 _ACEOF
16590
16591 fi
16592
16593 done
16594
16595 fi
16596
16597
16598 for ac_header in CrashReporterClient.h
16599 do
16600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 fi
16607 ac_res=`eval echo '${'$as_ac_Header'}'`
16608                { echo "$as_me:$LINENO: result: $ac_res" >&5
16609 echo "${ECHO_T}$ac_res" >&6; }
16610 else
16611   # Is the header compilable?
16612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620 $ac_includes_default
16621 #include <$ac_header>
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_compile") 2>conftest.er1
16631   ac_status=$?
16632   grep -v '^ *+' conftest.er1 >conftest.err
16633   rm -f conftest.er1
16634   cat conftest.err >&5
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); } &&
16637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638   { (case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_try") 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest.$ac_objext'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_header_compiler=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662         ac_header_compiler=no
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16667 echo "${ECHO_T}$ac_header_compiler" >&6; }
16668
16669 # Is the header present?
16670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 #include <$ac_header>
16679 _ACEOF
16680 if { (ac_try="$ac_cpp conftest.$ac_ext"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } >/dev/null; then
16693   if test -s conftest.err; then
16694     ac_cpp_err=$ac_c_preproc_warn_flag
16695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16696   else
16697     ac_cpp_err=
16698   fi
16699 else
16700   ac_cpp_err=yes
16701 fi
16702 if test -z "$ac_cpp_err"; then
16703   ac_header_preproc=yes
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708   ac_header_preproc=no
16709 fi
16710
16711 rm -f conftest.err conftest.$ac_ext
16712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16713 echo "${ECHO_T}$ac_header_preproc" >&6; }
16714
16715 # So?  What about this header?
16716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16717   yes:no: )
16718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16722     ac_header_preproc=yes
16723     ;;
16724   no:yes:* )
16725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16737     ( cat <<\_ASBOX
16738 ## ------------------------------------ ##
16739 ## Report this to http://llvm.org/bugs/ ##
16740 ## ------------------------------------ ##
16741 _ASBOX
16742      ) | sed "s/^/$as_me: WARNING:     /" >&2
16743     ;;
16744 esac
16745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   eval "$as_ac_Header=\$ac_header_preproc"
16751 fi
16752 ac_res=`eval echo '${'$as_ac_Header'}'`
16753                { echo "$as_me:$LINENO: result: $ac_res" >&5
16754 echo "${ECHO_T}$ac_res" >&6; }
16755
16756 fi
16757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16758   cat >>confdefs.h <<_ACEOF
16759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16760 _ACEOF
16761
16762 fi
16763
16764 done
16765
16766
16767 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16768 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16770
16771   /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777     extern const char *__crashreporter_info__;
16778     int main() {
16779       __crashreporter_info__ = "test";
16780       return 0;
16781     }
16782
16783
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (ac_try="$ac_link"
16787 case "(($ac_try" in
16788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789   *) ac_try_echo=$ac_try;;
16790 esac
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792   (eval "$ac_link") 2>conftest.er1
16793   ac_status=$?
16794   grep -v '^ *+' conftest.er1 >conftest.err
16795   rm -f conftest.er1
16796   cat conftest.err >&5
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); } &&
16799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16800   { (case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_try") 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_try") 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; }; then
16819
16820   { echo "$as_me:$LINENO: result: yes" >&5
16821 echo "${ECHO_T}yes" >&6; }
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_CRASHREPORTER_INFO 1
16825 _ACEOF
16826
16827
16828 else
16829   echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832
16833   { echo "$as_me:$LINENO: result: no" >&5
16834 echo "${ECHO_T}no" >&6; }
16835
16836 cat >>confdefs.h <<\_ACEOF
16837 #define HAVE_CRASHREPORTER_INFO 0
16838 _ACEOF
16839
16840
16841 fi
16842
16843 rm -f core conftest.err conftest.$ac_objext \
16844       conftest$ac_exeext conftest.$ac_ext
16845
16846
16847
16848   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16849 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16850 if test "${ac_cv_huge_val_sanity+set}" = set; then
16851   echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853
16854     ac_ext=cpp
16855 ac_cpp='$CXXCPP $CPPFLAGS'
16856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16859
16860     ac_save_CXXFLAGS=$CXXFLAGS
16861     CXXFLAGS="$CXXFLAGS -pedantic"
16862     if test "$cross_compiling" = yes; then
16863   ac_cv_huge_val_sanity=yes
16864 else
16865   cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871 #include <math.h>
16872 int
16873 main ()
16874 {
16875 double x = HUGE_VAL; return x != x;
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_link") 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16891   { (case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_try") 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   ac_cv_huge_val_sanity=yes
16901 else
16902   echo "$as_me: program exited with status $ac_status" >&5
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ( exit $ac_status )
16907 ac_cv_huge_val_sanity=no
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16910 fi
16911
16912
16913     CXXFLAGS=$ac_save_CXXFLAGS
16914     ac_ext=c
16915 ac_cpp='$CPP $CPPFLAGS'
16916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16919
16920
16921 fi
16922 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16923 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16924   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16925
16926
16927 { echo "$as_me:$LINENO: checking for pid_t" >&5
16928 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16929 if test "${ac_cv_type_pid_t+set}" = set; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932   cat >conftest.$ac_ext <<_ACEOF
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938 $ac_includes_default
16939 typedef pid_t ac__type_new_;
16940 int
16941 main ()
16942 {
16943 if ((ac__type_new_ *) 0)
16944   return 0;
16945 if (sizeof (ac__type_new_))
16946   return 0;
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 rm -f conftest.$ac_objext
16952 if { (ac_try="$ac_compile"
16953 case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_compile") 2>conftest.er1
16959   ac_status=$?
16960   grep -v '^ *+' conftest.er1 >conftest.err
16961   rm -f conftest.er1
16962   cat conftest.err >&5
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); } &&
16965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16966   { (case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971   (eval "$ac_try") 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; } &&
16975          { ac_try='test -s conftest.$ac_objext'
16976   { (case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_try") 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_type_pid_t=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990         ac_cv_type_pid_t=no
16991 fi
16992
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994 fi
16995 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16997 if test $ac_cv_type_pid_t = yes; then
16998   :
16999 else
17000
17001 cat >>confdefs.h <<_ACEOF
17002 #define pid_t int
17003 _ACEOF
17004
17005 fi
17006
17007 { echo "$as_me:$LINENO: checking for size_t" >&5
17008 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17009 if test "${ac_cv_type_size_t+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h.  */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h.  */
17018 $ac_includes_default
17019 typedef size_t ac__type_new_;
17020 int
17021 main ()
17022 {
17023 if ((ac__type_new_ *) 0)
17024   return 0;
17025 if (sizeof (ac__type_new_))
17026   return 0;
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (ac_try="$ac_compile"
17033 case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_compile") 2>conftest.er1
17039   ac_status=$?
17040   grep -v '^ *+' conftest.er1 >conftest.err
17041   rm -f conftest.er1
17042   cat conftest.err >&5
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); } &&
17045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046   { (case "(($ac_try" in
17047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048   *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051   (eval "$ac_try") 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; } &&
17055          { ac_try='test -s conftest.$ac_objext'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   ac_cv_type_size_t=yes
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070         ac_cv_type_size_t=no
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 fi
17075 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17076 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17077 if test $ac_cv_type_size_t = yes; then
17078   :
17079 else
17080
17081 cat >>confdefs.h <<_ACEOF
17082 #define size_t unsigned int
17083 _ACEOF
17084
17085 fi
17086
17087
17088 cat >>confdefs.h <<_ACEOF
17089 #define RETSIGTYPE void
17090 _ACEOF
17091
17092 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17093 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17094 if test "${ac_cv_struct_tm+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103 #include <sys/types.h>
17104 #include <time.h>
17105
17106 int
17107 main ()
17108 {
17109 struct tm *tp; tp->tm_sec;
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext
17115 if { (ac_try="$ac_compile"
17116 case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_compile") 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17129   { (case "(($ac_try" in
17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131   *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134   (eval "$ac_try") 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; } &&
17138          { ac_try='test -s conftest.$ac_objext'
17139   { (case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_try") 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; }; then
17148   ac_cv_struct_tm=time.h
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153         ac_cv_struct_tm=sys/time.h
17154 fi
17155
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 fi
17158 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17159 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17160 if test $ac_cv_struct_tm = sys/time.h; then
17161
17162 cat >>confdefs.h <<\_ACEOF
17163 #define TM_IN_SYS_TIME 1
17164 _ACEOF
17165
17166 fi
17167
17168 { echo "$as_me:$LINENO: checking for int64_t" >&5
17169 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17170 if test "${ac_cv_type_int64_t+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 $ac_includes_default
17180 typedef int64_t ac__type_new_;
17181 int
17182 main ()
17183 {
17184 if ((ac__type_new_ *) 0)
17185   return 0;
17186 if (sizeof (ac__type_new_))
17187   return 0;
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199   (eval "$ac_compile") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } &&
17206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207   { (case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_try") 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; } &&
17216          { ac_try='test -s conftest.$ac_objext'
17217   { (case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_try") 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_cv_type_int64_t=yes
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231         ac_cv_type_int64_t=no
17232 fi
17233
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 fi
17236 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17237 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17238 if test $ac_cv_type_int64_t = yes; then
17239
17240 cat >>confdefs.h <<_ACEOF
17241 #define HAVE_INT64_T 1
17242 _ACEOF
17243
17244
17245 else
17246   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17247 echo "$as_me: error: Type int64_t required but not found" >&2;}
17248    { (exit 1); exit 1; }; }
17249 fi
17250
17251 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17252 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17253 if test "${ac_cv_type_uint64_t+set}" = set; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 $ac_includes_default
17263 typedef uint64_t ac__type_new_;
17264 int
17265 main ()
17266 {
17267 if ((ac__type_new_ *) 0)
17268   return 0;
17269 if (sizeof (ac__type_new_))
17270   return 0;
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282   (eval "$ac_compile") 2>conftest.er1
17283   ac_status=$?
17284   grep -v '^ *+' conftest.er1 >conftest.err
17285   rm -f conftest.er1
17286   cat conftest.err >&5
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); } &&
17289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17290   { (case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295   (eval "$ac_try") 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; } &&
17299          { ac_try='test -s conftest.$ac_objext'
17300   { (case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_try") 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_cv_type_uint64_t=yes
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314         ac_cv_type_uint64_t=no
17315 fi
17316
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17320 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17321 if test $ac_cv_type_uint64_t = yes; then
17322
17323 cat >>confdefs.h <<_ACEOF
17324 #define HAVE_UINT64_T 1
17325 _ACEOF
17326
17327
17328 else
17329   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17330 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17331 if test "${ac_cv_type_u_int64_t+set}" = set; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334   cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340 $ac_includes_default
17341 typedef u_int64_t ac__type_new_;
17342 int
17343 main ()
17344 {
17345 if ((ac__type_new_ *) 0)
17346   return 0;
17347 if (sizeof (ac__type_new_))
17348   return 0;
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (ac_try="$ac_compile"
17355 case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_compile") 2>conftest.er1
17361   ac_status=$?
17362   grep -v '^ *+' conftest.er1 >conftest.err
17363   rm -f conftest.er1
17364   cat conftest.err >&5
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); } &&
17367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368   { (case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_try") 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; } &&
17377          { ac_try='test -s conftest.$ac_objext'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_type_u_int64_t=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392         ac_cv_type_u_int64_t=no
17393 fi
17394
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 fi
17397 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17398 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17399 if test $ac_cv_type_u_int64_t = yes; then
17400
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_U_INT64_T 1
17403 _ACEOF
17404
17405
17406 else
17407   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17408 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17409    { (exit 1); exit 1; }; }
17410 fi
17411
17412 fi
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17424 do
17425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431   cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h.  */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h.  */
17437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17439 #define $ac_func innocuous_$ac_func
17440
17441 /* System header to define __stub macros and hopefully few prototypes,
17442     which can conflict with char $ac_func (); below.
17443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444     <limits.h> exists even on freestanding compilers.  */
17445
17446 #ifdef __STDC__
17447 # include <limits.h>
17448 #else
17449 # include <assert.h>
17450 #endif
17451
17452 #undef $ac_func
17453
17454 /* Override any GCC internal prototype to avoid an error.
17455    Use char because int might match the return type of a GCC
17456    builtin and then its argument prototype would still apply.  */
17457 #ifdef __cplusplus
17458 extern "C"
17459 #endif
17460 char $ac_func ();
17461 /* The GNU C library defines this for functions which it implements
17462     to always fail with ENOSYS.  Some functions are actually named
17463     something starting with __ and the normal name is an alias.  */
17464 #if defined __stub_$ac_func || defined __stub___$ac_func
17465 choke me
17466 #endif
17467
17468 int
17469 main ()
17470 {
17471 return $ac_func ();
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 rm -f conftest.$ac_objext conftest$ac_exeext
17477 if { (ac_try="$ac_link"
17478 case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_link") 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491   { (case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_try") 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; } &&
17500          { ac_try='test -s conftest$ac_exeext'
17501   { (case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_try") 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); }; }; then
17510   eval "$as_ac_var=yes"
17511 else
17512   echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515         eval "$as_ac_var=no"
17516 fi
17517
17518 rm -f core conftest.err conftest.$ac_objext \
17519       conftest$ac_exeext conftest.$ac_ext
17520 fi
17521 ac_res=`eval echo '${'$as_ac_var'}'`
17522                { echo "$as_me:$LINENO: result: $ac_res" >&5
17523 echo "${ECHO_T}$ac_res" >&6; }
17524 if test `eval echo '${'$as_ac_var'}'` = yes; then
17525   cat >>confdefs.h <<_ACEOF
17526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17527 _ACEOF
17528
17529 fi
17530 done
17531
17532
17533
17534
17535
17536 for ac_func in powf fmodf strtof round
17537 do
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544   cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h.  */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h.  */
17550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17552 #define $ac_func innocuous_$ac_func
17553
17554 /* System header to define __stub macros and hopefully few prototypes,
17555     which can conflict with char $ac_func (); below.
17556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557     <limits.h> exists even on freestanding compilers.  */
17558
17559 #ifdef __STDC__
17560 # include <limits.h>
17561 #else
17562 # include <assert.h>
17563 #endif
17564
17565 #undef $ac_func
17566
17567 /* Override any GCC internal prototype to avoid an error.
17568    Use char because int might match the return type of a GCC
17569    builtin and then its argument prototype would still apply.  */
17570 #ifdef __cplusplus
17571 extern "C"
17572 #endif
17573 char $ac_func ();
17574 /* The GNU C library defines this for functions which it implements
17575     to always fail with ENOSYS.  Some functions are actually named
17576     something starting with __ and the normal name is an alias.  */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17578 choke me
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584 return $ac_func ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_link") 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest$ac_exeext'
17614   { (case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_try") 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; }; then
17623   eval "$as_ac_var=yes"
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628         eval "$as_ac_var=no"
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext \
17632       conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635                { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638   cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17641
17642 fi
17643 done
17644
17645
17646
17647
17648
17649
17650 for ac_func in log log2 log10 exp exp2
17651 do
17652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17666 #define $ac_func innocuous_$ac_func
17667
17668 /* System header to define __stub macros and hopefully few prototypes,
17669     which can conflict with char $ac_func (); below.
17670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17671     <limits.h> exists even on freestanding compilers.  */
17672
17673 #ifdef __STDC__
17674 # include <limits.h>
17675 #else
17676 # include <assert.h>
17677 #endif
17678
17679 #undef $ac_func
17680
17681 /* Override any GCC internal prototype to avoid an error.
17682    Use char because int might match the return type of a GCC
17683    builtin and then its argument prototype would still apply.  */
17684 #ifdef __cplusplus
17685 extern "C"
17686 #endif
17687 char $ac_func ();
17688 /* The GNU C library defines this for functions which it implements
17689     to always fail with ENOSYS.  Some functions are actually named
17690     something starting with __ and the normal name is an alias.  */
17691 #if defined __stub_$ac_func || defined __stub___$ac_func
17692 choke me
17693 #endif
17694
17695 int
17696 main ()
17697 {
17698 return $ac_func ();
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707   *) ac_try_echo=$ac_try;;
17708 esac
17709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710   (eval "$ac_link") 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17718   { (case "(($ac_try" in
17719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720   *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723   (eval "$ac_try") 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest$ac_exeext'
17728   { (case "(($ac_try" in
17729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730   *) ac_try_echo=$ac_try;;
17731 esac
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733   (eval "$ac_try") 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   eval "$as_ac_var=yes"
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742         eval "$as_ac_var=no"
17743 fi
17744
17745 rm -f core conftest.err conftest.$ac_objext \
17746       conftest$ac_exeext conftest.$ac_ext
17747 fi
17748 ac_res=`eval echo '${'$as_ac_var'}'`
17749                { echo "$as_me:$LINENO: result: $ac_res" >&5
17750 echo "${ECHO_T}$ac_res" >&6; }
17751 if test `eval echo '${'$as_ac_var'}'` = yes; then
17752   cat >>confdefs.h <<_ACEOF
17753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754 _ACEOF
17755
17756 fi
17757 done
17758
17759
17760
17761
17762
17763
17764 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17765 do
17766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17780 #define $ac_func innocuous_$ac_func
17781
17782 /* System header to define __stub macros and hopefully few prototypes,
17783     which can conflict with char $ac_func (); below.
17784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17785     <limits.h> exists even on freestanding compilers.  */
17786
17787 #ifdef __STDC__
17788 # include <limits.h>
17789 #else
17790 # include <assert.h>
17791 #endif
17792
17793 #undef $ac_func
17794
17795 /* Override any GCC internal prototype to avoid an error.
17796    Use char because int might match the return type of a GCC
17797    builtin and then its argument prototype would still apply.  */
17798 #ifdef __cplusplus
17799 extern "C"
17800 #endif
17801 char $ac_func ();
17802 /* The GNU C library defines this for functions which it implements
17803     to always fail with ENOSYS.  Some functions are actually named
17804     something starting with __ and the normal name is an alias.  */
17805 #if defined __stub_$ac_func || defined __stub___$ac_func
17806 choke me
17807 #endif
17808
17809 int
17810 main ()
17811 {
17812 return $ac_func ();
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (ac_try="$ac_link"
17819 case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_link") 2>conftest.er1
17825   ac_status=$?
17826   grep -v '^ *+' conftest.er1 >conftest.err
17827   rm -f conftest.er1
17828   cat conftest.err >&5
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); } &&
17831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832   { (case "(($ac_try" in
17833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834   *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837   (eval "$ac_try") 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; } &&
17841          { ac_try='test -s conftest$ac_exeext'
17842   { (case "(($ac_try" in
17843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844   *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847   (eval "$ac_try") 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }; }; then
17851   eval "$as_ac_var=yes"
17852 else
17853   echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17855
17856         eval "$as_ac_var=no"
17857 fi
17858
17859 rm -f core conftest.err conftest.$ac_objext \
17860       conftest$ac_exeext conftest.$ac_ext
17861 fi
17862 ac_res=`eval echo '${'$as_ac_var'}'`
17863                { echo "$as_me:$LINENO: result: $ac_res" >&5
17864 echo "${ECHO_T}$ac_res" >&6; }
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866   cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17868 _ACEOF
17869
17870 fi
17871 done
17872
17873
17874
17875
17876 for ac_func in isatty mkdtemp mkstemp
17877 do
17878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h.  */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h.  */
17890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17892 #define $ac_func innocuous_$ac_func
17893
17894 /* System header to define __stub macros and hopefully few prototypes,
17895     which can conflict with char $ac_func (); below.
17896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17897     <limits.h> exists even on freestanding compilers.  */
17898
17899 #ifdef __STDC__
17900 # include <limits.h>
17901 #else
17902 # include <assert.h>
17903 #endif
17904
17905 #undef $ac_func
17906
17907 /* Override any GCC internal prototype to avoid an error.
17908    Use char because int might match the return type of a GCC
17909    builtin and then its argument prototype would still apply.  */
17910 #ifdef __cplusplus
17911 extern "C"
17912 #endif
17913 char $ac_func ();
17914 /* The GNU C library defines this for functions which it implements
17915     to always fail with ENOSYS.  Some functions are actually named
17916     something starting with __ and the normal name is an alias.  */
17917 #if defined __stub_$ac_func || defined __stub___$ac_func
17918 choke me
17919 #endif
17920
17921 int
17922 main ()
17923 {
17924 return $ac_func ();
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_link") 2>conftest.er1
17937   ac_status=$?
17938   grep -v '^ *+' conftest.er1 >conftest.err
17939   rm -f conftest.er1
17940   cat conftest.err >&5
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); } &&
17943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944   { (case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_try") 2>&5
17950   ac_status=$?
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); }; } &&
17953          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17963   eval "$as_ac_var=yes"
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968         eval "$as_ac_var=no"
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext \
17972       conftest$ac_exeext conftest.$ac_ext
17973 fi
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975                { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978   cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17980 _ACEOF
17981
17982 fi
17983 done
17984
17985
17986
17987
17988
17989
17990
17991 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17992 do
17993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997   echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999   cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h.  */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h.  */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18007 #define $ac_func innocuous_$ac_func
18008
18009 /* System header to define __stub macros and hopefully few prototypes,
18010     which can conflict with char $ac_func (); below.
18011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012     <limits.h> exists even on freestanding compilers.  */
18013
18014 #ifdef __STDC__
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18019
18020 #undef $ac_func
18021
18022 /* Override any GCC internal prototype to avoid an error.
18023    Use char because int might match the return type of a GCC
18024    builtin and then its argument prototype would still apply.  */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 char $ac_func ();
18029 /* The GNU C library defines this for functions which it implements
18030     to always fail with ENOSYS.  Some functions are actually named
18031     something starting with __ and the normal name is an alias.  */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 choke me
18034 #endif
18035
18036 int
18037 main ()
18038 {
18039 return $ac_func ();
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_link") 2>conftest.er1
18052   ac_status=$?
18053   grep -v '^ *+' conftest.er1 >conftest.err
18054   rm -f conftest.er1
18055   cat conftest.err >&5
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); } &&
18058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18059   { (case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064   (eval "$ac_try") 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); }; } &&
18068          { ac_try='test -s conftest$ac_exeext'
18069   { (case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_try") 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   eval "$as_ac_var=yes"
18079 else
18080   echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083         eval "$as_ac_var=no"
18084 fi
18085
18086 rm -f core conftest.err conftest.$ac_objext \
18087       conftest$ac_exeext conftest.$ac_ext
18088 fi
18089 ac_res=`eval echo '${'$as_ac_var'}'`
18090                { echo "$as_me:$LINENO: result: $ac_res" >&5
18091 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_var'}'` = yes; then
18093   cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18095 _ACEOF
18096
18097 fi
18098 done
18099
18100
18101
18102
18103
18104 for ac_func in strerror strerror_r setenv arc4random
18105 do
18106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h.  */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h.  */
18118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18120 #define $ac_func innocuous_$ac_func
18121
18122 /* System header to define __stub macros and hopefully few prototypes,
18123     which can conflict with char $ac_func (); below.
18124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18125     <limits.h> exists even on freestanding compilers.  */
18126
18127 #ifdef __STDC__
18128 # include <limits.h>
18129 #else
18130 # include <assert.h>
18131 #endif
18132
18133 #undef $ac_func
18134
18135 /* Override any GCC internal prototype to avoid an error.
18136    Use char because int might match the return type of a GCC
18137    builtin and then its argument prototype would still apply.  */
18138 #ifdef __cplusplus
18139 extern "C"
18140 #endif
18141 char $ac_func ();
18142 /* The GNU C library defines this for functions which it implements
18143     to always fail with ENOSYS.  Some functions are actually named
18144     something starting with __ and the normal name is an alias.  */
18145 #if defined __stub_$ac_func || defined __stub___$ac_func
18146 choke me
18147 #endif
18148
18149 int
18150 main ()
18151 {
18152 return $ac_func ();
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_link") 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } &&
18171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172   { (case "(($ac_try" in
18173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174   *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177   (eval "$ac_try") 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; } &&
18181          { ac_try='test -s conftest$ac_exeext'
18182   { (case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_try") 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; }; then
18191   eval "$as_ac_var=yes"
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196         eval "$as_ac_var=no"
18197 fi
18198
18199 rm -f core conftest.err conftest.$ac_objext \
18200       conftest$ac_exeext conftest.$ac_ext
18201 fi
18202 ac_res=`eval echo '${'$as_ac_var'}'`
18203                { echo "$as_me:$LINENO: result: $ac_res" >&5
18204 echo "${ECHO_T}$ac_res" >&6; }
18205 if test `eval echo '${'$as_ac_var'}'` = yes; then
18206   cat >>confdefs.h <<_ACEOF
18207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18208 _ACEOF
18209
18210 fi
18211 done
18212
18213
18214
18215
18216
18217 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18218 do
18219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18233 #define $ac_func innocuous_$ac_func
18234
18235 /* System header to define __stub macros and hopefully few prototypes,
18236     which can conflict with char $ac_func (); below.
18237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238     <limits.h> exists even on freestanding compilers.  */
18239
18240 #ifdef __STDC__
18241 # include <limits.h>
18242 #else
18243 # include <assert.h>
18244 #endif
18245
18246 #undef $ac_func
18247
18248 /* Override any GCC internal prototype to avoid an error.
18249    Use char because int might match the return type of a GCC
18250    builtin and then its argument prototype would still apply.  */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char $ac_func ();
18255 /* The GNU C library defines this for functions which it implements
18256     to always fail with ENOSYS.  Some functions are actually named
18257     something starting with __ and the normal name is an alias.  */
18258 #if defined __stub_$ac_func || defined __stub___$ac_func
18259 choke me
18260 #endif
18261
18262 int
18263 main ()
18264 {
18265 return $ac_func ();
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } &&
18284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; } &&
18294          { ac_try='test -s conftest$ac_exeext'
18295   { (case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_try") 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   eval "$as_ac_var=yes"
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309         eval "$as_ac_var=no"
18310 fi
18311
18312 rm -f core conftest.err conftest.$ac_objext \
18313       conftest$ac_exeext conftest.$ac_ext
18314 fi
18315 ac_res=`eval echo '${'$as_ac_var'}'`
18316                { echo "$as_me:$LINENO: result: $ac_res" >&5
18317 echo "${ECHO_T}$ac_res" >&6; }
18318 if test `eval echo '${'$as_ac_var'}'` = yes; then
18319   cat >>confdefs.h <<_ACEOF
18320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18321 _ACEOF
18322
18323 fi
18324 done
18325
18326
18327
18328
18329
18330
18331 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18332 do
18333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339   cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h.  */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h.  */
18345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18347 #define $ac_func innocuous_$ac_func
18348
18349 /* System header to define __stub macros and hopefully few prototypes,
18350     which can conflict with char $ac_func (); below.
18351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18352     <limits.h> exists even on freestanding compilers.  */
18353
18354 #ifdef __STDC__
18355 # include <limits.h>
18356 #else
18357 # include <assert.h>
18358 #endif
18359
18360 #undef $ac_func
18361
18362 /* Override any GCC internal prototype to avoid an error.
18363    Use char because int might match the return type of a GCC
18364    builtin and then its argument prototype would still apply.  */
18365 #ifdef __cplusplus
18366 extern "C"
18367 #endif
18368 char $ac_func ();
18369 /* The GNU C library defines this for functions which it implements
18370     to always fail with ENOSYS.  Some functions are actually named
18371     something starting with __ and the normal name is an alias.  */
18372 #if defined __stub_$ac_func || defined __stub___$ac_func
18373 choke me
18374 #endif
18375
18376 int
18377 main ()
18378 {
18379 return $ac_func ();
18380   ;
18381   return 0;
18382 }
18383 _ACEOF
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388   *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391   (eval "$ac_link") 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399   { (case "(($ac_try" in
18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401   *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404   (eval "$ac_try") 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; } &&
18408          { ac_try='test -s conftest$ac_exeext'
18409   { (case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414   (eval "$ac_try") 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; }; then
18418   eval "$as_ac_var=yes"
18419 else
18420   echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423         eval "$as_ac_var=no"
18424 fi
18425
18426 rm -f core conftest.err conftest.$ac_objext \
18427       conftest$ac_exeext conftest.$ac_ext
18428 fi
18429 ac_res=`eval echo '${'$as_ac_var'}'`
18430                { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18432 if test `eval echo '${'$as_ac_var'}'` = yes; then
18433   cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18435 _ACEOF
18436
18437 fi
18438 done
18439
18440
18441
18442 for ac_func in futimes futimens
18443 do
18444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18458 #define $ac_func innocuous_$ac_func
18459
18460 /* System header to define __stub macros and hopefully few prototypes,
18461     which can conflict with char $ac_func (); below.
18462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463     <limits.h> exists even on freestanding compilers.  */
18464
18465 #ifdef __STDC__
18466 # include <limits.h>
18467 #else
18468 # include <assert.h>
18469 #endif
18470
18471 #undef $ac_func
18472
18473 /* Override any GCC internal prototype to avoid an error.
18474    Use char because int might match the return type of a GCC
18475    builtin and then its argument prototype would still apply.  */
18476 #ifdef __cplusplus
18477 extern "C"
18478 #endif
18479 char $ac_func ();
18480 /* The GNU C library defines this for functions which it implements
18481     to always fail with ENOSYS.  Some functions are actually named
18482     something starting with __ and the normal name is an alias.  */
18483 #if defined __stub_$ac_func || defined __stub___$ac_func
18484 choke me
18485 #endif
18486
18487 int
18488 main ()
18489 {
18490 return $ac_func ();
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (ac_try="$ac_link"
18497 case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_link") 2>conftest.er1
18503   ac_status=$?
18504   grep -v '^ *+' conftest.er1 >conftest.err
18505   rm -f conftest.er1
18506   cat conftest.err >&5
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); } &&
18509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18510   { (case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_try") 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; } &&
18519          { ac_try='test -s conftest$ac_exeext'
18520   { (case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_try") 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; }; then
18529   eval "$as_ac_var=yes"
18530 else
18531   echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18533
18534         eval "$as_ac_var=no"
18535 fi
18536
18537 rm -f core conftest.err conftest.$ac_objext \
18538       conftest$ac_exeext conftest.$ac_ext
18539 fi
18540 ac_res=`eval echo '${'$as_ac_var'}'`
18541                { echo "$as_me:$LINENO: result: $ac_res" >&5
18542 echo "${ECHO_T}$ac_res" >&6; }
18543 if test `eval echo '${'$as_ac_var'}'` = yes; then
18544   cat >>confdefs.h <<_ACEOF
18545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18546 _ACEOF
18547
18548 fi
18549 done
18550
18551 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18552 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18553 if test "${llvm_cv_c_printf_a+set}" = set; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556   ac_ext=c
18557 ac_cpp='$CPP $CPPFLAGS'
18558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18561
18562  if test "$cross_compiling" = yes; then
18563   llvmac_cv_c_printf_a=no
18564 else
18565   cat >conftest.$ac_ext <<_ACEOF
18566
18567   /* confdefs.h.  */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h.  */
18572
18573 #include <stdio.h>
18574 #include <stdlib.h>
18575
18576 int
18577 main ()
18578 {
18579
18580 volatile double A, B;
18581 char Buffer[100];
18582 A = 1;
18583 A /= 10.0;
18584 sprintf(Buffer, "%a", A);
18585 B = atof(Buffer);
18586 if (A != B)
18587   return (1);
18588 if (A != 0x1.999999999999ap-4)
18589   return (1);
18590 return (0);
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602   (eval "$ac_link") 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18606   { (case "(($ac_try" in
18607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608   *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611   (eval "$ac_try") 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   llvm_cv_c_printf_a=yes
18616 else
18617   echo "$as_me: program exited with status $ac_status" >&5
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 ( exit $ac_status )
18622 llvmac_cv_c_printf_a=no
18623 fi
18624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18625 fi
18626
18627
18628  ac_ext=c
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18633
18634 fi
18635 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18636 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18637  if test "$llvm_cv_c_printf_a" = "yes"; then
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_PRINTF_A 1
18641 _ACEOF
18642
18643  fi
18644
18645
18646
18647   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18648 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18649 if test "${ac_cv_func_rand48+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652
18653     ac_ext=cpp
18654 ac_cpp='$CXXCPP $CPPFLAGS'
18655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18658
18659     cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665 #include <stdlib.h>
18666 int
18667 main ()
18668 {
18669 srand48(0);lrand48();drand48();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest.$ac_objext
18675 if { (ac_try="$ac_compile"
18676 case "(($ac_try" in
18677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678   *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681   (eval "$ac_compile") 2>conftest.er1
18682   ac_status=$?
18683   grep -v '^ *+' conftest.er1 >conftest.err
18684   rm -f conftest.er1
18685   cat conftest.err >&5
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); } &&
18688          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest.$ac_objext'
18699   { (case "(($ac_try" in
18700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701   *) ac_try_echo=$ac_try;;
18702 esac
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704   (eval "$ac_try") 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; }; then
18708   ac_cv_func_rand48=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         ac_cv_func_rand48=no
18714 fi
18715
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717     ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723
18724 fi
18725 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18726 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18727
18728 if test "$ac_cv_func_rand48" = "yes" ; then
18729
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_RAND48 1
18732 _ACEOF
18733
18734 fi
18735
18736
18737 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18738 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18739 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748 $ac_includes_default
18749 int
18750 main ()
18751 {
18752 #ifndef strerror_s
18753   char *p = (char *) strerror_s;
18754   return !p;
18755 #endif
18756
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_compile") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } &&
18775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776   { (case "(($ac_try" in
18777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778   *) ac_try_echo=$ac_try;;
18779 esac
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781   (eval "$ac_try") 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; } &&
18785          { ac_try='test -s conftest.$ac_objext'
18786   { (case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_try") 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; }; then
18795   ac_cv_have_decl_strerror_s=yes
18796 else
18797   echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800         ac_cv_have_decl_strerror_s=no
18801 fi
18802
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804 fi
18805 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18806 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18807 if test $ac_cv_have_decl_strerror_s = yes; then
18808
18809 cat >>confdefs.h <<_ACEOF
18810 #define HAVE_DECL_STRERROR_S 1
18811 _ACEOF
18812
18813
18814 else
18815   cat >>confdefs.h <<_ACEOF
18816 #define HAVE_DECL_STRERROR_S 0
18817 _ACEOF
18818
18819
18820 fi
18821
18822
18823
18824 if test "$llvm_cv_os_type" = "MingW" ; then
18825   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18826 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18827 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18828   echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830   ac_check_lib_save_LIBS=$LIBS
18831 LIBS="-lgcc  $LIBS"
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838
18839 /* Override any GCC internal prototype to avoid an error.
18840    Use char because int might match the return type of a GCC
18841    builtin and then its argument prototype would still apply.  */
18842 #ifdef __cplusplus
18843 extern "C"
18844 #endif
18845 char _alloca ();
18846 int
18847 main ()
18848 {
18849 return _alloca ();
18850   ;
18851   return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_link") 2>conftest.er1
18862   ac_status=$?
18863   grep -v '^ *+' conftest.er1 >conftest.err
18864   rm -f conftest.er1
18865   cat conftest.err >&5
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); } &&
18868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869   { (case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_try") 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; } &&
18878          { ac_try='test -s conftest$ac_exeext'
18879   { (case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_try") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; }; then
18888   ac_cv_lib_gcc__alloca=yes
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893         ac_cv_lib_gcc__alloca=no
18894 fi
18895
18896 rm -f core conftest.err conftest.$ac_objext \
18897       conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18899 fi
18900 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18901 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18902 if test $ac_cv_lib_gcc__alloca = yes; then
18903
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE__ALLOCA 1
18906 _ACEOF
18907
18908 fi
18909
18910   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18911 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18912 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18913   echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915   ac_check_lib_save_LIBS=$LIBS
18916 LIBS="-lgcc  $LIBS"
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h.  */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h.  */
18923
18924 /* Override any GCC internal prototype to avoid an error.
18925    Use char because int might match the return type of a GCC
18926    builtin and then its argument prototype would still apply.  */
18927 #ifdef __cplusplus
18928 extern "C"
18929 #endif
18930 char __alloca ();
18931 int
18932 main ()
18933 {
18934 return __alloca ();
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_link") 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } &&
18953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18954   { (case "(($ac_try" in
18955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956   *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959   (eval "$ac_try") 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; } &&
18963          { ac_try='test -s conftest$ac_exeext'
18964   { (case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_try") 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_cv_lib_gcc___alloca=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         ac_cv_lib_gcc___alloca=no
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext \
18982       conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18984 fi
18985 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18986 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18987 if test $ac_cv_lib_gcc___alloca = yes; then
18988
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE___ALLOCA 1
18991 _ACEOF
18992
18993 fi
18994
18995   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18996 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18997 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   ac_check_lib_save_LIBS=$LIBS
19001 LIBS="-lgcc  $LIBS"
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008
19009 /* Override any GCC internal prototype to avoid an error.
19010    Use char because int might match the return type of a GCC
19011    builtin and then its argument prototype would still apply.  */
19012 #ifdef __cplusplus
19013 extern "C"
19014 #endif
19015 char __chkstk ();
19016 int
19017 main ()
19018 {
19019 return __chkstk ();
19020   ;
19021   return 0;
19022 }
19023 _ACEOF
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_link") 2>conftest.er1
19032   ac_status=$?
19033   grep -v '^ *+' conftest.er1 >conftest.err
19034   rm -f conftest.er1
19035   cat conftest.err >&5
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); } &&
19038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19039   { (case "(($ac_try" in
19040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041   *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044   (eval "$ac_try") 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; } &&
19048          { ac_try='test -s conftest$ac_exeext'
19049   { (case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_try") 2>&5
19055   ac_status=$?
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); }; }; then
19058   ac_cv_lib_gcc___chkstk=yes
19059 else
19060   echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19062
19063         ac_cv_lib_gcc___chkstk=no
19064 fi
19065
19066 rm -f core conftest.err conftest.$ac_objext \
19067       conftest$ac_exeext conftest.$ac_ext
19068 LIBS=$ac_check_lib_save_LIBS
19069 fi
19070 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19071 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19072 if test $ac_cv_lib_gcc___chkstk = yes; then
19073
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE___CHKSTK 1
19076 _ACEOF
19077
19078 fi
19079
19080   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19081 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19082 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19083   echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085   ac_check_lib_save_LIBS=$LIBS
19086 LIBS="-lgcc  $LIBS"
19087 cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093
19094 /* Override any GCC internal prototype to avoid an error.
19095    Use char because int might match the return type of a GCC
19096    builtin and then its argument prototype would still apply.  */
19097 #ifdef __cplusplus
19098 extern "C"
19099 #endif
19100 char ___chkstk ();
19101 int
19102 main ()
19103 {
19104 return ___chkstk ();
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116   (eval "$ac_link") 2>conftest.er1
19117   ac_status=$?
19118   grep -v '^ *+' conftest.er1 >conftest.err
19119   rm -f conftest.er1
19120   cat conftest.err >&5
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } &&
19123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124   { (case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_try") 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; } &&
19133          { ac_try='test -s conftest$ac_exeext'
19134   { (case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_try") 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143   ac_cv_lib_gcc____chkstk=yes
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148         ac_cv_lib_gcc____chkstk=no
19149 fi
19150
19151 rm -f core conftest.err conftest.$ac_objext \
19152       conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19154 fi
19155 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19156 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19157 if test $ac_cv_lib_gcc____chkstk = yes; then
19158
19159 cat >>confdefs.h <<\_ACEOF
19160 #define HAVE____CHKSTK 1
19161 _ACEOF
19162
19163 fi
19164
19165
19166   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19167 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19168 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 else
19171   ac_check_lib_save_LIBS=$LIBS
19172 LIBS="-lgcc  $LIBS"
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181    Use char because int might match the return type of a GCC
19182    builtin and then its argument prototype would still apply.  */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char __ashldi3 ();
19187 int
19188 main ()
19189 {
19190 return __ashldi3 ();
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (ac_try="$ac_link"
19197 case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_link") 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } &&
19209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19210   { (case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215   (eval "$ac_try") 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; } &&
19219          { ac_try='test -s conftest$ac_exeext'
19220   { (case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225   (eval "$ac_try") 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_cv_lib_gcc___ashldi3=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234         ac_cv_lib_gcc___ashldi3=no
19235 fi
19236
19237 rm -f core conftest.err conftest.$ac_objext \
19238       conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19240 fi
19241 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19242 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19243 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE___ASHLDI3 1
19247 _ACEOF
19248
19249 fi
19250
19251   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19252 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19253 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lgcc  $LIBS"
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h.  */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h.  */
19264
19265 /* Override any GCC internal prototype to avoid an error.
19266    Use char because int might match the return type of a GCC
19267    builtin and then its argument prototype would still apply.  */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 char __ashrdi3 ();
19272 int
19273 main ()
19274 {
19275 return __ashrdi3 ();
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_link") 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } &&
19294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19295   { (case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_try") 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; } &&
19304          { ac_try='test -s conftest$ac_exeext'
19305   { (case "(($ac_try" in
19306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307   *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310   (eval "$ac_try") 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; }; then
19314   ac_cv_lib_gcc___ashrdi3=yes
19315 else
19316   echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319         ac_cv_lib_gcc___ashrdi3=no
19320 fi
19321
19322 rm -f core conftest.err conftest.$ac_objext \
19323       conftest$ac_exeext conftest.$ac_ext
19324 LIBS=$ac_check_lib_save_LIBS
19325 fi
19326 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19327 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19328 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19329
19330 cat >>confdefs.h <<\_ACEOF
19331 #define HAVE___ASHRDI3 1
19332 _ACEOF
19333
19334 fi
19335
19336   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19337 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19338 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   ac_check_lib_save_LIBS=$LIBS
19342 LIBS="-lgcc  $LIBS"
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349
19350 /* Override any GCC internal prototype to avoid an error.
19351    Use char because int might match the return type of a GCC
19352    builtin and then its argument prototype would still apply.  */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 char __divdi3 ();
19357 int
19358 main ()
19359 {
19360 return __divdi3 ();
19361   ;
19362   return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (ac_try="$ac_link"
19367 case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_link") 2>conftest.er1
19373   ac_status=$?
19374   grep -v '^ *+' conftest.er1 >conftest.err
19375   rm -f conftest.er1
19376   cat conftest.err >&5
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); } &&
19379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19380   { (case "(($ac_try" in
19381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382   *) ac_try_echo=$ac_try;;
19383 esac
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385   (eval "$ac_try") 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; } &&
19389          { ac_try='test -s conftest$ac_exeext'
19390   { (case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395   (eval "$ac_try") 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; }; then
19399   ac_cv_lib_gcc___divdi3=yes
19400 else
19401   echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19403
19404         ac_cv_lib_gcc___divdi3=no
19405 fi
19406
19407 rm -f core conftest.err conftest.$ac_objext \
19408       conftest$ac_exeext conftest.$ac_ext
19409 LIBS=$ac_check_lib_save_LIBS
19410 fi
19411 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19412 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19413 if test $ac_cv_lib_gcc___divdi3 = yes; then
19414
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE___DIVDI3 1
19417 _ACEOF
19418
19419 fi
19420
19421   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19422 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19423 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   ac_check_lib_save_LIBS=$LIBS
19427 LIBS="-lgcc  $LIBS"
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h.  */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h.  */
19434
19435 /* Override any GCC internal prototype to avoid an error.
19436    Use char because int might match the return type of a GCC
19437    builtin and then its argument prototype would still apply.  */
19438 #ifdef __cplusplus
19439 extern "C"
19440 #endif
19441 char __fixdfdi ();
19442 int
19443 main ()
19444 {
19445 return __fixdfdi ();
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_link") 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19465   { (case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_try") 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; } &&
19474          { ac_try='test -s conftest$ac_exeext'
19475   { (case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_try") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   ac_cv_lib_gcc___fixdfdi=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489         ac_cv_lib_gcc___fixdfdi=no
19490 fi
19491
19492 rm -f core conftest.err conftest.$ac_objext \
19493       conftest$ac_exeext conftest.$ac_ext
19494 LIBS=$ac_check_lib_save_LIBS
19495 fi
19496 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19497 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19498 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE___FIXDFDI 1
19502 _ACEOF
19503
19504 fi
19505
19506   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19507 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19508 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-lgcc  $LIBS"
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519
19520 /* Override any GCC internal prototype to avoid an error.
19521    Use char because int might match the return type of a GCC
19522    builtin and then its argument prototype would still apply.  */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 char __fixsfdi ();
19527 int
19528 main ()
19529 {
19530 return __fixsfdi ();
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_link") 2>conftest.er1
19543   ac_status=$?
19544   grep -v '^ *+' conftest.er1 >conftest.err
19545   rm -f conftest.er1
19546   cat conftest.err >&5
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } &&
19549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19550   { (case "(($ac_try" in
19551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552   *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555   (eval "$ac_try") 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; } &&
19559          { ac_try='test -s conftest$ac_exeext'
19560   { (case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_try") 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   ac_cv_lib_gcc___fixsfdi=yes
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574         ac_cv_lib_gcc___fixsfdi=no
19575 fi
19576
19577 rm -f core conftest.err conftest.$ac_objext \
19578       conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19582 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19583 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE___FIXSFDI 1
19587 _ACEOF
19588
19589 fi
19590
19591   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19592 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lgcc  $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604
19605 /* Override any GCC internal prototype to avoid an error.
19606    Use char because int might match the return type of a GCC
19607    builtin and then its argument prototype would still apply.  */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char __floatdidf ();
19612 int
19613 main ()
19614 {
19615 return __floatdidf ();
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_link") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } &&
19634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19635   { (case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640   (eval "$ac_try") 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; } &&
19644          { ac_try='test -s conftest$ac_exeext'
19645   { (case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_try") 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_cv_lib_gcc___floatdidf=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659         ac_cv_lib_gcc___floatdidf=no
19660 fi
19661
19662 rm -f core conftest.err conftest.$ac_objext \
19663       conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19665 fi
19666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19667 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19668 if test $ac_cv_lib_gcc___floatdidf = yes; then
19669
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE___FLOATDIDF 1
19672 _ACEOF
19673
19674 fi
19675
19676   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19677 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19678 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   ac_check_lib_save_LIBS=$LIBS
19682 LIBS="-lgcc  $LIBS"
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689
19690 /* Override any GCC internal prototype to avoid an error.
19691    Use char because int might match the return type of a GCC
19692    builtin and then its argument prototype would still apply.  */
19693 #ifdef __cplusplus
19694 extern "C"
19695 #endif
19696 char __lshrdi3 ();
19697 int
19698 main ()
19699 {
19700 return __lshrdi3 ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_link") 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19720   { (case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_try") 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; } &&
19729          { ac_try='test -s conftest$ac_exeext'
19730   { (case "(($ac_try" in
19731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732   *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735   (eval "$ac_try") 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; }; then
19739   ac_cv_lib_gcc___lshrdi3=yes
19740 else
19741   echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744         ac_cv_lib_gcc___lshrdi3=no
19745 fi
19746
19747 rm -f core conftest.err conftest.$ac_objext \
19748       conftest$ac_exeext conftest.$ac_ext
19749 LIBS=$ac_check_lib_save_LIBS
19750 fi
19751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19752 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19753 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19754
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE___LSHRDI3 1
19757 _ACEOF
19758
19759 fi
19760
19761   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19762 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19763 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   ac_check_lib_save_LIBS=$LIBS
19767 LIBS="-lgcc  $LIBS"
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774
19775 /* Override any GCC internal prototype to avoid an error.
19776    Use char because int might match the return type of a GCC
19777    builtin and then its argument prototype would still apply.  */
19778 #ifdef __cplusplus
19779 extern "C"
19780 #endif
19781 char __moddi3 ();
19782 int
19783 main ()
19784 {
19785 return __moddi3 ();
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_link") 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19805   { (case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810   (eval "$ac_try") 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; } &&
19814          { ac_try='test -s conftest$ac_exeext'
19815   { (case "(($ac_try" in
19816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817   *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820   (eval "$ac_try") 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; }; then
19824   ac_cv_lib_gcc___moddi3=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829         ac_cv_lib_gcc___moddi3=no
19830 fi
19831
19832 rm -f core conftest.err conftest.$ac_objext \
19833       conftest$ac_exeext conftest.$ac_ext
19834 LIBS=$ac_check_lib_save_LIBS
19835 fi
19836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19837 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19838 if test $ac_cv_lib_gcc___moddi3 = yes; then
19839
19840 cat >>confdefs.h <<\_ACEOF
19841 #define HAVE___MODDI3 1
19842 _ACEOF
19843
19844 fi
19845
19846   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19847 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19848 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   ac_check_lib_save_LIBS=$LIBS
19852 LIBS="-lgcc  $LIBS"
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859
19860 /* Override any GCC internal prototype to avoid an error.
19861    Use char because int might match the return type of a GCC
19862    builtin and then its argument prototype would still apply.  */
19863 #ifdef __cplusplus
19864 extern "C"
19865 #endif
19866 char __udivdi3 ();
19867 int
19868 main ()
19869 {
19870 return __udivdi3 ();
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_link") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } &&
19889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890   { (case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_try") 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; } &&
19899          { ac_try='test -s conftest$ac_exeext'
19900   { (case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_try") 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; }; then
19909   ac_cv_lib_gcc___udivdi3=yes
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914         ac_cv_lib_gcc___udivdi3=no
19915 fi
19916
19917 rm -f core conftest.err conftest.$ac_objext \
19918       conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19920 fi
19921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19922 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19923 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE___UDIVDI3 1
19927 _ACEOF
19928
19929 fi
19930
19931   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19932 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19933 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19934   echo $ECHO_N "(cached) $ECHO_C" >&6
19935 else
19936   ac_check_lib_save_LIBS=$LIBS
19937 LIBS="-lgcc  $LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944
19945 /* Override any GCC internal prototype to avoid an error.
19946    Use char because int might match the return type of a GCC
19947    builtin and then its argument prototype would still apply.  */
19948 #ifdef __cplusplus
19949 extern "C"
19950 #endif
19951 char __umoddi3 ();
19952 int
19953 main ()
19954 {
19955 return __umoddi3 ();
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_link") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } &&
19974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975   { (case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_try") 2>&5
19981   ac_status=$?
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); }; } &&
19984          { ac_try='test -s conftest$ac_exeext'
19985   { (case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_try") 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_lib_gcc___umoddi3=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         ac_cv_lib_gcc___umoddi3=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext \
20003       conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20005 fi
20006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20007 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20008 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20009
20010 cat >>confdefs.h <<\_ACEOF
20011 #define HAVE___UMODDI3 1
20012 _ACEOF
20013
20014 fi
20015
20016
20017   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20018 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20019 if test "${ac_cv_lib_gcc___main+set}" = set; then
20020   echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022   ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lgcc  $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030
20031 /* Override any GCC internal prototype to avoid an error.
20032    Use char because int might match the return type of a GCC
20033    builtin and then its argument prototype would still apply.  */
20034 #ifdef __cplusplus
20035 extern "C"
20036 #endif
20037 char __main ();
20038 int
20039 main ()
20040 {
20041 return __main ();
20042   ;
20043   return 0;
20044 }
20045 _ACEOF
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (ac_try="$ac_link"
20048 case "(($ac_try" in
20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050   *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053   (eval "$ac_link") 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20061   { (case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_try") 2>&5
20067   ac_status=$?
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); }; } &&
20070          { ac_try='test -s conftest$ac_exeext'
20071   { (case "(($ac_try" in
20072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073   *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076   (eval "$ac_try") 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; }; then
20080   ac_cv_lib_gcc___main=yes
20081 else
20082   echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085         ac_cv_lib_gcc___main=no
20086 fi
20087
20088 rm -f core conftest.err conftest.$ac_objext \
20089       conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20091 fi
20092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20093 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20094 if test $ac_cv_lib_gcc___main = yes; then
20095
20096 cat >>confdefs.h <<\_ACEOF
20097 #define HAVE___MAIN 1
20098 _ACEOF
20099
20100 fi
20101
20102   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20103 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20104 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   ac_check_lib_save_LIBS=$LIBS
20108 LIBS="-lgcc  $LIBS"
20109 cat >conftest.$ac_ext <<_ACEOF
20110 /* confdefs.h.  */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h.  */
20115
20116 /* Override any GCC internal prototype to avoid an error.
20117    Use char because int might match the return type of a GCC
20118    builtin and then its argument prototype would still apply.  */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char __cmpdi2 ();
20123 int
20124 main ()
20125 {
20126 return __cmpdi2 ();
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_link") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest$ac_exeext'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; }; then
20165   ac_cv_lib_gcc___cmpdi2=yes
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170         ac_cv_lib_gcc___cmpdi2=no
20171 fi
20172
20173 rm -f core conftest.err conftest.$ac_objext \
20174       conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20176 fi
20177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20178 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20179 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20180
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE___CMPDI2 1
20183 _ACEOF
20184
20185 fi
20186
20187 fi
20188
20189 if test "$llvm_cv_os_type" = "MingW" ; then
20190   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20191 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20192   cat >conftest.$ac_ext <<_ACEOF
20193
20194   /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199
20200     #include <windows.h>
20201     #include <imagehlp.h>
20202     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20203     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20204
20205
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211   *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214   (eval "$ac_compile") 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } &&
20221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222   { (case "(($ac_try" in
20223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224   *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227   (eval "$ac_try") 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; } &&
20231          { ac_try='test -s conftest.$ac_objext'
20232   { (case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_try") 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241
20242   { echo "$as_me:$LINENO: result: yes" >&5
20243 echo "${ECHO_T}yes" >&6; }
20244   llvm_cv_win32_elmcb_pcstr="PCSTR"
20245
20246 else
20247   echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250
20251   { echo "$as_me:$LINENO: result: no" >&5
20252 echo "${ECHO_T}no" >&6; }
20253   llvm_cv_win32_elmcb_pcstr="PSTR"
20254
20255 fi
20256
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258
20259 cat >>confdefs.h <<_ACEOF
20260 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20261 _ACEOF
20262
20263 fi
20264
20265
20266
20267   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20268 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20269 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20270   echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272
20273     ac_ext=cpp
20274 ac_cpp='$CXXCPP $CPPFLAGS'
20275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20278
20279     cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 #include <math.h>
20286 int
20287 main ()
20288 {
20289 float f; isnan(f);
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20309   { (case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; } &&
20318          { ac_try='test -s conftest.$ac_objext'
20319   { (case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_try") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   ac_cv_func_isnan_in_math_h=yes
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         ac_cv_func_isnan_in_math_h=no
20334 fi
20335
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337     ac_ext=c
20338 ac_cpp='$CPP $CPPFLAGS'
20339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20342
20343
20344 fi
20345 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20346 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20347
20348
20349 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20350
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_ISNAN_IN_MATH_H 1
20353 _ACEOF
20354
20355 fi
20356
20357
20358   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20359 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20360 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20361   echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363
20364     ac_ext=cpp
20365 ac_cpp='$CXXCPP $CPPFLAGS'
20366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20369
20370     cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376 #include <cmath>
20377 int
20378 main ()
20379 {
20380 float f; isnan(f);
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389   *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392   (eval "$ac_compile") 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } &&
20399          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20400   { (case "(($ac_try" in
20401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402   *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405   (eval "$ac_try") 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; } &&
20409          { ac_try='test -s conftest.$ac_objext'
20410   { (case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_try") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; }; then
20419   ac_cv_func_isnan_in_cmath=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_cv_func_isnan_in_cmath=no
20425 fi
20426
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428     ac_ext=c
20429 ac_cpp='$CPP $CPPFLAGS'
20430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20433
20434
20435 fi
20436 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20437 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20438
20439 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_ISNAN_IN_CMATH 1
20443 _ACEOF
20444
20445 fi
20446
20447
20448   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20449 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20450 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453
20454     ac_ext=cpp
20455 ac_cpp='$CXXCPP $CPPFLAGS'
20456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20459
20460     cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 #include <cmath>
20467 int
20468 main ()
20469 {
20470 float f; std::isnan(f);
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482   (eval "$ac_compile") 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20490   { (case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_try") 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; } &&
20499          { ac_try='test -s conftest.$ac_objext'
20500   { (case "(($ac_try" in
20501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502   *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505   (eval "$ac_try") 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; }; then
20509   ac_cv_func_std_isnan_in_cmath=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514         ac_cv_func_std_isnan_in_cmath=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518     ac_ext=c
20519 ac_cpp='$CPP $CPPFLAGS'
20520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20523
20524
20525 fi
20526 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20527 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20528
20529 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20530
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_STD_ISNAN_IN_CMATH 1
20533 _ACEOF
20534
20535 fi
20536
20537
20538
20539
20540   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20541 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20542 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545
20546     ac_ext=cpp
20547 ac_cpp='$CXXCPP $CPPFLAGS'
20548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
20552     cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 #include <math.h>
20559 int
20560 main ()
20561 {
20562 float f; isinf(f);
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_compile") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20582   { (case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_try") 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
20592   { (case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_try") 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; }; then
20601   ac_cv_func_isinf_in_math_h=yes
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         ac_cv_func_isinf_in_math_h=no
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610     ac_ext=c
20611 ac_cpp='$CPP $CPPFLAGS'
20612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20615
20616
20617 fi
20618 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20619 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20620
20621 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20622
20623 cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_ISINF_IN_MATH_H 1
20625 _ACEOF
20626
20627 fi
20628
20629
20630   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20631 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20632 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20633   echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635
20636     ac_ext=cpp
20637 ac_cpp='$CXXCPP $CPPFLAGS'
20638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20641
20642     cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 #include <cmath>
20649 int
20650 main ()
20651 {
20652 float f; isinf(f);
20653   ;
20654   return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest.$ac_objext
20658 if { (ac_try="$ac_compile"
20659 case "(($ac_try" in
20660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661   *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664   (eval "$ac_compile") 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } &&
20671          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20672   { (case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_try") 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; } &&
20681          { ac_try='test -s conftest.$ac_objext'
20682   { (case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_try") 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; }; then
20691   ac_cv_func_isinf_in_cmath=yes
20692 else
20693   echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20695
20696         ac_cv_func_isinf_in_cmath=no
20697 fi
20698
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700     ac_ext=c
20701 ac_cpp='$CPP $CPPFLAGS'
20702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20705
20706
20707 fi
20708 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20709 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20710
20711 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20712
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_ISINF_IN_CMATH 1
20715 _ACEOF
20716
20717 fi
20718
20719
20720   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20721 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20722 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20723   echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725
20726     ac_ext=cpp
20727 ac_cpp='$CXXCPP $CPPFLAGS'
20728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20731
20732     cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h.  */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h.  */
20738 #include <cmath>
20739 int
20740 main ()
20741 {
20742 float f; std::isinf(f);
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext
20748 if { (ac_try="$ac_compile"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_compile") 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } &&
20761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20762   { (case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_try") 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; } &&
20771          { ac_try='test -s conftest.$ac_objext'
20772   { (case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_try") 2>&5
20778   ac_status=$?
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); }; }; then
20781   ac_cv_func_std_isinf_in_cmath=yes
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786         ac_cv_func_std_isinf_in_cmath=no
20787 fi
20788
20789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20790     ac_ext=c
20791 ac_cpp='$CPP $CPPFLAGS'
20792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20795
20796
20797 fi
20798 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20799 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20800
20801 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20802
20803 cat >>confdefs.h <<\_ACEOF
20804 #define HAVE_STD_ISINF_IN_CMATH 1
20805 _ACEOF
20806
20807 fi
20808
20809
20810   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20811 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20812 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20813   echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815
20816     ac_ext=cpp
20817 ac_cpp='$CXXCPP $CPPFLAGS'
20818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821
20822     cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828 #include <ieeefp.h>
20829 int
20830 main ()
20831 {
20832 float f; finite(f);
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844   (eval "$ac_compile") 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20852   { (case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_try") 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; } &&
20861          { ac_try='test -s conftest.$ac_objext'
20862   { (case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_try") 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   ac_cv_func_finite_in_ieeefp_h=yes
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876         ac_cv_func_finite_in_ieeefp_h=no
20877 fi
20878
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880     ac_ext=c
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20885
20886
20887 fi
20888 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20889 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20890
20891 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_FINITE_IN_IEEEFP_H 1
20895 _ACEOF
20896
20897 fi
20898
20899
20900
20901 if test "$llvm_cv_platform_type" = "Unix" ; then
20902
20903
20904 for ac_header in stdlib.h unistd.h
20905 do
20906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20911   echo $ECHO_N "(cached) $ECHO_C" >&6
20912 fi
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914                { echo "$as_me:$LINENO: result: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20916 else
20917   # Is the header compilable?
20918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 $ac_includes_default
20927 #include <$ac_header>
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_compile") 2>conftest.er1
20937   ac_status=$?
20938   grep -v '^ *+' conftest.er1 >conftest.err
20939   rm -f conftest.er1
20940   cat conftest.err >&5
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } &&
20943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; } &&
20953          { ac_try='test -s conftest.$ac_objext'
20954   { (case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_try") 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; }; then
20963   ac_header_compiler=yes
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968         ac_header_compiler=no
20969 fi
20970
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20973 echo "${ECHO_T}$ac_header_compiler" >&6; }
20974
20975 # Is the header present?
20976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20978 cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 #include <$ac_header>
20985 _ACEOF
20986 if { (ac_try="$ac_cpp conftest.$ac_ext"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } >/dev/null; then
20999   if test -s conftest.err; then
21000     ac_cpp_err=$ac_c_preproc_warn_flag
21001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21002   else
21003     ac_cpp_err=
21004   fi
21005 else
21006   ac_cpp_err=yes
21007 fi
21008 if test -z "$ac_cpp_err"; then
21009   ac_header_preproc=yes
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014   ac_header_preproc=no
21015 fi
21016
21017 rm -f conftest.err conftest.$ac_ext
21018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21019 echo "${ECHO_T}$ac_header_preproc" >&6; }
21020
21021 # So?  What about this header?
21022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21023   yes:no: )
21024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21028     ac_header_preproc=yes
21029     ;;
21030   no:yes:* )
21031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21043     ( cat <<\_ASBOX
21044 ## ------------------------------------ ##
21045 ## Report this to http://llvm.org/bugs/ ##
21046 ## ------------------------------------ ##
21047 _ASBOX
21048      ) | sed "s/^/$as_me: WARNING:     /" >&2
21049     ;;
21050 esac
21051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054   echo $ECHO_N "(cached) $ECHO_C" >&6
21055 else
21056   eval "$as_ac_Header=\$ac_header_preproc"
21057 fi
21058 ac_res=`eval echo '${'$as_ac_Header'}'`
21059                { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21061
21062 fi
21063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21064   cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21066 _ACEOF
21067
21068 fi
21069
21070 done
21071
21072
21073 for ac_func in getpagesize
21074 do
21075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21079   echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081   cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21089 #define $ac_func innocuous_$ac_func
21090
21091 /* System header to define __stub macros and hopefully few prototypes,
21092     which can conflict with char $ac_func (); below.
21093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21094     <limits.h> exists even on freestanding compilers.  */
21095
21096 #ifdef __STDC__
21097 # include <limits.h>
21098 #else
21099 # include <assert.h>
21100 #endif
21101
21102 #undef $ac_func
21103
21104 /* Override any GCC internal prototype to avoid an error.
21105    Use char because int might match the return type of a GCC
21106    builtin and then its argument prototype would still apply.  */
21107 #ifdef __cplusplus
21108 extern "C"
21109 #endif
21110 char $ac_func ();
21111 /* The GNU C library defines this for functions which it implements
21112     to always fail with ENOSYS.  Some functions are actually named
21113     something starting with __ and the normal name is an alias.  */
21114 #if defined __stub_$ac_func || defined __stub___$ac_func
21115 choke me
21116 #endif
21117
21118 int
21119 main ()
21120 {
21121 return $ac_func ();
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_link") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141   { (case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_try") 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); }; } &&
21150          { ac_try='test -s conftest$ac_exeext'
21151   { (case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_try") 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   eval "$as_ac_var=yes"
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165         eval "$as_ac_var=no"
21166 fi
21167
21168 rm -f core conftest.err conftest.$ac_objext \
21169       conftest$ac_exeext conftest.$ac_ext
21170 fi
21171 ac_res=`eval echo '${'$as_ac_var'}'`
21172                { echo "$as_me:$LINENO: result: $ac_res" >&5
21173 echo "${ECHO_T}$ac_res" >&6; }
21174 if test `eval echo '${'$as_ac_var'}'` = yes; then
21175   cat >>confdefs.h <<_ACEOF
21176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21177 _ACEOF
21178
21179 fi
21180 done
21181
21182 { echo "$as_me:$LINENO: checking for working mmap" >&5
21183 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21184 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187   if test "$cross_compiling" = yes; then
21188   ac_cv_func_mmap_fixed_mapped=no
21189 else
21190   cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h.  */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h.  */
21196 $ac_includes_default
21197 /* malloc might have been renamed as rpl_malloc. */
21198 #undef malloc
21199
21200 /* Thanks to Mike Haertel and Jim Avera for this test.
21201    Here is a matrix of mmap possibilities:
21202         mmap private not fixed
21203         mmap private fixed at somewhere currently unmapped
21204         mmap private fixed at somewhere already mapped
21205         mmap shared not fixed
21206         mmap shared fixed at somewhere currently unmapped
21207         mmap shared fixed at somewhere already mapped
21208    For private mappings, we should verify that changes cannot be read()
21209    back from the file, nor mmap's back from the file at a different
21210    address.  (There have been systems where private was not correctly
21211    implemented like the infamous i386 svr4.0, and systems where the
21212    VM page cache was not coherent with the file system buffer cache
21213    like early versions of FreeBSD and possibly contemporary NetBSD.)
21214    For shared mappings, we should conversely verify that changes get
21215    propagated back to all the places they're supposed to be.
21216
21217    Grep wants private fixed already mapped.
21218    The main things grep needs to know about mmap are:
21219    * does it exist and is it safe to write into the mmap'd area
21220    * how to use it (BSD variants)  */
21221
21222 #include <fcntl.h>
21223 #include <sys/mman.h>
21224
21225 #if !STDC_HEADERS && !HAVE_STDLIB_H
21226 char *malloc ();
21227 #endif
21228
21229 /* This mess was copied from the GNU getpagesize.h.  */
21230 #if !HAVE_GETPAGESIZE
21231 /* Assume that all systems that can run configure have sys/param.h.  */
21232 # if !HAVE_SYS_PARAM_H
21233 #  define HAVE_SYS_PARAM_H 1
21234 # endif
21235
21236 # ifdef _SC_PAGESIZE
21237 #  define getpagesize() sysconf(_SC_PAGESIZE)
21238 # else /* no _SC_PAGESIZE */
21239 #  if HAVE_SYS_PARAM_H
21240 #   include <sys/param.h>
21241 #   ifdef EXEC_PAGESIZE
21242 #    define getpagesize() EXEC_PAGESIZE
21243 #   else /* no EXEC_PAGESIZE */
21244 #    ifdef NBPG
21245 #     define getpagesize() NBPG * CLSIZE
21246 #     ifndef CLSIZE
21247 #      define CLSIZE 1
21248 #     endif /* no CLSIZE */
21249 #    else /* no NBPG */
21250 #     ifdef NBPC
21251 #      define getpagesize() NBPC
21252 #     else /* no NBPC */
21253 #      ifdef PAGESIZE
21254 #       define getpagesize() PAGESIZE
21255 #      endif /* PAGESIZE */
21256 #     endif /* no NBPC */
21257 #    endif /* no NBPG */
21258 #   endif /* no EXEC_PAGESIZE */
21259 #  else /* no HAVE_SYS_PARAM_H */
21260 #   define getpagesize() 8192   /* punt totally */
21261 #  endif /* no HAVE_SYS_PARAM_H */
21262 # endif /* no _SC_PAGESIZE */
21263
21264 #endif /* no HAVE_GETPAGESIZE */
21265
21266 int
21267 main ()
21268 {
21269   char *data, *data2, *data3;
21270   int i, pagesize;
21271   int fd;
21272
21273   pagesize = getpagesize ();
21274
21275   /* First, make a file with some known garbage in it. */
21276   data = (char *) malloc (pagesize);
21277   if (!data)
21278     return 1;
21279   for (i = 0; i < pagesize; ++i)
21280     *(data + i) = rand ();
21281   umask (0);
21282   fd = creat ("conftest.mmap", 0600);
21283   if (fd < 0)
21284     return 1;
21285   if (write (fd, data, pagesize) != pagesize)
21286     return 1;
21287   close (fd);
21288
21289   /* Next, try to mmap the file at a fixed address which already has
21290      something else allocated at it.  If we can, also make sure that
21291      we see the same garbage.  */
21292   fd = open ("conftest.mmap", O_RDWR);
21293   if (fd < 0)
21294     return 1;
21295   data2 = (char *) malloc (2 * pagesize);
21296   if (!data2)
21297     return 1;
21298   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21299   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21300                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21301     return 1;
21302   for (i = 0; i < pagesize; ++i)
21303     if (*(data + i) != *(data2 + i))
21304       return 1;
21305
21306   /* Finally, make sure that changes to the mapped area do not
21307      percolate back to the file as seen by read().  (This is a bug on
21308      some variants of i386 svr4.0.)  */
21309   for (i = 0; i < pagesize; ++i)
21310     *(data2 + i) = *(data2 + i) + 1;
21311   data3 = (char *) malloc (pagesize);
21312   if (!data3)
21313     return 1;
21314   if (read (fd, data3, pagesize) != pagesize)
21315     return 1;
21316   for (i = 0; i < pagesize; ++i)
21317     if (*(data + i) != *(data3 + i))
21318       return 1;
21319   close (fd);
21320   return 0;
21321 }
21322 _ACEOF
21323 rm -f conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327   *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330   (eval "$ac_link") 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21334   { (case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_try") 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ac_cv_func_mmap_fixed_mapped=yes
21344 else
21345   echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ( exit $ac_status )
21350 ac_cv_func_mmap_fixed_mapped=no
21351 fi
21352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21353 fi
21354
21355
21356 fi
21357 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21358 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21359 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21360
21361 cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_MMAP 1
21363 _ACEOF
21364
21365 fi
21366 rm -f conftest.mmap
21367
21368   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21369 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21370 if test "${ac_cv_func_mmap_file+set}" = set; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373    ac_ext=c
21374 ac_cpp='$CPP $CPPFLAGS'
21375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21378
21379   if test "$cross_compiling" = yes; then
21380   ac_cv_func_mmap_file=no
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383
21384     /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389
21390 #include <sys/types.h>
21391 #include <sys/mman.h>
21392 #include <fcntl.h>
21393
21394 int
21395 main ()
21396 {
21397
21398   int fd;
21399   fd = creat ("foo",0777);
21400   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21401   unlink ("foo");
21402   return (fd != (int) MAP_FAILED);
21403   ;
21404   return 0;
21405 }
21406 _ACEOF
21407 rm -f conftest$ac_exeext
21408 if { (ac_try="$ac_link"
21409 case "(($ac_try" in
21410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411   *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414   (eval "$ac_link") 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418   { (case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_try") 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; }; then
21427   ac_cv_func_mmap_file=yes
21428 else
21429   echo "$as_me: program exited with status $ac_status" >&5
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 ( exit $ac_status )
21434 ac_cv_func_mmap_file=no
21435 fi
21436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21437 fi
21438
21439
21440   ac_ext=c
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445
21446
21447 fi
21448 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21449 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21450 if test "$ac_cv_func_mmap_file" = yes; then
21451
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_MMAP_FILE
21454 _ACEOF
21455
21456    MMAP_FILE=yes
21457
21458 fi
21459
21460   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21461 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21462 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465   if test "$llvm_cv_os_type" = "Interix" ; then
21466    ac_cv_need_dev_zero_for_mmap=yes
21467  else
21468    ac_cv_need_dev_zero_for_mmap=no
21469  fi
21470
21471 fi
21472 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21473 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21474 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21475
21476 cat >>confdefs.h <<\_ACEOF
21477 #define NEED_DEV_ZERO_FOR_MMAP 1
21478 _ACEOF
21479
21480 fi
21481
21482   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21483   then
21484     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21485 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21486   fi
21487   if test "$ac_cv_func_mmap_file" = "no"
21488   then
21489     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21490 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21491   fi
21492 fi
21493
21494 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21495 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21496 ac_ext=cpp
21497 ac_cpp='$CXXCPP $CPPFLAGS'
21498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21501
21502 cat >conftest.$ac_ext <<_ACEOF
21503
21504   /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509
21510     int main() {
21511       volatile unsigned long val = 1;
21512       __sync_synchronize();
21513       __sync_val_compare_and_swap(&val, 1, 0);
21514       __sync_add_and_fetch(&val, 1);
21515       __sync_sub_and_fetch(&val, 1);
21516       return 0;
21517     }
21518
21519
21520 _ACEOF
21521 rm -f conftest.$ac_objext conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_link") 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21536   { (case "(($ac_try" in
21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541   (eval "$ac_try") 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; } &&
21545          { ac_try='test -s conftest$ac_exeext'
21546   { (case "(($ac_try" in
21547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548   *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551   (eval "$ac_try") 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555
21556   { echo "$as_me:$LINENO: result: yes" >&5
21557 echo "${ECHO_T}yes" >&6; }
21558
21559 cat >>confdefs.h <<\_ACEOF
21560 #define LLVM_HAS_ATOMICS 1
21561 _ACEOF
21562
21563
21564 else
21565   echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568
21569   { echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6; }
21571
21572 cat >>confdefs.h <<\_ACEOF
21573 #define LLVM_HAS_ATOMICS 0
21574 _ACEOF
21575
21576   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21577 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21578
21579 fi
21580
21581 rm -f core conftest.err conftest.$ac_objext \
21582       conftest$ac_exeext conftest.$ac_ext
21583 ac_ext=c
21584 ac_cpp='$CPP $CPPFLAGS'
21585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21588
21589
21590
21591 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21592   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21593 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21594 if test "${llvm_cv_linux_mixed+set}" = set; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597    ac_ext=c
21598 ac_cpp='$CPP $CPPFLAGS'
21599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21602
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 #ifndef __x86_64__
21610        error: Not x86-64 even if uname says so!
21611       #endif
21612
21613 int
21614 main ()
21615 {
21616
21617   ;
21618   return 0;
21619 }
21620 _ACEOF
21621 rm -f conftest.$ac_objext
21622 if { (ac_try="$ac_compile"
21623 case "(($ac_try" in
21624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625   *) ac_try_echo=$ac_try;;
21626 esac
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628   (eval "$ac_compile") 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } &&
21635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636   { (case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_try") 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; } &&
21645          { ac_try='test -s conftest.$ac_objext'
21646   { (case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651   (eval "$ac_try") 2>&5
21652   ac_status=$?
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); }; }; then
21655   llvm_cv_linux_mixed=no
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660         llvm_cv_linux_mixed=yes
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664   ac_ext=c
21665 ac_cpp='$CPP $CPPFLAGS'
21666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21669
21670
21671 fi
21672 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21673 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21674
21675   if test "$llvm_cv_linux_mixed" = "yes"; then
21676     llvm_cv_target_arch="x86"
21677     ARCH="x86"
21678   fi
21679 fi
21680
21681
21682 for ac_func in __dso_handle
21683 do
21684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21698 #define $ac_func innocuous_$ac_func
21699
21700 /* System header to define __stub macros and hopefully few prototypes,
21701     which can conflict with char $ac_func (); below.
21702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21703     <limits.h> exists even on freestanding compilers.  */
21704
21705 #ifdef __STDC__
21706 # include <limits.h>
21707 #else
21708 # include <assert.h>
21709 #endif
21710
21711 #undef $ac_func
21712
21713 /* Override any GCC internal prototype to avoid an error.
21714    Use char because int might match the return type of a GCC
21715    builtin and then its argument prototype would still apply.  */
21716 #ifdef __cplusplus
21717 extern "C"
21718 #endif
21719 char $ac_func ();
21720 /* The GNU C library defines this for functions which it implements
21721     to always fail with ENOSYS.  Some functions are actually named
21722     something starting with __ and the normal name is an alias.  */
21723 #if defined __stub_$ac_func || defined __stub___$ac_func
21724 choke me
21725 #endif
21726
21727 int
21728 main ()
21729 {
21730 return $ac_func ();
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_link") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750   { (case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_try") 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest$ac_exeext'
21760   { (case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_try") 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; }; then
21769   eval "$as_ac_var=yes"
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774         eval "$as_ac_var=no"
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext \
21778       conftest$ac_exeext conftest.$ac_ext
21779 fi
21780 ac_res=`eval echo '${'$as_ac_var'}'`
21781                { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784   cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786 _ACEOF
21787
21788 fi
21789 done
21790
21791
21792 SHLIBEXT=$libltdl_cv_shlibext
21793
21794
21795 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21796
21797
21798 if test "${prefix}" = "NONE" ; then
21799   prefix="/usr/local"
21800 fi
21801 eval LLVM_PREFIX="${prefix}";
21802 eval LLVM_BINDIR="${prefix}/bin";
21803 eval LLVM_DATADIR="${prefix}/share/llvm";
21804 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21805 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21806 eval LLVM_INCLUDEDIR="${prefix}/include";
21807 eval LLVM_INFODIR="${prefix}/info";
21808 eval LLVM_MANDIR="${prefix}/man";
21809 LLVM_CONFIGTIME=`date`
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21821   LLVM_CONFIGTIME="(timestamp not enabled)"
21822 fi
21823
21824
21825 cat >>confdefs.h <<_ACEOF
21826 #define LLVM_PREFIX "$LLVM_PREFIX"
21827 _ACEOF
21828
21829
21830 cat >>confdefs.h <<_ACEOF
21831 #define LLVM_BINDIR "$LLVM_BINDIR"
21832 _ACEOF
21833
21834
21835 cat >>confdefs.h <<_ACEOF
21836 #define LLVM_DATADIR "$LLVM_DATADIR"
21837 _ACEOF
21838
21839
21840 cat >>confdefs.h <<_ACEOF
21841 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21842 _ACEOF
21843
21844
21845 cat >>confdefs.h <<_ACEOF
21846 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21847 _ACEOF
21848
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21852 _ACEOF
21853
21854
21855 cat >>confdefs.h <<_ACEOF
21856 #define LLVM_INFODIR "$LLVM_INFODIR"
21857 _ACEOF
21858
21859
21860 cat >>confdefs.h <<_ACEOF
21861 #define LLVM_MANDIR "$LLVM_MANDIR"
21862 _ACEOF
21863
21864
21865 cat >>confdefs.h <<_ACEOF
21866 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21867 _ACEOF
21868
21869
21870 cat >>confdefs.h <<_ACEOF
21871 #define LLVM_HOST_TRIPLE "$host"
21872 _ACEOF
21873
21874
21875 cat >>confdefs.h <<_ACEOF
21876 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21877 _ACEOF
21878
21879
21880 if test "$BINDINGS_TO_BUILD" = auto ; then
21881   BINDINGS_TO_BUILD=""
21882   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21883     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21884   fi
21885 fi
21886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21887
21888
21889 ALL_BINDINGS=ocaml
21890
21891
21892 binding_prereqs_failed=0
21893 for a_binding in $BINDINGS_TO_BUILD ; do
21894   case "$a_binding" in
21895   ocaml)
21896     if test "x$OCAMLC" = x ; then
21897       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21898 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21899       binding_prereqs_failed=1
21900     fi
21901     if test "x$OCAMLDEP" = x ; then
21902       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21903 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21904       binding_prereqs_failed=1
21905     fi
21906     if test "x$OCAMLOPT" = x ; then
21907       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21909           fi
21910     if test "x$with_ocaml_libdir" != xauto ; then
21911       OCAML_LIBDIR=$with_ocaml_libdir
21912
21913     else
21914       ocaml_stdlib="`"$OCAMLC" -where`"
21915       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21916       then
21917         # ocaml stdlib is beneath our prefix; use stdlib
21918         OCAML_LIBDIR=$ocaml_stdlib
21919
21920       else
21921         # ocaml stdlib is outside our prefix; use libdir/ocaml
21922         OCAML_LIBDIR=${prefix}/lib/ocaml
21923
21924       fi
21925     fi
21926     ;;
21927   esac
21928 done
21929 if test "$binding_prereqs_failed" = 1 ; then
21930   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21931 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21932    { (exit 1); exit 1; }; }
21933 fi
21934
21935 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21936 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21937 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940    ac_ext=cpp
21941 ac_cpp='$CXXCPP $CPPFLAGS'
21942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21945
21946   oldcxxflags="$CXXFLAGS"
21947   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21955 int
21956 main ()
21957 {
21958 X<int>().f();
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_compile") 2>conftest.er1
21971   ac_status=$?
21972   grep -v '^ *+' conftest.er1 >conftest.err
21973   rm -f conftest.er1
21974   cat conftest.err >&5
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); } &&
21977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21978   { (case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_try") 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; } &&
21987          { ac_try='test -s conftest.$ac_objext'
21988   { (case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_try") 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; }; then
21997   llvm_cv_cxx_visibility_inlines_hidden=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002         llvm_cv_cxx_visibility_inlines_hidden=no
22003 fi
22004
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006   CXXFLAGS="$oldcxxflags"
22007   ac_ext=c
22008 ac_cpp='$CPP $CPPFLAGS'
22009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22012
22013
22014 fi
22015 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22016 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22017 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22018   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22019
22020 else
22021   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22022
22023 fi
22024
22025
22026 if test "$llvm_cv_link_use_r" = "yes" ; then
22027   RPATH="-Wl,-R"
22028 else
22029   RPATH="-Wl,-rpath"
22030 fi
22031
22032
22033 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22034   RDYNAMIC="-rdynamic"
22035 else
22036   RDYNAMIC=""
22037 fi
22038
22039
22040
22041 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22042
22043
22044
22045
22046
22047
22048 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22049
22050 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22051
22052 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22053
22054 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22055
22056 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22057
22058
22059 ac_config_files="$ac_config_files Makefile.config"
22060
22061
22062 ac_config_files="$ac_config_files llvm.spec"
22063
22064
22065 ac_config_files="$ac_config_files docs/doxygen.cfg"
22066
22067
22068 if test "${clang_src_root}" = ""; then
22069   clang_src_root="$srcdir/tools/clang"
22070 fi
22071 if test -f ${clang_src_root}/README.txt; then
22072     configh="include/clang/Config/config.h"
22073   doxy="docs/doxygen.cfg"
22074   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22075
22076   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22077
22078 fi
22079
22080 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22081
22082
22083 test "x$program_prefix" = "xNONE" && program_prefix=""
22084
22085
22086
22087 ac_config_commands="$ac_config_commands setup"
22088
22089 ac_config_commands="$ac_config_commands Makefile"
22090
22091
22092 ac_config_commands="$ac_config_commands Makefile.common"
22093
22094
22095 ac_config_commands="$ac_config_commands examples/Makefile"
22096
22097
22098 ac_config_commands="$ac_config_commands lib/Makefile"
22099
22100
22101 ac_config_commands="$ac_config_commands runtime/Makefile"
22102
22103
22104 ac_config_commands="$ac_config_commands test/Makefile"
22105
22106
22107 ac_config_commands="$ac_config_commands test/Makefile.tests"
22108
22109
22110 ac_config_commands="$ac_config_commands unittests/Makefile"
22111
22112
22113 ac_config_commands="$ac_config_commands tools/Makefile"
22114
22115
22116 ac_config_commands="$ac_config_commands utils/Makefile"
22117
22118
22119 ac_config_commands="$ac_config_commands projects/Makefile"
22120
22121
22122 ac_config_commands="$ac_config_commands bindings/Makefile"
22123
22124
22125 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22126
22127
22128
22129 cat >confcache <<\_ACEOF
22130 # This file is a shell script that caches the results of configure
22131 # tests run on this system so they can be shared between configure
22132 # scripts and configure runs, see configure's option --config-cache.
22133 # It is not useful on other systems.  If it contains results you don't
22134 # want to keep, you may remove or edit it.
22135 #
22136 # config.status only pays attention to the cache file if you give it
22137 # the --recheck option to rerun configure.
22138 #
22139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22141 # following values.
22142
22143 _ACEOF
22144
22145 # The following way of writing the cache mishandles newlines in values,
22146 # but we know of no workaround that is simple, portable, and efficient.
22147 # So, we kill variables containing newlines.
22148 # Ultrix sh set writes to stderr and can't be redirected directly,
22149 # and sets the high bit in the cache file unless we assign to the vars.
22150 (
22151   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22152     eval ac_val=\$$ac_var
22153     case $ac_val in #(
22154     *${as_nl}*)
22155       case $ac_var in #(
22156       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22157 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22158       esac
22159       case $ac_var in #(
22160       _ | IFS | as_nl) ;; #(
22161       *) $as_unset $ac_var ;;
22162       esac ;;
22163     esac
22164   done
22165
22166   (set) 2>&1 |
22167     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22168     *${as_nl}ac_space=\ *)
22169       # `set' does not quote correctly, so add quotes (double-quote
22170       # substitution turns \\\\ into \\, and sed turns \\ into \).
22171       sed -n \
22172         "s/'/'\\\\''/g;
22173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22174       ;; #(
22175     *)
22176       # `set' quotes correctly as required by POSIX, so do not add quotes.
22177       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22178       ;;
22179     esac |
22180     sort
22181 ) |
22182   sed '
22183      /^ac_cv_env_/b end
22184      t clear
22185      :clear
22186      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22187      t end
22188      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22189      :end' >>confcache
22190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22191   if test -w "$cache_file"; then
22192     test "x$cache_file" != "x/dev/null" &&
22193       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22194 echo "$as_me: updating cache $cache_file" >&6;}
22195     cat confcache >$cache_file
22196   else
22197     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22198 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22199   fi
22200 fi
22201 rm -f confcache
22202
22203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22204 # Let make expand exec_prefix.
22205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22206
22207 DEFS=-DHAVE_CONFIG_H
22208
22209 ac_libobjs=
22210 ac_ltlibobjs=
22211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22212   # 1. Remove the extension, and $U if already installed.
22213   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22214   ac_i=`echo "$ac_i" | sed "$ac_script"`
22215   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22216   #    will be set to the directory where LIBOBJS objects are built.
22217   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22218   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22219 done
22220 LIBOBJS=$ac_libobjs
22221
22222 LTLIBOBJS=$ac_ltlibobjs
22223
22224
22225 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22226   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22227 Usually this means the macro was only invoked conditionally." >&5
22228 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22229 Usually this means the macro was only invoked conditionally." >&2;}
22230    { (exit 1); exit 1; }; }
22231 fi
22232 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22233   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22234 Usually this means the macro was only invoked conditionally." >&5
22235 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22236 Usually this means the macro was only invoked conditionally." >&2;}
22237    { (exit 1); exit 1; }; }
22238 fi
22239
22240 : ${CONFIG_STATUS=./config.status}
22241 ac_clean_files_save=$ac_clean_files
22242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22243 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22244 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22245 cat >$CONFIG_STATUS <<_ACEOF
22246 #! $SHELL
22247 # Generated by $as_me.
22248 # Run this file to recreate the current configuration.
22249 # Compiler output produced by configure, useful for debugging
22250 # configure, is in config.log if it exists.
22251
22252 debug=false
22253 ac_cs_recheck=false
22254 ac_cs_silent=false
22255 SHELL=\${CONFIG_SHELL-$SHELL}
22256 _ACEOF
22257
22258 cat >>$CONFIG_STATUS <<\_ACEOF
22259 ## --------------------- ##
22260 ## M4sh Initialization.  ##
22261 ## --------------------- ##
22262
22263 # Be Bourne compatible
22264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22265   emulate sh
22266   NULLCMD=:
22267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22268   # is contrary to our usage.  Disable this feature.
22269   alias -g '${1+"$@"}'='"$@"'
22270   setopt NO_GLOB_SUBST
22271 else
22272   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22273 fi
22274 BIN_SH=xpg4; export BIN_SH # for Tru64
22275 DUALCASE=1; export DUALCASE # for MKS sh
22276
22277
22278 # PATH needs CR
22279 # Avoid depending upon Character Ranges.
22280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22283 as_cr_digits='0123456789'
22284 as_cr_alnum=$as_cr_Letters$as_cr_digits
22285
22286 # The user is always right.
22287 if test "${PATH_SEPARATOR+set}" != set; then
22288   echo "#! /bin/sh" >conf$$.sh
22289   echo  "exit 0"   >>conf$$.sh
22290   chmod +x conf$$.sh
22291   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22292     PATH_SEPARATOR=';'
22293   else
22294     PATH_SEPARATOR=:
22295   fi
22296   rm -f conf$$.sh
22297 fi
22298
22299 # Support unset when possible.
22300 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22301   as_unset=unset
22302 else
22303   as_unset=false
22304 fi
22305
22306
22307 # IFS
22308 # We need space, tab and new line, in precisely that order.  Quoting is
22309 # there to prevent editors from complaining about space-tab.
22310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22311 # splitting by setting IFS to empty value.)
22312 as_nl='
22313 '
22314 IFS=" ""        $as_nl"
22315
22316 # Find who we are.  Look in the path if we contain no directory separator.
22317 case $0 in
22318   *[\\/]* ) as_myself=$0 ;;
22319   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22321 do
22322   IFS=$as_save_IFS
22323   test -z "$as_dir" && as_dir=.
22324   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22325 done
22326 IFS=$as_save_IFS
22327
22328      ;;
22329 esac
22330 # We did not find ourselves, most probably we were run as `sh COMMAND'
22331 # in which case we are not to be found in the path.
22332 if test "x$as_myself" = x; then
22333   as_myself=$0
22334 fi
22335 if test ! -f "$as_myself"; then
22336   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22337   { (exit 1); exit 1; }
22338 fi
22339
22340 # Work around bugs in pre-3.0 UWIN ksh.
22341 for as_var in ENV MAIL MAILPATH
22342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22343 done
22344 PS1='$ '
22345 PS2='> '
22346 PS4='+ '
22347
22348 # NLS nuisances.
22349 for as_var in \
22350   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22351   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22352   LC_TELEPHONE LC_TIME
22353 do
22354   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22355     eval $as_var=C; export $as_var
22356   else
22357     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22358   fi
22359 done
22360
22361 # Required to use basename.
22362 if expr a : '\(a\)' >/dev/null 2>&1 &&
22363    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22364   as_expr=expr
22365 else
22366   as_expr=false
22367 fi
22368
22369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22370   as_basename=basename
22371 else
22372   as_basename=false
22373 fi
22374
22375
22376 # Name of the executable.
22377 as_me=`$as_basename -- "$0" ||
22378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22379          X"$0" : 'X\(//\)$' \| \
22380          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22381 echo X/"$0" |
22382     sed '/^.*\/\([^/][^/]*\)\/*$/{
22383             s//\1/
22384             q
22385           }
22386           /^X\/\(\/\/\)$/{
22387             s//\1/
22388             q
22389           }
22390           /^X\/\(\/\).*/{
22391             s//\1/
22392             q
22393           }
22394           s/.*/./; q'`
22395
22396 # CDPATH.
22397 $as_unset CDPATH
22398
22399
22400
22401   as_lineno_1=$LINENO
22402   as_lineno_2=$LINENO
22403   test "x$as_lineno_1" != "x$as_lineno_2" &&
22404   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22405
22406   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22407   # uniformly replaced by the line number.  The first 'sed' inserts a
22408   # line-number line after each line using $LINENO; the second 'sed'
22409   # does the real work.  The second script uses 'N' to pair each
22410   # line-number line with the line containing $LINENO, and appends
22411   # trailing '-' during substitution so that $LINENO is not a special
22412   # case at line end.
22413   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22414   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22415   # E. McMahon (1931-1989) for sed's syntax.  :-)
22416   sed -n '
22417     p
22418     /[$]LINENO/=
22419   ' <$as_myself |
22420     sed '
22421       s/[$]LINENO.*/&-/
22422       t lineno
22423       b
22424       :lineno
22425       N
22426       :loop
22427       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22428       t loop
22429       s/-\n.*//
22430     ' >$as_me.lineno &&
22431   chmod +x "$as_me.lineno" ||
22432     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22433    { (exit 1); exit 1; }; }
22434
22435   # Don't try to exec as it changes $[0], causing all sort of problems
22436   # (the dirname of $[0] is not the place where we might find the
22437   # original and so on.  Autoconf is especially sensitive to this).
22438   . "./$as_me.lineno"
22439   # Exit status is that of the last command.
22440   exit
22441 }
22442
22443
22444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22445   as_dirname=dirname
22446 else
22447   as_dirname=false
22448 fi
22449
22450 ECHO_C= ECHO_N= ECHO_T=
22451 case `echo -n x` in
22452 -n*)
22453   case `echo 'x\c'` in
22454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22455   *)   ECHO_C='\c';;
22456   esac;;
22457 *)
22458   ECHO_N='-n';;
22459 esac
22460
22461 if expr a : '\(a\)' >/dev/null 2>&1 &&
22462    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22463   as_expr=expr
22464 else
22465   as_expr=false
22466 fi
22467
22468 rm -f conf$$ conf$$.exe conf$$.file
22469 if test -d conf$$.dir; then
22470   rm -f conf$$.dir/conf$$.file
22471 else
22472   rm -f conf$$.dir
22473   mkdir conf$$.dir
22474 fi
22475 echo >conf$$.file
22476 if ln -s conf$$.file conf$$ 2>/dev/null; then
22477   as_ln_s='ln -s'
22478   # ... but there are two gotchas:
22479   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22480   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22481   # In both cases, we have to default to `cp -p'.
22482   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22483     as_ln_s='cp -p'
22484 elif ln conf$$.file conf$$ 2>/dev/null; then
22485   as_ln_s=ln
22486 else
22487   as_ln_s='cp -p'
22488 fi
22489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22490 rmdir conf$$.dir 2>/dev/null
22491
22492 if mkdir -p . 2>/dev/null; then
22493   as_mkdir_p=:
22494 else
22495   test -d ./-p && rmdir ./-p
22496   as_mkdir_p=false
22497 fi
22498
22499 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22500 # systems may use methods other than mode bits to determine executability.
22501 cat >conf$$.file <<_ASEOF
22502 #! /bin/sh
22503 exit 0
22504 _ASEOF
22505 chmod +x conf$$.file
22506 if test -x conf$$.file >/dev/null 2>&1; then
22507   as_executable_p="test -x"
22508 else
22509   as_executable_p=:
22510 fi
22511 rm -f conf$$.file
22512
22513 # Sed expression to map a string onto a valid CPP name.
22514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22515
22516 # Sed expression to map a string onto a valid variable name.
22517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22518
22519
22520 exec 6>&1
22521
22522 # Save the log message, to keep $[0] and so on meaningful, and to
22523 # report actual input values of CONFIG_FILES etc. instead of their
22524 # values after options handling.
22525 ac_log="
22526 This file was extended by LLVM $as_me 3.4svn, which was
22527 generated by GNU Autoconf 2.60.  Invocation command line was
22528
22529   CONFIG_FILES    = $CONFIG_FILES
22530   CONFIG_HEADERS  = $CONFIG_HEADERS
22531   CONFIG_LINKS    = $CONFIG_LINKS
22532   CONFIG_COMMANDS = $CONFIG_COMMANDS
22533   $ $0 $@
22534
22535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22536 "
22537
22538 _ACEOF
22539
22540 cat >>$CONFIG_STATUS <<_ACEOF
22541 # Files that config.status was made for.
22542 config_files="$ac_config_files"
22543 config_headers="$ac_config_headers"
22544 config_commands="$ac_config_commands"
22545
22546 _ACEOF
22547
22548 cat >>$CONFIG_STATUS <<\_ACEOF
22549 ac_cs_usage="\
22550 \`$as_me' instantiates files from templates according to the
22551 current configuration.
22552
22553 Usage: $0 [OPTIONS] [FILE]...
22554
22555   -h, --help       print this help, then exit
22556   -V, --version    print version number, then exit
22557   -q, --quiet      do not print progress messages
22558   -d, --debug      don't remove temporary files
22559       --recheck    update $as_me by reconfiguring in the same conditions
22560   --file=FILE[:TEMPLATE]
22561                    instantiate the configuration file FILE
22562   --header=FILE[:TEMPLATE]
22563                    instantiate the configuration header FILE
22564
22565 Configuration files:
22566 $config_files
22567
22568 Configuration headers:
22569 $config_headers
22570
22571 Configuration commands:
22572 $config_commands
22573
22574 Report bugs to <bug-autoconf@gnu.org>."
22575
22576 _ACEOF
22577 cat >>$CONFIG_STATUS <<_ACEOF
22578 ac_cs_version="\\
22579 LLVM config.status 3.4svn
22580 configured by $0, generated by GNU Autoconf 2.60,
22581   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22582
22583 Copyright (C) 2006 Free Software Foundation, Inc.
22584 This config.status script is free software; the Free Software Foundation
22585 gives unlimited permission to copy, distribute and modify it."
22586
22587 ac_pwd='$ac_pwd'
22588 srcdir='$srcdir'
22589 INSTALL='$INSTALL'
22590 _ACEOF
22591
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593 # If no file are specified by the user, then we need to provide default
22594 # value.  By we need to know if files were specified by the user.
22595 ac_need_defaults=:
22596 while test $# != 0
22597 do
22598   case $1 in
22599   --*=*)
22600     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22601     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22602     ac_shift=:
22603     ;;
22604   *)
22605     ac_option=$1
22606     ac_optarg=$2
22607     ac_shift=shift
22608     ;;
22609   esac
22610
22611   case $ac_option in
22612   # Handling of the options.
22613   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22614     ac_cs_recheck=: ;;
22615   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22616     echo "$ac_cs_version"; exit ;;
22617   --debug | --debu | --deb | --de | --d | -d )
22618     debug=: ;;
22619   --file | --fil | --fi | --f )
22620     $ac_shift
22621     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22622     ac_need_defaults=false;;
22623   --header | --heade | --head | --hea )
22624     $ac_shift
22625     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22626     ac_need_defaults=false;;
22627   --he | --h)
22628     # Conflict between --help and --header
22629     { echo "$as_me: error: ambiguous option: $1
22630 Try \`$0 --help' for more information." >&2
22631    { (exit 1); exit 1; }; };;
22632   --help | --hel | -h )
22633     echo "$ac_cs_usage"; exit ;;
22634   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22635   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22636     ac_cs_silent=: ;;
22637
22638   # This is an error.
22639   -*) { echo "$as_me: error: unrecognized option: $1
22640 Try \`$0 --help' for more information." >&2
22641    { (exit 1); exit 1; }; } ;;
22642
22643   *) ac_config_targets="$ac_config_targets $1"
22644      ac_need_defaults=false ;;
22645
22646   esac
22647   shift
22648 done
22649
22650 ac_configure_extra_args=
22651
22652 if $ac_cs_silent; then
22653   exec 6>/dev/null
22654   ac_configure_extra_args="$ac_configure_extra_args --silent"
22655 fi
22656
22657 _ACEOF
22658 cat >>$CONFIG_STATUS <<_ACEOF
22659 if \$ac_cs_recheck; then
22660   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22661   CONFIG_SHELL=$SHELL
22662   export CONFIG_SHELL
22663   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22664 fi
22665
22666 _ACEOF
22667 cat >>$CONFIG_STATUS <<\_ACEOF
22668 exec 5>>config.log
22669 {
22670   echo
22671   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22672 ## Running $as_me. ##
22673 _ASBOX
22674   echo "$ac_log"
22675 } >&5
22676
22677 _ACEOF
22678 cat >>$CONFIG_STATUS <<_ACEOF
22679 #
22680 # INIT-COMMANDS
22681 #
22682 llvm_src="${srcdir}"
22683
22684 _ACEOF
22685
22686 cat >>$CONFIG_STATUS <<\_ACEOF
22687
22688 # Handling of arguments.
22689 for ac_config_target in $ac_config_targets
22690 do
22691   case $ac_config_target in
22692     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22693     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22694     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22695     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22696     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22697     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22698     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22699     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22700     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22701     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22702     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22703     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22704     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22705     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22706     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22707     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22708     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22709     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22710     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22711     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22712     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22713     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22714     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22715     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22716     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22717     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22718     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22719
22720   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22721 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22722    { (exit 1); exit 1; }; };;
22723   esac
22724 done
22725
22726
22727 # If the user did not use the arguments to specify the items to instantiate,
22728 # then the envvar interface is used.  Set only those that are not.
22729 # We use the long form for the default assignment because of an extremely
22730 # bizarre bug on SunOS 4.1.3.
22731 if $ac_need_defaults; then
22732   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22733   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22734   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22735 fi
22736
22737 # Have a temporary directory for convenience.  Make it in the build tree
22738 # simply because there is no reason against having it here, and in addition,
22739 # creating and moving files from /tmp can sometimes cause problems.
22740 # Hook for its removal unless debugging.
22741 # Note that there is a small window in which the directory will not be cleaned:
22742 # after its creation but before its name has been assigned to `$tmp'.
22743 $debug ||
22744 {
22745   tmp=
22746   trap 'exit_status=$?
22747   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22748 ' 0
22749   trap '{ (exit 1); exit 1; }' 1 2 13 15
22750 }
22751 # Create a (secure) tmp directory for tmp files.
22752
22753 {
22754   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22755   test -n "$tmp" && test -d "$tmp"
22756 }  ||
22757 {
22758   tmp=./conf$$-$RANDOM
22759   (umask 077 && mkdir "$tmp")
22760 } ||
22761 {
22762    echo "$me: cannot create a temporary directory in ." >&2
22763    { (exit 1); exit 1; }
22764 }
22765
22766 #
22767 # Set up the sed scripts for CONFIG_FILES section.
22768 #
22769
22770 # No need to generate the scripts if there are no CONFIG_FILES.
22771 # This happens for instance when ./config.status config.h
22772 if test -n "$CONFIG_FILES"; then
22773
22774 _ACEOF
22775
22776
22777
22778 ac_delim='%!_!# '
22779 for ac_last_try in false false false false false :; do
22780   cat >conf$$subs.sed <<_ACEOF
22781 SHELL!$SHELL$ac_delim
22782 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22783 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22784 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22785 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22786 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22787 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22788 exec_prefix!$exec_prefix$ac_delim
22789 prefix!$prefix$ac_delim
22790 program_transform_name!$program_transform_name$ac_delim
22791 bindir!$bindir$ac_delim
22792 sbindir!$sbindir$ac_delim
22793 libexecdir!$libexecdir$ac_delim
22794 datarootdir!$datarootdir$ac_delim
22795 datadir!$datadir$ac_delim
22796 sysconfdir!$sysconfdir$ac_delim
22797 sharedstatedir!$sharedstatedir$ac_delim
22798 localstatedir!$localstatedir$ac_delim
22799 includedir!$includedir$ac_delim
22800 oldincludedir!$oldincludedir$ac_delim
22801 docdir!$docdir$ac_delim
22802 infodir!$infodir$ac_delim
22803 htmldir!$htmldir$ac_delim
22804 dvidir!$dvidir$ac_delim
22805 pdfdir!$pdfdir$ac_delim
22806 psdir!$psdir$ac_delim
22807 libdir!$libdir$ac_delim
22808 localedir!$localedir$ac_delim
22809 mandir!$mandir$ac_delim
22810 DEFS!$DEFS$ac_delim
22811 ECHO_C!$ECHO_C$ac_delim
22812 ECHO_N!$ECHO_N$ac_delim
22813 ECHO_T!$ECHO_T$ac_delim
22814 LIBS!$LIBS$ac_delim
22815 build_alias!$build_alias$ac_delim
22816 host_alias!$host_alias$ac_delim
22817 target_alias!$target_alias$ac_delim
22818 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22819 CC!$CC$ac_delim
22820 CFLAGS!$CFLAGS$ac_delim
22821 LDFLAGS!$LDFLAGS$ac_delim
22822 CPPFLAGS!$CPPFLAGS$ac_delim
22823 ac_ct_CC!$ac_ct_CC$ac_delim
22824 EXEEXT!$EXEEXT$ac_delim
22825 OBJEXT!$OBJEXT$ac_delim
22826 CXX!$CXX$ac_delim
22827 CXXFLAGS!$CXXFLAGS$ac_delim
22828 ac_ct_CXX!$ac_ct_CXX$ac_delim
22829 CPP!$CPP$ac_delim
22830 subdirs!$subdirs$ac_delim
22831 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22832 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22833 build!$build$ac_delim
22834 build_cpu!$build_cpu$ac_delim
22835 build_vendor!$build_vendor$ac_delim
22836 build_os!$build_os$ac_delim
22837 host!$host$ac_delim
22838 host_cpu!$host_cpu$ac_delim
22839 host_vendor!$host_vendor$ac_delim
22840 host_os!$host_os$ac_delim
22841 target!$target$ac_delim
22842 target_cpu!$target_cpu$ac_delim
22843 target_vendor!$target_vendor$ac_delim
22844 target_os!$target_os$ac_delim
22845 OS!$OS$ac_delim
22846 HOST_OS!$HOST_OS$ac_delim
22847 TARGET_OS!$TARGET_OS$ac_delim
22848 LINKALL!$LINKALL$ac_delim
22849 NOLINKALL!$NOLINKALL$ac_delim
22850 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22851 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22852 ARCH!$ARCH$ac_delim
22853 HOST_ARCH!$HOST_ARCH$ac_delim
22854 ENDIAN!$ENDIAN$ac_delim
22855 GREP!$GREP$ac_delim
22856 EGREP!$EGREP$ac_delim
22857 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22858 BUILD_CC!$BUILD_CC$ac_delim
22859 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22860 BUILD_CXX!$BUILD_CXX$ac_delim
22861 CVSBUILD!$CVSBUILD$ac_delim
22862 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22863 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22864 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22865 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22866 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22867 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22868 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22869 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22870 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22871 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22872 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22873 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22874 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22875 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22876 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22877 JIT!$JIT$ac_delim
22878 _ACEOF
22879
22880   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22881     break
22882   elif $ac_last_try; then
22883     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22884 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22885    { (exit 1); exit 1; }; }
22886   else
22887     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22888   fi
22889 done
22890
22891 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22892 if test -n "$ac_eof"; then
22893   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22894   ac_eof=`expr $ac_eof + 1`
22895 fi
22896
22897 cat >>$CONFIG_STATUS <<_ACEOF
22898 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22900 _ACEOF
22901 sed '
22902 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22903 s/^/s,@/; s/!/@,|#_!!_#|/
22904 :n
22905 t n
22906 s/'"$ac_delim"'$/,g/; t
22907 s/$/\\/; p
22908 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22909 ' >>$CONFIG_STATUS <conf$$subs.sed
22910 rm -f conf$$subs.sed
22911 cat >>$CONFIG_STATUS <<_ACEOF
22912 CEOF$ac_eof
22913 _ACEOF
22914
22915
22916 ac_delim='%!_!# '
22917 for ac_last_try in false false false false false :; do
22918   cat >conf$$subs.sed <<_ACEOF
22919 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22920 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22921 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22922 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22923 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22924 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22925 ENABLE_PIC!$ENABLE_PIC$ac_delim
22926 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22927 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22928 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22929 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22930 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22931 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22932 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22933 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22934 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22935 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22936 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22937 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22938 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22939 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22940 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22941 NM!$NM$ac_delim
22942 ifGNUmake!$ifGNUmake$ac_delim
22943 LN_S!$LN_S$ac_delim
22944 CMP!$CMP$ac_delim
22945 CP!$CP$ac_delim
22946 DATE!$DATE$ac_delim
22947 FIND!$FIND$ac_delim
22948 MKDIR!$MKDIR$ac_delim
22949 MV!$MV$ac_delim
22950 RANLIB!$RANLIB$ac_delim
22951 AR!$AR$ac_delim
22952 RM!$RM$ac_delim
22953 SED!$SED$ac_delim
22954 TAR!$TAR$ac_delim
22955 BINPWD!$BINPWD$ac_delim
22956 GRAPHVIZ!$GRAPHVIZ$ac_delim
22957 DOT!$DOT$ac_delim
22958 FDP!$FDP$ac_delim
22959 NEATO!$NEATO$ac_delim
22960 TWOPI!$TWOPI$ac_delim
22961 CIRCO!$CIRCO$ac_delim
22962 GV!$GV$ac_delim
22963 DOTTY!$DOTTY$ac_delim
22964 XDOT!$XDOT$ac_delim
22965 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22966 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22967 INSTALL_DATA!$INSTALL_DATA$ac_delim
22968 BZIP2!$BZIP2$ac_delim
22969 CAT!$CAT$ac_delim
22970 DOXYGEN!$DOXYGEN$ac_delim
22971 GROFF!$GROFF$ac_delim
22972 GZIPBIN!$GZIPBIN$ac_delim
22973 PDFROFF!$PDFROFF$ac_delim
22974 ZIP!$ZIP$ac_delim
22975 OCAMLC!$OCAMLC$ac_delim
22976 OCAMLOPT!$OCAMLOPT$ac_delim
22977 OCAMLDEP!$OCAMLDEP$ac_delim
22978 OCAMLDOC!$OCAMLDOC$ac_delim
22979 GAS!$GAS$ac_delim
22980 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22981 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22982 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22983 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22984 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22985 LIBADD_DL!$LIBADD_DL$ac_delim
22986 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22987 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22988 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22989 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22990 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22991 PYTHON!$PYTHON$ac_delim
22992 USE_UDIS86!$USE_UDIS86$ac_delim
22993 USE_OPROFILE!$USE_OPROFILE$ac_delim
22994 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22995 XML2CONFIG!$XML2CONFIG$ac_delim
22996 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22997 LIBXML2_INC!$LIBXML2_INC$ac_delim
22998 CXXCPP!$CXXCPP$ac_delim
22999 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23000 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23001 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23002 MMAP_FILE!$MMAP_FILE$ac_delim
23003 SHLIBEXT!$SHLIBEXT$ac_delim
23004 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23005 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23006 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23007 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23008 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23009 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23010 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23011 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23012 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23013 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23014 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23015 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23016 _ACEOF
23017
23018   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23019     break
23020   elif $ac_last_try; then
23021     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23023    { (exit 1); exit 1; }; }
23024   else
23025     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23026   fi
23027 done
23028
23029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23030 if test -n "$ac_eof"; then
23031   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23032   ac_eof=`expr $ac_eof + 1`
23033 fi
23034
23035 cat >>$CONFIG_STATUS <<_ACEOF
23036 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23038 _ACEOF
23039 sed '
23040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23041 s/^/s,@/; s/!/@,|#_!!_#|/
23042 :n
23043 t n
23044 s/'"$ac_delim"'$/,g/; t
23045 s/$/\\/; p
23046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23047 ' >>$CONFIG_STATUS <conf$$subs.sed
23048 rm -f conf$$subs.sed
23049 cat >>$CONFIG_STATUS <<_ACEOF
23050 CEOF$ac_eof
23051 _ACEOF
23052
23053
23054 ac_delim='%!_!# '
23055 for ac_last_try in false false false false false :; do
23056   cat >conf$$subs.sed <<_ACEOF
23057 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23058 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23059 RPATH!$RPATH$ac_delim
23060 RDYNAMIC!$RDYNAMIC$ac_delim
23061 program_prefix!$program_prefix$ac_delim
23062 LIBOBJS!$LIBOBJS$ac_delim
23063 LTLIBOBJS!$LTLIBOBJS$ac_delim
23064 _ACEOF
23065
23066   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23067     break
23068   elif $ac_last_try; then
23069     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23071    { (exit 1); exit 1; }; }
23072   else
23073     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23074   fi
23075 done
23076
23077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23078 if test -n "$ac_eof"; then
23079   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23080   ac_eof=`expr $ac_eof + 1`
23081 fi
23082
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23086 _ACEOF
23087 sed '
23088 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23089 s/^/s,@/; s/!/@,|#_!!_#|/
23090 :n
23091 t n
23092 s/'"$ac_delim"'$/,g/; t
23093 s/$/\\/; p
23094 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23095 ' >>$CONFIG_STATUS <conf$$subs.sed
23096 rm -f conf$$subs.sed
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098 :end
23099 s/|#_!!_#|//g
23100 CEOF$ac_eof
23101 _ACEOF
23102
23103
23104 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23105 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23106 # trailing colons and then remove the whole line if VPATH becomes empty
23107 # (actually we leave an empty line to preserve line numbers).
23108 if test "x$srcdir" = x.; then
23109   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23110 s/:*\$(srcdir):*/:/
23111 s/:*\${srcdir}:*/:/
23112 s/:*@srcdir@:*/:/
23113 s/^\([^=]*=[     ]*\):*/\1/
23114 s/:*$//
23115 s/^[^=]*=[       ]*$//
23116 }'
23117 fi
23118
23119 cat >>$CONFIG_STATUS <<\_ACEOF
23120 fi # test -n "$CONFIG_FILES"
23121
23122
23123 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23124 do
23125   case $ac_tag in
23126   :[FHLC]) ac_mode=$ac_tag; continue;;
23127   esac
23128   case $ac_mode$ac_tag in
23129   :[FHL]*:*);;
23130   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23131 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23132    { (exit 1); exit 1; }; };;
23133   :[FH]-) ac_tag=-:-;;
23134   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23135   esac
23136   ac_save_IFS=$IFS
23137   IFS=:
23138   set x $ac_tag
23139   IFS=$ac_save_IFS
23140   shift
23141   ac_file=$1
23142   shift
23143
23144   case $ac_mode in
23145   :L) ac_source=$1;;
23146   :[FH])
23147     ac_file_inputs=
23148     for ac_f
23149     do
23150       case $ac_f in
23151       -) ac_f="$tmp/stdin";;
23152       *) # Look for the file first in the build tree, then in the source tree
23153          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23154          # because $ac_f cannot contain `:'.
23155          test -f "$ac_f" ||
23156            case $ac_f in
23157            [\\/$]*) false;;
23158            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23159            esac ||
23160            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23161 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23162    { (exit 1); exit 1; }; };;
23163       esac
23164       ac_file_inputs="$ac_file_inputs $ac_f"
23165     done
23166
23167     # Let's still pretend it is `configure' which instantiates (i.e., don't
23168     # use $as_me), people would be surprised to read:
23169     #    /* config.h.  Generated by config.status.  */
23170     configure_input="Generated from "`IFS=:
23171           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23172     if test x"$ac_file" != x-; then
23173       configure_input="$ac_file.  $configure_input"
23174       { echo "$as_me:$LINENO: creating $ac_file" >&5
23175 echo "$as_me: creating $ac_file" >&6;}
23176     fi
23177
23178     case $ac_tag in
23179     *:-:* | *:-) cat >"$tmp/stdin";;
23180     esac
23181     ;;
23182   esac
23183
23184   ac_dir=`$as_dirname -- "$ac_file" ||
23185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186          X"$ac_file" : 'X\(//\)[^/]' \| \
23187          X"$ac_file" : 'X\(//\)$' \| \
23188          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23189 echo X"$ac_file" |
23190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23191             s//\1/
23192             q
23193           }
23194           /^X\(\/\/\)[^/].*/{
23195             s//\1/
23196             q
23197           }
23198           /^X\(\/\/\)$/{
23199             s//\1/
23200             q
23201           }
23202           /^X\(\/\).*/{
23203             s//\1/
23204             q
23205           }
23206           s/.*/./; q'`
23207   { as_dir="$ac_dir"
23208   case $as_dir in #(
23209   -*) as_dir=./$as_dir;;
23210   esac
23211   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23212     as_dirs=
23213     while :; do
23214       case $as_dir in #(
23215       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23216       *) as_qdir=$as_dir;;
23217       esac
23218       as_dirs="'$as_qdir' $as_dirs"
23219       as_dir=`$as_dirname -- "$as_dir" ||
23220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221          X"$as_dir" : 'X\(//\)[^/]' \| \
23222          X"$as_dir" : 'X\(//\)$' \| \
23223          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23224 echo X"$as_dir" |
23225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23226             s//\1/
23227             q
23228           }
23229           /^X\(\/\/\)[^/].*/{
23230             s//\1/
23231             q
23232           }
23233           /^X\(\/\/\)$/{
23234             s//\1/
23235             q
23236           }
23237           /^X\(\/\).*/{
23238             s//\1/
23239             q
23240           }
23241           s/.*/./; q'`
23242       test -d "$as_dir" && break
23243     done
23244     test -z "$as_dirs" || eval "mkdir $as_dirs"
23245   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23246 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23247    { (exit 1); exit 1; }; }; }
23248   ac_builddir=.
23249
23250 case "$ac_dir" in
23251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23252 *)
23253   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23254   # A ".." for each directory in $ac_dir_suffix.
23255   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23256   case $ac_top_builddir_sub in
23257   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23258   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23259   esac ;;
23260 esac
23261 ac_abs_top_builddir=$ac_pwd
23262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23263 # for backward compatibility:
23264 ac_top_builddir=$ac_top_build_prefix
23265
23266 case $srcdir in
23267   .)  # We are building in place.
23268     ac_srcdir=.
23269     ac_top_srcdir=$ac_top_builddir_sub
23270     ac_abs_top_srcdir=$ac_pwd ;;
23271   [\\/]* | ?:[\\/]* )  # Absolute name.
23272     ac_srcdir=$srcdir$ac_dir_suffix;
23273     ac_top_srcdir=$srcdir
23274     ac_abs_top_srcdir=$srcdir ;;
23275   *) # Relative name.
23276     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23277     ac_top_srcdir=$ac_top_build_prefix$srcdir
23278     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23279 esac
23280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23281
23282
23283   case $ac_mode in
23284   :F)
23285   #
23286   # CONFIG_FILE
23287   #
23288
23289   case $INSTALL in
23290   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23291   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23292   esac
23293 _ACEOF
23294
23295 cat >>$CONFIG_STATUS <<\_ACEOF
23296 # If the template does not know about datarootdir, expand it.
23297 # FIXME: This hack should be removed a few years after 2.60.
23298 ac_datarootdir_hack=; ac_datarootdir_seen=
23299
23300 case `sed -n '/datarootdir/ {
23301   p
23302   q
23303 }
23304 /@datadir@/p
23305 /@docdir@/p
23306 /@infodir@/p
23307 /@localedir@/p
23308 /@mandir@/p
23309 ' $ac_file_inputs` in
23310 *datarootdir*) ac_datarootdir_seen=yes;;
23311 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23312   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23313 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23314 _ACEOF
23315 cat >>$CONFIG_STATUS <<_ACEOF
23316   ac_datarootdir_hack='
23317   s&@datadir@&$datadir&g
23318   s&@docdir@&$docdir&g
23319   s&@infodir@&$infodir&g
23320   s&@localedir@&$localedir&g
23321   s&@mandir@&$mandir&g
23322     s&\\\${datarootdir}&$datarootdir&g' ;;
23323 esac
23324 _ACEOF
23325
23326 # Neutralize VPATH when `$srcdir' = `.'.
23327 # Shell code in configure.ac might set extrasub.
23328 # FIXME: do we really want to maintain this feature?
23329 cat >>$CONFIG_STATUS <<_ACEOF
23330   sed "$ac_vpsub
23331 $extrasub
23332 _ACEOF
23333 cat >>$CONFIG_STATUS <<\_ACEOF
23334 :t
23335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23336 s&@configure_input@&$configure_input&;t t
23337 s&@top_builddir@&$ac_top_builddir_sub&;t t
23338 s&@srcdir@&$ac_srcdir&;t t
23339 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23340 s&@top_srcdir@&$ac_top_srcdir&;t t
23341 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23342 s&@builddir@&$ac_builddir&;t t
23343 s&@abs_builddir@&$ac_abs_builddir&;t t
23344 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23345 s&@INSTALL@&$ac_INSTALL&;t t
23346 $ac_datarootdir_hack
23347 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23348
23349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23350   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23351   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23352   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23353 which seems to be undefined.  Please make sure it is defined." >&5
23354 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23355 which seems to be undefined.  Please make sure it is defined." >&2;}
23356
23357   rm -f "$tmp/stdin"
23358   case $ac_file in
23359   -) cat "$tmp/out"; rm -f "$tmp/out";;
23360   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23361   esac
23362  ;;
23363   :H)
23364   #
23365   # CONFIG_HEADER
23366   #
23367 _ACEOF
23368
23369 # Transform confdefs.h into a sed script `conftest.defines', that
23370 # substitutes the proper values into config.h.in to produce config.h.
23371 rm -f conftest.defines conftest.tail
23372 # First, append a space to every undef/define line, to ease matching.
23373 echo 's/$/ /' >conftest.defines
23374 # Then, protect against being on the right side of a sed subst, or in
23375 # an unquoted here document, in config.status.  If some macros were
23376 # called several times there might be several #defines for the same
23377 # symbol, which is useless.  But do not sort them, since the last
23378 # AC_DEFINE must be honored.
23379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23380 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23381 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23382 # PARAMS is the parameter list in the macro definition--in most cases, it's
23383 # just an empty string.
23384 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23385 ac_dB='\\)[      (].*,\\1define\\2'
23386 ac_dC=' '
23387 ac_dD=' ,'
23388
23389 uniq confdefs.h |
23390   sed -n '
23391         t rset
23392         :rset
23393         s/^[     ]*#[    ]*define[       ][      ]*//
23394         t ok
23395         d
23396         :ok
23397         s/[\\&,]/\\&/g
23398         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23399         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23400   ' >>conftest.defines
23401
23402 # Remove the space that was appended to ease matching.
23403 # Then replace #undef with comments.  This is necessary, for
23404 # example, in the case of _POSIX_SOURCE, which is predefined and required
23405 # on some systems where configure will not decide to define it.
23406 # (The regexp can be short, since the line contains either #define or #undef.)
23407 echo 's/ $//
23408 s,^[     #]*u.*,/* & */,' >>conftest.defines
23409
23410 # Break up conftest.defines:
23411 ac_max_sed_lines=50
23412
23413 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23414 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23415 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23416 # et cetera.
23417 ac_in='$ac_file_inputs'
23418 ac_out='"$tmp/out1"'
23419 ac_nxt='"$tmp/out2"'
23420
23421 while :
23422 do
23423   # Write a here document:
23424     cat >>$CONFIG_STATUS <<_ACEOF
23425     # First, check the format of the line:
23426     cat >"\$tmp/defines.sed" <<\\CEOF
23427 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23428 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23429 b
23430 :def
23431 _ACEOF
23432   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23433   echo 'CEOF
23434     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23435   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23436   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23437   grep . conftest.tail >/dev/null || break
23438   rm -f conftest.defines
23439   mv conftest.tail conftest.defines
23440 done
23441 rm -f conftest.defines conftest.tail
23442
23443 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23444 cat >>$CONFIG_STATUS <<\_ACEOF
23445   if test x"$ac_file" != x-; then
23446     echo "/* $configure_input  */" >"$tmp/config.h"
23447     cat "$ac_result" >>"$tmp/config.h"
23448     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23449       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23450 echo "$as_me: $ac_file is unchanged" >&6;}
23451     else
23452       rm -f $ac_file
23453       mv "$tmp/config.h" $ac_file
23454     fi
23455   else
23456     echo "/* $configure_input  */"
23457     cat "$ac_result"
23458   fi
23459   rm -f "$tmp/out12"
23460  ;;
23461
23462   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23463 echo "$as_me: executing $ac_file commands" >&6;}
23464  ;;
23465   esac
23466
23467
23468   case $ac_file$ac_mode in
23469     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23470    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23471     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23472    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23473     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23474    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23475     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23476    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23477     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23478    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23479     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23480    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23481     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23482    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23483     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23484    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23485     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23486    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23487     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23488    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23489     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23490    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23491     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23492    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23493     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23494    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23495
23496   esac
23497 done # for ac_tag
23498
23499
23500 { (exit 0); exit 0; }
23501 _ACEOF
23502 chmod +x $CONFIG_STATUS
23503 ac_clean_files=$ac_clean_files_save
23504
23505
23506 # configure is writing to config.log, and then calls config.status.
23507 # config.status does its own redirection, appending to config.log.
23508 # Unfortunately, on DOS this fails, as config.log is still kept open
23509 # by configure, so config.status won't be able to write to it; its
23510 # output is simply discarded.  So we exec the FD to /dev/null,
23511 # effectively closing config.log, so it can be properly (re)opened and
23512 # appended to by config.status.  When coming back to configure, we
23513 # need to make the FD available again.
23514 if test "$no_create" != yes; then
23515   ac_cs_success=:
23516   ac_config_status_args=
23517   test "$silent" = yes &&
23518     ac_config_status_args="$ac_config_status_args --quiet"
23519   exec 5>/dev/null
23520   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23521   exec 5>>config.log
23522   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23523   # would make configure fail if this is the last instruction.
23524   $ac_cs_success || { (exit 1); exit 1; }
23525 fi
23526
23527 #
23528 # CONFIG_SUBDIRS section.
23529 #
23530 if test "$no_recursion" != yes; then
23531
23532   # Remove --cache-file and --srcdir arguments so they do not pile up.
23533   ac_sub_configure_args=
23534   ac_prev=
23535   eval "set x $ac_configure_args"
23536   shift
23537   for ac_arg
23538   do
23539     if test -n "$ac_prev"; then
23540       ac_prev=
23541       continue
23542     fi
23543     case $ac_arg in
23544     -cache-file | --cache-file | --cache-fil | --cache-fi \
23545     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23546       ac_prev=cache_file ;;
23547     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23548     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23549     | --c=*)
23550       ;;
23551     --config-cache | -C)
23552       ;;
23553     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23554       ac_prev=srcdir ;;
23555     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23556       ;;
23557     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23558       ac_prev=prefix ;;
23559     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23560       ;;
23561     *)
23562       case $ac_arg in
23563       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23564       esac
23565       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23566     esac
23567   done
23568
23569   # Always prepend --prefix to ensure using the same prefix
23570   # in subdir configurations.
23571   ac_arg="--prefix=$prefix"
23572   case $ac_arg in
23573   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23574   esac
23575   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23576
23577   ac_popdir=`pwd`
23578   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23579
23580     # Do not complain, so a configure script can configure whichever
23581     # parts of a large source tree are present.
23582     test -d "$srcdir/$ac_dir" || continue
23583
23584     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23585     echo "$as_me:$LINENO: $ac_msg" >&5
23586     echo "$ac_msg" >&6
23587     { as_dir="$ac_dir"
23588   case $as_dir in #(
23589   -*) as_dir=./$as_dir;;
23590   esac
23591   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23592     as_dirs=
23593     while :; do
23594       case $as_dir in #(
23595       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23596       *) as_qdir=$as_dir;;
23597       esac
23598       as_dirs="'$as_qdir' $as_dirs"
23599       as_dir=`$as_dirname -- "$as_dir" ||
23600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23601          X"$as_dir" : 'X\(//\)[^/]' \| \
23602          X"$as_dir" : 'X\(//\)$' \| \
23603          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23604 echo X"$as_dir" |
23605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23606             s//\1/
23607             q
23608           }
23609           /^X\(\/\/\)[^/].*/{
23610             s//\1/
23611             q
23612           }
23613           /^X\(\/\/\)$/{
23614             s//\1/
23615             q
23616           }
23617           /^X\(\/\).*/{
23618             s//\1/
23619             q
23620           }
23621           s/.*/./; q'`
23622       test -d "$as_dir" && break
23623     done
23624     test -z "$as_dirs" || eval "mkdir $as_dirs"
23625   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23626 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23627    { (exit 1); exit 1; }; }; }
23628     ac_builddir=.
23629
23630 case "$ac_dir" in
23631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23632 *)
23633   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23634   # A ".." for each directory in $ac_dir_suffix.
23635   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23636   case $ac_top_builddir_sub in
23637   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23638   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23639   esac ;;
23640 esac
23641 ac_abs_top_builddir=$ac_pwd
23642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23643 # for backward compatibility:
23644 ac_top_builddir=$ac_top_build_prefix
23645
23646 case $srcdir in
23647   .)  # We are building in place.
23648     ac_srcdir=.
23649     ac_top_srcdir=$ac_top_builddir_sub
23650     ac_abs_top_srcdir=$ac_pwd ;;
23651   [\\/]* | ?:[\\/]* )  # Absolute name.
23652     ac_srcdir=$srcdir$ac_dir_suffix;
23653     ac_top_srcdir=$srcdir
23654     ac_abs_top_srcdir=$srcdir ;;
23655   *) # Relative name.
23656     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23657     ac_top_srcdir=$ac_top_build_prefix$srcdir
23658     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23659 esac
23660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23661
23662
23663     cd "$ac_dir"
23664
23665     # Check for guested configure; otherwise get Cygnus style configure.
23666     if test -f "$ac_srcdir/configure.gnu"; then
23667       ac_sub_configure=$ac_srcdir/configure.gnu
23668     elif test -f "$ac_srcdir/configure"; then
23669       ac_sub_configure=$ac_srcdir/configure
23670     elif test -f "$ac_srcdir/configure.in"; then
23671       # This should be Cygnus configure.
23672       ac_sub_configure=$ac_aux_dir/configure
23673     else
23674       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23676       ac_sub_configure=
23677     fi
23678
23679     # The recursion is here.
23680     if test -n "$ac_sub_configure"; then
23681       # Make the cache file name correct relative to the subdirectory.
23682       case $cache_file in
23683       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23684       *) # Relative name.
23685         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23686       esac
23687
23688       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23689 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23690       # The eval makes quoting arguments work.
23691       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23692            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23693         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23694 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23695    { (exit 1); exit 1; }; }
23696     fi
23697
23698     cd "$ac_popdir"
23699   done
23700 fi
23701