[SystemZ] Add to --enable-targets=all
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
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.3svn 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.3svn:";;
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-clang-arcmt    Enable building of clang ARCMT (default is YES)
1411   --enable-clang-static-analyzer
1412                           Enable building of clang Static Analyzer (default is
1413                           YES)
1414   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415   --enable-optimized      Compile with optimizations enabled (default is NO)
1416   --enable-profiling      Compile with profiling enabled (default is NO)
1417   --enable-assertions     Compile with assertion checks enabled (default is
1418                           YES)
1419   --enable-werror         Compile with -Werror enabled (default is NO)
1420   --enable-expensive-checks
1421                           Compile with expensive debug checks enabled (default
1422                           is NO)
1423   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1424                           NO)
1425   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1426                           optimization is on and YES if it's off)
1427   --enable-keep-symbols   Do not strip installed executables)
1428   --enable-jit            Enable Just In Time Compiling (default is YES)
1429   --enable-docs           Build documents (default is YES)
1430   --enable-doxygen        Build doxygen documentation (default is NO)
1431   --enable-threads        Use threads if available (default is YES)
1432   --enable-pthreads       Use pthreads if available (default is YES)
1433   --enable-zlib           Use zlib for compression/decompression if available
1434                           (default is YES)
1435   --enable-pic            Build LLVM with Position Independent Code (default
1436                           is YES)
1437   --enable-shared         Build a shared library and link tools against it
1438                           (default is NO)
1439   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1440                           Win32 DLL (default is NO)
1441   --enable-timestamps     Enable embedding timestamp information in build
1442                           (default is YES)
1443   --enable-backtraces     Enable embedding backtraces on crash (default is
1444                           YES)
1445   --enable-targets        Build specific host targets: all or
1446                           target1,target2,... Valid targets are: host, x86,
1447                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448                           xcore, msp430, nvptx, systemz, and cpp (default=all)
1449   --enable-experimental-targets
1450                           Build experimental host targets: disable or
1451                           target1,target2,... (default=disable)
1452   --enable-bindings       Build specific language bindings:
1453                           all,auto,none,{binding-name} (default=auto)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.3svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.3svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 3
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 ${CFLAGS=}
1991 ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang llvm-gcc gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang llvm-gcc gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ llvm-g++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ llvm-g++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { 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
3566 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;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580
3581
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583   subdirs="$subdirs projects/llvm-gcc"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/test-suite ; then
3588   subdirs="$subdirs projects/test-suite"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593   subdirs="$subdirs projects/llvm-test"
3594
3595 fi
3596
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598   subdirs="$subdirs projects/poolalloc"
3599
3600 fi
3601
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603   subdirs="$subdirs projects/llvm-poolalloc"
3604
3605 fi
3606
3607 for i in `ls ${srcdir}/projects`
3608 do
3609   if test -d ${srcdir}/projects/${i} ; then
3610     case ${i} in
3611       sample)       subdirs="$subdirs projects/sample"
3612     ;;
3613       privbracket)  subdirs="$subdirs projects/privbracket"
3614  ;;
3615       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3616  ;;
3617       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3618 ;;
3619       llvm-java)    subdirs="$subdirs projects/llvm-java"
3620  ;;
3621       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3622    ;;
3623       safecode)     subdirs="$subdirs projects/safecode"
3624  ;;
3625       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3626  ;;
3627       compiler-rt)       ;;
3628       llvm-gcc)       ;;
3629       test-suite)     ;;
3630       llvm-test)      ;;
3631       poolalloc)      ;;
3632       llvm-poolalloc) ;;
3633       *)
3634         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3636         ;;
3637     esac
3638   fi
3639 done
3640
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643   enableval=$enable_polly;
3644 else
3645   enableval=default
3646 fi
3647
3648 case "$enableval" in
3649   yes) ENABLE_POLLY=1
3650  ;;
3651   no)  ENABLE_POLLY=0
3652  ;;
3653   default) ENABLE_POLLY=1
3654  ;;
3655   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657    { (exit 1); exit 1; }; } ;;
3658 esac
3659
3660
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3662   LLVM_HAS_POLLY=1
3663
3664   subdirs="$subdirs tools/polly"
3665
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673    { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686    { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699    { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test "x$host_alias" = x; then
3721   ac_cv_host=$ac_cv_build
3722 else
3723   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726    { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736    { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test "x$target_alias" = x; then
3758   ac_cv_target=$ac_cv_host
3759 else
3760   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3770 *-*-*) ;;
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773    { (exit 1); exit 1; }; };;
3774 esac
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3777 set x $ac_cv_target
3778 shift
3779 target_cpu=$1
3780 target_vendor=$2
3781 shift; shift
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3784 target_os=$*
3785 IFS=$ac_save_IFS
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3787
3788
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792   test "$program_prefix$program_suffix$program_transform_name" = \
3793     NONENONEs,x,x, &&
3794   program_prefix=${target_alias}-
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $host in
3802   *-*-aix*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="AIX"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-irix*)
3808     llvm_cv_link_all_option="-Wl,--whole-archive"
3809     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810     llvm_cv_os_type="IRIX"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-cygwin*)
3813     llvm_cv_link_all_option="-Wl,--whole-archive"
3814     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815     llvm_cv_os_type="Cygwin"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-darwin*)
3818     llvm_cv_link_all_option="-Wl,-all_load"
3819     llvm_cv_no_link_all_option="-Wl,-noall_load"
3820     llvm_cv_os_type="Darwin"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-minix*)
3823     llvm_cv_link_all_option="-Wl,-all_load"
3824     llvm_cv_no_link_all_option="-Wl,-noall_load"
3825     llvm_cv_os_type="Minix"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-freebsd* | *-*-kfreebsd-gnu)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="FreeBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-openbsd*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="OpenBSD"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-netbsd*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="NetBSD"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-dragonfly*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="DragonFly"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-hpux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="HP-UX"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-interix*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="Interix"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-linux*)
3858     llvm_cv_link_all_option="-Wl,--whole-archive"
3859     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860     llvm_cv_os_type="Linux"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-gnu*)
3863     llvm_cv_link_all_option="-Wl,--whole-archive"
3864     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865     llvm_cv_os_type="GNU"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-solaris*)
3868     llvm_cv_link_all_option="-Wl,-z,allextract"
3869     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870     llvm_cv_os_type="SunOS"
3871     llvm_cv_platform_type="Unix" ;;
3872   *-*-auroraux*)
3873     llvm_cv_link_all_option="-Wl,-z,allextract"
3874     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875     llvm_cv_os_type="AuroraUX"
3876     llvm_cv_platform_type="Unix" ;;
3877   *-*-win32*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Win32"
3881     llvm_cv_platform_type="Win32" ;;
3882   *-*-mingw*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="MingW"
3886     llvm_cv_platform_type="Win32" ;;
3887   *-*-haiku*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Haiku"
3891     llvm_cv_platform_type="Unix" ;;
3892   *-unknown-eabi*)
3893     llvm_cv_link_all_option="-Wl,--whole-archive"
3894     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895     llvm_cv_os_type="Freestanding"
3896     llvm_cv_platform_type="Unix" ;;
3897   *-unknown-elf*)
3898     llvm_cv_link_all_option="-Wl,--whole-archive"
3899     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900     llvm_cv_os_type="Freestanding"
3901     llvm_cv_platform_type="Unix" ;;
3902   *)
3903     llvm_cv_link_all_option=""
3904     llvm_cv_no_link_all_option=""
3905     llvm_cv_os_type="Unknown"
3906     llvm_cv_platform_type="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3911
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $target in
3918   *-*-aix*)
3919     llvm_cv_target_os_type="AIX" ;;
3920   *-*-irix*)
3921     llvm_cv_target_os_type="IRIX" ;;
3922   *-*-cygwin*)
3923     llvm_cv_target_os_type="Cygwin" ;;
3924   *-*-darwin*)
3925     llvm_cv_target_os_type="Darwin" ;;
3926   *-*-minix*)
3927     llvm_cv_target_os_type="Minix" ;;
3928   *-*-freebsd* | *-*-kfreebsd-gnu)
3929     llvm_cv_target_os_type="FreeBSD" ;;
3930   *-*-openbsd*)
3931     llvm_cv_target_os_type="OpenBSD" ;;
3932   *-*-netbsd*)
3933     llvm_cv_target_os_type="NetBSD" ;;
3934   *-*-dragonfly*)
3935     llvm_cv_target_os_type="DragonFly" ;;
3936   *-*-hpux*)
3937     llvm_cv_target_os_type="HP-UX" ;;
3938   *-*-interix*)
3939     llvm_cv_target_os_type="Interix" ;;
3940   *-*-linux*)
3941     llvm_cv_target_os_type="Linux" ;;
3942   *-*-gnu*)
3943     llvm_cv_target_os_type="GNU" ;;
3944   *-*-solaris*)
3945     llvm_cv_target_os_type="SunOS" ;;
3946   *-*-auroraux*)
3947     llvm_cv_target_os_type="AuroraUX" ;;
3948   *-*-win32*)
3949     llvm_cv_target_os_type="Win32" ;;
3950   *-*-mingw*)
3951     llvm_cv_target_os_type="MingW" ;;
3952   *-*-haiku*)
3953     llvm_cv_target_os_type="Haiku" ;;
3954   *-*-rtems*)
3955     llvm_cv_target_os_type="RTEMS" ;;
3956   *-*-nacl*)
3957     llvm_cv_target_os_type="NativeClient" ;;
3958   *-unknown-eabi*)
3959     llvm_cv_target_os_type="Freestanding" ;;
3960   *)
3961     llvm_cv_target_os_type="Unknown" ;;
3962 esac
3963 fi
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3966
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 OS=$llvm_cv_os_type
3974
3975 HOST_OS=$llvm_cv_os_type
3976
3977 TARGET_OS=$llvm_cv_target_os_type
3978
3979
3980 LINKALL=$llvm_cv_link_all_option
3981
3982 NOLINKALL=$llvm_cv_no_link_all_option
3983
3984
3985 case $llvm_cv_platform_type in
3986   Unix)
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3990 _ACEOF
3991
3992     LLVM_ON_UNIX=1
3993
3994     LLVM_ON_WIN32=0
3995
3996     ;;
3997   Win32)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=0
4004
4005     LLVM_ON_WIN32=1
4006
4007     ;;
4008 esac
4009
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   case $target in
4016   i?86-*)                 llvm_cv_target_arch="x86" ;;
4017   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4018   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4019   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4020   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4021   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4022   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4023   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4024   xcore-*)                llvm_cv_target_arch="XCore" ;;
4025   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4026   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4027   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4028   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4029   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4030   *)                      llvm_cv_target_arch="Unknown" ;;
4031 esac
4032 fi
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4035
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4039 fi
4040
4041 case "$llvm_cv_target_arch" in
4042     x86)     LLVM_NATIVE_ARCH="X86" ;;
4043     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4044     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4045 esac
4046
4047 ARCH=$llvm_cv_target_arch
4048
4049
4050 case $host in
4051   i?86-*)                 host_arch="x86" ;;
4052   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4053   sparc*-*)               host_arch="Sparc" ;;
4054   powerpc*-*)             host_arch="PowerPC" ;;
4055   arm*-*)                 host_arch="ARM" ;;
4056   aarch64*-*)             host_arch="AArch64" ;;
4057   mips-* | mips64-*)      host_arch="Mips" ;;
4058   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4059   xcore-*)                host_arch="XCore" ;;
4060   msp430-*)               host_arch="MSP430" ;;
4061   hexagon-*)              host_arch="Hexagon" ;;
4062   mblaze-*)               host_arch="MBlaze" ;;
4063   s390x-*)                host_arch="SystemZ" ;;
4064   *)                      host_arch="Unknown" ;;
4065 esac
4066
4067 if test "$host_arch" = "Unknown" ; then
4068   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4070 fi
4071
4072 HOST_ARCH=$host_arch
4073
4074
4075
4076
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_prog in grep ggrep; do
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099     # Check for GNU ac_path_GREP and select it if it is found.
4100   # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4102 *GNU*)
4103   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104 *)
4105   ac_count=0
4106   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4107   while :
4108   do
4109     cat "conftest.in" "conftest.in" >"conftest.tmp"
4110     mv "conftest.tmp" "conftest.in"
4111     cp "conftest.in" "conftest.nl"
4112     echo 'GREP' >> "conftest.nl"
4113     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115     ac_count=`expr $ac_count + 1`
4116     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117       # Best one so far, save it but keep looking for a better one
4118       ac_cv_path_GREP="$ac_path_GREP"
4119       ac_path_GREP_max=$ac_count
4120     fi
4121     # 10*(2^10) chars as input seems more than enough
4122     test $ac_count -gt 10 && break
4123   done
4124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127
4128     $ac_path_GREP_found && break 3
4129   done
4130 done
4131
4132 done
4133 IFS=$as_save_IFS
4134
4135
4136 fi
4137
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142    { (exit 1); exit 1; }; }
4143 fi
4144
4145 else
4146   ac_cv_path_GREP=$GREP
4147 fi
4148
4149
4150 fi
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153  GREP="$ac_cv_path_GREP"
4154
4155
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162    then ac_cv_path_EGREP="$GREP -E"
4163    else
4164      # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_prog in egrep; do
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181     # Check for GNU ac_path_EGREP and select it if it is found.
4182   # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4184 *GNU*)
4185   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 *)
4187   ac_count=0
4188   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4189   while :
4190   do
4191     cat "conftest.in" "conftest.in" >"conftest.tmp"
4192     mv "conftest.tmp" "conftest.in"
4193     cp "conftest.in" "conftest.nl"
4194     echo 'EGREP' >> "conftest.nl"
4195     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197     ac_count=`expr $ac_count + 1`
4198     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199       # Best one so far, save it but keep looking for a better one
4200       ac_cv_path_EGREP="$ac_path_EGREP"
4201       ac_path_EGREP_max=$ac_count
4202     fi
4203     # 10*(2^10) chars as input seems more than enough
4204     test $ac_count -gt 10 && break
4205   done
4206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209
4210     $ac_path_EGREP_found && break 3
4211   done
4212 done
4213
4214 done
4215 IFS=$as_save_IFS
4216
4217
4218 fi
4219
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224    { (exit 1); exit 1; }; }
4225 fi
4226
4227 else
4228   ac_cv_path_EGREP=$EGREP
4229 fi
4230
4231
4232    fi
4233 fi
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236  EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <stdlib.h>
4251 #include <stdarg.h>
4252 #include <string.h>
4253 #include <float.h>
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4265 case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_compile") 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278   { (case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest.$ac_objext'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_header_stdc=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302         ac_cv_header_stdc=no
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307 if test $ac_cv_header_stdc = yes; then
4308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 #include <string.h>
4316
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319   $EGREP "memchr" >/dev/null 2>&1; then
4320   :
4321 else
4322   ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest*
4325
4326 fi
4327
4328 if test $ac_cv_header_stdc = yes; then
4329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <stdlib.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340   $EGREP "free" >/dev/null 2>&1; then
4341   :
4342 else
4343   ac_cv_header_stdc=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348
4349 if test $ac_cv_header_stdc = yes; then
4350   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351   if test "$cross_compiling" = yes; then
4352   :
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #include <ctype.h>
4361 #include <stdlib.h>
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365 #else
4366 # define ISLOWER(c) \
4367                    (('a' <= (c) && (c) <= 'i') \
4368                      || ('j' <= (c) && (c) <= 'r') \
4369                      || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371 #endif
4372
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374 int
4375 main ()
4376 {
4377   int i;
4378   for (i = 0; i < 256; i++)
4379     if (XOR (islower (i), ISLOWER (i))
4380         || toupper (i) != TOUPPER (i))
4381       return 2;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_link") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396   { (case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   :
4406 else
4407   echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ( exit $ac_status )
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 fi
4416
4417
4418 fi
4419 fi
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4426 _ACEOF
4427
4428 fi
4429
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441                   inttypes.h stdint.h unistd.h
4442 do
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 $ac_includes_default
4456
4457 #include <$ac_header>
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_compile") 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   eval "$as_ac_Header=yes"
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498         eval "$as_ac_Header=no"
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504                { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507   cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4510
4511 fi
4512
4513 done
4514
4515
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4530
4531 int
4532 main ()
4533 {
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4535  bogus endian macros
4536 #endif
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_compile") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557   { (case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_try") 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; } &&
4566          { ac_try='test -s conftest.$ac_objext'
4567   { (case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_try") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4585
4586 int
4587 main ()
4588 {
4589 #if BYTE_ORDER != BIG_ENDIAN
4590  not big endian
4591 #endif
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_cv_c_bigendian=yes
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636         ac_cv_c_bigendian=no
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644         # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646   # try to guess the endianness by grepping values into an object file
4647   ac_cv_c_bigendian=unknown
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4660 int
4661 main ()
4662 {
4663  _ascii (); _ebcdic ();
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4670 case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675   (eval "$ac_compile") 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683   { (case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_try") 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; } &&
4692          { ac_try='test -s conftest.$ac_objext'
4693   { (case "(($ac_try" in
4694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695   *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698   (eval "$ac_try") 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703   ac_cv_c_bigendian=yes
4704 fi
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706   if test "$ac_cv_c_bigendian" = unknown; then
4707     ac_cv_c_bigendian=no
4708   else
4709     # finding both strings is unlikely to happen, but who knows?
4710     ac_cv_c_bigendian=unknown
4711   fi
4712 fi
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_includes_default
4729 int
4730 main ()
4731 {
4732
4733   /* Are we little or big endian?  From Harbison&Steele.  */
4734   union
4735   {
4736     long int l;
4737     char c[sizeof (long int)];
4738   } u;
4739   u.l = 1;
4740   return u.c[sizeof (long int) - 1] == 1;
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_link") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757   { (case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_try") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_cv_c_bigendian=no
4767 else
4768   echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ( exit $ac_status )
4773 ac_cv_c_bigendian=yes
4774 fi
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 fi
4777
4778
4779 fi
4780
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4786   yes)
4787     ENDIAN=big
4788  ;;
4789   no)
4790     ENDIAN=little
4791  ;;
4792   *)
4793     { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797    { (exit 1); exit 1; }; } ;;
4798 esac
4799
4800
4801 if test "$cross_compiling" = yes; then
4802   LLVM_CROSS_COMPILING=1
4803
4804
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811   ac_cv_build_exeext=.exe
4812 else
4813   ac_build_prefix=${build_alias}-
4814
4815   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$BUILD_CC"; then
4823   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4846 else
4847   { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4849 fi
4850
4851
4852   if test -z "$BUILD_CC"; then
4853      # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CC"; then
4861   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_BUILD_CC="gcc"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890      if test -z "$BUILD_CC"; then
4891        # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$BUILD_CC"; then
4899   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910        ac_prog_rejected=yes
4911        continue
4912      fi
4913     ac_cv_prog_BUILD_CC="cc"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922   # We found a bogon in the path, so make sure we never use it.
4923   set dummy $ac_cv_prog_BUILD_CC
4924   shift
4925   if test $# != 0; then
4926     # We chose a different compiler from the bogus one.
4927     # However, it has the same basename, so the bogon will be chosen
4928     # first if we set BUILD_CC to just the basename; use the full file name.
4929     shift
4930     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4931   fi
4932 fi
4933 fi
4934 fi
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945      fi
4946   fi
4947   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949    { (exit 1); exit 1; }; }
4950   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4951   rm -f conftest*
4952   echo 'int main () { return 0; }' > conftest.$ac_ext
4953   ac_cv_build_exeext=
4954   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955   (eval $ac_build_link) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; then
4959     for file in conftest.*; do
4960       case $file in
4961       *.c | *.o | *.obj | *.dSYM) ;;
4962       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4963       esac
4964     done
4965   else
4966     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968    { (exit 1); exit 1; }; }
4969   fi
4970   rm -f conftest*
4971   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4972 fi
4973 fi
4974
4975 BUILD_EXEEXT=""
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4980
4981   ac_build_prefix=${build_alias}-
4982   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   if test -n "$BUILD_CXX"; then
4990   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5013 else
5014   { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5016 fi
5017
5018
5019   if test -z "$BUILD_CXX"; then
5020      # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   if test -n "$BUILD_CXX"; then
5028   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_prog_BUILD_CXX="g++"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5051 else
5052   { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5054 fi
5055
5056
5057      if test -z "$BUILD_CXX"; then
5058        # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$BUILD_CXX"; then
5066   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5067 else
5068   ac_prog_rejected=no
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077        ac_prog_rejected=yes
5078        continue
5079      fi
5080     ac_cv_prog_BUILD_CXX="c++"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 if test $ac_prog_rejected = yes; then
5089   # We found a bogon in the path, so make sure we never use it.
5090   set dummy $ac_cv_prog_BUILD_CXX
5091   shift
5092   if test $# != 0; then
5093     # We chose a different compiler from the bogus one.
5094     # However, it has the same basename, so the bogon will be chosen
5095     # first if we set BUILD_CXX to just the basename; use the full file name.
5096     shift
5097     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5098   fi
5099 fi
5100 fi
5101 fi
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5106 else
5107   { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111
5112      fi
5113   fi
5114 else
5115   LLVM_CROSS_COMPILING=0
5116
5117 fi
5118
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5120   cvsbuild="yes"
5121   optimize="no"
5122   CVSBUILD=CVSBUILD=1
5123
5124 else
5125   cvsbuild="no"
5126   optimize="yes"
5127 fi
5128
5129
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132   enableval=$enable_libcpp;
5133 else
5134   enableval=default
5135 fi
5136
5137 case "$enableval" in
5138   yes) ENABLE_LIBCPP=1
5139  ;;
5140   no)  ENABLE_LIBCPP=0
5141  ;;
5142   default) ENABLE_LIBCPP=0
5143 ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151   enableval=$enable_cxx11;
5152 else
5153   enableval=default
5154 fi
5155
5156 case "$enableval" in
5157   yes) ENABLE_CXX11=1
5158  ;;
5159   no)  ENABLE_CXX11=0
5160  ;;
5161   default) ENABLE_CXX11=0
5162 ;;
5163   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165    { (exit 1); exit 1; }; } ;;
5166 esac
5167
5168 clang_arcmt="yes"
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5172 else
5173   enableval="yes"
5174 fi
5175
5176 case "$enableval" in
5177   yes) ENABLE_CLANG_ARCMT=1
5178  ;;
5179   no)  ENABLE_CLANG_ARCMT=0
5180  ;;
5181   default) ENABLE_CLANG_ARCMT=1
5182 ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5192 else
5193   enableval="yes"
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5198  ;;
5199   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5200  ;;
5201   default) ENABLE_CLANG_STATIC_ANALYZER=1
5202 ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210   enableval=$enable_clang_rewriter;
5211 else
5212   enableval="yes"
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_CLANG_REWRITER=1
5217  ;;
5218   no)
5219     if test ${clang_arcmt} != "no" ; then
5220       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222    { (exit 1); exit 1; }; }
5223     fi
5224     if test ${clang_static_analyzer} != "no" ; then
5225       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227    { (exit 1); exit 1; }; }
5228     fi
5229     ENABLE_CLANG_REWRITER=0
5230
5231     ;;
5232   default) ENABLE_CLANG_REWRITER=1
5233 ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241   enableval=$enable_optimized;
5242 else
5243   enableval=$optimize
5244 fi
5245
5246 if test ${enableval} = "no" ; then
5247   ENABLE_OPTIMIZED=
5248
5249 else
5250   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5251
5252 fi
5253
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256   enableval=$enable_profiling;
5257 else
5258   enableval="no"
5259 fi
5260
5261 if test ${enableval} = "no" ; then
5262   ENABLE_PROFILING=
5263
5264 else
5265   ENABLE_PROFILING=ENABLE_PROFILING=1
5266
5267 fi
5268
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271   enableval=$enable_assertions;
5272 else
5273   enableval="yes"
5274 fi
5275
5276 if test ${enableval} = "yes" ; then
5277   DISABLE_ASSERTIONS=
5278
5279 else
5280   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5281
5282 fi
5283
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286   enableval=$enable_werror;
5287 else
5288   enableval="no"
5289 fi
5290
5291 case "$enableval" in
5292   yes) ENABLE_WERROR=1
5293  ;;
5294   no)  ENABLE_WERROR=0
5295  ;;
5296   default) ENABLE_WERROR=0
5297 ;;
5298   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301 esac
5302
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305   enableval=$enable_expensive_checks;
5306 else
5307   enableval="no"
5308 fi
5309
5310 if test ${enableval} = "yes" ; then
5311   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5312
5313   EXPENSIVE_CHECKS=yes
5314
5315 else
5316   ENABLE_EXPENSIVE_CHECKS=
5317
5318   EXPENSIVE_CHECKS=no
5319
5320 fi
5321
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324   enableval=$enable_debug_runtime;
5325 else
5326   enableval=no
5327 fi
5328
5329 if test ${enableval} = "no" ; then
5330   DEBUG_RUNTIME=
5331
5332 else
5333   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5334
5335 fi
5336
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339   enableval=$enable_debug_symbols;
5340 else
5341   enableval=no
5342 fi
5343
5344 if test ${enableval} = "no" ; then
5345   DEBUG_SYMBOLS=
5346
5347 else
5348   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5349
5350 fi
5351
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354   enableval=$enable_keep_symbols;
5355 else
5356   enableval=no
5357 fi
5358
5359 if test ${enableval} = "no" ; then
5360   KEEP_SYMBOLS=
5361
5362 else
5363   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5364
5365 fi
5366
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369   enableval=$enable_jit;
5370 else
5371   enableval=default
5372 fi
5373
5374 if test ${enableval} = "no"
5375 then
5376   JIT=
5377
5378 else
5379   case "$llvm_cv_target_arch" in
5380     x86)         TARGET_HAS_JIT=1
5381  ;;
5382     Sparc)       TARGET_HAS_JIT=0
5383  ;;
5384     PowerPC)     TARGET_HAS_JIT=1
5385  ;;
5386     x86_64)      TARGET_HAS_JIT=1
5387  ;;
5388     ARM)         TARGET_HAS_JIT=1
5389  ;;
5390     AArch64)     TARGET_HAS_JIT=0
5391  ;;
5392     Mips)        TARGET_HAS_JIT=1
5393  ;;
5394     XCore)       TARGET_HAS_JIT=0
5395  ;;
5396     MSP430)      TARGET_HAS_JIT=0
5397  ;;
5398     Hexagon)     TARGET_HAS_JIT=0
5399  ;;
5400     MBlaze)      TARGET_HAS_JIT=0
5401  ;;
5402     NVPTX)       TARGET_HAS_JIT=0
5403  ;;
5404     SystemZ)     TARGET_HAS_JIT=1
5405  ;;
5406     *)           TARGET_HAS_JIT=0
5407  ;;
5408   esac
5409 fi
5410
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413   enableval=$enable_docs;
5414 else
5415   enableval=default
5416 fi
5417
5418 case "$enableval" in
5419   yes) ENABLE_DOCS=1
5420  ;;
5421   no)  ENABLE_DOCS=0
5422  ;;
5423   default) ENABLE_DOCS=1
5424  ;;
5425   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427    { (exit 1); exit 1; }; } ;;
5428 esac
5429
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432   enableval=$enable_doxygen;
5433 else
5434   enableval=default
5435 fi
5436
5437 case "$enableval" in
5438   yes) ENABLE_DOXYGEN=1
5439  ;;
5440   no)  ENABLE_DOXYGEN=0
5441  ;;
5442   default) ENABLE_DOXYGEN=0
5443  ;;
5444   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446    { (exit 1); exit 1; }; } ;;
5447 esac
5448
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451   enableval=$enable_threads;
5452 else
5453   enableval=default
5454 fi
5455
5456 case "$enableval" in
5457   yes) LLVM_ENABLE_THREADS=1
5458  ;;
5459   no)  LLVM_ENABLE_THREADS=0
5460  ;;
5461   default) LLVM_ENABLE_THREADS=1
5462  ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5470 _ACEOF
5471
5472
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475   enableval=$enable_pthreads;
5476 else
5477   enableval=default
5478 fi
5479
5480 case "$enableval" in
5481   yes) ENABLE_PTHREADS=1
5482  ;;
5483   no)  ENABLE_PTHREADS=0
5484  ;;
5485   default) ENABLE_PTHREADS=1
5486  ;;
5487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489    { (exit 1); exit 1; }; } ;;
5490 esac
5491
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494   enableval=$enable_zlib;
5495 else
5496   enableval=default
5497 fi
5498
5499 case "$enableval" in
5500   yes) LLVM_ENABLE_ZLIB=1
5501  ;;
5502   no)  LLVM_ENABLE_ZLIB=0
5503  ;;
5504   default) LLVM_ENABLE_ZLIB=1
5505  ;;
5506   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509 esac
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5513 _ACEOF
5514
5515
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518   enableval=$enable_pic;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) ENABLE_PIC=1
5525  ;;
5526   no)  ENABLE_PIC=0
5527  ;;
5528   default) ENABLE_PIC=1
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5537 _ACEOF
5538
5539
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542   enableval=$enable_shared;
5543 else
5544   enableval=default
5545 fi
5546
5547 case "$enableval" in
5548   yes) ENABLE_SHARED=1
5549  ;;
5550   no)  ENABLE_SHARED=0
5551  ;;
5552   default) ENABLE_SHARED=0
5553  ;;
5554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557 esac
5558
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561   enableval=$enable_embed_stdcxx;
5562 else
5563   enableval=default
5564 fi
5565
5566 case "$enableval" in
5567   yes) ENABLE_EMBED_STDCXX=1
5568  ;;
5569   no)  ENABLE_EMBED_STDCXX=0
5570  ;;
5571   default) ENABLE_EMBED_STDCXX=0
5572  ;;
5573   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575    { (exit 1); exit 1; }; } ;;
5576 esac
5577
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580   enableval=$enable_timestamps;
5581 else
5582   enableval=default
5583 fi
5584
5585 case "$enableval" in
5586   yes) ENABLE_TIMESTAMPS=1
5587  ;;
5588   no)  ENABLE_TIMESTAMPS=0
5589  ;;
5590   default) ENABLE_TIMESTAMPS=1
5591  ;;
5592   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594    { (exit 1); exit 1; }; } ;;
5595 esac
5596
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5599 _ACEOF
5600
5601
5602
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605   enableval=$enable_backtraces;
5606 else
5607   enableval=default
5608 fi
5609
5610 case "$enableval" in
5611   yes) ENABLE_BACKTRACES=1
5612  ;;
5613   no)  ENABLE_BACKTRACES=0
5614  ;;
5615   default) ENABLE_BACKTRACES=1
5616  ;;
5617   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619    { (exit 1); exit 1; }; } ;;
5620 esac
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5624 _ACEOF
5625
5626
5627 TARGETS_TO_BUILD=""
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630   enableval=$enable_targets;
5631 else
5632   enableval=all
5633 fi
5634
5635 if test "$enableval" = host-only ; then
5636   enableval=host
5637 fi
5638 case "$enableval" in
5639   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ" ;;
5640   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5641       case "$a_target" in
5642         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659         host) case "$llvm_cv_target_arch" in
5660             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5661             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5663             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5664             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5665             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5666             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5667             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5668             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5674 echo "$as_me: error: Can not set target to build" >&2;}
5675    { (exit 1); exit 1; }; } ;;
5676           esac ;;
5677         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5678 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5679    { (exit 1); exit 1; }; } ;;
5680       esac
5681   done
5682   ;;
5683 esac
5684
5685 # Check whether --enable-experimental-targets was given.
5686 if test "${enable_experimental_targets+set}" = set; then
5687   enableval=$enable_experimental_targets;
5688 else
5689   enableval=disable
5690 fi
5691
5692
5693 if test ${enableval} != "disable"
5694 then
5695   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5696 fi
5697
5698 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5699
5700
5701 for a_target in $TARGETS_TO_BUILD; do
5702   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5703
5704 cat >>confdefs.h <<_ACEOF
5705 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5706 _ACEOF
5707
5708     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5709     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5710     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5711     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5712     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5713       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5714     fi
5715     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5716       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5717     fi
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5721 _ACEOF
5722
5723
5724 cat >>confdefs.h <<_ACEOF
5725 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5726 _ACEOF
5727
5728
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5731 _ACEOF
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5736 _ACEOF
5737
5738     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5739
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5742 _ACEOF
5743
5744     fi
5745     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5749 _ACEOF
5750
5751     fi
5752   fi
5753 done
5754
5755 LLVM_ENUM_TARGETS=""
5756 LLVM_ENUM_ASM_PRINTERS=""
5757 LLVM_ENUM_ASM_PARSERS=""
5758 LLVM_ENUM_DISASSEMBLERS=""
5759 for target_to_build in $TARGETS_TO_BUILD; do
5760   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5761   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5762     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5763   fi
5764   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5765     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5766   fi
5767   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5768     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5769   fi
5770 done
5771
5772
5773
5774
5775
5776
5777 # Check whether --with-optimize-option was given.
5778 if test "${with_optimize_option+set}" = set; then
5779   withval=$with_optimize_option;
5780 else
5781   withval=default
5782 fi
5783
5784 { echo "$as_me:$LINENO: checking optimization flags" >&5
5785 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5786 case "$withval" in
5787   default)
5788     case "$llvm_cv_os_type" in
5789     FreeBSD) optimize_option=-O2 ;;
5790     MingW) optimize_option=-O2 ;;
5791     *)     optimize_option=-O3 ;;
5792     esac ;;
5793   *) optimize_option="$withval" ;;
5794 esac
5795 OPTIMIZE_OPTION=$optimize_option
5796
5797 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5798 echo "${ECHO_T}$optimize_option" >&6; }
5799
5800
5801 # Check whether --with-extra-options was given.
5802 if test "${with_extra_options+set}" = set; then
5803   withval=$with_extra_options;
5804 else
5805   withval=default
5806 fi
5807
5808 case "$withval" in
5809   default) EXTRA_OPTIONS= ;;
5810   *) EXTRA_OPTIONS=$withval ;;
5811 esac
5812 EXTRA_OPTIONS=$EXTRA_OPTIONS
5813
5814
5815
5816 # Check whether --with-extra-ld-options was given.
5817 if test "${with_extra_ld_options+set}" = set; then
5818   withval=$with_extra_ld_options;
5819 else
5820   withval=default
5821 fi
5822
5823 case "$withval" in
5824   default) EXTRA_LD_OPTIONS= ;;
5825   *) EXTRA_LD_OPTIONS=$withval ;;
5826 esac
5827 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5828
5829
5830 # Check whether --enable-bindings was given.
5831 if test "${enable_bindings+set}" = set; then
5832   enableval=$enable_bindings;
5833 else
5834   enableval=default
5835 fi
5836
5837 BINDINGS_TO_BUILD=""
5838 case "$enableval" in
5839   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5840   all ) BINDINGS_TO_BUILD="ocaml" ;;
5841   none | no) BINDINGS_TO_BUILD="" ;;
5842   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5843       case "$a_binding" in
5844         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5845         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5846 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5847    { (exit 1); exit 1; }; } ;;
5848       esac
5849   done
5850   ;;
5851 esac
5852
5853
5854 # Check whether --with-ocaml-libdir was given.
5855 if test "${with_ocaml_libdir+set}" = set; then
5856   withval=$with_ocaml_libdir;
5857 else
5858   withval=auto
5859 fi
5860
5861 case "$withval" in
5862   auto) with_ocaml_libdir="$withval" ;;
5863   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5864   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5865 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5866    { (exit 1); exit 1; }; } ;;
5867 esac
5868
5869
5870 # Check whether --with-clang-srcdir was given.
5871 if test "${with_clang_srcdir+set}" = set; then
5872   withval=$with_clang_srcdir;
5873 else
5874   withval="-"
5875 fi
5876
5877 case "$withval" in
5878   -) clang_src_root="" ;;
5879   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5880   *) clang_src_root="$ac_pwd/$withval" ;;
5881 esac
5882 CLANG_SRC_ROOT=$clang_src_root
5883
5884
5885
5886 # Check whether --with-clang-resource-dir was given.
5887 if test "${with_clang_resource_dir+set}" = set; then
5888   withval=$with_clang_resource_dir;
5889 else
5890   withval=""
5891 fi
5892
5893
5894 cat >>confdefs.h <<_ACEOF
5895 #define CLANG_RESOURCE_DIR "$withval"
5896 _ACEOF
5897
5898
5899
5900 # Check whether --with-c-include-dirs was given.
5901 if test "${with_c_include_dirs+set}" = set; then
5902   withval=$with_c_include_dirs;
5903 else
5904   withval=""
5905 fi
5906
5907
5908 cat >>confdefs.h <<_ACEOF
5909 #define C_INCLUDE_DIRS "$withval"
5910 _ACEOF
5911
5912
5913 # Clang normally uses the system c++ headers and libraries. With this option,
5914 # clang will use the ones provided by a gcc installation instead. This option should
5915 # be passed the same value that was used with --prefix when configuring gcc.
5916
5917 # Check whether --with-gcc-toolchain was given.
5918 if test "${with_gcc_toolchain+set}" = set; then
5919   withval=$with_gcc_toolchain;
5920 else
5921   withval=""
5922 fi
5923
5924
5925 cat >>confdefs.h <<_ACEOF
5926 #define GCC_INSTALL_PREFIX "$withval"
5927 _ACEOF
5928
5929
5930
5931 # Check whether --with-default-sysroot was given.
5932 if test "${with_default_sysroot+set}" = set; then
5933   withval=$with_default_sysroot;
5934 else
5935   withval=""
5936 fi
5937
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define DEFAULT_SYSROOT "$withval"
5941 _ACEOF
5942
5943
5944
5945 # Check whether --with-binutils-include was given.
5946 if test "${with_binutils_include+set}" = set; then
5947   withval=$with_binutils_include;
5948 else
5949   withval=default
5950 fi
5951
5952 case "$withval" in
5953   default) WITH_BINUTILS_INCDIR=default ;;
5954   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5955   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5956 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5957    { (exit 1); exit 1; }; } ;;
5958 esac
5959 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5960   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5961
5962   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5963      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5964      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5965 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5966    { (exit 1); exit 1; }; };
5967   fi
5968 fi
5969
5970
5971 # Check whether --with-bug-report-url was given.
5972 if test "${with_bug_report_url+set}" = set; then
5973   withval=$with_bug_report_url;
5974 else
5975   withval="http://llvm.org/bugs/"
5976 fi
5977
5978
5979 cat >>confdefs.h <<_ACEOF
5980 #define BUG_REPORT_URL "$withval"
5981 _ACEOF
5982
5983
5984 # Check whether --enable-libffi was given.
5985 if test "${enable_libffi+set}" = set; then
5986   enableval=$enable_libffi; case "$enableval" in
5987     yes) llvm_cv_enable_libffi="yes" ;;
5988     no)  llvm_cv_enable_libffi="no"  ;;
5989     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5990 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5991    { (exit 1); exit 1; }; } ;;
5992   esac
5993 else
5994   llvm_cv_enable_libffi=no
5995 fi
5996
5997
5998
5999 # Check whether --with-internal-prefix was given.
6000 if test "${with_internal_prefix+set}" = set; then
6001   withval=$with_internal_prefix;
6002 else
6003   withval=""
6004 fi
6005
6006 INTERNAL_PREFIX=$withval
6007
6008
6009
6010 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6011 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6012 if test "${lt_cv_path_NM+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$NM"; then
6016   # Let the user override the test.
6017   lt_cv_path_NM="$NM"
6018 else
6019   lt_nm_to_check="${ac_tool_prefix}nm"
6020   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6021     lt_nm_to_check="$lt_nm_to_check nm"
6022   fi
6023   for lt_tmp_nm in $lt_nm_to_check; do
6024     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6025     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6026       IFS="$lt_save_ifs"
6027       test -z "$ac_dir" && ac_dir=.
6028       tmp_nm="$ac_dir/$lt_tmp_nm"
6029       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6030         # Check to see if the nm accepts a BSD-compat flag.
6031         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6032         #   nm: unknown option "B" ignored
6033         # Tru64's nm complains that /dev/null is an invalid object file
6034         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6035         */dev/null* | *'Invalid file or object type'*)
6036           lt_cv_path_NM="$tmp_nm -B"
6037           break
6038           ;;
6039         *)
6040           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6041           */dev/null*)
6042             lt_cv_path_NM="$tmp_nm -p"
6043             break
6044             ;;
6045           *)
6046             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6047             continue # so that we can try to find one that supports BSD flags
6048             ;;
6049           esac
6050           ;;
6051         esac
6052       fi
6053     done
6054     IFS="$lt_save_ifs"
6055   done
6056   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6057 fi
6058 fi
6059 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6060 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6061 NM="$lt_cv_path_NM"
6062
6063
6064
6065 { echo "$as_me:$LINENO: checking for GNU make" >&5
6066 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6067 if test "${llvm_cv_gnu_make_command+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   llvm_cv_gnu_make_command=''
6071  for a in "$MAKE" make gmake gnumake ; do
6072   if test -z "$a" ; then continue ; fi ;
6073   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6074   then
6075    llvm_cv_gnu_make_command=$a ;
6076    break;
6077   fi
6078  done
6079 fi
6080 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6081 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6082  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6083    ifGNUmake='' ;
6084  else
6085    ifGNUmake='#' ;
6086    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6087 echo "${ECHO_T}\"Not found\"" >&6; };
6088  fi
6089
6090
6091 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6093 LN_S=$as_ln_s
6094 if test "$LN_S" = "ln -s"; then
6095   { echo "$as_me:$LINENO: result: yes" >&5
6096 echo "${ECHO_T}yes" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6099 echo "${ECHO_T}no, using $LN_S" >&6; }
6100 fi
6101
6102 # Extract the first word of "cmp", so it can be a program name with args.
6103 set dummy cmp; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_CMP+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   case $CMP in
6110   [\\/]* | ?:[\\/]*)
6111   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6112   ;;
6113   *)
6114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6130   ;;
6131 esac
6132 fi
6133 CMP=$ac_cv_path_CMP
6134 if test -n "$CMP"; then
6135   { echo "$as_me:$LINENO: result: $CMP" >&5
6136 echo "${ECHO_T}$CMP" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141
6142
6143 # Extract the first word of "cp", so it can be a program name with args.
6144 set dummy cp; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_path_CP+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   case $CP in
6151   [\\/]* | ?:[\\/]*)
6152   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6153   ;;
6154   *)
6155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6171   ;;
6172 esac
6173 fi
6174 CP=$ac_cv_path_CP
6175 if test -n "$CP"; then
6176   { echo "$as_me:$LINENO: result: $CP" >&5
6177 echo "${ECHO_T}$CP" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 # Extract the first word of "date", so it can be a program name with args.
6185 set dummy date; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_DATE+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   case $DATE in
6192   [\\/]* | ?:[\\/]*)
6193   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6194   ;;
6195   *)
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6212   ;;
6213 esac
6214 fi
6215 DATE=$ac_cv_path_DATE
6216 if test -n "$DATE"; then
6217   { echo "$as_me:$LINENO: result: $DATE" >&5
6218 echo "${ECHO_T}$DATE" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 # Extract the first word of "find", so it can be a program name with args.
6226 set dummy find; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_FIND+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   case $FIND in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6253   ;;
6254 esac
6255 fi
6256 FIND=$ac_cv_path_FIND
6257 if test -n "$FIND"; then
6258   { echo "$as_me:$LINENO: result: $FIND" >&5
6259 echo "${ECHO_T}$FIND" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263 fi
6264
6265
6266 # Extract the first word of "grep", so it can be a program name with args.
6267 set dummy grep; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_GREP+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   case $GREP in
6274   [\\/]* | ?:[\\/]*)
6275   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6276   ;;
6277   *)
6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283   for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6294   ;;
6295 esac
6296 fi
6297 GREP=$ac_cv_path_GREP
6298 if test -n "$GREP"; then
6299   { echo "$as_me:$LINENO: result: $GREP" >&5
6300 echo "${ECHO_T}$GREP" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 # Extract the first word of "mkdir", so it can be a program name with args.
6308 set dummy mkdir; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_MKDIR+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $MKDIR in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6335   ;;
6336 esac
6337 fi
6338 MKDIR=$ac_cv_path_MKDIR
6339 if test -n "$MKDIR"; then
6340   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6341 echo "${ECHO_T}$MKDIR" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 # Extract the first word of "mv", so it can be a program name with args.
6349 set dummy mv; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_MV+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   case $MV in
6356   [\\/]* | ?:[\\/]*)
6357   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6358   ;;
6359   *)
6360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6376   ;;
6377 esac
6378 fi
6379 MV=$ac_cv_path_MV
6380 if test -n "$MV"; then
6381   { echo "$as_me:$LINENO: result: $MV" >&5
6382 echo "${ECHO_T}$MV" >&6; }
6383 else
6384   { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386 fi
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_prog_RANLIB+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   if test -n "$RANLIB"; then
6398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 RANLIB=$ac_cv_prog_RANLIB
6418 if test -n "$RANLIB"; then
6419   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6420 echo "${ECHO_T}$RANLIB" >&6; }
6421 else
6422   { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6424 fi
6425
6426
6427 fi
6428 if test -z "$ac_cv_prog_RANLIB"; then
6429   ac_ct_RANLIB=$RANLIB
6430   # Extract the first word of "ranlib", so it can be a program name with args.
6431 set dummy ranlib; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   if test -n "$ac_ct_RANLIB"; then
6438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_prog_ac_ct_RANLIB="ranlib"
6448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6458 if test -n "$ac_ct_RANLIB"; then
6459   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6461 else
6462   { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6464 fi
6465
6466   if test "x$ac_ct_RANLIB" = x; then
6467     RANLIB=":"
6468   else
6469     case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6472 whose name does not start with the host triplet.  If you think this
6473 configuration is useful to you, please write to autoconf@gnu.org." >&5
6474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6475 whose name does not start with the host triplet.  If you think this
6476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     RANLIB=$ac_ct_RANLIB
6480   fi
6481 else
6482   RANLIB="$ac_cv_prog_RANLIB"
6483 fi
6484
6485 if test -n "$ac_tool_prefix"; then
6486   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}ar; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_prog_AR+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   if test -n "$AR"; then
6494   ac_cv_prog_AR="$AR" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501   for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_prog_AR="${ac_tool_prefix}ar"
6504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 AR=$ac_cv_prog_AR
6514 if test -n "$AR"; then
6515   { echo "$as_me:$LINENO: result: $AR" >&5
6516 echo "${ECHO_T}$AR" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_AR"; then
6525   ac_ct_AR=$AR
6526   # Extract the first word of "ar", so it can be a program name with args.
6527 set dummy ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   if test -n "$ac_ct_AR"; then
6534   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_ac_ct_AR="ar"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554 if test -n "$ac_ct_AR"; then
6555   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6556 echo "${ECHO_T}$ac_ct_AR" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562   if test "x$ac_ct_AR" = x; then
6563     AR="false"
6564   else
6565     case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet.  If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet.  If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575     AR=$ac_ct_AR
6576   fi
6577 else
6578   AR="$ac_cv_prog_AR"
6579 fi
6580
6581 # Extract the first word of "rm", so it can be a program name with args.
6582 set dummy rm; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_RM+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $RM in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6609   ;;
6610 esac
6611 fi
6612 RM=$ac_cv_path_RM
6613 if test -n "$RM"; then
6614   { echo "$as_me:$LINENO: result: $RM" >&5
6615 echo "${ECHO_T}$RM" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 # Extract the first word of "sed", so it can be a program name with args.
6623 set dummy sed; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_SED+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $SED in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6650   ;;
6651 esac
6652 fi
6653 SED=$ac_cv_path_SED
6654 if test -n "$SED"; then
6655   { echo "$as_me:$LINENO: result: $SED" >&5
6656 echo "${ECHO_T}$SED" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 # Extract the first word of "tar", so it can be a program name with args.
6664 set dummy tar; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_TAR+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   case $TAR in
6671   [\\/]* | ?:[\\/]*)
6672   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6673   ;;
6674   *)
6675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6691   ;;
6692 esac
6693 fi
6694 TAR=$ac_cv_path_TAR
6695 if test -n "$TAR"; then
6696   { echo "$as_me:$LINENO: result: $TAR" >&5
6697 echo "${ECHO_T}$TAR" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704 # Extract the first word of "pwd", so it can be a program name with args.
6705 set dummy pwd; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_BINPWD+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $BINPWD in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6732   ;;
6733 esac
6734 fi
6735 BINPWD=$ac_cv_path_BINPWD
6736 if test -n "$BINPWD"; then
6737   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6738 echo "${ECHO_T}$BINPWD" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745
6746 # Extract the first word of "Graphviz", so it can be a program name with args.
6747 set dummy Graphviz; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $GRAPHVIZ in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6774   ;;
6775 esac
6776 fi
6777 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6778 if test -n "$GRAPHVIZ"; then
6779   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6780 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_GRAPHVIZ 1
6791 _ACEOF
6792
6793     if test "$llvm_cv_os_type" = "MingW" ; then
6794     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795   fi
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6799 _ACEOF
6800
6801 fi
6802 # Extract the first word of "dot", so it can be a program name with args.
6803 set dummy dot; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_DOT+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   case $DOT in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6830   ;;
6831 esac
6832 fi
6833 DOT=$ac_cv_path_DOT
6834 if test -n "$DOT"; then
6835   { echo "$as_me:$LINENO: result: $DOT" >&5
6836 echo "${ECHO_T}$DOT" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6841
6842
6843 if test "$DOT" != "echo dot" ; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_DOT 1
6847 _ACEOF
6848
6849     if test "$llvm_cv_os_type" = "MingW" ; then
6850     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851   fi
6852
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6855 _ACEOF
6856
6857 fi
6858 # Extract the first word of "fdp", so it can be a program name with args.
6859 set dummy fdp; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FDP+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   case $FDP in
6866   [\\/]* | ?:[\\/]*)
6867   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6868   ;;
6869   *)
6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6886   ;;
6887 esac
6888 fi
6889 FDP=$ac_cv_path_FDP
6890 if test -n "$FDP"; then
6891   { echo "$as_me:$LINENO: result: $FDP" >&5
6892 echo "${ECHO_T}$FDP" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 if test "$FDP" != "echo fdp" ; then
6900
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_FDP 1
6903 _ACEOF
6904
6905     if test "$llvm_cv_os_type" = "MingW" ; then
6906     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907   fi
6908
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6911 _ACEOF
6912
6913 fi
6914 # Extract the first word of "neato", so it can be a program name with args.
6915 set dummy neato; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_NEATO+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   case $NEATO in
6922   [\\/]* | ?:[\\/]*)
6923   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6924   ;;
6925   *)
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6942   ;;
6943 esac
6944 fi
6945 NEATO=$ac_cv_path_NEATO
6946 if test -n "$NEATO"; then
6947   { echo "$as_me:$LINENO: result: $NEATO" >&5
6948 echo "${ECHO_T}$NEATO" >&6; }
6949 else
6950   { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6952 fi
6953
6954
6955 if test "$NEATO" != "echo neato" ; then
6956
6957 cat >>confdefs.h <<\_ACEOF
6958 #define HAVE_NEATO 1
6959 _ACEOF
6960
6961     if test "$llvm_cv_os_type" = "MingW" ; then
6962     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6963   fi
6964
6965 cat >>confdefs.h <<_ACEOF
6966 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6967 _ACEOF
6968
6969 fi
6970 # Extract the first word of "twopi", so it can be a program name with args.
6971 set dummy twopi; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_TWOPI+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $TWOPI in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6998   ;;
6999 esac
7000 fi
7001 TWOPI=$ac_cv_path_TWOPI
7002 if test -n "$TWOPI"; then
7003   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7004 echo "${ECHO_T}$TWOPI" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 if test "$TWOPI" != "echo twopi" ; then
7012
7013 cat >>confdefs.h <<\_ACEOF
7014 #define HAVE_TWOPI 1
7015 _ACEOF
7016
7017     if test "$llvm_cv_os_type" = "MingW" ; then
7018     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7019   fi
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7023 _ACEOF
7024
7025 fi
7026 # Extract the first word of "circo", so it can be a program name with args.
7027 set dummy circo; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_path_CIRCO+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   case $CIRCO in
7034   [\\/]* | ?:[\\/]*)
7035   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7036   ;;
7037   *)
7038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7054   ;;
7055 esac
7056 fi
7057 CIRCO=$ac_cv_path_CIRCO
7058 if test -n "$CIRCO"; then
7059   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7060 echo "${ECHO_T}$CIRCO" >&6; }
7061 else
7062   { echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6; }
7064 fi
7065
7066
7067 if test "$CIRCO" != "echo circo" ; then
7068
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_CIRCO 1
7071 _ACEOF
7072
7073     if test "$llvm_cv_os_type" = "MingW" ; then
7074     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7075   fi
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7079 _ACEOF
7080
7081 fi
7082 for ac_prog in gv gsview32
7083 do
7084   # Extract the first word of "$ac_prog", so it can be a program name with args.
7085 set dummy $ac_prog; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_path_GV+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   case $GV in
7092   [\\/]* | ?:[\\/]*)
7093   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7094   ;;
7095   *)
7096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101   for ac_exec_ext in '' $ac_executable_extensions; do
7102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111   ;;
7112 esac
7113 fi
7114 GV=$ac_cv_path_GV
7115 if test -n "$GV"; then
7116   { echo "$as_me:$LINENO: result: $GV" >&5
7117 echo "${ECHO_T}$GV" >&6; }
7118 else
7119   { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7121 fi
7122
7123
7124   test -n "$GV" && break
7125 done
7126 test -n "$GV" || GV="echo gv"
7127
7128 if test "$GV" != "echo gv" ; then
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_GV 1
7132 _ACEOF
7133
7134     if test "$llvm_cv_os_type" = "MingW" ; then
7135     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7136   fi
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define LLVM_PATH_GV "$GV${EXEEXT}"
7140 _ACEOF
7141
7142 fi
7143 # Extract the first word of "dotty", so it can be a program name with args.
7144 set dummy dotty; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_DOTTY+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   case $DOTTY in
7151   [\\/]* | ?:[\\/]*)
7152   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7153   ;;
7154   *)
7155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7171   ;;
7172 esac
7173 fi
7174 DOTTY=$ac_cv_path_DOTTY
7175 if test -n "$DOTTY"; then
7176   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7177 echo "${ECHO_T}$DOTTY" >&6; }
7178 else
7179   { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7181 fi
7182
7183
7184 if test "$DOTTY" != "echo dotty" ; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define HAVE_DOTTY 1
7188 _ACEOF
7189
7190     if test "$llvm_cv_os_type" = "MingW" ; then
7191     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7192   fi
7193
7194 cat >>confdefs.h <<_ACEOF
7195 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7196 _ACEOF
7197
7198 fi
7199 # Extract the first word of "xdot.py", so it can be a program name with args.
7200 set dummy xdot.py; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   case $XDOT_PY in
7207   [\\/]* | ?:[\\/]*)
7208   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7209   ;;
7210   *)
7211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216   for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7227   ;;
7228 esac
7229 fi
7230 XDOT_PY=$ac_cv_path_XDOT_PY
7231 if test -n "$XDOT_PY"; then
7232   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7233 echo "${ECHO_T}$XDOT_PY" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 if test "$XDOT_PY" != "echo xdot.py" ; then
7241
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_XDOT_PY 1
7244 _ACEOF
7245
7246     if test "$llvm_cv_os_type" = "MingW" ; then
7247     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7248   fi
7249
7250 cat >>confdefs.h <<_ACEOF
7251 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7252 _ACEOF
7253
7254 fi
7255
7256 # Find a good install program.  We prefer a C program (faster),
7257 # so one script is as good as another.  But avoid the broken or
7258 # incompatible versions:
7259 # SysV /etc/install, /usr/sbin/install
7260 # SunOS /usr/etc/install
7261 # IRIX /sbin/install
7262 # AIX /bin/install
7263 # AmigaOS /C/install, which installs bootblocks on floppy discs
7264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7267 # OS/2's system install, which has a completely different semantic
7268 # ./install, which can be erroneously created by make from ./install.sh.
7269 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7271 if test -z "$INSTALL"; then
7272 if test "${ac_cv_path_install+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   # Account for people who put trailing slashes in PATH elements.
7281 case $as_dir/ in
7282   ./ | .// | /cC/* | \
7283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7284   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7285   /usr/ucb/* ) ;;
7286   *)
7287     # OSF1 and SCO ODT 3.0 have their own names for install.
7288     # Don't use installbsd from OSF since it installs stuff as root
7289     # by default.
7290     for ac_prog in ginstall scoinst install; do
7291       for ac_exec_ext in '' $ac_executable_extensions; do
7292         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7293           if test $ac_prog = install &&
7294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7295             # AIX install.  It has an incompatible calling convention.
7296             :
7297           elif test $ac_prog = install &&
7298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7299             # program-specific install script used by HP pwplus--don't use.
7300             :
7301           else
7302             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7303             break 3
7304           fi
7305         fi
7306       done
7307     done
7308     ;;
7309 esac
7310 done
7311 IFS=$as_save_IFS
7312
7313
7314 fi
7315   if test "${ac_cv_path_install+set}" = set; then
7316     INSTALL=$ac_cv_path_install
7317   else
7318     # As a last resort, use the slow shell script.  Don't cache a
7319     # value for INSTALL within a source directory, because that will
7320     # break other packages using the cache if that directory is
7321     # removed, or if the value is a relative name.
7322     INSTALL=$ac_install_sh
7323   fi
7324 fi
7325 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7326 echo "${ECHO_T}$INSTALL" >&6; }
7327
7328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7329 # It thinks the first close brace ends the variable substitution.
7330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7331
7332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7333
7334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7335
7336 case "$INSTALL" in
7337  [\\/$]* | ?:[\\/]* ) ;;
7338  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7339 esac
7340
7341 # Extract the first word of "bzip2", so it can be a program name with args.
7342 set dummy bzip2; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_path_BZIP2+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   case $BZIP2 in
7349   [\\/]* | ?:[\\/]*)
7350   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7351   ;;
7352   *)
7353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356   IFS=$as_save_IFS
7357   test -z "$as_dir" && as_dir=.
7358   for ac_exec_ext in '' $ac_executable_extensions; do
7359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7360     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368   ;;
7369 esac
7370 fi
7371 BZIP2=$ac_cv_path_BZIP2
7372 if test -n "$BZIP2"; then
7373   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7374 echo "${ECHO_T}$BZIP2" >&6; }
7375 else
7376   { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7378 fi
7379
7380
7381 # Extract the first word of "cat", so it can be a program name with args.
7382 set dummy cat; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_CAT+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $CAT in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408   ;;
7409 esac
7410 fi
7411 CAT=$ac_cv_path_CAT
7412 if test -n "$CAT"; then
7413   { echo "$as_me:$LINENO: result: $CAT" >&5
7414 echo "${ECHO_T}$CAT" >&6; }
7415 else
7416   { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7418 fi
7419
7420
7421 # Extract the first word of "doxygen", so it can be a program name with args.
7422 set dummy doxygen; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   case $DOXYGEN in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438   for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448   ;;
7449 esac
7450 fi
7451 DOXYGEN=$ac_cv_path_DOXYGEN
7452 if test -n "$DOXYGEN"; then
7453   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7454 echo "${ECHO_T}$DOXYGEN" >&6; }
7455 else
7456   { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7458 fi
7459
7460
7461 # Extract the first word of "groff", so it can be a program name with args.
7462 set dummy groff; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_GROFF+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   case $GROFF in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488   ;;
7489 esac
7490 fi
7491 GROFF=$ac_cv_path_GROFF
7492 if test -n "$GROFF"; then
7493   { echo "$as_me:$LINENO: result: $GROFF" >&5
7494 echo "${ECHO_T}$GROFF" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501 # Extract the first word of "gzip", so it can be a program name with args.
7502 set dummy gzip; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $GZIPBIN in
7509   [\\/]* | ?:[\\/]*)
7510   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7511   ;;
7512   *)
7513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528   ;;
7529 esac
7530 fi
7531 GZIPBIN=$ac_cv_path_GZIPBIN
7532 if test -n "$GZIPBIN"; then
7533   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7534 echo "${ECHO_T}$GZIPBIN" >&6; }
7535 else
7536   { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7538 fi
7539
7540
7541 # Extract the first word of "pdfroff", so it can be a program name with args.
7542 set dummy pdfroff; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_PDFROFF+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   case $PDFROFF in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568   ;;
7569 esac
7570 fi
7571 PDFROFF=$ac_cv_path_PDFROFF
7572 if test -n "$PDFROFF"; then
7573   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7574 echo "${ECHO_T}$PDFROFF" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 # Extract the first word of "zip", so it can be a program name with args.
7582 set dummy zip; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_ZIP+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $ZIP in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 ZIP=$ac_cv_path_ZIP
7612 if test -n "$ZIP"; then
7613   { echo "$as_me:$LINENO: result: $ZIP" >&5
7614 echo "${ECHO_T}$ZIP" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621 for ac_prog in ocamlc
7622 do
7623   # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_OCAMLC+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   case $OCAMLC in
7631   [\\/]* | ?:[\\/]*)
7632   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7633   ;;
7634   *)
7635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650   ;;
7651 esac
7652 fi
7653 OCAMLC=$ac_cv_path_OCAMLC
7654 if test -n "$OCAMLC"; then
7655   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7656 echo "${ECHO_T}$OCAMLC" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662
7663   test -n "$OCAMLC" && break
7664 done
7665
7666 for ac_prog in ocamlopt
7667 do
7668   # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   case $OCAMLOPT in
7676   [\\/]* | ?:[\\/]*)
7677   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7678   ;;
7679   *)
7680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695   ;;
7696 esac
7697 fi
7698 OCAMLOPT=$ac_cv_path_OCAMLOPT
7699 if test -n "$OCAMLOPT"; then
7700   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7701 echo "${ECHO_T}$OCAMLOPT" >&6; }
7702 else
7703   { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705 fi
7706
7707
7708   test -n "$OCAMLOPT" && break
7709 done
7710
7711 for ac_prog in ocamldep
7712 do
7713   # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   case $OCAMLDEP in
7721   [\\/]* | ?:[\\/]*)
7722   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7723   ;;
7724   *)
7725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730   for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740   ;;
7741 esac
7742 fi
7743 OCAMLDEP=$ac_cv_path_OCAMLDEP
7744 if test -n "$OCAMLDEP"; then
7745   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7746 echo "${ECHO_T}$OCAMLDEP" >&6; }
7747 else
7748   { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7750 fi
7751
7752
7753   test -n "$OCAMLDEP" && break
7754 done
7755
7756 for ac_prog in ocamldoc
7757 do
7758   # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   case $OCAMLDOC in
7766   [\\/]* | ?:[\\/]*)
7767   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7768   ;;
7769   *)
7770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775   for ac_exec_ext in '' $ac_executable_extensions; do
7776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785   ;;
7786 esac
7787 fi
7788 OCAMLDOC=$ac_cv_path_OCAMLDOC
7789 if test -n "$OCAMLDOC"; then
7790   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7791 echo "${ECHO_T}$OCAMLDOC" >&6; }
7792 else
7793   { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7795 fi
7796
7797
7798   test -n "$OCAMLDOC" && break
7799 done
7800
7801 for ac_prog in gas as
7802 do
7803   # Extract the first word of "$ac_prog", so it can be a program name with args.
7804 set dummy $ac_prog; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_GAS+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   case $GAS in
7811   [\\/]* | ?:[\\/]*)
7812   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7813   ;;
7814   *)
7815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820   for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830   ;;
7831 esac
7832 fi
7833 GAS=$ac_cv_path_GAS
7834 if test -n "$GAS"; then
7835   { echo "$as_me:$LINENO: result: $GAS" >&5
7836 echo "${ECHO_T}$GAS" >&6; }
7837 else
7838   { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7840 fi
7841
7842
7843   test -n "$GAS" && break
7844 done
7845
7846
7847 { echo "$as_me:$LINENO: checking for linker version" >&5
7848 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7849 if test "${llvm_cv_link_version+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852
7853    version_string="$(ld -v 2>&1 | head -1)"
7854
7855    # Check for ld64.
7856    if (echo "$version_string" | grep -q "ld64"); then
7857      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7858    else
7859      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7860    fi
7861
7862 fi
7863 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7864 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7865
7866 cat >>confdefs.h <<_ACEOF
7867 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7868 _ACEOF
7869
7870
7871
7872 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7873 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7874 if test "${llvm_cv_link_use_r+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877    ac_ext=c
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882
7883   oldcflags="$CFLAGS"
7884   CFLAGS="$CFLAGS -Wl,-R."
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891
7892 int
7893 main ()
7894 {
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7902 case "(($ac_try" in
7903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904   *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907   (eval "$ac_link") 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7915   { (case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_try") 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_try") 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; }; then
7934   llvm_cv_link_use_r=yes
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939         llvm_cv_link_use_r=no
7940 fi
7941
7942 rm -f core conftest.err conftest.$ac_objext \
7943       conftest$ac_exeext conftest.$ac_ext
7944   CFLAGS="$oldcflags"
7945   ac_ext=c
7946 ac_cpp='$CPP $CPPFLAGS'
7947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950
7951
7952 fi
7953 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7954 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7955 if test "$llvm_cv_link_use_r" = yes ; then
7956
7957 cat >>confdefs.h <<\_ACEOF
7958 #define HAVE_LINK_R 1
7959 _ACEOF
7960
7961   fi
7962
7963
7964 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7965 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7966 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969    ac_ext=c
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975   oldcflags="$CFLAGS"
7976   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7977   cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983
7984 int
7985 main ()
7986 {
7987
7988   ;
7989   return 0;
7990 }
7991 _ACEOF
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7994 case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999   (eval "$ac_link") 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007   { (case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012   (eval "$ac_try") 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest$ac_exeext'
8017   { (case "(($ac_try" in
8018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019   *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022   (eval "$ac_try") 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   llvm_cv_link_use_export_dynamic=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031         llvm_cv_link_use_export_dynamic=no
8032 fi
8033
8034 rm -f core conftest.err conftest.$ac_objext \
8035       conftest$ac_exeext conftest.$ac_ext
8036   CFLAGS="$oldcflags"
8037   ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043
8044 fi
8045 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8046 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8047 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8048
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_LINK_EXPORT_DYNAMIC 1
8051 _ACEOF
8052
8053   fi
8054
8055
8056 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8057 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8058 if test "${llvm_cv_link_use_version_script+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061    ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066
8067   oldcflags="$CFLAGS"
8068
8069   # The following code is from the autoconf manual,
8070   # "11.13: Limitations of Usual Tools".
8071   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8072   # Use mktemp if possible; otherwise fall back on mkdir,
8073   # with $RANDOM to make collisions less likely.
8074   : ${TMPDIR=/tmp}
8075   {
8076     tmp=`
8077       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8078     ` &&
8079     test -n "$tmp" && test -d "$tmp"
8080   } || {
8081     tmp=$TMPDIR/foo$$-$RANDOM
8082     (umask 077 && mkdir "$tmp")
8083   } || exit $?
8084
8085   echo "{" > "$tmp/export.map"
8086   echo "  global: main;" >> "$tmp/export.map"
8087   echo "  local: *;" >> "$tmp/export.map"
8088   echo "};" >> "$tmp/export.map"
8089
8090   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 int
8099 main ()
8100 {
8101
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_link") 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest$ac_exeext'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   llvm_cv_link_use_version_script=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         llvm_cv_link_use_version_script=no
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext \
8149       conftest$ac_exeext conftest.$ac_ext
8150   rm "$tmp/export.map"
8151   rmdir "$tmp"
8152   CFLAGS="$oldcflags"
8153   ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159
8160 fi
8161 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8162 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8163 if test "$llvm_cv_link_use_version_script" = yes ; then
8164   HAVE_LINK_VERSION_SCRIPT=1
8165
8166   fi
8167
8168
8169
8170
8171 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8172 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8173 if test "${ac_cv_c_const+set}" = set; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182
8183 int
8184 main ()
8185 {
8186 /* FIXME: Include the comments suggested by Paul. */
8187 #ifndef __cplusplus
8188   /* Ultrix mips cc rejects this.  */
8189   typedef int charset[2];
8190   const charset x;
8191   /* SunOS 4.1.1 cc rejects this.  */
8192   char const *const *ccp;
8193   char **p;
8194   /* NEC SVR4.0.2 mips cc rejects this.  */
8195   struct point {int x, y;};
8196   static struct point const zero = {0,0};
8197   /* AIX XL C 1.02.0.0 rejects this.
8198      It does not let you subtract one const X* pointer from another in
8199      an arm of an if-expression whose if-part is not a constant
8200      expression */
8201   const char *g = "string";
8202   ccp = &g + (g ? g-g : 0);
8203   /* HPUX 7.0 cc rejects these. */
8204   ++ccp;
8205   p = (char**) ccp;
8206   ccp = (char const *const *) p;
8207   { /* SCO 3.2v4 cc rejects this.  */
8208     char *t;
8209     char const *s = 0 ? (char *) 0 : (char const *) 0;
8210
8211     *t++ = 0;
8212     if (s) return 0;
8213   }
8214   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8215     int x[] = {25, 17};
8216     const int *foo = &x[0];
8217     ++foo;
8218   }
8219   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8220     typedef const int *iptr;
8221     iptr p = 0;
8222     ++p;
8223   }
8224   { /* AIX XL C 1.02.0.0 rejects this saying
8225        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8226     struct s { int j; const int *ap[3]; };
8227     struct s *b; b->j = 5;
8228   }
8229   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8230     const int foo = 10;
8231     if (!foo) return 0;
8232   }
8233   return !x[0] && !zero.x;
8234 #endif
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_compile") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255   { (case "(($ac_try" in
8256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257   *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260   (eval "$ac_try") 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; } &&
8264          { ac_try='test -s conftest.$ac_objext'
8265   { (case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_try") 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   ac_cv_c_const=yes
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279         ac_cv_c_const=no
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8285 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8286 if test $ac_cv_c_const = no; then
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define const
8290 _ACEOF
8291
8292 fi
8293
8294
8295
8296
8297
8298
8299 ac_header_dirent=no
8300 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8301   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8302 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8303 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313 #include <sys/types.h>
8314 #include <$ac_hdr>
8315
8316 int
8317 main ()
8318 {
8319 if ((DIR *) 0)
8320 return 0;
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332   (eval "$ac_compile") 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340   { (case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_try") 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; } &&
8349          { ac_try='test -s conftest.$ac_objext'
8350   { (case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_try") 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   eval "$as_ac_Header=yes"
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364         eval "$as_ac_Header=no"
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369 ac_res=`eval echo '${'$as_ac_Header'}'`
8370                { echo "$as_me:$LINENO: result: $ac_res" >&5
8371 echo "${ECHO_T}$ac_res" >&6; }
8372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8373   cat >>confdefs.h <<_ACEOF
8374 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8375 _ACEOF
8376
8377 ac_header_dirent=$ac_hdr; break
8378 fi
8379
8380 done
8381 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8382 if test $ac_header_dirent = dirent.h; then
8383   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8385 if test "${ac_cv_search_opendir+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   ac_func_search_save_LIBS=$LIBS
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395
8396 /* Override any GCC internal prototype to avoid an error.
8397    Use char because int might match the return type of a GCC
8398    builtin and then its argument prototype would still apply.  */
8399 #ifdef __cplusplus
8400 extern "C"
8401 #endif
8402 char opendir ();
8403 int
8404 main ()
8405 {
8406 return opendir ();
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 for ac_lib in '' dir; do
8412   if test -z "$ac_lib"; then
8413     ac_res="none required"
8414   else
8415     ac_res=-l$ac_lib
8416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8417   fi
8418   rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (ac_try="$ac_link"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_link") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest$ac_exeext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_cv_search_opendir=$ac_res
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext \
8461       conftest$ac_exeext
8462   if test "${ac_cv_search_opendir+set}" = set; then
8463   break
8464 fi
8465 done
8466 if test "${ac_cv_search_opendir+set}" = set; then
8467   :
8468 else
8469   ac_cv_search_opendir=no
8470 fi
8471 rm conftest.$ac_ext
8472 LIBS=$ac_func_search_save_LIBS
8473 fi
8474 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8475 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8476 ac_res=$ac_cv_search_opendir
8477 if test "$ac_res" != no; then
8478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8479
8480 fi
8481
8482 else
8483   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8484 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8485 if test "${ac_cv_search_opendir+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_func_search_save_LIBS=$LIBS
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495
8496 /* Override any GCC internal prototype to avoid an error.
8497    Use char because int might match the return type of a GCC
8498    builtin and then its argument prototype would still apply.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 char opendir ();
8503 int
8504 main ()
8505 {
8506 return opendir ();
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 for ac_lib in '' x; do
8512   if test -z "$ac_lib"; then
8513     ac_res="none required"
8514   else
8515     ac_res=-l$ac_lib
8516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8517   fi
8518   rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8520 case "(($ac_try" in
8521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522   *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525   (eval "$ac_link") 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533   { (case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_try") 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; } &&
8542          { ac_try='test -s conftest$ac_exeext'
8543   { (case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_try") 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_search_opendir=$ac_res
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557
8558 fi
8559
8560 rm -f core conftest.err conftest.$ac_objext \
8561       conftest$ac_exeext
8562   if test "${ac_cv_search_opendir+set}" = set; then
8563   break
8564 fi
8565 done
8566 if test "${ac_cv_search_opendir+set}" = set; then
8567   :
8568 else
8569   ac_cv_search_opendir=no
8570 fi
8571 rm conftest.$ac_ext
8572 LIBS=$ac_func_search_save_LIBS
8573 fi
8574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8576 ac_res=$ac_cv_search_opendir
8577 if test "$ac_res" != no; then
8578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8579
8580 fi
8581
8582 fi
8583
8584
8585 for ac_header in dlfcn.h
8586 do
8587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8589   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 fi
8594 ac_res=`eval echo '${'$as_ac_Header'}'`
8595                { echo "$as_me:$LINENO: result: $ac_res" >&5
8596 echo "${ECHO_T}$ac_res" >&6; }
8597 else
8598   # Is the header compilable?
8599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 $ac_includes_default
8608 #include <$ac_header>
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_compile") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625   { (case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_try") 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; } &&
8634          { ac_try='test -s conftest.$ac_objext'
8635   { (case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640   (eval "$ac_try") 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; }; then
8644   ac_header_compiler=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649         ac_header_compiler=no
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8654 echo "${ECHO_T}$ac_header_compiler" >&6; }
8655
8656 # Is the header present?
8657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 #include <$ac_header>
8666 _ACEOF
8667 if { (ac_try="$ac_cpp conftest.$ac_ext"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8674   ac_status=$?
8675   grep -v '^ *+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } >/dev/null; then
8680   if test -s conftest.err; then
8681     ac_cpp_err=$ac_c_preproc_warn_flag
8682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8683   else
8684     ac_cpp_err=
8685   fi
8686 else
8687   ac_cpp_err=yes
8688 fi
8689 if test -z "$ac_cpp_err"; then
8690   ac_header_preproc=yes
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695   ac_header_preproc=no
8696 fi
8697
8698 rm -f conftest.err conftest.$ac_ext
8699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8700 echo "${ECHO_T}$ac_header_preproc" >&6; }
8701
8702 # So?  What about this header?
8703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8704   yes:no: )
8705     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8709     ac_header_preproc=yes
8710     ;;
8711   no:yes:* )
8712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8714     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8715 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8716     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8718     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8719 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8724     ( cat <<\_ASBOX
8725 ## ------------------------------------ ##
8726 ## Report this to http://llvm.org/bugs/ ##
8727 ## ------------------------------------ ##
8728 _ASBOX
8729      ) | sed "s/^/$as_me: WARNING:     /" >&2
8730     ;;
8731 esac
8732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737   eval "$as_ac_Header=\$ac_header_preproc"
8738 fi
8739 ac_res=`eval echo '${'$as_ac_Header'}'`
8740                { echo "$as_me:$LINENO: result: $ac_res" >&5
8741 echo "${ECHO_T}$ac_res" >&6; }
8742
8743 fi
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 _ACEOF
8748
8749 fi
8750
8751 done
8752
8753 # Check whether --enable-ltdl-install was given.
8754 if test "${enable_ltdl_install+set}" = set; then
8755   enableval=$enable_ltdl_install;
8756 fi
8757
8758
8759
8760
8761 if test x"${enable_ltdl_install-no}" != xno; then
8762   INSTALL_LTDL_TRUE=
8763   INSTALL_LTDL_FALSE='#'
8764 else
8765   INSTALL_LTDL_TRUE='#'
8766   INSTALL_LTDL_FALSE=
8767 fi
8768
8769
8770
8771 if test x"${enable_ltdl_convenience-no}" != xno; then
8772   CONVENIENCE_LTDL_TRUE=
8773   CONVENIENCE_LTDL_FALSE='#'
8774 else
8775   CONVENIENCE_LTDL_TRUE='#'
8776   CONVENIENCE_LTDL_FALSE=
8777 fi
8778
8779
8780 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8782 library_names_spec=
8783 libname_spec='lib$name'
8784 soname_spec=
8785 shrext_cmds=".so"
8786 postinstall_cmds=
8787 postuninstall_cmds=
8788 finish_cmds=
8789 finish_eval=
8790 shlibpath_var=
8791 shlibpath_overrides_runpath=unknown
8792 version_type=none
8793 dynamic_linker="$host_os ld.so"
8794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8795 if test "$GCC" = yes; then
8796   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8797   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8798     # if the path contains ";" then we assume it to be the separator
8799     # otherwise default to the standard path separator (i.e. ":") - it is
8800     # assumed that no part of a normal pathname contains ";" but that should
8801     # okay in the real world where ";" in dirpaths is itself problematic.
8802     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8803   else
8804     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8805   fi
8806 else
8807   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8808 fi
8809 need_lib_prefix=unknown
8810 hardcode_into_libs=no
8811
8812 # when you set need_version to no, make sure it does not cause -set_version
8813 # flags to be left without arguments
8814 need_version=unknown
8815
8816 case $host_os in
8817 aix3*)
8818   version_type=linux
8819   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8820   shlibpath_var=LIBPATH
8821
8822   # AIX 3 has no versioning support, so we append a major version to the name.
8823   soname_spec='${libname}${release}${shared_ext}$major'
8824   ;;
8825
8826 aix4* | aix5*)
8827   version_type=linux
8828   need_lib_prefix=no
8829   need_version=no
8830   hardcode_into_libs=yes
8831   if test "$host_cpu" = ia64; then
8832     # AIX 5 supports IA64
8833     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8834     shlibpath_var=LD_LIBRARY_PATH
8835   else
8836     # With GCC up to 2.95.x, collect2 would create an import file
8837     # for dependence libraries.  The import file would start with
8838     # the line `#! .'.  This would cause the generated library to
8839     # depend on `.', always an invalid library.  This was fixed in
8840     # development snapshots of GCC prior to 3.0.
8841     case $host_os in
8842       aix4 | aix4.[01] | aix4.[01].*)
8843       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8844            echo ' yes '
8845            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8846         :
8847       else
8848         can_build_shared=no
8849       fi
8850       ;;
8851     esac
8852     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8853     # soname into executable. Probably we can add versioning support to
8854     # collect2, so additional links can be useful in future.
8855     if test "$aix_use_runtimelinking" = yes; then
8856       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8857       # instead of lib<name>.a to let people know that these are not
8858       # typical AIX shared libraries.
8859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860     else
8861       # We preserve .a as extension for shared libraries through AIX4.2
8862       # and later when we are not doing run time linking.
8863       library_names_spec='${libname}${release}.a $libname.a'
8864       soname_spec='${libname}${release}${shared_ext}$major'
8865     fi
8866     shlibpath_var=LIBPATH
8867   fi
8868   ;;
8869
8870 amigaos*)
8871   library_names_spec='$libname.ixlibrary $libname.a'
8872   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8873   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'
8874   ;;
8875
8876 beos*)
8877   library_names_spec='${libname}${shared_ext}'
8878   dynamic_linker="$host_os ld.so"
8879   shlibpath_var=LIBRARY_PATH
8880   ;;
8881
8882 bsdi[45]*)
8883   version_type=linux
8884   need_version=no
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886   soname_spec='${libname}${release}${shared_ext}$major'
8887   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8888   shlibpath_var=LD_LIBRARY_PATH
8889   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8890   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8891   # the default ld.so.conf also contains /usr/contrib/lib and
8892   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8893   # libtool to hard-code these into programs
8894   ;;
8895
8896 cygwin* | mingw* | pw32*)
8897   version_type=windows
8898   shrext_cmds=".dll"
8899   need_version=no
8900   need_lib_prefix=no
8901
8902   case $GCC,$host_os in
8903   yes,cygwin* | yes,mingw* | yes,pw32*)
8904     library_names_spec='$libname.dll.a'
8905     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8906     postinstall_cmds='base_file=`basename \${file}`~
8907       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8908       dldir=$destdir/`dirname \$dlpath`~
8909       test -d \$dldir || mkdir -p \$dldir~
8910       $install_prog $dir/$dlname \$dldir/$dlname~
8911       chmod a+x \$dldir/$dlname'
8912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8913       dlpath=$dir/\$dldll~
8914        $rm \$dlpath'
8915     shlibpath_overrides_runpath=yes
8916
8917     case $host_os in
8918     cygwin*)
8919       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8920       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8921       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8922       ;;
8923     mingw*)
8924       # MinGW DLLs use traditional 'lib' prefix
8925       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8926       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8927       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8928         # It is most probably a Windows format PATH printed by
8929         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8930         # path with ; separators, and with drive letters. We can handle the
8931         # drive letters (cygwin fileutils understands them), so leave them,
8932         # especially as we might pass files found there to a mingw objdump,
8933         # which wouldn't understand a cygwinified path. Ahh.
8934         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8935       else
8936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8937       fi
8938       ;;
8939     pw32*)
8940       # pw32 DLLs use 'pw' prefix rather than 'lib'
8941       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8942       ;;
8943     esac
8944     ;;
8945
8946   *)
8947     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8948     ;;
8949   esac
8950   dynamic_linker='Win32 ld.exe'
8951   # FIXME: first we should search . and the directory the executable is in
8952   shlibpath_var=PATH
8953   ;;
8954
8955 darwin* | rhapsody*)
8956   dynamic_linker="$host_os dyld"
8957   version_type=darwin
8958   need_lib_prefix=no
8959   need_version=no
8960   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8961   soname_spec='${libname}${release}${major}$shared_ext'
8962   shlibpath_overrides_runpath=yes
8963   shlibpath_var=DYLD_LIBRARY_PATH
8964   shrext_cmds='.dylib'
8965   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8966   if test "$GCC" = yes; then
8967     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"`
8968   else
8969     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8970   fi
8971   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8972   ;;
8973
8974 dgux*)
8975   version_type=linux
8976   need_lib_prefix=no
8977   need_version=no
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   ;;
8982
8983 freebsd1.*)
8984   dynamic_linker=no
8985   ;;
8986
8987 kfreebsd*-gnu)
8988   version_type=linux
8989   need_lib_prefix=no
8990   need_version=no
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992   soname_spec='${libname}${release}${shared_ext}$major'
8993   shlibpath_var=LD_LIBRARY_PATH
8994   shlibpath_overrides_runpath=no
8995   hardcode_into_libs=yes
8996   dynamic_linker='GNU ld.so'
8997   ;;
8998
8999 freebsd* | dragonfly*)
9000   # DragonFly does not have aout.  When/if they implement a new
9001   # versioning mechanism, adjust this.
9002   if test -x /usr/bin/objformat; then
9003     objformat=`/usr/bin/objformat`
9004   else
9005     case $host_os in
9006     freebsd[123].*) objformat=aout ;;
9007     *) objformat=elf ;;
9008     esac
9009   fi
9010   version_type=freebsd-$objformat
9011   case $version_type in
9012     freebsd-elf*)
9013       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9014       need_version=no
9015       need_lib_prefix=no
9016       ;;
9017     freebsd-*)
9018       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9019       need_version=yes
9020       ;;
9021   esac
9022   shlibpath_var=LD_LIBRARY_PATH
9023   case $host_os in
9024   freebsd2.*)
9025     shlibpath_overrides_runpath=yes
9026     ;;
9027   freebsd3.[01]* | freebsdelf3.[01]*)
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9032   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9033     shlibpath_overrides_runpath=no
9034     hardcode_into_libs=yes
9035     ;;
9036   freebsd*) # from 4.6 on
9037     shlibpath_overrides_runpath=yes
9038     hardcode_into_libs=yes
9039     ;;
9040   esac
9041   ;;
9042
9043 gnu*)
9044   version_type=linux
9045   need_lib_prefix=no
9046   need_version=no
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   hardcode_into_libs=yes
9051   ;;
9052
9053 hpux9* | hpux10* | hpux11*)
9054   # Give a soname corresponding to the major version so that dld.sl refuses to
9055   # link against other versions.
9056   version_type=sunos
9057   need_lib_prefix=no
9058   need_version=no
9059   case $host_cpu in
9060   ia64*)
9061     shrext_cmds='.so'
9062     hardcode_into_libs=yes
9063     dynamic_linker="$host_os dld.so"
9064     shlibpath_var=LD_LIBRARY_PATH
9065     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067     soname_spec='${libname}${release}${shared_ext}$major'
9068     if test "X$HPUX_IA64_MODE" = X32; then
9069       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9070     else
9071       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9072     fi
9073     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9074     ;;
9075    hppa*64*)
9076      shrext_cmds='.sl'
9077      hardcode_into_libs=yes
9078      dynamic_linker="$host_os dld.sl"
9079      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9080      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9081      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082      soname_spec='${libname}${release}${shared_ext}$major'
9083      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9084      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9085      ;;
9086    *)
9087     shrext_cmds='.sl'
9088     dynamic_linker="$host_os dld.sl"
9089     shlibpath_var=SHLIB_PATH
9090     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     soname_spec='${libname}${release}${shared_ext}$major'
9093     ;;
9094   esac
9095   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9096   postinstall_cmds='chmod 555 $lib'
9097   ;;
9098
9099 interix3*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   shlibpath_overrides_runpath=no
9108   hardcode_into_libs=yes
9109   ;;
9110
9111 irix5* | irix6* | nonstopux*)
9112   case $host_os in
9113     nonstopux*) version_type=nonstopux ;;
9114     *)
9115         if test "$lt_cv_prog_gnu_ld" = yes; then
9116                 version_type=linux
9117         else
9118                 version_type=irix
9119         fi ;;
9120   esac
9121   need_lib_prefix=no
9122   need_version=no
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9125   case $host_os in
9126   irix5* | nonstopux*)
9127     libsuff= shlibsuff=
9128     ;;
9129   *)
9130     case $LD in # libtool.m4 will add one of these switches to LD
9131     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9132       libsuff= shlibsuff= libmagic=32-bit;;
9133     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9134       libsuff=32 shlibsuff=N32 libmagic=N32;;
9135     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9136       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9137     *) libsuff= shlibsuff= libmagic=never-match;;
9138     esac
9139     ;;
9140   esac
9141   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9142   shlibpath_overrides_runpath=no
9143   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9144   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9145   hardcode_into_libs=yes
9146   ;;
9147
9148 # No shared lib support for Linux oldld, aout, or coff.
9149 linux*oldld* | linux*aout* | linux*coff*)
9150   dynamic_linker=no
9151   ;;
9152
9153 # This must be Linux ELF.
9154 linux*)
9155   version_type=linux
9156   need_lib_prefix=no
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9161   shlibpath_var=LD_LIBRARY_PATH
9162   shlibpath_overrides_runpath=no
9163   # This implies no fast_install, which is unacceptable.
9164   # Some rework will be needed to allow for fast_install
9165   # before this can be enabled.
9166   hardcode_into_libs=yes
9167
9168   # Append ld.so.conf contents to the search path
9169   if test -f /etc/ld.so.conf; then
9170     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' ' '`
9171     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9172   fi
9173
9174   # We used to test for /lib/ld.so.1 and disable shared libraries on
9175   # powerpc, because MkLinux only supported shared libraries with the
9176   # GNU dynamic linker.  Since this was broken with cross compilers,
9177   # most powerpc-linux boxes support dynamic linking these days and
9178   # people can always --disable-shared, the test was removed, and we
9179   # assume the GNU/Linux dynamic linker is in use.
9180   dynamic_linker='GNU/Linux ld.so'
9181   ;;
9182
9183 knetbsd*-gnu)
9184   version_type=linux
9185   need_lib_prefix=no
9186   need_version=no
9187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188   soname_spec='${libname}${release}${shared_ext}$major'
9189   shlibpath_var=LD_LIBRARY_PATH
9190   shlibpath_overrides_runpath=no
9191   hardcode_into_libs=yes
9192   dynamic_linker='GNU ld.so'
9193   ;;
9194
9195 netbsd*)
9196   version_type=sunos
9197   need_lib_prefix=no
9198   need_version=no
9199   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9202     dynamic_linker='NetBSD (a.out) ld.so'
9203   else
9204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205     soname_spec='${libname}${release}${shared_ext}$major'
9206     dynamic_linker='NetBSD ld.elf_so'
9207   fi
9208   shlibpath_var=LD_LIBRARY_PATH
9209   shlibpath_overrides_runpath=yes
9210   hardcode_into_libs=yes
9211   ;;
9212
9213 newsos6)
9214   version_type=linux
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   shlibpath_var=LD_LIBRARY_PATH
9217   shlibpath_overrides_runpath=yes
9218   ;;
9219
9220 nto-qnx*)
9221   version_type=linux
9222   need_lib_prefix=no
9223   need_version=no
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   shlibpath_overrides_runpath=yes
9228   ;;
9229
9230 openbsd* | bitrig*)
9231   version_type=sunos
9232   sys_lib_dlsearch_path_spec="/usr/lib"
9233   need_lib_prefix=no
9234   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9235   case $host_os in
9236     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9237     *)                         need_version=no  ;;
9238   esac
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9241   shlibpath_var=LD_LIBRARY_PATH
9242   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9243     case $host_os in
9244       openbsd2.[89] | openbsd2.[89].*)
9245         shlibpath_overrides_runpath=no
9246         ;;
9247       *)
9248         shlibpath_overrides_runpath=yes
9249         ;;
9250       esac
9251   else
9252     shlibpath_overrides_runpath=yes
9253   fi
9254   ;;
9255
9256 os2*)
9257   libname_spec='$name'
9258   shrext_cmds=".dll"
9259   need_lib_prefix=no
9260   library_names_spec='$libname${shared_ext} $libname.a'
9261   dynamic_linker='OS/2 ld.exe'
9262   shlibpath_var=LIBPATH
9263   ;;
9264
9265 osf3* | osf4* | osf5*)
9266   version_type=osf
9267   need_lib_prefix=no
9268   need_version=no
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9273   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9274   ;;
9275
9276 solaris*)
9277   version_type=linux
9278   need_lib_prefix=no
9279   need_version=no
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=yes
9284   hardcode_into_libs=yes
9285   # ldd complains unless libraries are executable
9286   postinstall_cmds='chmod +x $lib'
9287   ;;
9288
9289 sunos4*)
9290   version_type=sunos
9291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9293   shlibpath_var=LD_LIBRARY_PATH
9294   shlibpath_overrides_runpath=yes
9295   if test "$with_gnu_ld" = yes; then
9296     need_lib_prefix=no
9297   fi
9298   need_version=yes
9299   ;;
9300
9301 sysv4 | sysv4.3*)
9302   version_type=linux
9303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   case $host_vendor in
9307     sni)
9308       shlibpath_overrides_runpath=no
9309       need_lib_prefix=no
9310       export_dynamic_flag_spec='${wl}-Blargedynsym'
9311       runpath_var=LD_RUN_PATH
9312       ;;
9313     siemens)
9314       need_lib_prefix=no
9315       ;;
9316     motorola)
9317       need_lib_prefix=no
9318       need_version=no
9319       shlibpath_overrides_runpath=no
9320       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9321       ;;
9322   esac
9323   ;;
9324
9325 sysv4*MP*)
9326   if test -d /usr/nec ;then
9327     version_type=linux
9328     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9329     soname_spec='$libname${shared_ext}.$major'
9330     shlibpath_var=LD_LIBRARY_PATH
9331   fi
9332   ;;
9333
9334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9335   version_type=freebsd-elf
9336   need_lib_prefix=no
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   hardcode_into_libs=yes
9342   if test "$with_gnu_ld" = yes; then
9343     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9344     shlibpath_overrides_runpath=no
9345   else
9346     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9347     shlibpath_overrides_runpath=yes
9348     case $host_os in
9349       sco3.2v5*)
9350         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9351         ;;
9352     esac
9353   fi
9354   sys_lib_dlsearch_path_spec='/usr/lib'
9355   ;;
9356
9357 uts4*)
9358   version_type=linux
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360   soname_spec='${libname}${release}${shared_ext}$major'
9361   shlibpath_var=LD_LIBRARY_PATH
9362   ;;
9363
9364 *)
9365   dynamic_linker=no
9366   ;;
9367 esac
9368 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9369 echo "${ECHO_T}$dynamic_linker" >&6; }
9370 test "$dynamic_linker" = no && can_build_shared=no
9371
9372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9373 if test "$GCC" = yes; then
9374   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9375 fi
9376
9377
9378 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9379 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9380 if test "${libltdl_cv_shlibext+set}" = set; then
9381   echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383
9384 module=yes
9385 eval libltdl_cv_shlibext=$shrext_cmds
9386
9387 fi
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9389 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9390 if test -n "$libltdl_cv_shlibext"; then
9391
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9394 _ACEOF
9395
9396 fi
9397
9398
9399 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9400 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9401 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   libltdl_cv_shlibpath_var="$shlibpath_var"
9405 fi
9406 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9407 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9408 if test -n "$libltdl_cv_shlibpath_var"; then
9409
9410 cat >>confdefs.h <<_ACEOF
9411 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9412 _ACEOF
9413
9414 fi
9415
9416
9417 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9418 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9419 if test "${libltdl_cv_sys_search_path+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9423 fi
9424 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9425 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9426 if test -n "$libltdl_cv_sys_search_path"; then
9427   sys_search_path=
9428   for dir in $libltdl_cv_sys_search_path; do
9429     if test -z "$sys_search_path"; then
9430       sys_search_path="$dir"
9431     else
9432       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9433     fi
9434   done
9435
9436 cat >>confdefs.h <<_ACEOF
9437 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9438 _ACEOF
9439
9440 fi
9441
9442 { echo "$as_me:$LINENO: checking for objdir" >&5
9443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9444 if test "${libltdl_cv_objdir+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   libltdl_cv_objdir="$objdir"
9448   if test -n "$objdir"; then
9449     :
9450   else
9451     rm -f .libs 2>/dev/null
9452     mkdir .libs 2>/dev/null
9453     if test -d .libs; then
9454       libltdl_cv_objdir=.libs
9455     else
9456       # MS-DOS does not allow filenames that begin with a dot.
9457       libltdl_cv_objdir=_libs
9458     fi
9459   rmdir .libs 2>/dev/null
9460   fi
9461
9462 fi
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9464 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9465
9466 cat >>confdefs.h <<_ACEOF
9467 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9468 _ACEOF
9469
9470
9471
9472
9473
9474
9475 # Check for command to grab the raw symbol name followed by C symbol from nm.
9476 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9477 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481
9482 # These are sane defaults that work on at least a few old systems.
9483 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9484
9485 # Character class describing NM global symbol codes.
9486 symcode='[BCDEGRST]'
9487
9488 # Regexp to match symbols that can be accessed directly from C.
9489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9490
9491 # Transform an extracted symbol line into a proper C declaration
9492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9493
9494 # Transform an extracted symbol line into symbol name and symbol address
9495 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'"
9496
9497 # Define system-specific variables.
9498 case $host_os in
9499 aix*)
9500   symcode='[BCDT]'
9501   ;;
9502 cygwin* | mingw* | pw32*)
9503   symcode='[ABCDGISTW]'
9504   ;;
9505 hpux*) # Its linker distinguishes data from code symbols
9506   if test "$host_cpu" = ia64; then
9507     symcode='[ABCDEGRST]'
9508   fi
9509   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510   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'"
9511   ;;
9512 linux*)
9513   if test "$host_cpu" = ia64; then
9514     symcode='[ABCDGIRSTW]'
9515     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9516     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'"
9517   fi
9518   ;;
9519 irix* | nonstopux*)
9520   symcode='[BCDEGRST]'
9521   ;;
9522 osf*)
9523   symcode='[BCDEGQRST]'
9524   ;;
9525 solaris*)
9526   symcode='[BDRT]'
9527   ;;
9528 sco3.2v5*)
9529   symcode='[DT]'
9530   ;;
9531 sysv4.2uw2*)
9532   symcode='[DT]'
9533   ;;
9534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9535   symcode='[ABDT]'
9536   ;;
9537 sysv4)
9538   symcode='[DFNSTU]'
9539   ;;
9540 esac
9541
9542 # Handle CRLF in mingw tool chain
9543 opt_cr=
9544 case $build_os in
9545 mingw*)
9546   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9547   ;;
9548 esac
9549
9550 # If we're using GNU nm, then use its standard symbol codes.
9551 case `$NM -V 2>&1` in
9552 *GNU* | *'with BFD'*)
9553   symcode='[ABCDGIRSTW]' ;;
9554 esac
9555
9556 # Try without a prefix undercore, then with it.
9557 for ac_symprfx in "" "_"; do
9558
9559   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9560   symxfrm="\\1 $ac_symprfx\\2 \\2"
9561
9562   # Write the raw and C identifiers.
9563   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9564
9565   # Check to see that the pipe works correctly.
9566   pipe_works=no
9567
9568   rm -f conftest*
9569   cat > conftest.$ac_ext <<EOF
9570 #ifdef __cplusplus
9571 extern "C" {
9572 #endif
9573 char nm_test_var;
9574 void nm_test_func(){}
9575 #ifdef __cplusplus
9576 }
9577 #endif
9578 int main(){nm_test_var='a';nm_test_func();return(0);}
9579 EOF
9580
9581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; then
9586     # Now try to grab the symbols.
9587     nlist=conftest.nm
9588     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9589   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } && test -s "$nlist"; then
9593       # Try sorting and uniquifying the output.
9594       if sort "$nlist" | uniq > "$nlist"T; then
9595         mv -f "$nlist"T "$nlist"
9596       else
9597         rm -f "$nlist"T
9598       fi
9599
9600       # Make sure that we snagged all the symbols we need.
9601       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9602         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9603           cat <<EOF > conftest.$ac_ext
9604 #ifdef __cplusplus
9605 extern "C" {
9606 #endif
9607
9608 EOF
9609           # Now generate the symbol file.
9610           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9611
9612           cat <<EOF >> conftest.$ac_ext
9613 #if defined (__STDC__) && __STDC__
9614 # define lt_ptr_t void *
9615 #else
9616 # define lt_ptr_t char *
9617 # define const
9618 #endif
9619
9620 /* The mapping between symbol names and symbols. */
9621 const struct {
9622   const char *name;
9623   lt_ptr_t address;
9624 }
9625 lt_preloaded_symbols[] =
9626 {
9627 EOF
9628           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9629           cat <<\EOF >> conftest.$ac_ext
9630   {0, (lt_ptr_t) 0}
9631 };
9632
9633 #ifdef __cplusplus
9634 }
9635 #endif
9636 EOF
9637           # Now try linking the two files.
9638           mv conftest.$ac_objext conftstm.$ac_objext
9639           lt_save_LIBS="$LIBS"
9640           lt_save_CFLAGS="$CFLAGS"
9641           LIBS="conftstm.$ac_objext"
9642           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9643           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9648             pipe_works=yes
9649           fi
9650           LIBS="$lt_save_LIBS"
9651           CFLAGS="$lt_save_CFLAGS"
9652         else
9653           echo "cannot find nm_test_func in $nlist" >&5
9654         fi
9655       else
9656         echo "cannot find nm_test_var in $nlist" >&5
9657       fi
9658     else
9659       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9660     fi
9661   else
9662     echo "$progname: failed program was:" >&5
9663     cat conftest.$ac_ext >&5
9664   fi
9665   rm -f conftest* conftst*
9666
9667   # Do not use the global_symbol_pipe unless it works.
9668   if test "$pipe_works" = yes; then
9669     break
9670   else
9671     lt_cv_sys_global_symbol_pipe=
9672   fi
9673 done
9674
9675 fi
9676
9677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9678   lt_cv_sys_global_symbol_to_cdecl=
9679 fi
9680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9681   { echo "$as_me:$LINENO: result: failed" >&5
9682 echo "${ECHO_T}failed" >&6; }
9683 else
9684   { echo "$as_me:$LINENO: result: ok" >&5
9685 echo "${ECHO_T}ok" >&6; }
9686 fi
9687
9688
9689 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9690 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9691 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9695     libltdl_cv_preloaded_symbols=yes
9696   else
9697     libltdl_cv_preloaded_symbols=no
9698   fi
9699
9700 fi
9701 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9702 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9703 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_PRELOADED_SYMBOLS 1
9707 _ACEOF
9708
9709 fi
9710
9711 LIBADD_DL=
9712
9713 ac_ext=c
9714 ac_cpp='$CPP $CPPFLAGS'
9715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9718
9719
9720 { echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9733 #define shl_load innocuous_shl_load
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736     which can conflict with char shl_load (); below.
9737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738     <limits.h> exists even on freestanding compilers.  */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef shl_load
9747
9748 /* Override any GCC internal prototype to avoid an error.
9749    Use char because int might match the return type of a GCC
9750    builtin and then its argument prototype would still apply.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char shl_load ();
9755 /* The GNU C library defines this for functions which it implements
9756     to always fail with ENOSYS.  Some functions are actually named
9757     something starting with __ and the normal name is an alias.  */
9758 #if defined __stub_shl_load || defined __stub___shl_load
9759 choke me
9760 #endif
9761
9762 int
9763 main ()
9764 {
9765 return shl_load ();
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777   (eval "$ac_link") 2>conftest.er1
9778   ac_status=$?
9779   grep -v '^ *+' conftest.er1 >conftest.err
9780   rm -f conftest.er1
9781   cat conftest.err >&5
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } &&
9784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9785   { (case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_try") 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9804   ac_cv_func_shl_load=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809         ac_cv_func_shl_load=no
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9816 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9817 if test $ac_cv_func_shl_load = yes; then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_SHL_LOAD 1
9821 _ACEOF
9822
9823 else
9824   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-ldld  $LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char shl_load ();
9845 int
9846 main ()
9847 {
9848 return shl_load ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_link") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868   { (case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_try") 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; } &&
9877          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9887   ac_cv_lib_dld_shl_load=yes
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892         ac_cv_lib_dld_shl_load=no
9893 fi
9894
9895 rm -f core conftest.err conftest.$ac_objext \
9896       conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9898 fi
9899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9901 if test $ac_cv_lib_dld_shl_load = yes; then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_SHL_LOAD 1
9905 _ACEOF
9906
9907         LIBADD_DL="$LIBADD_DL -ldld"
9908 else
9909   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldl  $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h.  */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h.  */
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924    Use char because int might match the return type of a GCC
9925    builtin and then its argument prototype would still apply.  */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char dlopen ();
9930 int
9931 main ()
9932 {
9933 return dlopen ();
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_link") 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953   { (case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_try") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9972   ac_cv_lib_dl_dlopen=yes
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977         ac_cv_lib_dl_dlopen=no
9978 fi
9979
9980 rm -f core conftest.err conftest.$ac_objext \
9981       conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9985 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9986 if test $ac_cv_lib_dl_dlopen = yes; then
9987
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_LIBDL 1
9990 _ACEOF
9991
9992                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9993 else
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #if HAVE_DLFCN_H
10001 #  include <dlfcn.h>
10002 #endif
10003
10004 int
10005 main ()
10006 {
10007 dlopen(0, 0);
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10046
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_LIBDL 1
10049 _ACEOF
10050  libltdl_cv_func_dlopen="yes"
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10056 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10057 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-lsvld  $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char dlopen ();
10076 int
10077 main ()
10078 {
10079 return dlopen ();
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_link") 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099   { (case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_try") 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10118   ac_cv_lib_svld_dlopen=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_lib_svld_dlopen=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext \
10127       conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10129 fi
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10132 if test $ac_cv_lib_svld_dlopen = yes; then
10133
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_LIBDL 1
10136 _ACEOF
10137
10138                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10139 else
10140   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10141 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10142 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-ldld  $LIBS"
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153
10154 /* Override any GCC internal prototype to avoid an error.
10155    Use char because int might match the return type of a GCC
10156    builtin and then its argument prototype would still apply.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char dld_link ();
10161 int
10162 main ()
10163 {
10164 return dld_link ();
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_link") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184   { (case "(($ac_try" in
10185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186   *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189   (eval "$ac_try") 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; } &&
10193          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10203   ac_cv_lib_dld_dld_link=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208         ac_cv_lib_dld_dld_link=no
10209 fi
10210
10211 rm -f core conftest.err conftest.$ac_objext \
10212       conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10216 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10217 if test $ac_cv_lib_dld_dld_link = yes; then
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_DLD 1
10221 _ACEOF
10222
10223                 LIBADD_DL="$LIBADD_DL -ldld"
10224 else
10225   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10226 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10227 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10238 #define _dyld_func_lookup innocuous__dyld_func_lookup
10239
10240 /* System header to define __stub macros and hopefully few prototypes,
10241     which can conflict with char _dyld_func_lookup (); below.
10242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10243     <limits.h> exists even on freestanding compilers.  */
10244
10245 #ifdef __STDC__
10246 # include <limits.h>
10247 #else
10248 # include <assert.h>
10249 #endif
10250
10251 #undef _dyld_func_lookup
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254    Use char because int might match the return type of a GCC
10255    builtin and then its argument prototype would still apply.  */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char _dyld_func_lookup ();
10260 /* The GNU C library defines this for functions which it implements
10261     to always fail with ENOSYS.  Some functions are actually named
10262     something starting with __ and the normal name is an alias.  */
10263 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10264 choke me
10265 #endif
10266
10267 int
10268 main ()
10269 {
10270 return _dyld_func_lookup ();
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_link") 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290   { (case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_try") 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; } &&
10299          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10309   ac_cv_func__dyld_func_lookup=yes
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314         ac_cv_func__dyld_func_lookup=no
10315 fi
10316
10317 rm -f core conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319 fi
10320 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10321 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10322 if test $ac_cv_func__dyld_func_lookup = yes; then
10323
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_DYLD 1
10326 _ACEOF
10327
10328 fi
10329
10330
10331 fi
10332
10333
10334 fi
10335
10336
10337 fi
10338
10339 rm -f core conftest.err conftest.$ac_objext \
10340       conftest$ac_exeext conftest.$ac_ext
10341
10342 fi
10343
10344
10345 fi
10346
10347
10348 fi
10349
10350
10351 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10352 then
10353   lt_save_LIBS="$LIBS"
10354   LIBS="$LIBS $LIBADD_DL"
10355
10356 for ac_func in dlerror
10357 do
10358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10372 #define $ac_func innocuous_$ac_func
10373
10374 /* System header to define __stub macros and hopefully few prototypes,
10375     which can conflict with char $ac_func (); below.
10376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377     <limits.h> exists even on freestanding compilers.  */
10378
10379 #ifdef __STDC__
10380 # include <limits.h>
10381 #else
10382 # include <assert.h>
10383 #endif
10384
10385 #undef $ac_func
10386
10387 /* Override any GCC internal prototype to avoid an error.
10388    Use char because int might match the return type of a GCC
10389    builtin and then its argument prototype would still apply.  */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char $ac_func ();
10394 /* The GNU C library defines this for functions which it implements
10395     to always fail with ENOSYS.  Some functions are actually named
10396     something starting with __ and the normal name is an alias.  */
10397 #if defined __stub_$ac_func || defined __stub___$ac_func
10398 choke me
10399 #endif
10400
10401 int
10402 main ()
10403 {
10404 return $ac_func ();
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_link") 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } &&
10423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424   { (case "(($ac_try" in
10425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426   *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429   (eval "$ac_try") 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; } &&
10433          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10443   eval "$as_ac_var=yes"
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448         eval "$as_ac_var=no"
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext \
10452       conftest$ac_exeext conftest.$ac_ext
10453 fi
10454 ac_res=`eval echo '${'$as_ac_var'}'`
10455                { echo "$as_me:$LINENO: result: $ac_res" >&5
10456 echo "${ECHO_T}$ac_res" >&6; }
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458   cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10460 _ACEOF
10461
10462 fi
10463 done
10464
10465   LIBS="$lt_save_LIBS"
10466 fi
10467 ac_ext=c
10468 ac_cpp='$CPP $CPPFLAGS'
10469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10472
10473
10474
10475 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10476 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10477 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10478   echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480   ac_cv_sys_symbol_underscore=no
10481   cat > conftest.$ac_ext <<EOF
10482 void nm_test_func(){}
10483 int main(){nm_test_func;return 0;}
10484 EOF
10485   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486   (eval $ac_compile) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; then
10490     # Now try to grab the symbols.
10491     ac_nlist=conftest.nm
10492     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10493   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } && test -s "$ac_nlist"; then
10497       # See whether the symbols have a leading underscore.
10498       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10499         ac_cv_sys_symbol_underscore=yes
10500       else
10501         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10502           :
10503         else
10504           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10505         fi
10506       fi
10507     else
10508       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10509     fi
10510   else
10511     echo "configure: failed program was:" >&5
10512     cat conftest.c >&5
10513   fi
10514   rm -rf conftest*
10515
10516 fi
10517 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10518 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10519
10520
10521 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10522   if test x"$libltdl_cv_func_dlopen" = xyes ||
10523      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10524         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10525 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10526 if test "${libltdl_cv_need_uscore+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   libltdl_cv_need_uscore=unknown
10530           save_LIBS="$LIBS"
10531           LIBS="$LIBS $LIBADD_DL"
10532           if test "$cross_compiling" = yes; then :
10533   libltdl_cv_need_uscore=cross
10534 else
10535   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10536   lt_status=$lt_dlunknown
10537   cat > conftest.$ac_ext <<EOF
10538 #line 10538 "configure"
10539 #include "confdefs.h"
10540
10541 #if HAVE_DLFCN_H
10542 #include <dlfcn.h>
10543 #endif
10544
10545 #include <stdio.h>
10546
10547 #ifdef RTLD_GLOBAL
10548 #  define LT_DLGLOBAL           RTLD_GLOBAL
10549 #else
10550 #  ifdef DL_GLOBAL
10551 #    define LT_DLGLOBAL         DL_GLOBAL
10552 #  else
10553 #    define LT_DLGLOBAL         0
10554 #  endif
10555 #endif
10556
10557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10558    find out it does not work in some platform. */
10559 #ifndef LT_DLLAZY_OR_NOW
10560 #  ifdef RTLD_LAZY
10561 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10562 #  else
10563 #    ifdef DL_LAZY
10564 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10565 #    else
10566 #      ifdef RTLD_NOW
10567 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10568 #      else
10569 #        ifdef DL_NOW
10570 #          define LT_DLLAZY_OR_NOW      DL_NOW
10571 #        else
10572 #          define LT_DLLAZY_OR_NOW      0
10573 #        endif
10574 #      endif
10575 #    endif
10576 #  endif
10577 #endif
10578
10579 #ifdef __cplusplus
10580 extern "C" void exit (int);
10581 #endif
10582
10583 void fnord() { int i=42;}
10584 int main ()
10585 {
10586   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10587   int status = $lt_dlunknown;
10588
10589   if (self)
10590     {
10591       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10592       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10593       /* dlclose (self); */
10594     }
10595   else
10596     puts (dlerror ());
10597
10598     exit (status);
10599 }
10600 EOF
10601   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602   (eval $ac_link) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10606     (./conftest; exit; ) >&5 2>/dev/null
10607     lt_status=$?
10608     case x$lt_status in
10609       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10610       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10611       x$lt_dlunknown|x*)  ;;
10612     esac
10613   else :
10614     # compilation failed
10615
10616   fi
10617 fi
10618 rm -fr conftest*
10619
10620           LIBS="$save_LIBS"
10621
10622 fi
10623 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10624 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10625   fi
10626 fi
10627
10628 if test x"$libltdl_cv_need_uscore" = xyes; then
10629
10630 cat >>confdefs.h <<\_ACEOF
10631 #define NEED_USCORE 1
10632 _ACEOF
10633
10634 fi
10635
10636
10637 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10638 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10639 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   # PORTME does your system automatically load deplibs for dlopen?
10643   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10644   # For now, we just catch OSes we know something about -- in the
10645   # future, we'll try test this programmatically.
10646   libltdl_cv_sys_dlopen_deplibs=unknown
10647   case "$host_os" in
10648   aix3*|aix4.1.*|aix4.2.*)
10649     # Unknown whether this is true for these versions of AIX, but
10650     # we want this `case' here to explicitly catch those versions.
10651     libltdl_cv_sys_dlopen_deplibs=unknown
10652     ;;
10653   aix[45]*)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   darwin*)
10657     # Assuming the user has installed a libdl from somewhere, this is true
10658     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10659     libltdl_cv_sys_dlopen_deplibs=yes
10660     ;;
10661   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10662     # GNU and its variants, using gnu ld.so (Glibc)
10663     libltdl_cv_sys_dlopen_deplibs=yes
10664     ;;
10665   hpux10*|hpux11*)
10666     libltdl_cv_sys_dlopen_deplibs=yes
10667     ;;
10668   interix*)
10669     libltdl_cv_sys_dlopen_deplibs=yes
10670     ;;
10671   irix[12345]*|irix6.[01]*)
10672     # Catch all versions of IRIX before 6.2, and indicate that we don't
10673     # know how it worked for any of those versions.
10674     libltdl_cv_sys_dlopen_deplibs=unknown
10675     ;;
10676   irix*)
10677     # The case above catches anything before 6.2, and it's known that
10678     # at 6.2 and later dlopen does load deplibs.
10679     libltdl_cv_sys_dlopen_deplibs=yes
10680     ;;
10681   netbsd*)
10682     libltdl_cv_sys_dlopen_deplibs=yes
10683     ;;
10684   openbsd*)
10685     libltdl_cv_sys_dlopen_deplibs=yes
10686     ;;
10687   osf[1234]*)
10688     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10689     # it did *not* use an RPATH in a shared library to find objects the
10690     # library depends on, so we explicitly say `no'.
10691     libltdl_cv_sys_dlopen_deplibs=no
10692     ;;
10693   osf5.0|osf5.0a|osf5.1)
10694     # dlopen *does* load deplibs and with the right loader patch applied
10695     # it even uses RPATH in a shared library to search for shared objects
10696     # that the library depends on, but there's no easy way to know if that
10697     # patch is installed.  Since this is the case, all we can really
10698     # say is unknown -- it depends on the patch being installed.  If
10699     # it is, this changes to `yes'.  Without it, it would be `no'.
10700     libltdl_cv_sys_dlopen_deplibs=unknown
10701     ;;
10702   osf*)
10703     # the two cases above should catch all versions of osf <= 5.1.  Read
10704     # the comments above for what we know about them.
10705     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10706     # is used to find them so we can finally say `yes'.
10707     libltdl_cv_sys_dlopen_deplibs=yes
10708     ;;
10709   solaris*)
10710     libltdl_cv_sys_dlopen_deplibs=yes
10711     ;;
10712   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10713     libltdl_cv_sys_dlopen_deplibs=yes
10714     ;;
10715   esac
10716
10717 fi
10718 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10719 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10720 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10721
10722 cat >>confdefs.h <<\_ACEOF
10723 #define LTDL_DLOPEN_DEPLIBS 1
10724 _ACEOF
10725
10726 fi
10727
10728
10729 for ac_header in argz.h
10730 do
10731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 fi
10738 ac_res=`eval echo '${'$as_ac_Header'}'`
10739                { echo "$as_me:$LINENO: result: $ac_res" >&5
10740 echo "${ECHO_T}$ac_res" >&6; }
10741 else
10742   # Is the header compilable?
10743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751 $ac_includes_default
10752 #include <$ac_header>
10753 _ACEOF
10754 rm -f conftest.$ac_objext
10755 if { (ac_try="$ac_compile"
10756 case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_compile") 2>conftest.er1
10762   ac_status=$?
10763   grep -v '^ *+' conftest.er1 >conftest.err
10764   rm -f conftest.er1
10765   cat conftest.err >&5
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } &&
10768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769   { (case "(($ac_try" in
10770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771   *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774   (eval "$ac_try") 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; } &&
10778          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10788   ac_header_compiler=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         ac_header_compiler=no
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10798 echo "${ECHO_T}$ac_header_compiler" >&6; }
10799
10800 # Is the header present?
10801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 #include <$ac_header>
10810 _ACEOF
10811 if { (ac_try="$ac_cpp conftest.$ac_ext"
10812 case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10818   ac_status=$?
10819   grep -v '^ *+' conftest.er1 >conftest.err
10820   rm -f conftest.er1
10821   cat conftest.err >&5
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } >/dev/null; then
10824   if test -s conftest.err; then
10825     ac_cpp_err=$ac_c_preproc_warn_flag
10826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827   else
10828     ac_cpp_err=
10829   fi
10830 else
10831   ac_cpp_err=yes
10832 fi
10833 if test -z "$ac_cpp_err"; then
10834   ac_header_preproc=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839   ac_header_preproc=no
10840 fi
10841
10842 rm -f conftest.err conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10844 echo "${ECHO_T}$ac_header_preproc" >&6; }
10845
10846 # So?  What about this header?
10847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10848   yes:no: )
10849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10853     ac_header_preproc=yes
10854     ;;
10855   no:yes:* )
10856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10868     ( cat <<\_ASBOX
10869 ## ------------------------------------ ##
10870 ## Report this to http://llvm.org/bugs/ ##
10871 ## ------------------------------------ ##
10872 _ASBOX
10873      ) | sed "s/^/$as_me: WARNING:     /" >&2
10874     ;;
10875 esac
10876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   eval "$as_ac_Header=\$ac_header_preproc"
10882 fi
10883 ac_res=`eval echo '${'$as_ac_Header'}'`
10884                { echo "$as_me:$LINENO: result: $ac_res" >&5
10885 echo "${ECHO_T}$ac_res" >&6; }
10886
10887 fi
10888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889   cat >>confdefs.h <<_ACEOF
10890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10891 _ACEOF
10892
10893 fi
10894
10895 done
10896
10897
10898 { echo "$as_me:$LINENO: checking for error_t" >&5
10899 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10900 if test "${ac_cv_type_error_t+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909 #if HAVE_ARGZ_H
10910 #  include <argz.h>
10911 #endif
10912
10913 typedef error_t ac__type_new_;
10914 int
10915 main ()
10916 {
10917 if ((ac__type_new_ *) 0)
10918   return 0;
10919 if (sizeof (ac__type_new_))
10920   return 0;
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_compile") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940   { (case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_try") 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10959   ac_cv_type_error_t=yes
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         ac_cv_type_error_t=no
10965 fi
10966
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10968 fi
10969 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10970 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10971 if test $ac_cv_type_error_t = yes; then
10972
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_ERROR_T 1
10975 _ACEOF
10976
10977
10978 else
10979
10980 cat >>confdefs.h <<\_ACEOF
10981 #define error_t int
10982 _ACEOF
10983
10984 fi
10985
10986
10987
10988
10989
10990
10991
10992 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10993 do
10994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11008 #define $ac_func innocuous_$ac_func
11009
11010 /* System header to define __stub macros and hopefully few prototypes,
11011     which can conflict with char $ac_func (); below.
11012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11013     <limits.h> exists even on freestanding compilers.  */
11014
11015 #ifdef __STDC__
11016 # include <limits.h>
11017 #else
11018 # include <assert.h>
11019 #endif
11020
11021 #undef $ac_func
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024    Use char because int might match the return type of a GCC
11025    builtin and then its argument prototype would still apply.  */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char $ac_func ();
11030 /* The GNU C library defines this for functions which it implements
11031     to always fail with ENOSYS.  Some functions are actually named
11032     something starting with __ and the normal name is an alias.  */
11033 #if defined __stub_$ac_func || defined __stub___$ac_func
11034 choke me
11035 #endif
11036
11037 int
11038 main ()
11039 {
11040 return $ac_func ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_link") 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } &&
11059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11060   { (case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_try") 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11079   eval "$as_ac_var=yes"
11080 else
11081   echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084         eval "$as_ac_var=no"
11085 fi
11086
11087 rm -f core conftest.err conftest.$ac_objext \
11088       conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 ac_res=`eval echo '${'$as_ac_var'}'`
11091                { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094   cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11097
11098 fi
11099 done
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11129                   stdio.h unistd.h
11130 do
11131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 fi
11138 ac_res=`eval echo '${'$as_ac_Header'}'`
11139                { echo "$as_me:$LINENO: result: $ac_res" >&5
11140 echo "${ECHO_T}$ac_res" >&6; }
11141 else
11142   # Is the header compilable?
11143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 $ac_includes_default
11152 #include <$ac_header>
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (ac_try="$ac_compile"
11156 case "(($ac_try" in
11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158   *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161   (eval "$ac_compile") 2>conftest.er1
11162   ac_status=$?
11163   grep -v '^ *+' conftest.er1 >conftest.err
11164   rm -f conftest.er1
11165   cat conftest.err >&5
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } &&
11168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11169   { (case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_try") 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; } &&
11178          { ac_try='test -s conftest.$ac_objext'
11179   { (case "(($ac_try" in
11180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181   *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184   (eval "$ac_try") 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   ac_header_compiler=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193         ac_header_compiler=no
11194 fi
11195
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198 echo "${ECHO_T}$ac_header_compiler" >&6; }
11199
11200 # Is the header present?
11201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 #include <$ac_header>
11210 _ACEOF
11211 if { (ac_try="$ac_cpp conftest.$ac_ext"
11212 case "(($ac_try" in
11213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214   *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } >/dev/null; then
11224   if test -s conftest.err; then
11225     ac_cpp_err=$ac_c_preproc_warn_flag
11226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227   else
11228     ac_cpp_err=
11229   fi
11230 else
11231   ac_cpp_err=yes
11232 fi
11233 if test -z "$ac_cpp_err"; then
11234   ac_header_preproc=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239   ac_header_preproc=no
11240 fi
11241
11242 rm -f conftest.err conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11244 echo "${ECHO_T}$ac_header_preproc" >&6; }
11245
11246 # So?  What about this header?
11247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248   yes:no: )
11249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11253     ac_header_preproc=yes
11254     ;;
11255   no:yes:* )
11256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11268     ( cat <<\_ASBOX
11269 ## ------------------------------------ ##
11270 ## Report this to http://llvm.org/bugs/ ##
11271 ## ------------------------------------ ##
11272 _ASBOX
11273      ) | sed "s/^/$as_me: WARNING:     /" >&2
11274     ;;
11275 esac
11276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   eval "$as_ac_Header=\$ac_header_preproc"
11282 fi
11283 ac_res=`eval echo '${'$as_ac_Header'}'`
11284                { echo "$as_me:$LINENO: result: $ac_res" >&5
11285 echo "${ECHO_T}$ac_res" >&6; }
11286
11287 fi
11288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11289   cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11291 _ACEOF
11292
11293 fi
11294
11295 done
11296
11297
11298
11299
11300
11301 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11302 do
11303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 fi
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311                { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11313 else
11314   # Is the header compilable?
11315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 $ac_includes_default
11324 #include <$ac_header>
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333   (eval "$ac_compile") 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341   { (case "(($ac_try" in
11342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343   *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346   (eval "$ac_try") 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; } &&
11350          { ac_try='test -s conftest.$ac_objext'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; }; then
11360   ac_header_compiler=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365         ac_header_compiler=no
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 echo "${ECHO_T}$ac_header_compiler" >&6; }
11371
11372 # Is the header present?
11373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #include <$ac_header>
11382 _ACEOF
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } >/dev/null; then
11396   if test -s conftest.err; then
11397     ac_cpp_err=$ac_c_preproc_warn_flag
11398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11399   else
11400     ac_cpp_err=
11401   fi
11402 else
11403   ac_cpp_err=yes
11404 fi
11405 if test -z "$ac_cpp_err"; then
11406   ac_header_preproc=yes
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411   ac_header_preproc=no
11412 fi
11413
11414 rm -f conftest.err conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417
11418 # So?  What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420   yes:no: )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425     ac_header_preproc=yes
11426     ;;
11427   no:yes:* )
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440     ( cat <<\_ASBOX
11441 ## ------------------------------------ ##
11442 ## Report this to http://llvm.org/bugs/ ##
11443 ## ------------------------------------ ##
11444 _ASBOX
11445      ) | sed "s/^/$as_me: WARNING:     /" >&2
11446     ;;
11447 esac
11448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   eval "$as_ac_Header=\$ac_header_preproc"
11454 fi
11455 ac_res=`eval echo '${'$as_ac_Header'}'`
11456                { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11458
11459 fi
11460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11461   cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11463 _ACEOF
11464
11465 fi
11466
11467 done
11468
11469
11470
11471 for ac_header in string.h strings.h
11472 do
11473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 fi
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481                { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 else
11484   # Is the header compilable?
11485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 $ac_includes_default
11494 #include <$ac_header>
11495 _ACEOF
11496 rm -f conftest.$ac_objext
11497 if { (ac_try="$ac_compile"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_compile") 2>conftest.er1
11504   ac_status=$?
11505   grep -v '^ *+' conftest.er1 >conftest.err
11506   rm -f conftest.er1
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } &&
11510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11511   { (case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_try") 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); }; } &&
11520          { ac_try='test -s conftest.$ac_objext'
11521   { (case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_try") 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   ac_header_compiler=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535         ac_header_compiler=no
11536 fi
11537
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11541
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h.  */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h.  */
11551 #include <$ac_header>
11552 _ACEOF
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } >/dev/null; then
11566   if test -s conftest.err; then
11567     ac_cpp_err=$ac_c_preproc_warn_flag
11568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11569   else
11570     ac_cpp_err=
11571   fi
11572 else
11573   ac_cpp_err=yes
11574 fi
11575 if test -z "$ac_cpp_err"; then
11576   ac_header_preproc=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   ac_header_preproc=no
11582 fi
11583
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11587
11588 # So?  What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590   yes:no: )
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595     ac_header_preproc=yes
11596     ;;
11597   no:yes:* )
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610     ( cat <<\_ASBOX
11611 ## ------------------------------------ ##
11612 ## Report this to http://llvm.org/bugs/ ##
11613 ## ------------------------------------ ##
11614 _ASBOX
11615      ) | sed "s/^/$as_me: WARNING:     /" >&2
11616     ;;
11617 esac
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   eval "$as_ac_Header=\$ac_header_preproc"
11624 fi
11625 ac_res=`eval echo '${'$as_ac_Header'}'`
11626                { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11628
11629 fi
11630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11631   cat >>confdefs.h <<_ACEOF
11632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 _ACEOF
11634  break
11635 fi
11636
11637 done
11638
11639
11640
11641
11642 for ac_func in strchr index
11643 do
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11658 #define $ac_func innocuous_$ac_func
11659
11660 /* System header to define __stub macros and hopefully few prototypes,
11661     which can conflict with char $ac_func (); below.
11662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663     <limits.h> exists even on freestanding compilers.  */
11664
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11670
11671 #undef $ac_func
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char $ac_func ();
11680 /* The GNU C library defines this for functions which it implements
11681     to always fail with ENOSYS.  Some functions are actually named
11682     something starting with __ and the normal name is an alias.  */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 choke me
11685 #endif
11686
11687 int
11688 main ()
11689 {
11690 return $ac_func ();
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_link") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710   { (case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_try") 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; } &&
11719          { ac_try='test -s conftest$ac_exeext'
11720   { (case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_try") 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   eval "$as_ac_var=yes"
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734         eval "$as_ac_var=no"
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext \
11738       conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741                { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744   cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 _ACEOF
11747  break
11748 fi
11749 done
11750
11751
11752
11753 for ac_func in strrchr rindex
11754 do
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759   echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761   cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11769 #define $ac_func innocuous_$ac_func
11770
11771 /* System header to define __stub macros and hopefully few prototypes,
11772     which can conflict with char $ac_func (); below.
11773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774     <limits.h> exists even on freestanding compilers.  */
11775
11776 #ifdef __STDC__
11777 # include <limits.h>
11778 #else
11779 # include <assert.h>
11780 #endif
11781
11782 #undef $ac_func
11783
11784 /* Override any GCC internal prototype to avoid an error.
11785    Use char because int might match the return type of a GCC
11786    builtin and then its argument prototype would still apply.  */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 char $ac_func ();
11791 /* The GNU C library defines this for functions which it implements
11792     to always fail with ENOSYS.  Some functions are actually named
11793     something starting with __ and the normal name is an alias.  */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11795 choke me
11796 #endif
11797
11798 int
11799 main ()
11800 {
11801 return $ac_func ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_link") 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } &&
11820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821   { (case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_try") 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; } &&
11830          { ac_try='test -s conftest$ac_exeext'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   eval "$as_ac_var=yes"
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         eval "$as_ac_var=no"
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext \
11849       conftest$ac_exeext conftest.$ac_ext
11850 fi
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852                { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855   cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858  break
11859 fi
11860 done
11861
11862
11863
11864 for ac_func in memcpy bcopy
11865 do
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870   echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872   cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11880 #define $ac_func innocuous_$ac_func
11881
11882 /* System header to define __stub macros and hopefully few prototypes,
11883     which can conflict with char $ac_func (); below.
11884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885     <limits.h> exists even on freestanding compilers.  */
11886
11887 #ifdef __STDC__
11888 # include <limits.h>
11889 #else
11890 # include <assert.h>
11891 #endif
11892
11893 #undef $ac_func
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896    Use char because int might match the return type of a GCC
11897    builtin and then its argument prototype would still apply.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char $ac_func ();
11902 /* The GNU C library defines this for functions which it implements
11903     to always fail with ENOSYS.  Some functions are actually named
11904     something starting with __ and the normal name is an alias.  */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 choke me
11907 #endif
11908
11909 int
11910 main ()
11911 {
11912 return $ac_func ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_link") 2>conftest.er1
11925   ac_status=$?
11926   grep -v '^ *+' conftest.er1 >conftest.err
11927   rm -f conftest.er1
11928   cat conftest.err >&5
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } &&
11931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932   { (case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_try") 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; } &&
11941          { ac_try='test -s conftest$ac_exeext'
11942   { (case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_try") 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   eval "$as_ac_var=yes"
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956         eval "$as_ac_var=no"
11957 fi
11958
11959 rm -f core conftest.err conftest.$ac_objext \
11960       conftest$ac_exeext conftest.$ac_ext
11961 fi
11962 ac_res=`eval echo '${'$as_ac_var'}'`
11963                { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_var'}'` = yes; then
11966   cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968 _ACEOF
11969  break
11970 fi
11971 done
11972
11973
11974
11975 for ac_func in memmove strcmp
11976 do
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11991 #define $ac_func innocuous_$ac_func
11992
11993 /* System header to define __stub macros and hopefully few prototypes,
11994     which can conflict with char $ac_func (); below.
11995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996     <limits.h> exists even on freestanding compilers.  */
11997
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003
12004 #undef $ac_func
12005
12006 /* Override any GCC internal prototype to avoid an error.
12007    Use char because int might match the return type of a GCC
12008    builtin and then its argument prototype would still apply.  */
12009 #ifdef __cplusplus
12010 extern "C"
12011 #endif
12012 char $ac_func ();
12013 /* The GNU C library defines this for functions which it implements
12014     to always fail with ENOSYS.  Some functions are actually named
12015     something starting with __ and the normal name is an alias.  */
12016 #if defined __stub_$ac_func || defined __stub___$ac_func
12017 choke me
12018 #endif
12019
12020 int
12021 main ()
12022 {
12023 return $ac_func ();
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_link") 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043   { (case "(($ac_try" in
12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045   *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048   (eval "$ac_try") 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; } &&
12052          { ac_try='test -s conftest$ac_exeext'
12053   { (case "(($ac_try" in
12054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055   *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058   (eval "$ac_try") 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   eval "$as_ac_var=yes"
12063 else
12064   echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067         eval "$as_ac_var=no"
12068 fi
12069
12070 rm -f core conftest.err conftest.$ac_objext \
12071       conftest$ac_exeext conftest.$ac_ext
12072 fi
12073 ac_res=`eval echo '${'$as_ac_var'}'`
12074                { echo "$as_me:$LINENO: result: $ac_res" >&5
12075 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077   cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 _ACEOF
12080
12081 fi
12082 done
12083
12084
12085
12086
12087 for ac_func in closedir opendir readdir
12088 do
12089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h.  */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h.  */
12101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12103 #define $ac_func innocuous_$ac_func
12104
12105 /* System header to define __stub macros and hopefully few prototypes,
12106     which can conflict with char $ac_func (); below.
12107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108     <limits.h> exists even on freestanding compilers.  */
12109
12110 #ifdef __STDC__
12111 # include <limits.h>
12112 #else
12113 # include <assert.h>
12114 #endif
12115
12116 #undef $ac_func
12117
12118 /* Override any GCC internal prototype to avoid an error.
12119    Use char because int might match the return type of a GCC
12120    builtin and then its argument prototype would still apply.  */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char $ac_func ();
12125 /* The GNU C library defines this for functions which it implements
12126     to always fail with ENOSYS.  Some functions are actually named
12127     something starting with __ and the normal name is an alias.  */
12128 #if defined __stub_$ac_func || defined __stub___$ac_func
12129 choke me
12130 #endif
12131
12132 int
12133 main ()
12134 {
12135 return $ac_func ();
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144   *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147   (eval "$ac_link") 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } &&
12154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155   { (case "(($ac_try" in
12156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157   *) ac_try_echo=$ac_try;;
12158 esac
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160   (eval "$ac_try") 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; } &&
12164          { ac_try='test -s conftest$ac_exeext'
12165   { (case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_try") 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   eval "$as_ac_var=yes"
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179         eval "$as_ac_var=no"
12180 fi
12181
12182 rm -f core conftest.err conftest.$ac_objext \
12183       conftest$ac_exeext conftest.$ac_ext
12184 fi
12185 ac_res=`eval echo '${'$as_ac_var'}'`
12186                { echo "$as_me:$LINENO: result: $ac_res" >&5
12187 echo "${ECHO_T}$ac_res" >&6; }
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189   cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 _ACEOF
12192
12193 fi
12194 done
12195
12196
12197
12198 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12199 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12200
12201 ICC=no
12202 IXX=no
12203 case $CC in
12204   icc*|icpc*)
12205     ICC=yes
12206     IXX=yes
12207     ;;
12208    *)
12209     ;;
12210 esac
12211
12212 if test "$GCC" != "yes" && test "$ICC" != "yes"
12213 then
12214   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12215 echo "$as_me: error: gcc|icc required but not found" >&2;}
12216    { (exit 1); exit 1; }; }
12217 fi
12218
12219 if test "$GXX" != "yes" && test "$IXX" != "yes"
12220 then
12221   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12222 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12223    { (exit 1); exit 1; }; }
12224 fi
12225
12226 if test "$GCC" = "yes"
12227 then
12228   cat >conftest.$ac_ext <<_ACEOF
12229
12230   /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235
12236     #if !defined(__GNUC__) || __GNUC__ < 3
12237     #error Unsupported GCC version
12238     #endif
12239
12240
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_compile") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257   { (case "(($ac_try" in
12258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259   *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262   (eval "$ac_try") 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; } &&
12266          { ac_try='test -s conftest.$ac_objext'
12267   { (case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_try") 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; }; then
12276   :
12277 else
12278   echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12282 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12283    { (exit 1); exit 1; }; }
12284 fi
12285
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 fi
12288
12289 if test -z "$llvm_cv_gnu_make_command"
12290 then
12291   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12292 echo "$as_me: error: GNU Make required but not found" >&2;}
12293    { (exit 1); exit 1; }; }
12294 fi
12295
12296 { echo "$as_me:$LINENO: result: ok" >&5
12297 echo "${ECHO_T}ok" >&6; }
12298
12299 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12300 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12301 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12302
12303 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12304
12305 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12306
12307
12308 NO_UNINITIALIZED=
12309 NO_MAYBE_UNINITIALIZED=
12310 if test "$GXX" = "yes"
12311 then
12312   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12313
12314         if test -z "$NO_MAYBE_UNINITIALIZED"
12315   then
12316     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12317
12318   fi
12319 fi
12320 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12321 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12322
12323
12324 # Check whether --with-python was given.
12325 if test "${with_python+set}" = set; then
12326   withval=$with_python; PYTHON="$withval"
12327 fi
12328
12329
12330 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12331   { echo "$as_me:$LINENO: checking for python" >&5
12332 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12333   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12334 echo "${ECHO_T}user defined: $with_python" >&6; }
12335 else
12336   if test -n "$PYTHON" ; then
12337     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12338 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12339   fi
12340
12341   # Extract the first word of "python python2 python26", so it can be a program name with args.
12342 set dummy python python2 python26; ac_word=$2
12343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12345 if test "${ac_cv_path_PYTHON+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   case $PYTHON in
12349   [\\/]* | ?:[\\/]*)
12350   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12351   ;;
12352   *)
12353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356   IFS=$as_save_IFS
12357   test -z "$as_dir" && as_dir=.
12358   for ac_exec_ext in '' $ac_executable_extensions; do
12359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12360     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12362     break 2
12363   fi
12364 done
12365 done
12366 IFS=$as_save_IFS
12367
12368   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12369 echo "${ECHO_T}not found" >&6; }
12370                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12371 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12372    { (exit 1); exit 1; }; }"
12373   ;;
12374 esac
12375 fi
12376 PYTHON=$ac_cv_path_PYTHON
12377 if test -n "$PYTHON"; then
12378   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12379 echo "${ECHO_T}$PYTHON" >&6; }
12380 else
12381   { echo "$as_me:$LINENO: result: no" >&5
12382 echo "${ECHO_T}no" >&6; }
12383 fi
12384
12385
12386 fi
12387
12388 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12389 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12390 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12391 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12392 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12393 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12394 if   test "$ac_python_version_major" -eq "2" \
12395    && test "$ac_python_version_minor" -ge "5" ; then
12396   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12397 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12398 else
12399   { echo "$as_me:$LINENO: result: not found" >&5
12400 echo "${ECHO_T}not found" >&6; }
12401   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12402 See \`config.log' for more details." >&5
12403 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12404 See \`config.log' for more details." >&2;}
12405    { (exit 1); exit 1; }; }
12406 fi
12407
12408
12409
12410 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12411 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12412 if test "${ac_cv_lib_m_sin+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-lm  $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423
12424 /* Override any GCC internal prototype to avoid an error.
12425    Use char because int might match the return type of a GCC
12426    builtin and then its argument prototype would still apply.  */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char sin ();
12431 int
12432 main ()
12433 {
12434 return sin ();
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443   *) ac_try_echo=$ac_try;;
12444 esac
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446   (eval "$ac_link") 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } &&
12453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454   { (case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459   (eval "$ac_try") 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_try") 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ac_cv_lib_m_sin=yes
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478         ac_cv_lib_m_sin=no
12479 fi
12480
12481 rm -f core conftest.err conftest.$ac_objext \
12482       conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12484 fi
12485 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12486 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12487 if test $ac_cv_lib_m_sin = yes; then
12488   cat >>confdefs.h <<_ACEOF
12489 #define HAVE_LIBM 1
12490 _ACEOF
12491
12492   LIBS="-lm $LIBS"
12493
12494 fi
12495
12496 if test "$llvm_cv_os_type" = "MingW" ; then
12497
12498 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12499 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12500 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-limagehlp  $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512
12513 int
12514 main ()
12515 {
12516 return main ();
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525   *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528   (eval "$ac_link") 2>conftest.er1
12529   ac_status=$?
12530   grep -v '^ *+' conftest.er1 >conftest.err
12531   rm -f conftest.er1
12532   cat conftest.err >&5
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } &&
12535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536   { (case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_try") 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; } &&
12545          { ac_try='test -s conftest$ac_exeext'
12546   { (case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_try") 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   ac_cv_lib_imagehlp_main=yes
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560         ac_cv_lib_imagehlp_main=no
12561 fi
12562
12563 rm -f core conftest.err conftest.$ac_objext \
12564       conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12568 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12569 if test $ac_cv_lib_imagehlp_main = yes; then
12570   cat >>confdefs.h <<_ACEOF
12571 #define HAVE_LIBIMAGEHLP 1
12572 _ACEOF
12573
12574   LIBS="-limagehlp $LIBS"
12575
12576 fi
12577
12578
12579 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12580 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12581 if test "${ac_cv_lib_psapi_main+set}" = set; then
12582   echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584   ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lpsapi  $LIBS"
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h.  */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h.  */
12592
12593
12594 int
12595 main ()
12596 {
12597 return main ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606   *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609   (eval "$ac_link") 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } &&
12616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12626          { ac_try='test -s conftest$ac_exeext'
12627   { (case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_try") 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_cv_lib_psapi_main=yes
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641         ac_cv_lib_psapi_main=no
12642 fi
12643
12644 rm -f core conftest.err conftest.$ac_objext \
12645       conftest$ac_exeext conftest.$ac_ext
12646 LIBS=$ac_check_lib_save_LIBS
12647 fi
12648 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12649 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12650 if test $ac_cv_lib_psapi_main = yes; then
12651   cat >>confdefs.h <<_ACEOF
12652 #define HAVE_LIBPSAPI 1
12653 _ACEOF
12654
12655   LIBS="-lpsapi $LIBS"
12656
12657 fi
12658
12659 fi
12660
12661 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12662 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12663 if test "${ac_cv_search_dlopen+set}" = set; then
12664   echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666   ac_func_search_save_LIBS=$LIBS
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673
12674 /* Override any GCC internal prototype to avoid an error.
12675    Use char because int might match the return type of a GCC
12676    builtin and then its argument prototype would still apply.  */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char dlopen ();
12681 int
12682 main ()
12683 {
12684 return dlopen ();
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 for ac_lib in '' dl; do
12690   if test -z "$ac_lib"; then
12691     ac_res="none required"
12692   else
12693     ac_res=-l$ac_lib
12694     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12695   fi
12696   rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703   (eval "$ac_link") 2>conftest.er1
12704   ac_status=$?
12705   grep -v '^ *+' conftest.er1 >conftest.err
12706   rm -f conftest.er1
12707   cat conftest.err >&5
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } &&
12710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711   { (case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_try") 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; } &&
12720          { ac_try='test -s conftest$ac_exeext'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_cv_search_dlopen=$ac_res
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext \
12739       conftest$ac_exeext
12740   if test "${ac_cv_search_dlopen+set}" = set; then
12741   break
12742 fi
12743 done
12744 if test "${ac_cv_search_dlopen+set}" = set; then
12745   :
12746 else
12747   ac_cv_search_dlopen=no
12748 fi
12749 rm conftest.$ac_ext
12750 LIBS=$ac_func_search_save_LIBS
12751 fi
12752 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12753 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12754 ac_res=$ac_cv_search_dlopen
12755 if test "$ac_res" != no; then
12756   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12757
12758 cat >>confdefs.h <<\_ACEOF
12759 #define HAVE_DLOPEN 1
12760 _ACEOF
12761
12762 else
12763   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12764 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12765 fi
12766
12767
12768 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12769 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12770 if test "${ac_cv_search_clock_gettime+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   ac_func_search_save_LIBS=$LIBS
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h.  */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h.  */
12780
12781 /* Override any GCC internal prototype to avoid an error.
12782    Use char because int might match the return type of a GCC
12783    builtin and then its argument prototype would still apply.  */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char clock_gettime ();
12788 int
12789 main ()
12790 {
12791 return clock_gettime ();
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 for ac_lib in '' rt; do
12797   if test -z "$ac_lib"; then
12798     ac_res="none required"
12799   else
12800     ac_res=-l$ac_lib
12801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12802   fi
12803   rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_link") 2>conftest.er1
12811   ac_status=$?
12812   grep -v '^ *+' conftest.er1 >conftest.err
12813   rm -f conftest.er1
12814   cat conftest.err >&5
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818   { (case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823   (eval "$ac_try") 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; } &&
12827          { ac_try='test -s conftest$ac_exeext'
12828   { (case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_try") 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   ac_cv_search_clock_gettime=$ac_res
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842
12843 fi
12844
12845 rm -f core conftest.err conftest.$ac_objext \
12846       conftest$ac_exeext
12847   if test "${ac_cv_search_clock_gettime+set}" = set; then
12848   break
12849 fi
12850 done
12851 if test "${ac_cv_search_clock_gettime+set}" = set; then
12852   :
12853 else
12854   ac_cv_search_clock_gettime=no
12855 fi
12856 rm conftest.$ac_ext
12857 LIBS=$ac_func_search_save_LIBS
12858 fi
12859 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12860 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12861 ac_res=$ac_cv_search_clock_gettime
12862 if test "$ac_res" != no; then
12863   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12864
12865 fi
12866
12867
12868 if test "$llvm_cv_enable_libffi" = "yes" ; then
12869   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12870 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12871 if test "${ac_cv_search_ffi_call+set}" = set; then
12872   echo $ECHO_N "(cached) $ECHO_C" >&6
12873 else
12874   ac_func_search_save_LIBS=$LIBS
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883    Use char because int might match the return type of a GCC
12884    builtin and then its argument prototype would still apply.  */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char ffi_call ();
12889 int
12890 main ()
12891 {
12892 return ffi_call ();
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 for ac_lib in '' ffi; do
12898   if test -z "$ac_lib"; then
12899     ac_res="none required"
12900   else
12901     ac_res=-l$ac_lib
12902     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12903   fi
12904   rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_link") 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919   { (case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_try") 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; } &&
12928          { ac_try='test -s conftest$ac_exeext'
12929   { (case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   ac_cv_search_ffi_call=$ac_res
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943
12944 fi
12945
12946 rm -f core conftest.err conftest.$ac_objext \
12947       conftest$ac_exeext
12948   if test "${ac_cv_search_ffi_call+set}" = set; then
12949   break
12950 fi
12951 done
12952 if test "${ac_cv_search_ffi_call+set}" = set; then
12953   :
12954 else
12955   ac_cv_search_ffi_call=no
12956 fi
12957 rm conftest.$ac_ext
12958 LIBS=$ac_func_search_save_LIBS
12959 fi
12960 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12961 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12962 ac_res=$ac_cv_search_ffi_call
12963 if test "$ac_res" != no; then
12964   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12965
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_FFI_CALL 1
12968 _ACEOF
12969
12970 else
12971   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12972 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12973    { (exit 1); exit 1; }; }
12974 fi
12975
12976 fi
12977
12978 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12979 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_mallinfo+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990
12991 /* Override any GCC internal prototype to avoid an error.
12992    Use char because int might match the return type of a GCC
12993    builtin and then its argument prototype would still apply.  */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char mallinfo ();
12998 int
12999 main ()
13000 {
13001 return mallinfo ();
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 for ac_lib in '' malloc; do
13007   if test -z "$ac_lib"; then
13008     ac_res="none required"
13009   else
13010     ac_res=-l$ac_lib
13011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13012   fi
13013   rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_link") 2>conftest.er1
13021   ac_status=$?
13022   grep -v '^ *+' conftest.er1 >conftest.err
13023   rm -f conftest.er1
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } &&
13027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028   { (case "(($ac_try" in
13029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030   *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033   (eval "$ac_try") 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; } &&
13037          { ac_try='test -s conftest$ac_exeext'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_cv_search_mallinfo=$ac_res
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052
13053 fi
13054
13055 rm -f core conftest.err conftest.$ac_objext \
13056       conftest$ac_exeext
13057   if test "${ac_cv_search_mallinfo+set}" = set; then
13058   break
13059 fi
13060 done
13061 if test "${ac_cv_search_mallinfo+set}" = set; then
13062   :
13063 else
13064   ac_cv_search_mallinfo=no
13065 fi
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13068 fi
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13070 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13071 ac_res=$ac_cv_search_mallinfo
13072 if test "$ac_res" != no; then
13073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_MALLINFO 1
13077 _ACEOF
13078
13079 fi
13080
13081
13082 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13083
13084 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13085 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13086 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lpthread  $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097
13098 /* Override any GCC internal prototype to avoid an error.
13099    Use char because int might match the return type of a GCC
13100    builtin and then its argument prototype would still apply.  */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char pthread_mutex_init ();
13105 int
13106 main ()
13107 {
13108 return pthread_mutex_init ();
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (ac_try="$ac_link"
13115 case "(($ac_try" in
13116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117   *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120   (eval "$ac_link") 2>conftest.er1
13121   ac_status=$?
13122   grep -v '^ *+' conftest.er1 >conftest.err
13123   rm -f conftest.er1
13124   cat conftest.err >&5
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } &&
13127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128   { (case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133   (eval "$ac_try") 2>&5
13134   ac_status=$?
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); }; } &&
13137          { ac_try='test -s conftest$ac_exeext'
13138   { (case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_try") 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; }; then
13147   ac_cv_lib_pthread_pthread_mutex_init=yes
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152         ac_cv_lib_pthread_pthread_mutex_init=no
13153 fi
13154
13155 rm -f core conftest.err conftest.$ac_objext \
13156       conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13160 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13161 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13162   cat >>confdefs.h <<_ACEOF
13163 #define HAVE_LIBPTHREAD 1
13164 _ACEOF
13165
13166   LIBS="-lpthread $LIBS"
13167
13168 fi
13169
13170   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13171 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13172 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   ac_func_search_save_LIBS=$LIBS
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182
13183 /* Override any GCC internal prototype to avoid an error.
13184    Use char because int might match the return type of a GCC
13185    builtin and then its argument prototype would still apply.  */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char pthread_mutex_lock ();
13190 int
13191 main ()
13192 {
13193 return pthread_mutex_lock ();
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 for ac_lib in '' pthread; do
13199   if test -z "$ac_lib"; then
13200     ac_res="none required"
13201   else
13202     ac_res=-l$ac_lib
13203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13204   fi
13205   rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (ac_try="$ac_link"
13207 case "(($ac_try" in
13208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209   *) ac_try_echo=$ac_try;;
13210 esac
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212   (eval "$ac_link") 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } &&
13219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220   { (case "(($ac_try" in
13221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222   *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225   (eval "$ac_try") 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; } &&
13229          { ac_try='test -s conftest$ac_exeext'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_cv_search_pthread_mutex_lock=$ac_res
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244
13245 fi
13246
13247 rm -f core conftest.err conftest.$ac_objext \
13248       conftest$ac_exeext
13249   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13250   break
13251 fi
13252 done
13253 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13254   :
13255 else
13256   ac_cv_search_pthread_mutex_lock=no
13257 fi
13258 rm conftest.$ac_ext
13259 LIBS=$ac_func_search_save_LIBS
13260 fi
13261 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13262 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13263 ac_res=$ac_cv_search_pthread_mutex_lock
13264 if test "$ac_res" != no; then
13265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13266
13267 cat >>confdefs.h <<\_ACEOF
13268 #define HAVE_PTHREAD_MUTEX_LOCK 1
13269 _ACEOF
13270
13271 fi
13272
13273   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13274 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13275 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13276   echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278   ac_func_search_save_LIBS=$LIBS
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285
13286 /* Override any GCC internal prototype to avoid an error.
13287    Use char because int might match the return type of a GCC
13288    builtin and then its argument prototype would still apply.  */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char pthread_rwlock_init ();
13293 int
13294 main ()
13295 {
13296 return pthread_rwlock_init ();
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 for ac_lib in '' pthread; do
13302   if test -z "$ac_lib"; then
13303     ac_res="none required"
13304   else
13305     ac_res=-l$ac_lib
13306     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13307   fi
13308   rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (ac_try="$ac_link"
13310 case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_link") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13323   { (case "(($ac_try" in
13324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325   *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328   (eval "$ac_try") 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; } &&
13332          { ac_try='test -s conftest$ac_exeext'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342   ac_cv_search_pthread_rwlock_init=$ac_res
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext \
13351       conftest$ac_exeext
13352   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13353   break
13354 fi
13355 done
13356 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13357   :
13358 else
13359   ac_cv_search_pthread_rwlock_init=no
13360 fi
13361 rm conftest.$ac_ext
13362 LIBS=$ac_func_search_save_LIBS
13363 fi
13364 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13365 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13366 ac_res=$ac_cv_search_pthread_rwlock_init
13367 if test "$ac_res" != no; then
13368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13369
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_PTHREAD_RWLOCK_INIT 1
13372 _ACEOF
13373
13374 fi
13375
13376   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13377 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388
13389 /* Override any GCC internal prototype to avoid an error.
13390    Use char because int might match the return type of a GCC
13391    builtin and then its argument prototype would still apply.  */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 char pthread_getspecific ();
13396 int
13397 main ()
13398 {
13399 return pthread_getspecific ();
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 for ac_lib in '' pthread; do
13405   if test -z "$ac_lib"; then
13406     ac_res="none required"
13407   else
13408     ac_res=-l$ac_lib
13409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13410   fi
13411   rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_link") 2>conftest.er1
13419   ac_status=$?
13420   grep -v '^ *+' conftest.er1 >conftest.err
13421   rm -f conftest.er1
13422   cat conftest.err >&5
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); } &&
13425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426   { (case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_try") 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest$ac_exeext'
13436   { (case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_try") 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_cv_search_pthread_getspecific=$ac_res
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext \
13454       conftest$ac_exeext
13455   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13456   break
13457 fi
13458 done
13459 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13460   :
13461 else
13462   ac_cv_search_pthread_getspecific=no
13463 fi
13464 rm conftest.$ac_ext
13465 LIBS=$ac_func_search_save_LIBS
13466 fi
13467 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13468 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13469 ac_res=$ac_cv_search_pthread_getspecific
13470 if test "$ac_res" != no; then
13471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_PTHREAD_GETSPECIFIC 1
13475 _ACEOF
13476
13477 fi
13478
13479 fi
13480
13481 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13482
13483 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13484 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_z_compress2+set}" = set; then
13486   echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488   ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-lz  $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496
13497 /* Override any GCC internal prototype to avoid an error.
13498    Use char because int might match the return type of a GCC
13499    builtin and then its argument prototype would still apply.  */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char compress2 ();
13504 int
13505 main ()
13506 {
13507 return compress2 ();
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_link") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } &&
13526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest$ac_exeext'
13537   { (case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_try") 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_cv_lib_z_compress2=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551         ac_cv_lib_z_compress2=no
13552 fi
13553
13554 rm -f core conftest.err conftest.$ac_objext \
13555       conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13557 fi
13558 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13559 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13560 if test $ac_cv_lib_z_compress2 = yes; then
13561   cat >>confdefs.h <<_ACEOF
13562 #define HAVE_LIBZ 1
13563 _ACEOF
13564
13565   LIBS="-lz $LIBS"
13566
13567 fi
13568
13569 fi
13570
13571
13572 # Check whether --with-udis86 was given.
13573 if test "${with_udis86+set}" = set; then
13574   withval=$with_udis86;
13575       USE_UDIS86=1
13576
13577       case "$withval" in
13578         /usr/lib|yes) ;;
13579         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13580       esac
13581
13582 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13583 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13584 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587   ac_check_lib_save_LIBS=$LIBS
13588 LIBS="-ludis86  $LIBS"
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595
13596 /* Override any GCC internal prototype to avoid an error.
13597    Use char because int might match the return type of a GCC
13598    builtin and then its argument prototype would still apply.  */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 char ud_init ();
13603 int
13604 main ()
13605 {
13606 return ud_init ();
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (ac_try="$ac_link"
13613 case "(($ac_try" in
13614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615   *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618   (eval "$ac_link") 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } &&
13625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13626   { (case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631   (eval "$ac_try") 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; } &&
13635          { ac_try='test -s conftest$ac_exeext'
13636   { (case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641   (eval "$ac_try") 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645   ac_cv_lib_udis86_ud_init=yes
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650         ac_cv_lib_udis86_ud_init=no
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext \
13654       conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13656 fi
13657 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13658 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13659 if test $ac_cv_lib_udis86_ud_init = yes; then
13660   cat >>confdefs.h <<_ACEOF
13661 #define HAVE_LIBUDIS86 1
13662 _ACEOF
13663
13664   LIBS="-ludis86 $LIBS"
13665
13666 else
13667
13668         echo "Error! You need to have libudis86 around."
13669         exit -1
13670
13671 fi
13672
13673
13674 else
13675   USE_UDIS86=0
13676
13677 fi
13678
13679
13680 cat >>confdefs.h <<_ACEOF
13681 #define USE_UDIS86 $USE_UDIS86
13682 _ACEOF
13683
13684
13685
13686 # Check whether --with-oprofile was given.
13687 if test "${with_oprofile+set}" = set; then
13688   withval=$with_oprofile;
13689       USE_OPROFILE=1
13690
13691       case "$withval" in
13692         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13693         no) llvm_cv_oppath=
13694             USE_OPROFILE=0
13695  ;;
13696         *) llvm_cv_oppath="${withval}/lib/oprofile"
13697            CPPFLAGS="-I${withval}/include";;
13698       esac
13699       case $llvm_cv_os_type in
13700         Linux)
13701           if test -n "$llvm_cv_oppath" ; then
13702             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13703                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13704 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_bfd_init+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715
13716 /* Override any GCC internal prototype to avoid an error.
13717    Use char because int might match the return type of a GCC
13718    builtin and then its argument prototype would still apply.  */
13719 #ifdef __cplusplus
13720 extern "C"
13721 #endif
13722 char bfd_init ();
13723 int
13724 main ()
13725 {
13726 return bfd_init ();
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 for ac_lib in '' bfd; do
13732   if test -z "$ac_lib"; then
13733     ac_res="none required"
13734   else
13735     ac_res=-l$ac_lib
13736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13737   fi
13738   rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_link") 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; } &&
13762          { ac_try='test -s conftest$ac_exeext'
13763   { (case "(($ac_try" in
13764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765   *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768   (eval "$ac_try") 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; }; then
13772   ac_cv_search_bfd_init=$ac_res
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
13778 fi
13779
13780 rm -f core conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext
13782   if test "${ac_cv_search_bfd_init+set}" = set; then
13783   break
13784 fi
13785 done
13786 if test "${ac_cv_search_bfd_init+set}" = set; then
13787   :
13788 else
13789   ac_cv_search_bfd_init=no
13790 fi
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13795 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13796 ac_res=$ac_cv_search_bfd_init
13797 if test "$ac_res" != no; then
13798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13799
13800 fi
13801
13802             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13803 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13804 if test "${ac_cv_search_op_open_agent+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   ac_func_search_save_LIBS=$LIBS
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814
13815 /* Override any GCC internal prototype to avoid an error.
13816    Use char because int might match the return type of a GCC
13817    builtin and then its argument prototype would still apply.  */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char op_open_agent ();
13822 int
13823 main ()
13824 {
13825 return op_open_agent ();
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 for ac_lib in '' opagent; do
13831   if test -z "$ac_lib"; then
13832     ac_res="none required"
13833   else
13834     ac_res=-l$ac_lib
13835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13836   fi
13837   rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_link") 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852   { (case "(($ac_try" in
13853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854   *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857   (eval "$ac_try") 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; } &&
13861          { ac_try='test -s conftest$ac_exeext'
13862   { (case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_try") 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871   ac_cv_search_op_open_agent=$ac_res
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext \
13880       conftest$ac_exeext
13881   if test "${ac_cv_search_op_open_agent+set}" = set; then
13882   break
13883 fi
13884 done
13885 if test "${ac_cv_search_op_open_agent+set}" = set; then
13886   :
13887 else
13888   ac_cv_search_op_open_agent=no
13889 fi
13890 rm conftest.$ac_ext
13891 LIBS=$ac_func_search_save_LIBS
13892 fi
13893 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13894 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13895 ac_res=$ac_cv_search_op_open_agent
13896 if test "$ac_res" != no; then
13897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13898
13899 else
13900
13901               echo "Error! You need to have libopagent around."
13902               exit -1
13903
13904 fi
13905
13906             if test "${ac_cv_header_opagent_h+set}" = set; then
13907   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13908 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13909 if test "${ac_cv_header_opagent_h+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 fi
13912 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13913 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13914 else
13915   # Is the header compilable?
13916 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13917 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 $ac_includes_default
13925 #include <opagent.h>
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (ac_try="$ac_compile"
13929 case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_compile") 2>conftest.er1
13935   ac_status=$?
13936   grep -v '^ *+' conftest.er1 >conftest.err
13937   rm -f conftest.er1
13938   cat conftest.err >&5
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } &&
13941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13942   { (case "(($ac_try" in
13943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944   *) ac_try_echo=$ac_try;;
13945 esac
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947   (eval "$ac_try") 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; } &&
13951          { ac_try='test -s conftest.$ac_objext'
13952   { (case "(($ac_try" in
13953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954   *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957   (eval "$ac_try") 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; }; then
13961   ac_header_compiler=yes
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966         ac_header_compiler=no
13967 fi
13968
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13971 echo "${ECHO_T}$ac_header_compiler" >&6; }
13972
13973 # Is the header present?
13974 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13975 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 #include <opagent.h>
13983 _ACEOF
13984 if { (ac_try="$ac_cpp conftest.$ac_ext"
13985 case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13991   ac_status=$?
13992   grep -v '^ *+' conftest.er1 >conftest.err
13993   rm -f conftest.er1
13994   cat conftest.err >&5
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } >/dev/null; then
13997   if test -s conftest.err; then
13998     ac_cpp_err=$ac_c_preproc_warn_flag
13999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14000   else
14001     ac_cpp_err=
14002   fi
14003 else
14004   ac_cpp_err=yes
14005 fi
14006 if test -z "$ac_cpp_err"; then
14007   ac_header_preproc=yes
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012   ac_header_preproc=no
14013 fi
14014
14015 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6; }
14018
14019 # So?  What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14021   yes:no: )
14022     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14026     ac_header_preproc=yes
14027     ;;
14028   no:yes:* )
14029     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14041     ( cat <<\_ASBOX
14042 ## ------------------------------------ ##
14043 ## Report this to http://llvm.org/bugs/ ##
14044 ## ------------------------------------ ##
14045 _ASBOX
14046      ) | sed "s/^/$as_me: WARNING:     /" >&2
14047     ;;
14048 esac
14049 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14050 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_opagent_h+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   ac_cv_header_opagent_h=$ac_header_preproc
14055 fi
14056 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14057 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14058
14059 fi
14060 if test $ac_cv_header_opagent_h = yes; then
14061   :
14062 else
14063
14064               echo "Error! You need to have opagent.h around."
14065               exit -1
14066
14067 fi
14068
14069
14070           fi ;;
14071         *)
14072           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14073 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14074    { (exit 1); exit 1; }; } ;;
14075       esac
14076
14077 else
14078
14079       USE_OPROFILE=0
14080
14081
14082 fi
14083
14084
14085 cat >>confdefs.h <<_ACEOF
14086 #define LLVM_USE_OPROFILE $USE_OPROFILE
14087 _ACEOF
14088
14089
14090
14091 # Check whether --with-intel-jitevents was given.
14092 if test "${with_intel_jitevents+set}" = set; then
14093   withval=$with_intel_jitevents;
14094        case "$withval" in
14095           yes) USE_INTEL_JITEVENTS=1
14096 ;;
14097           no)  USE_INTEL_JITEVENTS=0
14098 ;;
14099           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14100 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14101    { (exit 1); exit 1; }; };;
14102        esac
14103
14104       case $llvm_cv_os_type in
14105         Linux|Win32|Cygwin|MingW) ;;
14106         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14107 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14108    { (exit 1); exit 1; }; };;
14109       esac
14110
14111       case "$llvm_cv_target_arch" in
14112         x86|x86_64) ;;
14113         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14114 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14115    { (exit 1); exit 1; }; };;
14116       esac
14117
14118 else
14119
14120       USE_INTEL_JITEVENTS=0
14121
14122
14123 fi
14124
14125
14126 cat >>confdefs.h <<_ACEOF
14127 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14128 _ACEOF
14129
14130
14131 for ac_prog in xml2-config
14132 do
14133   # Extract the first word of "$ac_prog", so it can be a program name with args.
14134 set dummy $ac_prog; ac_word=$2
14135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14137 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   if test -n "$XML2CONFIG"; then
14141   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146   IFS=$as_save_IFS
14147   test -z "$as_dir" && as_dir=.
14148   for ac_exec_ext in '' $ac_executable_extensions; do
14149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14150     ac_cv_prog_XML2CONFIG="$ac_prog"
14151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14152     break 2
14153   fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14161 if test -n "$XML2CONFIG"; then
14162   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14163 echo "${ECHO_T}$XML2CONFIG" >&6; }
14164 else
14165   { echo "$as_me:$LINENO: result: no" >&5
14166 echo "${ECHO_T}no" >&6; }
14167 fi
14168
14169
14170   test -n "$XML2CONFIG" && break
14171 done
14172
14173
14174 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14175 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14176 if test "x$XML2CONFIG" = "x"; then
14177  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14178 echo "${ECHO_T}xml2-config not found" >&6; }
14179 else
14180  LIBXML2_INC=`$XML2CONFIG --cflags`
14181  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14182 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14183  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14184 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14185 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14186   echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188   ac_check_lib_save_LIBS=$LIBS
14189 LIBS="-lxml2  $LIBS"
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196
14197 /* Override any GCC internal prototype to avoid an error.
14198    Use char because int might match the return type of a GCC
14199    builtin and then its argument prototype would still apply.  */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char xmlReadFile ();
14204 int
14205 main ()
14206 {
14207 return xmlReadFile ();
14208   ;
14209   return 0;
14210 }
14211 _ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_link") 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } &&
14226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14227   { (case "(($ac_try" in
14228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229   *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232   (eval "$ac_try") 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest$ac_exeext'
14237   { (case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_try") 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_cv_lib_xml2_xmlReadFile=yes
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251         ac_cv_lib_xml2_xmlReadFile=no
14252 fi
14253
14254 rm -f core conftest.err conftest.$ac_objext \
14255       conftest$ac_exeext conftest.$ac_ext
14256 LIBS=$ac_check_lib_save_LIBS
14257 fi
14258 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14259 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14260 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14261
14262 cat >>confdefs.h <<\_ACEOF
14263 #define CLANG_HAVE_LIBXML 1
14264 _ACEOF
14265
14266                                 LIBXML2_LIBS="-lxml2"
14267 fi
14268
14269 fi
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279 ac_header_dirent=no
14280 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14281   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14282 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14283 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 #include <sys/types.h>
14294 #include <$ac_hdr>
14295
14296 int
14297 main ()
14298 {
14299 if ((DIR *) 0)
14300 return 0;
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_compile") 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320   { (case "(($ac_try" in
14321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322   *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325   (eval "$ac_try") 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_try") 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   eval "$as_ac_Header=yes"
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344         eval "$as_ac_Header=no"
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350                { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353   cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14355 _ACEOF
14356
14357 ac_header_dirent=$ac_hdr; break
14358 fi
14359
14360 done
14361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14362 if test $ac_header_dirent = dirent.h; then
14363   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14365 if test "${ac_cv_search_opendir+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368   ac_func_search_save_LIBS=$LIBS
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h.  */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h.  */
14375
14376 /* Override any GCC internal prototype to avoid an error.
14377    Use char because int might match the return type of a GCC
14378    builtin and then its argument prototype would still apply.  */
14379 #ifdef __cplusplus
14380 extern "C"
14381 #endif
14382 char opendir ();
14383 int
14384 main ()
14385 {
14386 return opendir ();
14387   ;
14388   return 0;
14389 }
14390 _ACEOF
14391 for ac_lib in '' dir; do
14392   if test -z "$ac_lib"; then
14393     ac_res="none required"
14394   else
14395     ac_res=-l$ac_lib
14396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14397   fi
14398   rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_link") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413   { (case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_try") 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_search_opendir=$ac_res
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437
14438 fi
14439
14440 rm -f core conftest.err conftest.$ac_objext \
14441       conftest$ac_exeext
14442   if test "${ac_cv_search_opendir+set}" = set; then
14443   break
14444 fi
14445 done
14446 if test "${ac_cv_search_opendir+set}" = set; then
14447   :
14448 else
14449   ac_cv_search_opendir=no
14450 fi
14451 rm conftest.$ac_ext
14452 LIBS=$ac_func_search_save_LIBS
14453 fi
14454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14456 ac_res=$ac_cv_search_opendir
14457 if test "$ac_res" != no; then
14458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459
14460 fi
14461
14462 else
14463   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14465 if test "${ac_cv_search_opendir+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   ac_func_search_save_LIBS=$LIBS
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h.  */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h.  */
14475
14476 /* Override any GCC internal prototype to avoid an error.
14477    Use char because int might match the return type of a GCC
14478    builtin and then its argument prototype would still apply.  */
14479 #ifdef __cplusplus
14480 extern "C"
14481 #endif
14482 char opendir ();
14483 int
14484 main ()
14485 {
14486 return opendir ();
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 for ac_lib in '' x; do
14492   if test -z "$ac_lib"; then
14493     ac_res="none required"
14494   else
14495     ac_res=-l$ac_lib
14496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14497   fi
14498   rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (ac_try="$ac_link"
14500 case "(($ac_try" in
14501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502   *) ac_try_echo=$ac_try;;
14503 esac
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505   (eval "$ac_link") 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513   { (case "(($ac_try" in
14514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515   *) ac_try_echo=$ac_try;;
14516 esac
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518   (eval "$ac_try") 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; } &&
14522          { ac_try='test -s conftest$ac_exeext'
14523   { (case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_try") 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_cv_search_opendir=$ac_res
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537
14538 fi
14539
14540 rm -f core conftest.err conftest.$ac_objext \
14541       conftest$ac_exeext
14542   if test "${ac_cv_search_opendir+set}" = set; then
14543   break
14544 fi
14545 done
14546 if test "${ac_cv_search_opendir+set}" = set; then
14547   :
14548 else
14549   ac_cv_search_opendir=no
14550 fi
14551 rm conftest.$ac_ext
14552 LIBS=$ac_func_search_save_LIBS
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14555 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14556 ac_res=$ac_cv_search_opendir
14557 if test "$ac_res" != no; then
14558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14559
14560 fi
14561
14562 fi
14563
14564 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14565 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14566 if test "${ac_cv_header_mmap_anon+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569    ac_ext=c
14570 ac_cpp='$CPP $CPPFLAGS'
14571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14574
14575   cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581 #include <sys/mman.h>
14582 #include <unistd.h>
14583 #include <fcntl.h>
14584 int
14585 main ()
14586 {
14587 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14588   ;
14589   return 0;
14590 }
14591 _ACEOF
14592 rm -f conftest.$ac_objext
14593 if { (ac_try="$ac_compile"
14594 case "(($ac_try" in
14595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596   *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599   (eval "$ac_compile") 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607   { (case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_try") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; } &&
14616          { ac_try='test -s conftest.$ac_objext'
14617   { (case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_try") 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; }; then
14626   ac_cv_header_mmap_anon=yes
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631         ac_cv_header_mmap_anon=no
14632 fi
14633
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635   ac_ext=c
14636 ac_cpp='$CPP $CPPFLAGS'
14637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14640
14641
14642 fi
14643 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14644 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14645 if test "$ac_cv_header_mmap_anon" = yes; then
14646
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_MMAP_ANONYMOUS 1
14649 _ACEOF
14650
14651 fi
14652
14653 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14654 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14655 if test "${ac_cv_header_stat_broken+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h.  */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h.  */
14664 #include <sys/types.h>
14665 #include <sys/stat.h>
14666
14667 #if defined S_ISBLK && defined S_IFDIR
14668 # if S_ISBLK (S_IFDIR)
14669 You lose.
14670 # endif
14671 #endif
14672
14673 #if defined S_ISBLK && defined S_IFCHR
14674 # if S_ISBLK (S_IFCHR)
14675 You lose.
14676 # endif
14677 #endif
14678
14679 #if defined S_ISLNK && defined S_IFREG
14680 # if S_ISLNK (S_IFREG)
14681 You lose.
14682 # endif
14683 #endif
14684
14685 #if defined S_ISSOCK && defined S_IFREG
14686 # if S_ISSOCK (S_IFREG)
14687 You lose.
14688 # endif
14689 #endif
14690
14691 _ACEOF
14692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14693   $EGREP "You lose" >/dev/null 2>&1; then
14694   ac_cv_header_stat_broken=yes
14695 else
14696   ac_cv_header_stat_broken=no
14697 fi
14698 rm -f conftest*
14699
14700 fi
14701 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14702 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14703 if test $ac_cv_header_stat_broken = yes; then
14704
14705 cat >>confdefs.h <<\_ACEOF
14706 #define STAT_MACROS_BROKEN 1
14707 _ACEOF
14708
14709 fi
14710
14711 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h.  */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h.  */
14722 #include <sys/types.h>
14723 #include <sys/wait.h>
14724 #ifndef WEXITSTATUS
14725 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14726 #endif
14727 #ifndef WIFEXITED
14728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14729 #endif
14730
14731 int
14732 main ()
14733 {
14734   int s;
14735   wait (&s);
14736   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext
14742 if { (ac_try="$ac_compile"
14743 case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_compile") 2>conftest.er1
14749   ac_status=$?
14750   grep -v '^ *+' conftest.er1 >conftest.err
14751   rm -f conftest.er1
14752   cat conftest.err >&5
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14756   { (case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_try") 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; } &&
14765          { ac_try='test -s conftest.$ac_objext'
14766   { (case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_try") 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775   ac_cv_header_sys_wait_h=yes
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780         ac_cv_header_sys_wait_h=no
14781 fi
14782
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 fi
14785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14786 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14787 if test $ac_cv_header_sys_wait_h = yes; then
14788
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_SYS_WAIT_H 1
14791 _ACEOF
14792
14793 fi
14794
14795 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14796 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14797 if test "${ac_cv_header_time+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 #include <sys/types.h>
14807 #include <sys/time.h>
14808 #include <time.h>
14809
14810 int
14811 main ()
14812 {
14813 if ((struct tm *) 0)
14814 return 0;
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823   *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826   (eval "$ac_compile") 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } &&
14833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834   { (case "(($ac_try" in
14835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836   *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839   (eval "$ac_try") 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; } &&
14843          { ac_try='test -s conftest.$ac_objext'
14844   { (case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_try") 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; }; then
14853   ac_cv_header_time=yes
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858         ac_cv_header_time=no
14859 fi
14860
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 fi
14863 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14864 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14865 if test $ac_cv_header_time = yes; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define TIME_WITH_SYS_TIME 1
14869 _ACEOF
14870
14871 fi
14872
14873
14874 ac_ext=cpp
14875 ac_cpp='$CXXCPP $CPPFLAGS'
14876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14879
14880 ac_ext=cpp
14881 ac_cpp='$CXXCPP $CPPFLAGS'
14882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14885 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14886 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14887 if test -z "$CXXCPP"; then
14888   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891       # Double quotes because CXXCPP needs to be expanded
14892     for CXXCPP in "$CXX -E" "/lib/cpp"
14893     do
14894       ac_preproc_ok=false
14895 for ac_cxx_preproc_warn_flag in '' yes
14896 do
14897   # Use a header file that comes with gcc, so configuring glibc
14898   # with a fresh cross-compiler works.
14899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14900   # <limits.h> exists even on freestanding compilers.
14901   # On the NeXT, cc -E runs the code through the compiler's parser,
14902   # not just through cpp. "Syntax error" is here to catch this case.
14903   cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 #ifdef __STDC__
14910 # include <limits.h>
14911 #else
14912 # include <assert.h>
14913 #endif
14914                      Syntax error
14915 _ACEOF
14916 if { (ac_try="$ac_cpp conftest.$ac_ext"
14917 case "(($ac_try" in
14918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919   *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } >/dev/null; then
14929   if test -s conftest.err; then
14930     ac_cpp_err=$ac_cxx_preproc_warn_flag
14931     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14932   else
14933     ac_cpp_err=
14934   fi
14935 else
14936   ac_cpp_err=yes
14937 fi
14938 if test -z "$ac_cpp_err"; then
14939   :
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944   # Broken: fails on valid input.
14945 continue
14946 fi
14947
14948 rm -f conftest.err conftest.$ac_ext
14949
14950   # OK, works on sane cases.  Now check whether nonexistent headers
14951   # can be detected and how.
14952   cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 #include <ac_nonexistent.h>
14959 _ACEOF
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } >/dev/null; then
14973   if test -s conftest.err; then
14974     ac_cpp_err=$ac_cxx_preproc_warn_flag
14975     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14976   else
14977     ac_cpp_err=
14978   fi
14979 else
14980   ac_cpp_err=yes
14981 fi
14982 if test -z "$ac_cpp_err"; then
14983   # Broken: success on invalid input.
14984 continue
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989   # Passes both tests.
14990 ac_preproc_ok=:
14991 break
14992 fi
14993
14994 rm -f conftest.err conftest.$ac_ext
14995
14996 done
14997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14998 rm -f conftest.err conftest.$ac_ext
14999 if $ac_preproc_ok; then
15000   break
15001 fi
15002
15003     done
15004     ac_cv_prog_CXXCPP=$CXXCPP
15005
15006 fi
15007   CXXCPP=$ac_cv_prog_CXXCPP
15008 else
15009   ac_cv_prog_CXXCPP=$CXXCPP
15010 fi
15011 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15012 echo "${ECHO_T}$CXXCPP" >&6; }
15013 ac_preproc_ok=false
15014 for ac_cxx_preproc_warn_flag in '' yes
15015 do
15016   # Use a header file that comes with gcc, so configuring glibc
15017   # with a fresh cross-compiler works.
15018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019   # <limits.h> exists even on freestanding compilers.
15020   # On the NeXT, cc -E runs the code through the compiler's parser,
15021   # not just through cpp. "Syntax error" is here to catch this case.
15022   cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 #ifdef __STDC__
15029 # include <limits.h>
15030 #else
15031 # include <assert.h>
15032 #endif
15033                      Syntax error
15034 _ACEOF
15035 if { (ac_try="$ac_cpp conftest.$ac_ext"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } >/dev/null; then
15048   if test -s conftest.err; then
15049     ac_cpp_err=$ac_cxx_preproc_warn_flag
15050     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15051   else
15052     ac_cpp_err=
15053   fi
15054 else
15055   ac_cpp_err=yes
15056 fi
15057 if test -z "$ac_cpp_err"; then
15058   :
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063   # Broken: fails on valid input.
15064 continue
15065 fi
15066
15067 rm -f conftest.err conftest.$ac_ext
15068
15069   # OK, works on sane cases.  Now check whether nonexistent headers
15070   # can be detected and how.
15071   cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h.  */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h.  */
15077 #include <ac_nonexistent.h>
15078 _ACEOF
15079 if { (ac_try="$ac_cpp conftest.$ac_ext"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } >/dev/null; then
15092   if test -s conftest.err; then
15093     ac_cpp_err=$ac_cxx_preproc_warn_flag
15094     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15095   else
15096     ac_cpp_err=
15097   fi
15098 else
15099   ac_cpp_err=yes
15100 fi
15101 if test -z "$ac_cpp_err"; then
15102   # Broken: success on invalid input.
15103 continue
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108   # Passes both tests.
15109 ac_preproc_ok=:
15110 break
15111 fi
15112
15113 rm -f conftest.err conftest.$ac_ext
15114
15115 done
15116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15117 rm -f conftest.err conftest.$ac_ext
15118 if $ac_preproc_ok; then
15119   :
15120 else
15121   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15122 See \`config.log' for more details." >&5
15123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15124 See \`config.log' for more details." >&2;}
15125    { (exit 1); exit 1; }; }
15126 fi
15127
15128 ac_ext=cpp
15129 ac_cpp='$CXXCPP $CPPFLAGS'
15130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15133
15134
15135
15136 for ac_header in cxxabi.h
15137 do
15138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143   echo $ECHO_N "(cached) $ECHO_C" >&6
15144 fi
15145 ac_res=`eval echo '${'$as_ac_Header'}'`
15146                { echo "$as_me:$LINENO: result: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15148 else
15149   # Is the header compilable?
15150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h.  */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h.  */
15158 $ac_includes_default
15159 #include <$ac_header>
15160 _ACEOF
15161 rm -f conftest.$ac_objext
15162 if { (ac_try="$ac_compile"
15163 case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_compile") 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15176   { (case "(($ac_try" in
15177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178   *) ac_try_echo=$ac_try;;
15179 esac
15180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181   (eval "$ac_try") 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; } &&
15185          { ac_try='test -s conftest.$ac_objext'
15186   { (case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_try") 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_header_compiler=yes
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15199
15200         ac_header_compiler=no
15201 fi
15202
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15205 echo "${ECHO_T}$ac_header_compiler" >&6; }
15206
15207 # Is the header present?
15208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h.  */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h.  */
15216 #include <$ac_header>
15217 _ACEOF
15218 if { (ac_try="$ac_cpp conftest.$ac_ext"
15219 case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } >/dev/null; then
15231   if test -s conftest.err; then
15232     ac_cpp_err=$ac_cxx_preproc_warn_flag
15233     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15234   else
15235     ac_cpp_err=
15236   fi
15237 else
15238   ac_cpp_err=yes
15239 fi
15240 if test -z "$ac_cpp_err"; then
15241   ac_header_preproc=yes
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246   ac_header_preproc=no
15247 fi
15248
15249 rm -f conftest.err conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6; }
15252
15253 # So?  What about this header?
15254 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15255   yes:no: )
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15260     ac_header_preproc=yes
15261     ;;
15262   no:yes:* )
15263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15275     ( cat <<\_ASBOX
15276 ## ------------------------------------ ##
15277 ## Report this to http://llvm.org/bugs/ ##
15278 ## ------------------------------------ ##
15279 _ASBOX
15280      ) | sed "s/^/$as_me: WARNING:     /" >&2
15281     ;;
15282 esac
15283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   eval "$as_ac_Header=\$ac_header_preproc"
15289 fi
15290 ac_res=`eval echo '${'$as_ac_Header'}'`
15291                { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15293
15294 fi
15295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15296   cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15298 _ACEOF
15299
15300 fi
15301
15302 done
15303
15304 ac_ext=c
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15309
15310
15311
15312
15313
15314
15315
15316 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15317 do
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15320   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 fi
15325 ac_res=`eval echo '${'$as_ac_Header'}'`
15326                { echo "$as_me:$LINENO: result: $ac_res" >&5
15327 echo "${ECHO_T}$ac_res" >&6; }
15328 else
15329   # Is the header compilable?
15330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338 $ac_includes_default
15339 #include <$ac_header>
15340 _ACEOF
15341 rm -f conftest.$ac_objext
15342 if { (ac_try="$ac_compile"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_compile") 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15356   { (case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_try") 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; } &&
15365          { ac_try='test -s conftest.$ac_objext'
15366   { (case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_try") 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; }; then
15375   ac_header_compiler=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380         ac_header_compiler=no
15381 fi
15382
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 echo "${ECHO_T}$ac_header_compiler" >&6; }
15386
15387 # Is the header present?
15388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 #include <$ac_header>
15397 _ACEOF
15398 if { (ac_try="$ac_cpp conftest.$ac_ext"
15399 case "(($ac_try" in
15400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401   *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15405   ac_status=$?
15406   grep -v '^ *+' conftest.er1 >conftest.err
15407   rm -f conftest.er1
15408   cat conftest.err >&5
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); } >/dev/null; then
15411   if test -s conftest.err; then
15412     ac_cpp_err=$ac_c_preproc_warn_flag
15413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15414   else
15415     ac_cpp_err=
15416   fi
15417 else
15418   ac_cpp_err=yes
15419 fi
15420 if test -z "$ac_cpp_err"; then
15421   ac_header_preproc=yes
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426   ac_header_preproc=no
15427 fi
15428
15429 rm -f conftest.err conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15431 echo "${ECHO_T}$ac_header_preproc" >&6; }
15432
15433 # So?  What about this header?
15434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15435   yes:no: )
15436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15440     ac_header_preproc=yes
15441     ;;
15442   no:yes:* )
15443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15455     ( cat <<\_ASBOX
15456 ## ------------------------------------ ##
15457 ## Report this to http://llvm.org/bugs/ ##
15458 ## ------------------------------------ ##
15459 _ASBOX
15460      ) | sed "s/^/$as_me: WARNING:     /" >&2
15461     ;;
15462 esac
15463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466   echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468   eval "$as_ac_Header=\$ac_header_preproc"
15469 fi
15470 ac_res=`eval echo '${'$as_ac_Header'}'`
15471                { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473
15474 fi
15475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15476   cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481
15482 done
15483
15484
15485
15486
15487
15488
15489
15490 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15491 do
15492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 fi
15499 ac_res=`eval echo '${'$as_ac_Header'}'`
15500                { echo "$as_me:$LINENO: result: $ac_res" >&5
15501 echo "${ECHO_T}$ac_res" >&6; }
15502 else
15503   # Is the header compilable?
15504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 $ac_includes_default
15513 #include <$ac_header>
15514 _ACEOF
15515 rm -f conftest.$ac_objext
15516 if { (ac_try="$ac_compile"
15517 case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_compile") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15530   { (case "(($ac_try" in
15531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532   *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535   (eval "$ac_try") 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; } &&
15539          { ac_try='test -s conftest.$ac_objext'
15540   { (case "(($ac_try" in
15541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542   *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545   (eval "$ac_try") 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   ac_header_compiler=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554         ac_header_compiler=no
15555 fi
15556
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15559 echo "${ECHO_T}$ac_header_compiler" >&6; }
15560
15561 # Is the header present?
15562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 #include <$ac_header>
15571 _ACEOF
15572 if { (ac_try="$ac_cpp conftest.$ac_ext"
15573 case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } >/dev/null; then
15585   if test -s conftest.err; then
15586     ac_cpp_err=$ac_c_preproc_warn_flag
15587     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15588   else
15589     ac_cpp_err=
15590   fi
15591 else
15592   ac_cpp_err=yes
15593 fi
15594 if test -z "$ac_cpp_err"; then
15595   ac_header_preproc=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600   ac_header_preproc=no
15601 fi
15602
15603 rm -f conftest.err conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15605 echo "${ECHO_T}$ac_header_preproc" >&6; }
15606
15607 # So?  What about this header?
15608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15609   yes:no: )
15610     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15614     ac_header_preproc=yes
15615     ;;
15616   no:yes:* )
15617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15619     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15620 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15621     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15624 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15629     ( cat <<\_ASBOX
15630 ## ------------------------------------ ##
15631 ## Report this to http://llvm.org/bugs/ ##
15632 ## ------------------------------------ ##
15633 _ASBOX
15634      ) | sed "s/^/$as_me: WARNING:     /" >&2
15635     ;;
15636 esac
15637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   eval "$as_ac_Header=\$ac_header_preproc"
15643 fi
15644 ac_res=`eval echo '${'$as_ac_Header'}'`
15645                { echo "$as_me:$LINENO: result: $ac_res" >&5
15646 echo "${ECHO_T}$ac_res" >&6; }
15647
15648 fi
15649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15650   cat >>confdefs.h <<_ACEOF
15651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15652 _ACEOF
15653
15654 fi
15655
15656 done
15657
15658
15659
15660 for ac_header in utime.h windows.h
15661 do
15662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 fi
15669 ac_res=`eval echo '${'$as_ac_Header'}'`
15670                { echo "$as_me:$LINENO: result: $ac_res" >&5
15671 echo "${ECHO_T}$ac_res" >&6; }
15672 else
15673   # Is the header compilable?
15674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15676 cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682 $ac_includes_default
15683 #include <$ac_header>
15684 _ACEOF
15685 rm -f conftest.$ac_objext
15686 if { (ac_try="$ac_compile"
15687 case "(($ac_try" in
15688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689   *) ac_try_echo=$ac_try;;
15690 esac
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692   (eval "$ac_compile") 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } &&
15699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15700   { (case "(($ac_try" in
15701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702   *) ac_try_echo=$ac_try;;
15703 esac
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705   (eval "$ac_try") 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; } &&
15709          { ac_try='test -s conftest.$ac_objext'
15710   { (case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_try") 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; }; then
15719   ac_header_compiler=yes
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724         ac_header_compiler=no
15725 fi
15726
15727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15729 echo "${ECHO_T}$ac_header_compiler" >&6; }
15730
15731 # Is the header present?
15732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 #include <$ac_header>
15741 _ACEOF
15742 if { (ac_try="$ac_cpp conftest.$ac_ext"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } >/dev/null; then
15755   if test -s conftest.err; then
15756     ac_cpp_err=$ac_c_preproc_warn_flag
15757     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15758   else
15759     ac_cpp_err=
15760   fi
15761 else
15762   ac_cpp_err=yes
15763 fi
15764 if test -z "$ac_cpp_err"; then
15765   ac_header_preproc=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770   ac_header_preproc=no
15771 fi
15772
15773 rm -f conftest.err conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15775 echo "${ECHO_T}$ac_header_preproc" >&6; }
15776
15777 # So?  What about this header?
15778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15779   yes:no: )
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15784     ac_header_preproc=yes
15785     ;;
15786   no:yes:* )
15787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15799     ( cat <<\_ASBOX
15800 ## ------------------------------------ ##
15801 ## Report this to http://llvm.org/bugs/ ##
15802 ## ------------------------------------ ##
15803 _ASBOX
15804      ) | sed "s/^/$as_me: WARNING:     /" >&2
15805     ;;
15806 esac
15807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810   echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812   eval "$as_ac_Header=\$ac_header_preproc"
15813 fi
15814 ac_res=`eval echo '${'$as_ac_Header'}'`
15815                { echo "$as_me:$LINENO: result: $ac_res" >&5
15816 echo "${ECHO_T}$ac_res" >&6; }
15817
15818 fi
15819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15820   cat >>confdefs.h <<_ACEOF
15821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822 _ACEOF
15823
15824 fi
15825
15826 done
15827
15828
15829
15830
15831
15832
15833 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15834 do
15835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840   echo $ECHO_N "(cached) $ECHO_C" >&6
15841 fi
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843                { echo "$as_me:$LINENO: result: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15845 else
15846   # Is the header compilable?
15847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855 $ac_includes_default
15856 #include <$ac_header>
15857 _ACEOF
15858 rm -f conftest.$ac_objext
15859 if { (ac_try="$ac_compile"
15860 case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_compile") 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
15869   cat conftest.err >&5
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); } &&
15872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15873   { (case "(($ac_try" in
15874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875   *) ac_try_echo=$ac_try;;
15876 esac
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878   (eval "$ac_try") 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); }; } &&
15882          { ac_try='test -s conftest.$ac_objext'
15883   { (case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_try") 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; }; then
15892   ac_header_compiler=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_header_compiler=no
15898 fi
15899
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15902 echo "${ECHO_T}$ac_header_compiler" >&6; }
15903
15904 # Is the header present?
15905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 #include <$ac_header>
15914 _ACEOF
15915 if { (ac_try="$ac_cpp conftest.$ac_ext"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } >/dev/null; then
15928   if test -s conftest.err; then
15929     ac_cpp_err=$ac_c_preproc_warn_flag
15930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15931   else
15932     ac_cpp_err=
15933   fi
15934 else
15935   ac_cpp_err=yes
15936 fi
15937 if test -z "$ac_cpp_err"; then
15938   ac_header_preproc=yes
15939 else
15940   echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943   ac_header_preproc=no
15944 fi
15945
15946 rm -f conftest.err conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15948 echo "${ECHO_T}$ac_header_preproc" >&6; }
15949
15950 # So?  What about this header?
15951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15952   yes:no: )
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15957     ac_header_preproc=yes
15958     ;;
15959   no:yes:* )
15960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15972     ( cat <<\_ASBOX
15973 ## ------------------------------------ ##
15974 ## Report this to http://llvm.org/bugs/ ##
15975 ## ------------------------------------ ##
15976 _ASBOX
15977      ) | sed "s/^/$as_me: WARNING:     /" >&2
15978     ;;
15979 esac
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   eval "$as_ac_Header=\$ac_header_preproc"
15986 fi
15987 ac_res=`eval echo '${'$as_ac_Header'}'`
15988                { echo "$as_me:$LINENO: result: $ac_res" >&5
15989 echo "${ECHO_T}$ac_res" >&6; }
15990
15991 fi
15992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15993   cat >>confdefs.h <<_ACEOF
15994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15995 _ACEOF
15996
15997 fi
15998
15999 done
16000
16001
16002
16003
16004
16005 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16006 do
16007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 fi
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015                { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16017 else
16018   # Is the header compilable?
16019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 $ac_includes_default
16028 #include <$ac_header>
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_compile") 2>conftest.er1
16038   ac_status=$?
16039   grep -v '^ *+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } &&
16044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16045   { (case "(($ac_try" in
16046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047   *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050   (eval "$ac_try") 2>&5
16051   ac_status=$?
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); }; } &&
16054          { ac_try='test -s conftest.$ac_objext'
16055   { (case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_try") 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064   ac_header_compiler=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069         ac_header_compiler=no
16070 fi
16071
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 echo "${ECHO_T}$ac_header_compiler" >&6; }
16075
16076 # Is the header present?
16077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085 #include <$ac_header>
16086 _ACEOF
16087 if { (ac_try="$ac_cpp conftest.$ac_ext"
16088 case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } >/dev/null; then
16100   if test -s conftest.err; then
16101     ac_cpp_err=$ac_c_preproc_warn_flag
16102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16103   else
16104     ac_cpp_err=
16105   fi
16106 else
16107   ac_cpp_err=yes
16108 fi
16109 if test -z "$ac_cpp_err"; then
16110   ac_header_preproc=yes
16111 else
16112   echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16114
16115   ac_header_preproc=no
16116 fi
16117
16118 rm -f conftest.err conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16120 echo "${ECHO_T}$ac_header_preproc" >&6; }
16121
16122 # So?  What about this header?
16123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16124   yes:no: )
16125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16129     ac_header_preproc=yes
16130     ;;
16131   no:yes:* )
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16144     ( cat <<\_ASBOX
16145 ## ------------------------------------ ##
16146 ## Report this to http://llvm.org/bugs/ ##
16147 ## ------------------------------------ ##
16148 _ASBOX
16149      ) | sed "s/^/$as_me: WARNING:     /" >&2
16150     ;;
16151 esac
16152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   eval "$as_ac_Header=\$ac_header_preproc"
16158 fi
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160                { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162
16163 fi
16164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16165   cat >>confdefs.h <<_ACEOF
16166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 _ACEOF
16168
16169 fi
16170
16171 done
16172
16173
16174 for ac_header in valgrind/valgrind.h
16175 do
16176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 fi
16183 ac_res=`eval echo '${'$as_ac_Header'}'`
16184                { echo "$as_me:$LINENO: result: $ac_res" >&5
16185 echo "${ECHO_T}$ac_res" >&6; }
16186 else
16187   # Is the header compilable?
16188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h.  */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h.  */
16196 $ac_includes_default
16197 #include <$ac_header>
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_compile") 2>conftest.er1
16207   ac_status=$?
16208   grep -v '^ *+' conftest.er1 >conftest.err
16209   rm -f conftest.er1
16210   cat conftest.err >&5
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } &&
16213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16214   { (case "(($ac_try" in
16215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216   *) ac_try_echo=$ac_try;;
16217 esac
16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219   (eval "$ac_try") 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); }; } &&
16223          { ac_try='test -s conftest.$ac_objext'
16224   { (case "(($ac_try" in
16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226   *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229   (eval "$ac_try") 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; }; then
16233   ac_header_compiler=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238         ac_header_compiler=no
16239 fi
16240
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16243 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244
16245 # Is the header present?
16246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16248 cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h.  */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h.  */
16254 #include <$ac_header>
16255 _ACEOF
16256 if { (ac_try="$ac_cpp conftest.$ac_ext"
16257 case "(($ac_try" in
16258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259   *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16263   ac_status=$?
16264   grep -v '^ *+' conftest.er1 >conftest.err
16265   rm -f conftest.er1
16266   cat conftest.err >&5
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } >/dev/null; then
16269   if test -s conftest.err; then
16270     ac_cpp_err=$ac_c_preproc_warn_flag
16271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16272   else
16273     ac_cpp_err=
16274   fi
16275 else
16276   ac_cpp_err=yes
16277 fi
16278 if test -z "$ac_cpp_err"; then
16279   ac_header_preproc=yes
16280 else
16281   echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284   ac_header_preproc=no
16285 fi
16286
16287 rm -f conftest.err conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16289 echo "${ECHO_T}$ac_header_preproc" >&6; }
16290
16291 # So?  What about this header?
16292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16293   yes:no: )
16294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16298     ac_header_preproc=yes
16299     ;;
16300   no:yes:* )
16301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313     ( cat <<\_ASBOX
16314 ## ------------------------------------ ##
16315 ## Report this to http://llvm.org/bugs/ ##
16316 ## ------------------------------------ ##
16317 _ASBOX
16318      ) | sed "s/^/$as_me: WARNING:     /" >&2
16319     ;;
16320 esac
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324   echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326   eval "$as_ac_Header=\$ac_header_preproc"
16327 fi
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329                { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16331
16332 fi
16333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16334   cat >>confdefs.h <<_ACEOF
16335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16336 _ACEOF
16337
16338 fi
16339
16340 done
16341
16342
16343 for ac_header in fenv.h
16344 do
16345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 fi
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353                { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16355 else
16356   # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 $ac_includes_default
16366 #include <$ac_header>
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_header_compiler=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407         ac_header_compiler=no
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16413
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 #include <$ac_header>
16424 _ACEOF
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } >/dev/null; then
16438   if test -s conftest.err; then
16439     ac_cpp_err=$ac_c_preproc_warn_flag
16440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16441   else
16442     ac_cpp_err=
16443   fi
16444 else
16445   ac_cpp_err=yes
16446 fi
16447 if test -z "$ac_cpp_err"; then
16448   ac_header_preproc=yes
16449 else
16450   echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453   ac_header_preproc=no
16454 fi
16455
16456 rm -f conftest.err conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16459
16460 # So?  What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16462   yes:no: )
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467     ac_header_preproc=yes
16468     ;;
16469   no:yes:* )
16470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482     ( cat <<\_ASBOX
16483 ## ------------------------------------ ##
16484 ## Report this to http://llvm.org/bugs/ ##
16485 ## ------------------------------------ ##
16486 _ASBOX
16487      ) | sed "s/^/$as_me: WARNING:     /" >&2
16488     ;;
16489 esac
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   eval "$as_ac_Header=\$ac_header_preproc"
16496 fi
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498                { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500
16501 fi
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503   cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16505 _ACEOF
16506
16507 fi
16508
16509 done
16510
16511 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16512 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16513 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16514   echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516   cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 #include <fenv.h>
16523
16524 int
16525 main ()
16526 {
16527 #ifndef FE_ALL_EXCEPT
16528   char *p = (char *) FE_ALL_EXCEPT;
16529   return !p;
16530 #endif
16531
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_compile") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575         ac_cv_have_decl_FE_ALL_EXCEPT=no
16576 fi
16577
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579 fi
16580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16581 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16582 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16583
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_DECL_FE_ALL_EXCEPT 1
16586 _ACEOF
16587
16588
16589 else
16590   cat >>confdefs.h <<_ACEOF
16591 #define HAVE_DECL_FE_ALL_EXCEPT 0
16592 _ACEOF
16593
16594
16595 fi
16596 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16597 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16598 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601   cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 #include <fenv.h>
16608
16609 int
16610 main ()
16611 {
16612 #ifndef FE_INEXACT
16613   char *p = (char *) FE_INEXACT;
16614   return !p;
16615 #endif
16616
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext
16622 if { (ac_try="$ac_compile"
16623 case "(($ac_try" in
16624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625   *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628   (eval "$ac_compile") 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636   { (case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_try") 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; } &&
16645          { ac_try='test -s conftest.$ac_objext'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   ac_cv_have_decl_FE_INEXACT=yes
16656 else
16657   echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660         ac_cv_have_decl_FE_INEXACT=no
16661 fi
16662
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 fi
16665 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16666 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16667 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16668
16669 cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_FE_INEXACT 1
16671 _ACEOF
16672
16673
16674 else
16675   cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_FE_INEXACT 0
16677 _ACEOF
16678
16679
16680 fi
16681
16682
16683 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16684
16685 for ac_header in pthread.h
16686 do
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16689   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 fi
16694 ac_res=`eval echo '${'$as_ac_Header'}'`
16695                { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16697 else
16698   # Is the header compilable?
16699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 $ac_includes_default
16708 #include <$ac_header>
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (ac_try="$ac_compile"
16712 case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_compile") 2>conftest.er1
16718   ac_status=$?
16719   grep -v '^ *+' conftest.er1 >conftest.err
16720   rm -f conftest.er1
16721   cat conftest.err >&5
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } &&
16724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16725   { (case "(($ac_try" in
16726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727   *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730   (eval "$ac_try") 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); }; } &&
16734          { ac_try='test -s conftest.$ac_objext'
16735   { (case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_try") 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   ac_header_compiler=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749         ac_header_compiler=no
16750 fi
16751
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16754 echo "${ECHO_T}$ac_header_compiler" >&6; }
16755
16756 # Is the header present?
16757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 #include <$ac_header>
16766 _ACEOF
16767 if { (ac_try="$ac_cpp conftest.$ac_ext"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } >/dev/null; then
16780   if test -s conftest.err; then
16781     ac_cpp_err=$ac_c_preproc_warn_flag
16782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16783   else
16784     ac_cpp_err=
16785   fi
16786 else
16787   ac_cpp_err=yes
16788 fi
16789 if test -z "$ac_cpp_err"; then
16790   ac_header_preproc=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795   ac_header_preproc=no
16796 fi
16797
16798 rm -f conftest.err conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16800 echo "${ECHO_T}$ac_header_preproc" >&6; }
16801
16802 # So?  What about this header?
16803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804   yes:no: )
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16809     ac_header_preproc=yes
16810     ;;
16811   no:yes:* )
16812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16824     ( cat <<\_ASBOX
16825 ## ------------------------------------ ##
16826 ## Report this to http://llvm.org/bugs/ ##
16827 ## ------------------------------------ ##
16828 _ASBOX
16829      ) | sed "s/^/$as_me: WARNING:     /" >&2
16830     ;;
16831 esac
16832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   eval "$as_ac_Header=\$ac_header_preproc"
16838 fi
16839 ac_res=`eval echo '${'$as_ac_Header'}'`
16840                { echo "$as_me:$LINENO: result: $ac_res" >&5
16841 echo "${ECHO_T}$ac_res" >&6; }
16842
16843 fi
16844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16845   cat >>confdefs.h <<_ACEOF
16846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16847 _ACEOF
16848  HAVE_PTHREAD=1
16849
16850 else
16851   HAVE_PTHREAD=0
16852
16853 fi
16854
16855 done
16856
16857 else
16858   HAVE_PTHREAD=0
16859
16860 fi
16861 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16862
16863 for ac_header in zlib.h
16864 do
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 fi
16872 ac_res=`eval echo '${'$as_ac_Header'}'`
16873                { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16875 else
16876   # Is the header compilable?
16877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h.  */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h.  */
16885 $ac_includes_default
16886 #include <$ac_header>
16887 _ACEOF
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_compile") 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903   { (case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_try") 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; } &&
16912          { ac_try='test -s conftest.$ac_objext'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_try") 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_header_compiler=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_header_compiler=no
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16932 echo "${ECHO_T}$ac_header_compiler" >&6; }
16933
16934 # Is the header present?
16935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943 #include <$ac_header>
16944 _ACEOF
16945 if { (ac_try="$ac_cpp conftest.$ac_ext"
16946 case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16952   ac_status=$?
16953   grep -v '^ *+' conftest.er1 >conftest.err
16954   rm -f conftest.er1
16955   cat conftest.err >&5
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } >/dev/null; then
16958   if test -s conftest.err; then
16959     ac_cpp_err=$ac_c_preproc_warn_flag
16960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16961   else
16962     ac_cpp_err=
16963   fi
16964 else
16965   ac_cpp_err=yes
16966 fi
16967 if test -z "$ac_cpp_err"; then
16968   ac_header_preproc=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973   ac_header_preproc=no
16974 fi
16975
16976 rm -f conftest.err conftest.$ac_ext
16977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978 echo "${ECHO_T}$ac_header_preproc" >&6; }
16979
16980 # So?  What about this header?
16981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16982   yes:no: )
16983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16987     ac_header_preproc=yes
16988     ;;
16989   no:yes:* )
16990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17002     ( cat <<\_ASBOX
17003 ## ------------------------------------ ##
17004 ## Report this to http://llvm.org/bugs/ ##
17005 ## ------------------------------------ ##
17006 _ASBOX
17007      ) | sed "s/^/$as_me: WARNING:     /" >&2
17008     ;;
17009 esac
17010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   eval "$as_ac_Header=\$ac_header_preproc"
17016 fi
17017 ac_res=`eval echo '${'$as_ac_Header'}'`
17018                { echo "$as_me:$LINENO: result: $ac_res" >&5
17019 echo "${ECHO_T}$ac_res" >&6; }
17020
17021 fi
17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023   cat >>confdefs.h <<_ACEOF
17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17025 _ACEOF
17026  HAVE_LIBZ=1
17027
17028 else
17029   HAVE_LIBZ=0
17030
17031 fi
17032
17033 done
17034
17035 else
17036   HAVE_LIBZ=0
17037
17038 fi
17039
17040 if test "$llvm_cv_enable_libffi" = "yes" ; then
17041
17042
17043 for ac_header in ffi.h ffi/ffi.h
17044 do
17045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17047   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 fi
17052 ac_res=`eval echo '${'$as_ac_Header'}'`
17053                { echo "$as_me:$LINENO: result: $ac_res" >&5
17054 echo "${ECHO_T}$ac_res" >&6; }
17055 else
17056   # Is the header compilable?
17057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17059 cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 $ac_includes_default
17066 #include <$ac_header>
17067 _ACEOF
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_compile") 2>conftest.er1
17076   ac_status=$?
17077   grep -v '^ *+' conftest.er1 >conftest.err
17078   rm -f conftest.er1
17079   cat conftest.err >&5
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } &&
17082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083   { (case "(($ac_try" in
17084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085   *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088   (eval "$ac_try") 2>&5
17089   ac_status=$?
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); }; } &&
17092          { ac_try='test -s conftest.$ac_objext'
17093   { (case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_try") 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102   ac_header_compiler=yes
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107         ac_header_compiler=no
17108 fi
17109
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17112 echo "${ECHO_T}$ac_header_compiler" >&6; }
17113
17114 # Is the header present?
17115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123 #include <$ac_header>
17124 _ACEOF
17125 if { (ac_try="$ac_cpp conftest.$ac_ext"
17126 case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } >/dev/null; then
17138   if test -s conftest.err; then
17139     ac_cpp_err=$ac_c_preproc_warn_flag
17140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17141   else
17142     ac_cpp_err=
17143   fi
17144 else
17145   ac_cpp_err=yes
17146 fi
17147 if test -z "$ac_cpp_err"; then
17148   ac_header_preproc=yes
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153   ac_header_preproc=no
17154 fi
17155
17156 rm -f conftest.err conftest.$ac_ext
17157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158 echo "${ECHO_T}$ac_header_preproc" >&6; }
17159
17160 # So?  What about this header?
17161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17162   yes:no: )
17163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17167     ac_header_preproc=yes
17168     ;;
17169   no:yes:* )
17170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17182     ( cat <<\_ASBOX
17183 ## ------------------------------------ ##
17184 ## Report this to http://llvm.org/bugs/ ##
17185 ## ------------------------------------ ##
17186 _ASBOX
17187      ) | sed "s/^/$as_me: WARNING:     /" >&2
17188     ;;
17189 esac
17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195   eval "$as_ac_Header=\$ac_header_preproc"
17196 fi
17197 ac_res=`eval echo '${'$as_ac_Header'}'`
17198                { echo "$as_me:$LINENO: result: $ac_res" >&5
17199 echo "${ECHO_T}$ac_res" >&6; }
17200
17201 fi
17202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17203   cat >>confdefs.h <<_ACEOF
17204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17205 _ACEOF
17206
17207 fi
17208
17209 done
17210
17211 fi
17212
17213
17214 for ac_header in CrashReporterClient.h
17215 do
17216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17218   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17221   echo $ECHO_N "(cached) $ECHO_C" >&6
17222 fi
17223 ac_res=`eval echo '${'$as_ac_Header'}'`
17224                { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 else
17227   # Is the header compilable?
17228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236 $ac_includes_default
17237 #include <$ac_header>
17238 _ACEOF
17239 rm -f conftest.$ac_objext
17240 if { (ac_try="$ac_compile"
17241 case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_compile") 2>conftest.er1
17247   ac_status=$?
17248   grep -v '^ *+' conftest.er1 >conftest.err
17249   rm -f conftest.er1
17250   cat conftest.err >&5
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; } &&
17263          { ac_try='test -s conftest.$ac_objext'
17264   { (case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_try") 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   ac_header_compiler=yes
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278         ac_header_compiler=no
17279 fi
17280
17281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17283 echo "${ECHO_T}$ac_header_compiler" >&6; }
17284
17285 # Is the header present?
17286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294 #include <$ac_header>
17295 _ACEOF
17296 if { (ac_try="$ac_cpp conftest.$ac_ext"
17297 case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } >/dev/null; then
17309   if test -s conftest.err; then
17310     ac_cpp_err=$ac_c_preproc_warn_flag
17311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17312   else
17313     ac_cpp_err=
17314   fi
17315 else
17316   ac_cpp_err=yes
17317 fi
17318 if test -z "$ac_cpp_err"; then
17319   ac_header_preproc=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324   ac_header_preproc=no
17325 fi
17326
17327 rm -f conftest.err conftest.$ac_ext
17328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17329 echo "${ECHO_T}$ac_header_preproc" >&6; }
17330
17331 # So?  What about this header?
17332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17333   yes:no: )
17334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17338     ac_header_preproc=yes
17339     ;;
17340   no:yes:* )
17341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17353     ( cat <<\_ASBOX
17354 ## ------------------------------------ ##
17355 ## Report this to http://llvm.org/bugs/ ##
17356 ## ------------------------------------ ##
17357 _ASBOX
17358      ) | sed "s/^/$as_me: WARNING:     /" >&2
17359     ;;
17360 esac
17361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   eval "$as_ac_Header=\$ac_header_preproc"
17367 fi
17368 ac_res=`eval echo '${'$as_ac_Header'}'`
17369                { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371
17372 fi
17373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17374   cat >>confdefs.h <<_ACEOF
17375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17376 _ACEOF
17377
17378 fi
17379
17380 done
17381
17382
17383 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17384 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17385 cat >conftest.$ac_ext <<_ACEOF
17386
17387   /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392
17393     extern const char *__crashreporter_info__;
17394     int main() {
17395       __crashreporter_info__ = "test";
17396       return 0;
17397     }
17398
17399
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_link") 2>conftest.er1
17409   ac_status=$?
17410   grep -v '^ *+' conftest.er1 >conftest.err
17411   rm -f conftest.er1
17412   cat conftest.err >&5
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); } &&
17415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416   { (case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_try") 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; } &&
17425          { ac_try='test -s conftest$ac_exeext'
17426   { (case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_try") 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435
17436   { echo "$as_me:$LINENO: result: yes" >&5
17437 echo "${ECHO_T}yes" >&6; }
17438
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_CRASHREPORTER_INFO 1
17441 _ACEOF
17442
17443
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448
17449   { echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6; }
17451
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_CRASHREPORTER_INFO 0
17454 _ACEOF
17455
17456
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext \
17460       conftest$ac_exeext conftest.$ac_ext
17461
17462
17463
17464   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17465 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17466 if test "${ac_cv_huge_val_sanity+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469
17470     ac_ext=cpp
17471 ac_cpp='$CXXCPP $CPPFLAGS'
17472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17475
17476     ac_save_CXXFLAGS=$CXXFLAGS
17477     CXXFLAGS="$CXXFLAGS -pedantic"
17478     if test "$cross_compiling" = yes; then
17479   ac_cv_huge_val_sanity=yes
17480 else
17481   cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 #include <math.h>
17488 int
17489 main ()
17490 {
17491 double x = HUGE_VAL; return x != x;
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_link") 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17507   { (case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_try") 2>&5
17513   ac_status=$?
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); }; }; then
17516   ac_cv_huge_val_sanity=yes
17517 else
17518   echo "$as_me: program exited with status $ac_status" >&5
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ( exit $ac_status )
17523 ac_cv_huge_val_sanity=no
17524 fi
17525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17526 fi
17527
17528
17529     CXXFLAGS=$ac_save_CXXFLAGS
17530     ac_ext=c
17531 ac_cpp='$CPP $CPPFLAGS'
17532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17535
17536
17537 fi
17538 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17539 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17540   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17541
17542
17543 { echo "$as_me:$LINENO: checking for pid_t" >&5
17544 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17545 if test "${ac_cv_type_pid_t+set}" = set; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548   cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 $ac_includes_default
17555 typedef pid_t ac__type_new_;
17556 int
17557 main ()
17558 {
17559 if ((ac__type_new_ *) 0)
17560   return 0;
17561 if (sizeof (ac__type_new_))
17562   return 0;
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_compile") 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582   { (case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_try") 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; } &&
17591          { ac_try='test -s conftest.$ac_objext'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_type_pid_t=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         ac_cv_type_pid_t=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 fi
17611 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17612 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17613 if test $ac_cv_type_pid_t = yes; then
17614   :
17615 else
17616
17617 cat >>confdefs.h <<_ACEOF
17618 #define pid_t int
17619 _ACEOF
17620
17621 fi
17622
17623 { echo "$as_me:$LINENO: checking for size_t" >&5
17624 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17625 if test "${ac_cv_type_size_t+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h.  */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h.  */
17634 $ac_includes_default
17635 typedef size_t ac__type_new_;
17636 int
17637 main ()
17638 {
17639 if ((ac__type_new_ *) 0)
17640   return 0;
17641 if (sizeof (ac__type_new_))
17642   return 0;
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654   (eval "$ac_compile") 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662   { (case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_try") 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; } &&
17671          { ac_try='test -s conftest.$ac_objext'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; }; then
17681   ac_cv_type_size_t=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686         ac_cv_type_size_t=no
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 fi
17691 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17692 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17693 if test $ac_cv_type_size_t = yes; then
17694   :
17695 else
17696
17697 cat >>confdefs.h <<_ACEOF
17698 #define size_t unsigned int
17699 _ACEOF
17700
17701 fi
17702
17703
17704 cat >>confdefs.h <<_ACEOF
17705 #define RETSIGTYPE void
17706 _ACEOF
17707
17708 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17709 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17710 if test "${ac_cv_struct_tm+set}" = set; then
17711   echo $ECHO_N "(cached) $ECHO_C" >&6
17712 else
17713   cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719 #include <sys/types.h>
17720 #include <time.h>
17721
17722 int
17723 main ()
17724 {
17725 struct tm *tp; tp->tm_sec;
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_compile") 2>conftest.er1
17738   ac_status=$?
17739   grep -v '^ *+' conftest.er1 >conftest.err
17740   rm -f conftest.er1
17741   cat conftest.err >&5
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745   { (case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_try") 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; } &&
17754          { ac_try='test -s conftest.$ac_objext'
17755   { (case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_try") 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_cv_struct_tm=time.h
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769         ac_cv_struct_tm=sys/time.h
17770 fi
17771
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773 fi
17774 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17775 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17776 if test $ac_cv_struct_tm = sys/time.h; then
17777
17778 cat >>confdefs.h <<\_ACEOF
17779 #define TM_IN_SYS_TIME 1
17780 _ACEOF
17781
17782 fi
17783
17784 { echo "$as_me:$LINENO: checking for int64_t" >&5
17785 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17786 if test "${ac_cv_type_int64_t+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789   cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795 $ac_includes_default
17796 typedef int64_t ac__type_new_;
17797 int
17798 main ()
17799 {
17800 if ((ac__type_new_ *) 0)
17801   return 0;
17802 if (sizeof (ac__type_new_))
17803   return 0;
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823   { (case "(($ac_try" in
17824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825   *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828   (eval "$ac_try") 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; } &&
17832          { ac_try='test -s conftest.$ac_objext'
17833   { (case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_try") 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_cv_type_int64_t=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         ac_cv_type_int64_t=no
17848 fi
17849
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 fi
17852 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17853 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17854 if test $ac_cv_type_int64_t = yes; then
17855
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_INT64_T 1
17858 _ACEOF
17859
17860
17861 else
17862   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17863 echo "$as_me: error: Type int64_t required but not found" >&2;}
17864    { (exit 1); exit 1; }; }
17865 fi
17866
17867 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17868 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17869 if test "${ac_cv_type_uint64_t+set}" = set; then
17870   echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872   cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878 $ac_includes_default
17879 typedef uint64_t ac__type_new_;
17880 int
17881 main ()
17882 {
17883 if ((ac__type_new_ *) 0)
17884   return 0;
17885 if (sizeof (ac__type_new_))
17886   return 0;
17887   ;
17888   return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext
17892 if { (ac_try="$ac_compile"
17893 case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_compile") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906   { (case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_try") 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; } &&
17915          { ac_try='test -s conftest.$ac_objext'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_try") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; }; then
17925   ac_cv_type_uint64_t=yes
17926 else
17927   echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930         ac_cv_type_uint64_t=no
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 fi
17935 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17936 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17937 if test $ac_cv_type_uint64_t = yes; then
17938
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_UINT64_T 1
17941 _ACEOF
17942
17943
17944 else
17945   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17946 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17947 if test "${ac_cv_type_u_int64_t+set}" = set; then
17948   echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950   cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h.  */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h.  */
17956 $ac_includes_default
17957 typedef u_int64_t ac__type_new_;
17958 int
17959 main ()
17960 {
17961 if ((ac__type_new_ *) 0)
17962   return 0;
17963 if (sizeof (ac__type_new_))
17964   return 0;
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_compile") 2>conftest.er1
17977   ac_status=$?
17978   grep -v '^ *+' conftest.er1 >conftest.err
17979   rm -f conftest.er1
17980   cat conftest.err >&5
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984   { (case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_try") 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; } &&
17993          { ac_try='test -s conftest.$ac_objext'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; }; then
18003   ac_cv_type_u_int64_t=yes
18004 else
18005   echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008         ac_cv_type_u_int64_t=no
18009 fi
18010
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 fi
18013 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18014 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18015 if test $ac_cv_type_u_int64_t = yes; then
18016
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_U_INT64_T 1
18019 _ACEOF
18020
18021
18022 else
18023   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18024 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18025    { (exit 1); exit 1; }; }
18026 fi
18027
18028 fi
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18040 do
18041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047   cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18055 #define $ac_func innocuous_$ac_func
18056
18057 /* System header to define __stub macros and hopefully few prototypes,
18058     which can conflict with char $ac_func (); below.
18059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18060     <limits.h> exists even on freestanding compilers.  */
18061
18062 #ifdef __STDC__
18063 # include <limits.h>
18064 #else
18065 # include <assert.h>
18066 #endif
18067
18068 #undef $ac_func
18069
18070 /* Override any GCC internal prototype to avoid an error.
18071    Use char because int might match the return type of a GCC
18072    builtin and then its argument prototype would still apply.  */
18073 #ifdef __cplusplus
18074 extern "C"
18075 #endif
18076 char $ac_func ();
18077 /* The GNU C library defines this for functions which it implements
18078     to always fail with ENOSYS.  Some functions are actually named
18079     something starting with __ and the normal name is an alias.  */
18080 #if defined __stub_$ac_func || defined __stub___$ac_func
18081 choke me
18082 #endif
18083
18084 int
18085 main ()
18086 {
18087 return $ac_func ();
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_link") 2>conftest.er1
18100   ac_status=$?
18101   grep -v '^ *+' conftest.er1 >conftest.err
18102   rm -f conftest.er1
18103   cat conftest.err >&5
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } &&
18106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107   { (case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_try") 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest$ac_exeext'
18117   { (case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_try") 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; }; then
18126   eval "$as_ac_var=yes"
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         eval "$as_ac_var=no"
18132 fi
18133
18134 rm -f core conftest.err conftest.$ac_objext \
18135       conftest$ac_exeext conftest.$ac_ext
18136 fi
18137 ac_res=`eval echo '${'$as_ac_var'}'`
18138                { echo "$as_me:$LINENO: result: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18140 if test `eval echo '${'$as_ac_var'}'` = yes; then
18141   cat >>confdefs.h <<_ACEOF
18142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18143 _ACEOF
18144
18145 fi
18146 done
18147
18148
18149
18150
18151
18152 for ac_func in powf fmodf strtof round
18153 do
18154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18168 #define $ac_func innocuous_$ac_func
18169
18170 /* System header to define __stub macros and hopefully few prototypes,
18171     which can conflict with char $ac_func (); below.
18172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173     <limits.h> exists even on freestanding compilers.  */
18174
18175 #ifdef __STDC__
18176 # include <limits.h>
18177 #else
18178 # include <assert.h>
18179 #endif
18180
18181 #undef $ac_func
18182
18183 /* Override any GCC internal prototype to avoid an error.
18184    Use char because int might match the return type of a GCC
18185    builtin and then its argument prototype would still apply.  */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char $ac_func ();
18190 /* The GNU C library defines this for functions which it implements
18191     to always fail with ENOSYS.  Some functions are actually named
18192     something starting with __ and the normal name is an alias.  */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18194 choke me
18195 #endif
18196
18197 int
18198 main ()
18199 {
18200 return $ac_func ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_link") 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } &&
18219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18220   { (case "(($ac_try" in
18221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222   *) ac_try_echo=$ac_try;;
18223 esac
18224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225   (eval "$ac_try") 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); }; } &&
18229          { ac_try='test -s conftest$ac_exeext'
18230   { (case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_try") 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239   eval "$as_ac_var=yes"
18240 else
18241   echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18243
18244         eval "$as_ac_var=no"
18245 fi
18246
18247 rm -f core conftest.err conftest.$ac_objext \
18248       conftest$ac_exeext conftest.$ac_ext
18249 fi
18250 ac_res=`eval echo '${'$as_ac_var'}'`
18251                { echo "$as_me:$LINENO: result: $ac_res" >&5
18252 echo "${ECHO_T}$ac_res" >&6; }
18253 if test `eval echo '${'$as_ac_var'}'` = yes; then
18254   cat >>confdefs.h <<_ACEOF
18255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18256 _ACEOF
18257
18258 fi
18259 done
18260
18261
18262
18263
18264
18265
18266 for ac_func in log log2 log10 exp exp2
18267 do
18268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18272   echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274   cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18282 #define $ac_func innocuous_$ac_func
18283
18284 /* System header to define __stub macros and hopefully few prototypes,
18285     which can conflict with char $ac_func (); below.
18286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18287     <limits.h> exists even on freestanding compilers.  */
18288
18289 #ifdef __STDC__
18290 # include <limits.h>
18291 #else
18292 # include <assert.h>
18293 #endif
18294
18295 #undef $ac_func
18296
18297 /* Override any GCC internal prototype to avoid an error.
18298    Use char because int might match the return type of a GCC
18299    builtin and then its argument prototype would still apply.  */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 char $ac_func ();
18304 /* The GNU C library defines this for functions which it implements
18305     to always fail with ENOSYS.  Some functions are actually named
18306     something starting with __ and the normal name is an alias.  */
18307 #if defined __stub_$ac_func || defined __stub___$ac_func
18308 choke me
18309 #endif
18310
18311 int
18312 main ()
18313 {
18314 return $ac_func ();
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323   *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326   (eval "$ac_link") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } &&
18333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334   { (case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339   (eval "$ac_try") 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; } &&
18343          { ac_try='test -s conftest$ac_exeext'
18344   { (case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_try") 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; }; then
18353   eval "$as_ac_var=yes"
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358         eval "$as_ac_var=no"
18359 fi
18360
18361 rm -f core conftest.err conftest.$ac_objext \
18362       conftest$ac_exeext conftest.$ac_ext
18363 fi
18364 ac_res=`eval echo '${'$as_ac_var'}'`
18365                { echo "$as_me:$LINENO: result: $ac_res" >&5
18366 echo "${ECHO_T}$ac_res" >&6; }
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368   cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370 _ACEOF
18371
18372 fi
18373 done
18374
18375
18376
18377
18378
18379
18380 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18381 do
18382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18396 #define $ac_func innocuous_$ac_func
18397
18398 /* System header to define __stub macros and hopefully few prototypes,
18399     which can conflict with char $ac_func (); below.
18400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401     <limits.h> exists even on freestanding compilers.  */
18402
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408
18409 #undef $ac_func
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char $ac_func ();
18418 /* The GNU C library defines this for functions which it implements
18419     to always fail with ENOSYS.  Some functions are actually named
18420     something starting with __ and the normal name is an alias.  */
18421 #if defined __stub_$ac_func || defined __stub___$ac_func
18422 choke me
18423 #endif
18424
18425 int
18426 main ()
18427 {
18428 return $ac_func ();
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_link") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } &&
18447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18448   { (case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_try") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; } &&
18457          { ac_try='test -s conftest$ac_exeext'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   eval "$as_ac_var=yes"
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472         eval "$as_ac_var=no"
18473 fi
18474
18475 rm -f core conftest.err conftest.$ac_objext \
18476       conftest$ac_exeext conftest.$ac_ext
18477 fi
18478 ac_res=`eval echo '${'$as_ac_var'}'`
18479                { echo "$as_me:$LINENO: result: $ac_res" >&5
18480 echo "${ECHO_T}$ac_res" >&6; }
18481 if test `eval echo '${'$as_ac_var'}'` = yes; then
18482   cat >>confdefs.h <<_ACEOF
18483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18484 _ACEOF
18485
18486 fi
18487 done
18488
18489
18490
18491
18492 for ac_func in isatty mkdtemp mkstemp
18493 do
18494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18498   echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500   cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18508 #define $ac_func innocuous_$ac_func
18509
18510 /* System header to define __stub macros and hopefully few prototypes,
18511     which can conflict with char $ac_func (); below.
18512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18513     <limits.h> exists even on freestanding compilers.  */
18514
18515 #ifdef __STDC__
18516 # include <limits.h>
18517 #else
18518 # include <assert.h>
18519 #endif
18520
18521 #undef $ac_func
18522
18523 /* Override any GCC internal prototype to avoid an error.
18524    Use char because int might match the return type of a GCC
18525    builtin and then its argument prototype would still apply.  */
18526 #ifdef __cplusplus
18527 extern "C"
18528 #endif
18529 char $ac_func ();
18530 /* The GNU C library defines this for functions which it implements
18531     to always fail with ENOSYS.  Some functions are actually named
18532     something starting with __ and the normal name is an alias.  */
18533 #if defined __stub_$ac_func || defined __stub___$ac_func
18534 choke me
18535 #endif
18536
18537 int
18538 main ()
18539 {
18540 return $ac_func ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_link") 2>conftest.er1
18553   ac_status=$?
18554   grep -v '^ *+' conftest.er1 >conftest.err
18555   rm -f conftest.er1
18556   cat conftest.err >&5
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); } &&
18559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560   { (case "(($ac_try" in
18561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562   *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565   (eval "$ac_try") 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest$ac_exeext'
18570   { (case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_try") 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; }; then
18579   eval "$as_ac_var=yes"
18580 else
18581   echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584         eval "$as_ac_var=no"
18585 fi
18586
18587 rm -f core conftest.err conftest.$ac_objext \
18588       conftest$ac_exeext conftest.$ac_ext
18589 fi
18590 ac_res=`eval echo '${'$as_ac_var'}'`
18591                { echo "$as_me:$LINENO: result: $ac_res" >&5
18592 echo "${ECHO_T}$ac_res" >&6; }
18593 if test `eval echo '${'$as_ac_var'}'` = yes; then
18594   cat >>confdefs.h <<_ACEOF
18595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18596 _ACEOF
18597
18598 fi
18599 done
18600
18601
18602
18603
18604
18605
18606
18607
18608 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18609 do
18610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616   cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h.  */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h.  */
18622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18624 #define $ac_func innocuous_$ac_func
18625
18626 /* System header to define __stub macros and hopefully few prototypes,
18627     which can conflict with char $ac_func (); below.
18628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18629     <limits.h> exists even on freestanding compilers.  */
18630
18631 #ifdef __STDC__
18632 # include <limits.h>
18633 #else
18634 # include <assert.h>
18635 #endif
18636
18637 #undef $ac_func
18638
18639 /* Override any GCC internal prototype to avoid an error.
18640    Use char because int might match the return type of a GCC
18641    builtin and then its argument prototype would still apply.  */
18642 #ifdef __cplusplus
18643 extern "C"
18644 #endif
18645 char $ac_func ();
18646 /* The GNU C library defines this for functions which it implements
18647     to always fail with ENOSYS.  Some functions are actually named
18648     something starting with __ and the normal name is an alias.  */
18649 #if defined __stub_$ac_func || defined __stub___$ac_func
18650 choke me
18651 #endif
18652
18653 int
18654 main ()
18655 {
18656 return $ac_func ();
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 rm -f conftest.$ac_objext conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668   (eval "$ac_link") 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest$ac_exeext'
18686   { (case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_try") 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   eval "$as_ac_var=yes"
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700         eval "$as_ac_var=no"
18701 fi
18702
18703 rm -f core conftest.err conftest.$ac_objext \
18704       conftest$ac_exeext conftest.$ac_ext
18705 fi
18706 ac_res=`eval echo '${'$as_ac_var'}'`
18707                { echo "$as_me:$LINENO: result: $ac_res" >&5
18708 echo "${ECHO_T}$ac_res" >&6; }
18709 if test `eval echo '${'$as_ac_var'}'` = yes; then
18710   cat >>confdefs.h <<_ACEOF
18711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18712 _ACEOF
18713
18714 fi
18715 done
18716
18717
18718
18719
18720
18721 for ac_func in strerror strerror_r setenv arc4random
18722 do
18723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729   cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h.  */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h.  */
18735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18737 #define $ac_func innocuous_$ac_func
18738
18739 /* System header to define __stub macros and hopefully few prototypes,
18740     which can conflict with char $ac_func (); below.
18741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18742     <limits.h> exists even on freestanding compilers.  */
18743
18744 #ifdef __STDC__
18745 # include <limits.h>
18746 #else
18747 # include <assert.h>
18748 #endif
18749
18750 #undef $ac_func
18751
18752 /* Override any GCC internal prototype to avoid an error.
18753    Use char because int might match the return type of a GCC
18754    builtin and then its argument prototype would still apply.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 char $ac_func ();
18759 /* The GNU C library defines this for functions which it implements
18760     to always fail with ENOSYS.  Some functions are actually named
18761     something starting with __ and the normal name is an alias.  */
18762 #if defined __stub_$ac_func || defined __stub___$ac_func
18763 choke me
18764 #endif
18765
18766 int
18767 main ()
18768 {
18769 return $ac_func ();
18770   ;
18771   return 0;
18772 }
18773 _ACEOF
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18782   ac_status=$?
18783   grep -v '^ *+' conftest.er1 >conftest.err
18784   rm -f conftest.er1
18785   cat conftest.err >&5
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); } &&
18788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18789   { (case "(($ac_try" in
18790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791   *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794   (eval "$ac_try") 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest$ac_exeext'
18799   { (case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_try") 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808   eval "$as_ac_var=yes"
18809 else
18810   echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18812
18813         eval "$as_ac_var=no"
18814 fi
18815
18816 rm -f core conftest.err conftest.$ac_objext \
18817       conftest$ac_exeext conftest.$ac_ext
18818 fi
18819 ac_res=`eval echo '${'$as_ac_var'}'`
18820                { echo "$as_me:$LINENO: result: $ac_res" >&5
18821 echo "${ECHO_T}$ac_res" >&6; }
18822 if test `eval echo '${'$as_ac_var'}'` = yes; then
18823   cat >>confdefs.h <<_ACEOF
18824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18825 _ACEOF
18826
18827 fi
18828 done
18829
18830
18831
18832
18833
18834 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18835 do
18836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h.  */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h.  */
18848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18850 #define $ac_func innocuous_$ac_func
18851
18852 /* System header to define __stub macros and hopefully few prototypes,
18853     which can conflict with char $ac_func (); below.
18854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18855     <limits.h> exists even on freestanding compilers.  */
18856
18857 #ifdef __STDC__
18858 # include <limits.h>
18859 #else
18860 # include <assert.h>
18861 #endif
18862
18863 #undef $ac_func
18864
18865 /* Override any GCC internal prototype to avoid an error.
18866    Use char because int might match the return type of a GCC
18867    builtin and then its argument prototype would still apply.  */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 char $ac_func ();
18872 /* The GNU C library defines this for functions which it implements
18873     to always fail with ENOSYS.  Some functions are actually named
18874     something starting with __ and the normal name is an alias.  */
18875 #if defined __stub_$ac_func || defined __stub___$ac_func
18876 choke me
18877 #endif
18878
18879 int
18880 main ()
18881 {
18882 return $ac_func ();
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_link") 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } &&
18901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18902   { (case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_try") 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; } &&
18911          { ac_try='test -s conftest$ac_exeext'
18912   { (case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_try") 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   eval "$as_ac_var=yes"
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926         eval "$as_ac_var=no"
18927 fi
18928
18929 rm -f core conftest.err conftest.$ac_objext \
18930       conftest$ac_exeext conftest.$ac_ext
18931 fi
18932 ac_res=`eval echo '${'$as_ac_var'}'`
18933                { echo "$as_me:$LINENO: result: $ac_res" >&5
18934 echo "${ECHO_T}$ac_res" >&6; }
18935 if test `eval echo '${'$as_ac_var'}'` = yes; then
18936   cat >>confdefs.h <<_ACEOF
18937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18938 _ACEOF
18939
18940 fi
18941 done
18942
18943
18944
18945
18946
18947
18948 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18949 do
18950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18964 #define $ac_func innocuous_$ac_func
18965
18966 /* System header to define __stub macros and hopefully few prototypes,
18967     which can conflict with char $ac_func (); below.
18968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18969     <limits.h> exists even on freestanding compilers.  */
18970
18971 #ifdef __STDC__
18972 # include <limits.h>
18973 #else
18974 # include <assert.h>
18975 #endif
18976
18977 #undef $ac_func
18978
18979 /* Override any GCC internal prototype to avoid an error.
18980    Use char because int might match the return type of a GCC
18981    builtin and then its argument prototype would still apply.  */
18982 #ifdef __cplusplus
18983 extern "C"
18984 #endif
18985 char $ac_func ();
18986 /* The GNU C library defines this for functions which it implements
18987     to always fail with ENOSYS.  Some functions are actually named
18988     something starting with __ and the normal name is an alias.  */
18989 #if defined __stub_$ac_func || defined __stub___$ac_func
18990 choke me
18991 #endif
18992
18993 int
18994 main ()
18995 {
18996 return $ac_func ();
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_link") 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } &&
19015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016   { (case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_try") 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; } &&
19025          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   eval "$as_ac_var=yes"
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         eval "$as_ac_var=no"
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext \
19044       conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047                { echo "$as_me:$LINENO: result: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050   cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19052 _ACEOF
19053
19054 fi
19055 done
19056
19057 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19058 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19059 if test "${llvm_cv_c_printf_a+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   ac_ext=c
19063 ac_cpp='$CPP $CPPFLAGS'
19064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19067
19068  if test "$cross_compiling" = yes; then
19069   llvmac_cv_c_printf_a=no
19070 else
19071   cat >conftest.$ac_ext <<_ACEOF
19072
19073   /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 #include <stdio.h>
19080 #include <stdlib.h>
19081
19082 int
19083 main ()
19084 {
19085
19086 volatile double A, B;
19087 char Buffer[100];
19088 A = 1;
19089 A /= 10.0;
19090 sprintf(Buffer, "%a", A);
19091 B = atof(Buffer);
19092 if (A != B)
19093   return (1);
19094 if (A != 0x1.999999999999ap-4)
19095   return (1);
19096 return (0);
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105   *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108   (eval "$ac_link") 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19112   { (case "(($ac_try" in
19113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114   *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117   (eval "$ac_try") 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); }; }; then
19121   llvm_cv_c_printf_a=yes
19122 else
19123   echo "$as_me: program exited with status $ac_status" >&5
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 ( exit $ac_status )
19128 llvmac_cv_c_printf_a=no
19129 fi
19130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19131 fi
19132
19133
19134  ac_ext=c
19135 ac_cpp='$CPP $CPPFLAGS'
19136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19139
19140 fi
19141 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19142 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19143  if test "$llvm_cv_c_printf_a" = "yes"; then
19144
19145 cat >>confdefs.h <<\_ACEOF
19146 #define HAVE_PRINTF_A 1
19147 _ACEOF
19148
19149  fi
19150
19151
19152
19153   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19154 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19155 if test "${ac_cv_func_rand48+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158
19159     ac_ext=cpp
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19164
19165     cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 #include <stdlib.h>
19172 int
19173 main ()
19174 {
19175 srand48(0);lrand48();drand48();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest.$ac_objext'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214   ac_cv_func_rand48=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         ac_cv_func_rand48=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223     ac_ext=c
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229
19230 fi
19231 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19232 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19233
19234 if test "$ac_cv_func_rand48" = "yes" ; then
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE_RAND48 1
19238 _ACEOF
19239
19240 fi
19241
19242
19243 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19244 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19245 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 $ac_includes_default
19255 int
19256 main ()
19257 {
19258 #ifndef strerror_s
19259   char *p = (char *) strerror_s;
19260   return !p;
19261 #endif
19262
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_compile") 2>conftest.er1
19275   ac_status=$?
19276   grep -v '^ *+' conftest.er1 >conftest.err
19277   rm -f conftest.er1
19278   cat conftest.err >&5
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } &&
19281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest.$ac_objext'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   ac_cv_have_decl_strerror_s=yes
19302 else
19303   echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306         ac_cv_have_decl_strerror_s=no
19307 fi
19308
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 fi
19311 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19312 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19313 if test $ac_cv_have_decl_strerror_s = yes; then
19314
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL_STRERROR_S 1
19317 _ACEOF
19318
19319
19320 else
19321   cat >>confdefs.h <<_ACEOF
19322 #define HAVE_DECL_STRERROR_S 0
19323 _ACEOF
19324
19325
19326 fi
19327
19328
19329
19330 if test "$llvm_cv_os_type" = "MingW" ; then
19331   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19332 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19333 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   ac_check_lib_save_LIBS=$LIBS
19337 LIBS="-lgcc  $LIBS"
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344
19345 /* Override any GCC internal prototype to avoid an error.
19346    Use char because int might match the return type of a GCC
19347    builtin and then its argument prototype would still apply.  */
19348 #ifdef __cplusplus
19349 extern "C"
19350 #endif
19351 char _alloca ();
19352 int
19353 main ()
19354 {
19355 return _alloca ();
19356   ;
19357   return 0;
19358 }
19359 _ACEOF
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364   *) ac_try_echo=$ac_try;;
19365 esac
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367   (eval "$ac_link") 2>conftest.er1
19368   ac_status=$?
19369   grep -v '^ *+' conftest.er1 >conftest.err
19370   rm -f conftest.er1
19371   cat conftest.err >&5
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); } &&
19374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19375   { (case "(($ac_try" in
19376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377   *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380   (eval "$ac_try") 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; } &&
19384          { ac_try='test -s conftest$ac_exeext'
19385   { (case "(($ac_try" in
19386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387   *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390   (eval "$ac_try") 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; }; then
19394   ac_cv_lib_gcc__alloca=yes
19395 else
19396   echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399         ac_cv_lib_gcc__alloca=no
19400 fi
19401
19402 rm -f core conftest.err conftest.$ac_objext \
19403       conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19405 fi
19406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19407 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19408 if test $ac_cv_lib_gcc__alloca = yes; then
19409
19410 cat >>confdefs.h <<\_ACEOF
19411 #define HAVE__ALLOCA 1
19412 _ACEOF
19413
19414 fi
19415
19416   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19417 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19418 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19419   echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421   ac_check_lib_save_LIBS=$LIBS
19422 LIBS="-lgcc  $LIBS"
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429
19430 /* Override any GCC internal prototype to avoid an error.
19431    Use char because int might match the return type of a GCC
19432    builtin and then its argument prototype would still apply.  */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 char __alloca ();
19437 int
19438 main ()
19439 {
19440 return __alloca ();
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (ac_try="$ac_link"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_link") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19460   { (case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_try") 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; } &&
19469          { ac_try='test -s conftest$ac_exeext'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   ac_cv_lib_gcc___alloca=yes
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484         ac_cv_lib_gcc___alloca=no
19485 fi
19486
19487 rm -f core conftest.err conftest.$ac_objext \
19488       conftest$ac_exeext conftest.$ac_ext
19489 LIBS=$ac_check_lib_save_LIBS
19490 fi
19491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19492 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19493 if test $ac_cv_lib_gcc___alloca = yes; then
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE___ALLOCA 1
19497 _ACEOF
19498
19499 fi
19500
19501   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19502 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19503 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lgcc  $LIBS"
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516    Use char because int might match the return type of a GCC
19517    builtin and then its argument prototype would still apply.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char __chkstk ();
19522 int
19523 main ()
19524 {
19525 return __chkstk ();
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534   *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537   (eval "$ac_link") 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19545   { (case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_try") 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; } &&
19554          { ac_try='test -s conftest$ac_exeext'
19555   { (case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560   (eval "$ac_try") 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564   ac_cv_lib_gcc___chkstk=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_cv_lib_gcc___chkstk=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext \
19573       conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19575 fi
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19577 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19578 if test $ac_cv_lib_gcc___chkstk = yes; then
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE___CHKSTK 1
19582 _ACEOF
19583
19584 fi
19585
19586   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19587 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19588 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591   ac_check_lib_save_LIBS=$LIBS
19592 LIBS="-lgcc  $LIBS"
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599
19600 /* Override any GCC internal prototype to avoid an error.
19601    Use char because int might match the return type of a GCC
19602    builtin and then its argument prototype would still apply.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char ___chkstk ();
19607 int
19608 main ()
19609 {
19610 return ___chkstk ();
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_link") 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; } &&
19639          { ac_try='test -s conftest$ac_exeext'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_lib_gcc____chkstk=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_cv_lib_gcc____chkstk=no
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext \
19658       conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19662 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19663 if test $ac_cv_lib_gcc____chkstk = yes; then
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE____CHKSTK 1
19667 _ACEOF
19668
19669 fi
19670
19671
19672   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19673 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19674 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lgcc  $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685
19686 /* Override any GCC internal prototype to avoid an error.
19687    Use char because int might match the return type of a GCC
19688    builtin and then its argument prototype would still apply.  */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 char __ashldi3 ();
19693 int
19694 main ()
19695 {
19696 return __ashldi3 ();
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_link") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } &&
19715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; } &&
19725          { ac_try='test -s conftest$ac_exeext'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_cv_lib_gcc___ashldi3=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740         ac_cv_lib_gcc___ashldi3=no
19741 fi
19742
19743 rm -f core conftest.err conftest.$ac_objext \
19744       conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19746 fi
19747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19748 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19749 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19750
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE___ASHLDI3 1
19753 _ACEOF
19754
19755 fi
19756
19757   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19758 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19759 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-lgcc  $LIBS"
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770
19771 /* Override any GCC internal prototype to avoid an error.
19772    Use char because int might match the return type of a GCC
19773    builtin and then its argument prototype would still apply.  */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 char __ashrdi3 ();
19778 int
19779 main ()
19780 {
19781 return __ashrdi3 ();
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790   *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793   (eval "$ac_link") 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } &&
19800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19801   { (case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_try") 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; } &&
19810          { ac_try='test -s conftest$ac_exeext'
19811   { (case "(($ac_try" in
19812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813   *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816   (eval "$ac_try") 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; }; then
19820   ac_cv_lib_gcc___ashrdi3=yes
19821 else
19822   echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825         ac_cv_lib_gcc___ashrdi3=no
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext \
19829       conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19833 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19834 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19835
19836 cat >>confdefs.h <<\_ACEOF
19837 #define HAVE___ASHRDI3 1
19838 _ACEOF
19839
19840 fi
19841
19842   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19843 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19844 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lgcc  $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857    Use char because int might match the return type of a GCC
19858    builtin and then its argument prototype would still apply.  */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char __divdi3 ();
19863 int
19864 main ()
19865 {
19866 return __divdi3 ();
19867   ;
19868   return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875   *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878   (eval "$ac_link") 2>conftest.er1
19879   ac_status=$?
19880   grep -v '^ *+' conftest.er1 >conftest.err
19881   rm -f conftest.er1
19882   cat conftest.err >&5
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } &&
19885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19886   { (case "(($ac_try" in
19887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888   *) ac_try_echo=$ac_try;;
19889 esac
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891   (eval "$ac_try") 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; } &&
19895          { ac_try='test -s conftest$ac_exeext'
19896   { (case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_try") 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; }; then
19905   ac_cv_lib_gcc___divdi3=yes
19906 else
19907   echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910         ac_cv_lib_gcc___divdi3=no
19911 fi
19912
19913 rm -f core conftest.err conftest.$ac_objext \
19914       conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS
19916 fi
19917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19918 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19919 if test $ac_cv_lib_gcc___divdi3 = yes; then
19920
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE___DIVDI3 1
19923 _ACEOF
19924
19925 fi
19926
19927   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19928 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19929 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19930   echo $ECHO_N "(cached) $ECHO_C" >&6
19931 else
19932   ac_check_lib_save_LIBS=$LIBS
19933 LIBS="-lgcc  $LIBS"
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940
19941 /* Override any GCC internal prototype to avoid an error.
19942    Use char because int might match the return type of a GCC
19943    builtin and then its argument prototype would still apply.  */
19944 #ifdef __cplusplus
19945 extern "C"
19946 #endif
19947 char __fixdfdi ();
19948 int
19949 main ()
19950 {
19951 return __fixdfdi ();
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_link") 2>conftest.er1
19964   ac_status=$?
19965   grep -v '^ *+' conftest.er1 >conftest.err
19966   rm -f conftest.er1
19967   cat conftest.err >&5
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); } &&
19970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19971   { (case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_try") 2>&5
19977   ac_status=$?
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); }; } &&
19980          { ac_try='test -s conftest$ac_exeext'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; }; then
19990   ac_cv_lib_gcc___fixdfdi=yes
19991 else
19992   echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995         ac_cv_lib_gcc___fixdfdi=no
19996 fi
19997
19998 rm -f core conftest.err conftest.$ac_objext \
19999       conftest$ac_exeext conftest.$ac_ext
20000 LIBS=$ac_check_lib_save_LIBS
20001 fi
20002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20003 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20004 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20005
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE___FIXDFDI 1
20008 _ACEOF
20009
20010 fi
20011
20012   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20013 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20015   echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017   ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lgcc  $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h.  */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h.  */
20025
20026 /* Override any GCC internal prototype to avoid an error.
20027    Use char because int might match the return type of a GCC
20028    builtin and then its argument prototype would still apply.  */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 char __fixsfdi ();
20033 int
20034 main ()
20035 {
20036 return __fixsfdi ();
20037   ;
20038   return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048   (eval "$ac_link") 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } &&
20055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20056   { (case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_try") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; } &&
20065          { ac_try='test -s conftest$ac_exeext'
20066   { (case "(($ac_try" in
20067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068   *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071   (eval "$ac_try") 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; }; then
20075   ac_cv_lib_gcc___fixsfdi=yes
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080         ac_cv_lib_gcc___fixsfdi=no
20081 fi
20082
20083 rm -f core conftest.err conftest.$ac_objext \
20084       conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20086 fi
20087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20088 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20089 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20090
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE___FIXSFDI 1
20093 _ACEOF
20094
20095 fi
20096
20097   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20098 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20099 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20100   echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102   ac_check_lib_save_LIBS=$LIBS
20103 LIBS="-lgcc  $LIBS"
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110
20111 /* Override any GCC internal prototype to avoid an error.
20112    Use char because int might match the return type of a GCC
20113    builtin and then its argument prototype would still apply.  */
20114 #ifdef __cplusplus
20115 extern "C"
20116 #endif
20117 char __floatdidf ();
20118 int
20119 main ()
20120 {
20121 return __floatdidf ();
20122   ;
20123   return 0;
20124 }
20125 _ACEOF
20126 rm -f conftest.$ac_objext conftest$ac_exeext
20127 if { (ac_try="$ac_link"
20128 case "(($ac_try" in
20129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130   *) ac_try_echo=$ac_try;;
20131 esac
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133   (eval "$ac_link") 2>conftest.er1
20134   ac_status=$?
20135   grep -v '^ *+' conftest.er1 >conftest.err
20136   rm -f conftest.er1
20137   cat conftest.err >&5
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); } &&
20140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20141   { (case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_try") 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; } &&
20150          { ac_try='test -s conftest$ac_exeext'
20151   { (case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_try") 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   ac_cv_lib_gcc___floatdidf=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165         ac_cv_lib_gcc___floatdidf=no
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext \
20169       conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20171 fi
20172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20173 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20174 if test $ac_cv_lib_gcc___floatdidf = yes; then
20175
20176 cat >>confdefs.h <<\_ACEOF
20177 #define HAVE___FLOATDIDF 1
20178 _ACEOF
20179
20180 fi
20181
20182   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20183 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20184 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187   ac_check_lib_save_LIBS=$LIBS
20188 LIBS="-lgcc  $LIBS"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195
20196 /* Override any GCC internal prototype to avoid an error.
20197    Use char because int might match the return type of a GCC
20198    builtin and then its argument prototype would still apply.  */
20199 #ifdef __cplusplus
20200 extern "C"
20201 #endif
20202 char __lshrdi3 ();
20203 int
20204 main ()
20205 {
20206 return __lshrdi3 ();
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215   *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218   (eval "$ac_link") 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20226   { (case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_try") 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; } &&
20235          { ac_try='test -s conftest$ac_exeext'
20236   { (case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_try") 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }; }; then
20245   ac_cv_lib_gcc___lshrdi3=yes
20246 else
20247   echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250         ac_cv_lib_gcc___lshrdi3=no
20251 fi
20252
20253 rm -f core conftest.err conftest.$ac_objext \
20254       conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20256 fi
20257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20258 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20259 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20260
20261 cat >>confdefs.h <<\_ACEOF
20262 #define HAVE___LSHRDI3 1
20263 _ACEOF
20264
20265 fi
20266
20267   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20268 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20269 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20270   echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272   ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-lgcc  $LIBS"
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280
20281 /* Override any GCC internal prototype to avoid an error.
20282    Use char because int might match the return type of a GCC
20283    builtin and then its argument prototype would still apply.  */
20284 #ifdef __cplusplus
20285 extern "C"
20286 #endif
20287 char __moddi3 ();
20288 int
20289 main ()
20290 {
20291 return __moddi3 ();
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300   *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303   (eval "$ac_link") 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } &&
20310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311   { (case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_try") 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; } &&
20320          { ac_try='test -s conftest$ac_exeext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_cv_lib_gcc___moddi3=yes
20331 else
20332   echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335         ac_cv_lib_gcc___moddi3=no
20336 fi
20337
20338 rm -f core conftest.err conftest.$ac_objext \
20339       conftest$ac_exeext conftest.$ac_ext
20340 LIBS=$ac_check_lib_save_LIBS
20341 fi
20342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20343 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20344 if test $ac_cv_lib_gcc___moddi3 = yes; then
20345
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE___MODDI3 1
20348 _ACEOF
20349
20350 fi
20351
20352   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20353 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20354 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20355   echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357   ac_check_lib_save_LIBS=$LIBS
20358 LIBS="-lgcc  $LIBS"
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365
20366 /* Override any GCC internal prototype to avoid an error.
20367    Use char because int might match the return type of a GCC
20368    builtin and then its argument prototype would still apply.  */
20369 #ifdef __cplusplus
20370 extern "C"
20371 #endif
20372 char __udivdi3 ();
20373 int
20374 main ()
20375 {
20376 return __udivdi3 ();
20377   ;
20378   return 0;
20379 }
20380 _ACEOF
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (ac_try="$ac_link"
20383 case "(($ac_try" in
20384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385   *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388   (eval "$ac_link") 2>conftest.er1
20389   ac_status=$?
20390   grep -v '^ *+' conftest.er1 >conftest.err
20391   rm -f conftest.er1
20392   cat conftest.err >&5
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } &&
20395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20396   { (case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_try") 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; } &&
20405          { ac_try='test -s conftest$ac_exeext'
20406   { (case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_try") 2>&5
20412   ac_status=$?
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); }; }; then
20415   ac_cv_lib_gcc___udivdi3=yes
20416 else
20417   echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420         ac_cv_lib_gcc___udivdi3=no
20421 fi
20422
20423 rm -f core conftest.err conftest.$ac_objext \
20424       conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20426 fi
20427 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20428 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20429 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20430
20431 cat >>confdefs.h <<\_ACEOF
20432 #define HAVE___UDIVDI3 1
20433 _ACEOF
20434
20435 fi
20436
20437   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20438 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20439 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20440   echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442   ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lgcc  $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450
20451 /* Override any GCC internal prototype to avoid an error.
20452    Use char because int might match the return type of a GCC
20453    builtin and then its argument prototype would still apply.  */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char __umoddi3 ();
20458 int
20459 main ()
20460 {
20461 return __umoddi3 ();
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_link") 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20481   { (case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_try") 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; } &&
20490          { ac_try='test -s conftest$ac_exeext'
20491   { (case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_try") 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; }; then
20500   ac_cv_lib_gcc___umoddi3=yes
20501 else
20502   echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505         ac_cv_lib_gcc___umoddi3=no
20506 fi
20507
20508 rm -f core conftest.err conftest.$ac_objext \
20509       conftest$ac_exeext conftest.$ac_ext
20510 LIBS=$ac_check_lib_save_LIBS
20511 fi
20512 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20513 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20514 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20515
20516 cat >>confdefs.h <<\_ACEOF
20517 #define HAVE___UMODDI3 1
20518 _ACEOF
20519
20520 fi
20521
20522
20523   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20524 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20525 if test "${ac_cv_lib_gcc___main+set}" = set; then
20526   echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528   ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lgcc  $LIBS"
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536
20537 /* Override any GCC internal prototype to avoid an error.
20538    Use char because int might match the return type of a GCC
20539    builtin and then its argument prototype would still apply.  */
20540 #ifdef __cplusplus
20541 extern "C"
20542 #endif
20543 char __main ();
20544 int
20545 main ()
20546 {
20547 return __main ();
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556   *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559   (eval "$ac_link") 2>conftest.er1
20560   ac_status=$?
20561   grep -v '^ *+' conftest.er1 >conftest.err
20562   rm -f conftest.er1
20563   cat conftest.err >&5
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); } &&
20566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20567   { (case "(($ac_try" in
20568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569   *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572   (eval "$ac_try") 2>&5
20573   ac_status=$?
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); }; } &&
20576          { ac_try='test -s conftest$ac_exeext'
20577   { (case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_try") 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; }; then
20586   ac_cv_lib_gcc___main=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         ac_cv_lib_gcc___main=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext \
20595       conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20597 fi
20598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20599 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20600 if test $ac_cv_lib_gcc___main = yes; then
20601
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE___MAIN 1
20604 _ACEOF
20605
20606 fi
20607
20608   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20609 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20610 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20611   echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613   ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lgcc  $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621
20622 /* Override any GCC internal prototype to avoid an error.
20623    Use char because int might match the return type of a GCC
20624    builtin and then its argument prototype would still apply.  */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 char __cmpdi2 ();
20629 int
20630 main ()
20631 {
20632 return __cmpdi2 ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_link") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } &&
20651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652   { (case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657   (eval "$ac_try") 2>&5
20658   ac_status=$?
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); }; } &&
20661          { ac_try='test -s conftest$ac_exeext'
20662   { (case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_try") 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; }; then
20671   ac_cv_lib_gcc___cmpdi2=yes
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         ac_cv_lib_gcc___cmpdi2=no
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext \
20680       conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20682 fi
20683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20684 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20685 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20686
20687 cat >>confdefs.h <<\_ACEOF
20688 #define HAVE___CMPDI2 1
20689 _ACEOF
20690
20691 fi
20692
20693 fi
20694
20695 if test "$llvm_cv_os_type" = "MingW" ; then
20696   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20697 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20698   cat >conftest.$ac_ext <<_ACEOF
20699
20700   /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705
20706     #include <windows.h>
20707     #include <imagehlp.h>
20708     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20709     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20710
20711
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_compile") 2>conftest.er1
20721   ac_status=$?
20722   grep -v '^ *+' conftest.er1 >conftest.err
20723   rm -f conftest.er1
20724   cat conftest.err >&5
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } &&
20727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728   { (case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_try") 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); }; } &&
20737          { ac_try='test -s conftest.$ac_objext'
20738   { (case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_try") 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; }; then
20747
20748   { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20750   llvm_cv_win32_elmcb_pcstr="PCSTR"
20751
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756
20757   { echo "$as_me:$LINENO: result: no" >&5
20758 echo "${ECHO_T}no" >&6; }
20759   llvm_cv_win32_elmcb_pcstr="PSTR"
20760
20761 fi
20762
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764
20765 cat >>confdefs.h <<_ACEOF
20766 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20767 _ACEOF
20768
20769 fi
20770
20771
20772
20773   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20774 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20775 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20776   echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778
20779     ac_ext=cpp
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20784
20785     cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h.  */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h.  */
20791 #include <math.h>
20792 int
20793 main ()
20794 {
20795 float f; isnan(f);
20796   ;
20797   return 0;
20798 }
20799 _ACEOF
20800 rm -f conftest.$ac_objext
20801 if { (ac_try="$ac_compile"
20802 case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_compile") 2>conftest.er1
20808   ac_status=$?
20809   grep -v '^ *+' conftest.er1 >conftest.err
20810   rm -f conftest.er1
20811   cat conftest.err >&5
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } &&
20814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20815   { (case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_try") 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; } &&
20824          { ac_try='test -s conftest.$ac_objext'
20825   { (case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_try") 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; }; then
20834   ac_cv_func_isnan_in_math_h=yes
20835 else
20836   echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839         ac_cv_func_isnan_in_math_h=no
20840 fi
20841
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843     ac_ext=c
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849
20850 fi
20851 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20852 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20853
20854
20855 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20856
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_ISNAN_IN_MATH_H 1
20859 _ACEOF
20860
20861 fi
20862
20863
20864   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20865 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20866 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869
20870     ac_ext=cpp
20871 ac_cpp='$CXXCPP $CPPFLAGS'
20872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20875
20876     cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h.  */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h.  */
20882 #include <cmath>
20883 int
20884 main ()
20885 {
20886 float f; isnan(f);
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_compile") 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } &&
20905          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20906   { (case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_try") 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); }; } &&
20915          { ac_try='test -s conftest.$ac_objext'
20916   { (case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_try") 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   ac_cv_func_isnan_in_cmath=yes
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         ac_cv_func_isnan_in_cmath=no
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934     ac_ext=c
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940
20941 fi
20942 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20943 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20944
20945 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_ISNAN_IN_CMATH 1
20949 _ACEOF
20950
20951 fi
20952
20953
20954   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20955 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20956 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20957   echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959
20960     ac_ext=cpp
20961 ac_cpp='$CXXCPP $CPPFLAGS'
20962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20965
20966     cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h.  */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h.  */
20972 #include <cmath>
20973 int
20974 main ()
20975 {
20976 float f; std::isnan(f);
20977   ;
20978   return 0;
20979 }
20980 _ACEOF
20981 rm -f conftest.$ac_objext
20982 if { (ac_try="$ac_compile"
20983 case "(($ac_try" in
20984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985   *) ac_try_echo=$ac_try;;
20986 esac
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988   (eval "$ac_compile") 2>conftest.er1
20989   ac_status=$?
20990   grep -v '^ *+' conftest.er1 >conftest.err
20991   rm -f conftest.er1
20992   cat conftest.err >&5
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); } &&
20995          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20996   { (case "(($ac_try" in
20997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998   *) ac_try_echo=$ac_try;;
20999 esac
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001   (eval "$ac_try") 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; } &&
21005          { ac_try='test -s conftest.$ac_objext'
21006   { (case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_try") 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; }; then
21015   ac_cv_func_std_isnan_in_cmath=yes
21016 else
21017   echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020         ac_cv_func_std_isnan_in_cmath=no
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024     ac_ext=c
21025 ac_cpp='$CPP $CPPFLAGS'
21026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21029
21030
21031 fi
21032 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21033 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21034
21035 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21036
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_STD_ISNAN_IN_CMATH 1
21039 _ACEOF
21040
21041 fi
21042
21043
21044
21045
21046   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051
21052     ac_ext=cpp
21053 ac_cpp='$CXXCPP $CPPFLAGS'
21054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21057
21058     cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h.  */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h.  */
21064 #include <math.h>
21065 int
21066 main ()
21067 {
21068 float f; isinf(f);
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_compile") 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } &&
21087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21088   { (case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093   (eval "$ac_try") 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; } &&
21097          { ac_try='test -s conftest.$ac_objext'
21098   { (case "(($ac_try" in
21099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100   *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103   (eval "$ac_try") 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; }; then
21107   ac_cv_func_isinf_in_math_h=yes
21108 else
21109   echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112         ac_cv_func_isinf_in_math_h=no
21113 fi
21114
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116     ac_ext=c
21117 ac_cpp='$CPP $CPPFLAGS'
21118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123 fi
21124 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21125 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21126
21127 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_ISINF_IN_MATH_H 1
21131 _ACEOF
21132
21133 fi
21134
21135
21136   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21137 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21138 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141
21142     ac_ext=cpp
21143 ac_cpp='$CXXCPP $CPPFLAGS'
21144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21147
21148     cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 #include <cmath>
21155 int
21156 main ()
21157 {
21158 float f; isinf(f);
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (ac_try="$ac_compile"
21165 case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170   (eval "$ac_compile") 2>conftest.er1
21171   ac_status=$?
21172   grep -v '^ *+' conftest.er1 >conftest.err
21173   rm -f conftest.er1
21174   cat conftest.err >&5
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); } &&
21177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21178   { (case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_try") 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; } &&
21187          { ac_try='test -s conftest.$ac_objext'
21188   { (case "(($ac_try" in
21189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190   *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193   (eval "$ac_try") 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   ac_cv_func_isinf_in_cmath=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202         ac_cv_func_isinf_in_cmath=no
21203 fi
21204
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206     ac_ext=c
21207 ac_cpp='$CPP $CPPFLAGS'
21208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21211
21212
21213 fi
21214 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21215 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21216
21217 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21218
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_ISINF_IN_CMATH 1
21221 _ACEOF
21222
21223 fi
21224
21225
21226   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21227 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21228 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21229   echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231
21232     ac_ext=cpp
21233 ac_cpp='$CXXCPP $CPPFLAGS'
21234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21237
21238     cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 #include <cmath>
21245 int
21246 main ()
21247 {
21248 float f; std::isinf(f);
21249   ;
21250   return 0;
21251 }
21252 _ACEOF
21253 rm -f conftest.$ac_objext
21254 if { (ac_try="$ac_compile"
21255 case "(($ac_try" in
21256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257   *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260   (eval "$ac_compile") 2>conftest.er1
21261   ac_status=$?
21262   grep -v '^ *+' conftest.er1 >conftest.err
21263   rm -f conftest.er1
21264   cat conftest.err >&5
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } &&
21267          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21268   { (case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_try") 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); }; } &&
21277          { ac_try='test -s conftest.$ac_objext'
21278   { (case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_try") 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; }; then
21287   ac_cv_func_std_isinf_in_cmath=yes
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292         ac_cv_func_std_isinf_in_cmath=no
21293 fi
21294
21295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296     ac_ext=c
21297 ac_cpp='$CPP $CPPFLAGS'
21298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21301
21302
21303 fi
21304 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21305 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21306
21307 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21308
21309 cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_STD_ISINF_IN_CMATH 1
21311 _ACEOF
21312
21313 fi
21314
21315
21316   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21317 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21318 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21319   echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321
21322     ac_ext=cpp
21323 ac_cpp='$CXXCPP $CPPFLAGS'
21324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21327
21328     cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 #include <ieeefp.h>
21335 int
21336 main ()
21337 {
21338 float f; finite(f);
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347   *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350   (eval "$ac_compile") 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } &&
21357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21358   { (case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363   (eval "$ac_try") 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; } &&
21367          { ac_try='test -s conftest.$ac_objext'
21368   { (case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_try") 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ac_cv_func_finite_in_ieeefp_h=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382         ac_cv_func_finite_in_ieeefp_h=no
21383 fi
21384
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386     ac_ext=c
21387 ac_cpp='$CPP $CPPFLAGS'
21388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21391
21392
21393 fi
21394 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21395 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21396
21397 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21398
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_FINITE_IN_IEEEFP_H 1
21401 _ACEOF
21402
21403 fi
21404
21405
21406
21407 if test "$llvm_cv_platform_type" = "Unix" ; then
21408
21409
21410 for ac_header in stdlib.h unistd.h
21411 do
21412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 fi
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420                { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21422 else
21423   # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 $ac_includes_default
21433 #include <$ac_header>
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450   { (case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_try") 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_header_compiler=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         ac_header_compiler=no
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21479 echo "${ECHO_T}$ac_header_compiler" >&6; }
21480
21481 # Is the header present?
21482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 #include <$ac_header>
21491 _ACEOF
21492 if { (ac_try="$ac_cpp conftest.$ac_ext"
21493 case "(($ac_try" in
21494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495   *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } >/dev/null; then
21505   if test -s conftest.err; then
21506     ac_cpp_err=$ac_c_preproc_warn_flag
21507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508   else
21509     ac_cpp_err=
21510   fi
21511 else
21512   ac_cpp_err=yes
21513 fi
21514 if test -z "$ac_cpp_err"; then
21515   ac_header_preproc=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520   ac_header_preproc=no
21521 fi
21522
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21526
21527 # So?  What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21529   yes:no: )
21530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21534     ac_header_preproc=yes
21535     ;;
21536   no:yes:* )
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21549     ( cat <<\_ASBOX
21550 ## ------------------------------------ ##
21551 ## Report this to http://llvm.org/bugs/ ##
21552 ## ------------------------------------ ##
21553 _ASBOX
21554      ) | sed "s/^/$as_me: WARNING:     /" >&2
21555     ;;
21556 esac
21557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21560   echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562   eval "$as_ac_Header=\$ac_header_preproc"
21563 fi
21564 ac_res=`eval echo '${'$as_ac_Header'}'`
21565                { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21567
21568 fi
21569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21570   cat >>confdefs.h <<_ACEOF
21571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21572 _ACEOF
21573
21574 fi
21575
21576 done
21577
21578
21579 for ac_func in getpagesize
21580 do
21581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21585   echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587   cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21595 #define $ac_func innocuous_$ac_func
21596
21597 /* System header to define __stub macros and hopefully few prototypes,
21598     which can conflict with char $ac_func (); below.
21599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21600     <limits.h> exists even on freestanding compilers.  */
21601
21602 #ifdef __STDC__
21603 # include <limits.h>
21604 #else
21605 # include <assert.h>
21606 #endif
21607
21608 #undef $ac_func
21609
21610 /* Override any GCC internal prototype to avoid an error.
21611    Use char because int might match the return type of a GCC
21612    builtin and then its argument prototype would still apply.  */
21613 #ifdef __cplusplus
21614 extern "C"
21615 #endif
21616 char $ac_func ();
21617 /* The GNU C library defines this for functions which it implements
21618     to always fail with ENOSYS.  Some functions are actually named
21619     something starting with __ and the normal name is an alias.  */
21620 #if defined __stub_$ac_func || defined __stub___$ac_func
21621 choke me
21622 #endif
21623
21624 int
21625 main ()
21626 {
21627 return $ac_func ();
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_link") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } &&
21646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21647   { (case "(($ac_try" in
21648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649   *) ac_try_echo=$ac_try;;
21650 esac
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652   (eval "$ac_try") 2>&5
21653   ac_status=$?
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); }; } &&
21656          { ac_try='test -s conftest$ac_exeext'
21657   { (case "(($ac_try" in
21658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659   *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662   (eval "$ac_try") 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; }; then
21666   eval "$as_ac_var=yes"
21667 else
21668   echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21670
21671         eval "$as_ac_var=no"
21672 fi
21673
21674 rm -f core conftest.err conftest.$ac_objext \
21675       conftest$ac_exeext conftest.$ac_ext
21676 fi
21677 ac_res=`eval echo '${'$as_ac_var'}'`
21678                { echo "$as_me:$LINENO: result: $ac_res" >&5
21679 echo "${ECHO_T}$ac_res" >&6; }
21680 if test `eval echo '${'$as_ac_var'}'` = yes; then
21681   cat >>confdefs.h <<_ACEOF
21682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21683 _ACEOF
21684
21685 fi
21686 done
21687
21688 { echo "$as_me:$LINENO: checking for working mmap" >&5
21689 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21690 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   if test "$cross_compiling" = yes; then
21694   ac_cv_func_mmap_fixed_mapped=no
21695 else
21696   cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 $ac_includes_default
21703 /* malloc might have been renamed as rpl_malloc. */
21704 #undef malloc
21705
21706 /* Thanks to Mike Haertel and Jim Avera for this test.
21707    Here is a matrix of mmap possibilities:
21708         mmap private not fixed
21709         mmap private fixed at somewhere currently unmapped
21710         mmap private fixed at somewhere already mapped
21711         mmap shared not fixed
21712         mmap shared fixed at somewhere currently unmapped
21713         mmap shared fixed at somewhere already mapped
21714    For private mappings, we should verify that changes cannot be read()
21715    back from the file, nor mmap's back from the file at a different
21716    address.  (There have been systems where private was not correctly
21717    implemented like the infamous i386 svr4.0, and systems where the
21718    VM page cache was not coherent with the file system buffer cache
21719    like early versions of FreeBSD and possibly contemporary NetBSD.)
21720    For shared mappings, we should conversely verify that changes get
21721    propagated back to all the places they're supposed to be.
21722
21723    Grep wants private fixed already mapped.
21724    The main things grep needs to know about mmap are:
21725    * does it exist and is it safe to write into the mmap'd area
21726    * how to use it (BSD variants)  */
21727
21728 #include <fcntl.h>
21729 #include <sys/mman.h>
21730
21731 #if !STDC_HEADERS && !HAVE_STDLIB_H
21732 char *malloc ();
21733 #endif
21734
21735 /* This mess was copied from the GNU getpagesize.h.  */
21736 #if !HAVE_GETPAGESIZE
21737 /* Assume that all systems that can run configure have sys/param.h.  */
21738 # if !HAVE_SYS_PARAM_H
21739 #  define HAVE_SYS_PARAM_H 1
21740 # endif
21741
21742 # ifdef _SC_PAGESIZE
21743 #  define getpagesize() sysconf(_SC_PAGESIZE)
21744 # else /* no _SC_PAGESIZE */
21745 #  if HAVE_SYS_PARAM_H
21746 #   include <sys/param.h>
21747 #   ifdef EXEC_PAGESIZE
21748 #    define getpagesize() EXEC_PAGESIZE
21749 #   else /* no EXEC_PAGESIZE */
21750 #    ifdef NBPG
21751 #     define getpagesize() NBPG * CLSIZE
21752 #     ifndef CLSIZE
21753 #      define CLSIZE 1
21754 #     endif /* no CLSIZE */
21755 #    else /* no NBPG */
21756 #     ifdef NBPC
21757 #      define getpagesize() NBPC
21758 #     else /* no NBPC */
21759 #      ifdef PAGESIZE
21760 #       define getpagesize() PAGESIZE
21761 #      endif /* PAGESIZE */
21762 #     endif /* no NBPC */
21763 #    endif /* no NBPG */
21764 #   endif /* no EXEC_PAGESIZE */
21765 #  else /* no HAVE_SYS_PARAM_H */
21766 #   define getpagesize() 8192   /* punt totally */
21767 #  endif /* no HAVE_SYS_PARAM_H */
21768 # endif /* no _SC_PAGESIZE */
21769
21770 #endif /* no HAVE_GETPAGESIZE */
21771
21772 int
21773 main ()
21774 {
21775   char *data, *data2, *data3;
21776   int i, pagesize;
21777   int fd;
21778
21779   pagesize = getpagesize ();
21780
21781   /* First, make a file with some known garbage in it. */
21782   data = (char *) malloc (pagesize);
21783   if (!data)
21784     return 1;
21785   for (i = 0; i < pagesize; ++i)
21786     *(data + i) = rand ();
21787   umask (0);
21788   fd = creat ("conftest.mmap", 0600);
21789   if (fd < 0)
21790     return 1;
21791   if (write (fd, data, pagesize) != pagesize)
21792     return 1;
21793   close (fd);
21794
21795   /* Next, try to mmap the file at a fixed address which already has
21796      something else allocated at it.  If we can, also make sure that
21797      we see the same garbage.  */
21798   fd = open ("conftest.mmap", O_RDWR);
21799   if (fd < 0)
21800     return 1;
21801   data2 = (char *) malloc (2 * pagesize);
21802   if (!data2)
21803     return 1;
21804   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21805   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21806                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21807     return 1;
21808   for (i = 0; i < pagesize; ++i)
21809     if (*(data + i) != *(data2 + i))
21810       return 1;
21811
21812   /* Finally, make sure that changes to the mapped area do not
21813      percolate back to the file as seen by read().  (This is a bug on
21814      some variants of i386 svr4.0.)  */
21815   for (i = 0; i < pagesize; ++i)
21816     *(data2 + i) = *(data2 + i) + 1;
21817   data3 = (char *) malloc (pagesize);
21818   if (!data3)
21819     return 1;
21820   if (read (fd, data3, pagesize) != pagesize)
21821     return 1;
21822   for (i = 0; i < pagesize; ++i)
21823     if (*(data + i) != *(data3 + i))
21824       return 1;
21825   close (fd);
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest$ac_exeext
21830 if { (ac_try="$ac_link"
21831 case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836   (eval "$ac_link") 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21840   { (case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_try") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; }; then
21849   ac_cv_func_mmap_fixed_mapped=yes
21850 else
21851   echo "$as_me: program exited with status $ac_status" >&5
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ( exit $ac_status )
21856 ac_cv_func_mmap_fixed_mapped=no
21857 fi
21858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21859 fi
21860
21861
21862 fi
21863 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21864 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21865 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21866
21867 cat >>confdefs.h <<\_ACEOF
21868 #define HAVE_MMAP 1
21869 _ACEOF
21870
21871 fi
21872 rm -f conftest.mmap
21873
21874   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21875 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21876 if test "${ac_cv_func_mmap_file+set}" = set; then
21877   echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879    ac_ext=c
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21884
21885   if test "$cross_compiling" = yes; then
21886   ac_cv_func_mmap_file=no
21887 else
21888   cat >conftest.$ac_ext <<_ACEOF
21889
21890     /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895
21896 #include <sys/types.h>
21897 #include <sys/mman.h>
21898 #include <fcntl.h>
21899
21900 int
21901 main ()
21902 {
21903
21904   int fd;
21905   fd = creat ("foo",0777);
21906   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21907   unlink ("foo");
21908   return (fd != (int) MAP_FAILED);
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest$ac_exeext
21914 if { (ac_try="$ac_link"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_link") 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924   { (case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929   (eval "$ac_try") 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); }; }; then
21933   ac_cv_func_mmap_file=yes
21934 else
21935   echo "$as_me: program exited with status $ac_status" >&5
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939 ( exit $ac_status )
21940 ac_cv_func_mmap_file=no
21941 fi
21942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21943 fi
21944
21945
21946   ac_ext=c
21947 ac_cpp='$CPP $CPPFLAGS'
21948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21951
21952
21953 fi
21954 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21955 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21956 if test "$ac_cv_func_mmap_file" = yes; then
21957
21958 cat >>confdefs.h <<\_ACEOF
21959 #define HAVE_MMAP_FILE
21960 _ACEOF
21961
21962    MMAP_FILE=yes
21963
21964 fi
21965
21966   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21967 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21968 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   if test "$llvm_cv_os_type" = "Interix" ; then
21972    ac_cv_need_dev_zero_for_mmap=yes
21973  else
21974    ac_cv_need_dev_zero_for_mmap=no
21975  fi
21976
21977 fi
21978 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21979 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21980 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21981
21982 cat >>confdefs.h <<\_ACEOF
21983 #define NEED_DEV_ZERO_FOR_MMAP 1
21984 _ACEOF
21985
21986 fi
21987
21988   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21989   then
21990     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21991 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21992   fi
21993   if test "$ac_cv_func_mmap_file" = "no"
21994   then
21995     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21996 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21997   fi
21998 fi
21999
22000 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22001 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22002 ac_ext=cpp
22003 ac_cpp='$CXXCPP $CPPFLAGS'
22004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22007
22008 cat >conftest.$ac_ext <<_ACEOF
22009
22010   /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015
22016     int main() {
22017       volatile unsigned long val = 1;
22018       __sync_synchronize();
22019       __sync_val_compare_and_swap(&val, 1, 0);
22020       __sync_add_and_fetch(&val, 1);
22021       __sync_sub_and_fetch(&val, 1);
22022       return 0;
22023     }
22024
22025
22026 _ACEOF
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034   (eval "$ac_link") 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22042   { (case "(($ac_try" in
22043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044   *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047   (eval "$ac_try") 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; } &&
22051          { ac_try='test -s conftest$ac_exeext'
22052   { (case "(($ac_try" in
22053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054   *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057   (eval "$ac_try") 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; }; then
22061
22062   { echo "$as_me:$LINENO: result: yes" >&5
22063 echo "${ECHO_T}yes" >&6; }
22064
22065 cat >>confdefs.h <<\_ACEOF
22066 #define LLVM_HAS_ATOMICS 1
22067 _ACEOF
22068
22069
22070 else
22071   echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074
22075   { echo "$as_me:$LINENO: result: no" >&5
22076 echo "${ECHO_T}no" >&6; }
22077
22078 cat >>confdefs.h <<\_ACEOF
22079 #define LLVM_HAS_ATOMICS 0
22080 _ACEOF
22081
22082   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22083 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22084
22085 fi
22086
22087 rm -f core conftest.err conftest.$ac_objext \
22088       conftest$ac_exeext conftest.$ac_ext
22089 ac_ext=c
22090 ac_cpp='$CPP $CPPFLAGS'
22091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22094
22095
22096
22097 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22098   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22099 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22100 if test "${llvm_cv_linux_mixed+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103    ac_ext=c
22104 ac_cpp='$CPP $CPPFLAGS'
22105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22108
22109   cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 #ifndef __x86_64__
22116        error: Not x86-64 even if uname says so!
22117       #endif
22118
22119 int
22120 main ()
22121 {
22122
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_compile") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } &&
22141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142   { (case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_try") 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; } &&
22151          { ac_try='test -s conftest.$ac_objext'
22152   { (case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_try") 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }; then
22161   llvm_cv_linux_mixed=no
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         llvm_cv_linux_mixed=yes
22167 fi
22168
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170   ac_ext=c
22171 ac_cpp='$CPP $CPPFLAGS'
22172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22175
22176
22177 fi
22178 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22179 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22180
22181   if test "$llvm_cv_linux_mixed" = "yes"; then
22182     llvm_cv_target_arch="x86"
22183     ARCH="x86"
22184   fi
22185 fi
22186
22187
22188 for ac_func in __dso_handle
22189 do
22190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22194   echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196   cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h.  */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h.  */
22202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22204 #define $ac_func innocuous_$ac_func
22205
22206 /* System header to define __stub macros and hopefully few prototypes,
22207     which can conflict with char $ac_func (); below.
22208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209     <limits.h> exists even on freestanding compilers.  */
22210
22211 #ifdef __STDC__
22212 # include <limits.h>
22213 #else
22214 # include <assert.h>
22215 #endif
22216
22217 #undef $ac_func
22218
22219 /* Override any GCC internal prototype to avoid an error.
22220    Use char because int might match the return type of a GCC
22221    builtin and then its argument prototype would still apply.  */
22222 #ifdef __cplusplus
22223 extern "C"
22224 #endif
22225 char $ac_func ();
22226 /* The GNU C library defines this for functions which it implements
22227     to always fail with ENOSYS.  Some functions are actually named
22228     something starting with __ and the normal name is an alias.  */
22229 #if defined __stub_$ac_func || defined __stub___$ac_func
22230 choke me
22231 #endif
22232
22233 int
22234 main ()
22235 {
22236 return $ac_func ();
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245   *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248   (eval "$ac_link") 2>conftest.er1
22249   ac_status=$?
22250   grep -v '^ *+' conftest.er1 >conftest.err
22251   rm -f conftest.er1
22252   cat conftest.err >&5
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); } &&
22255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22256   { (case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261   (eval "$ac_try") 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; } &&
22265          { ac_try='test -s conftest$ac_exeext'
22266   { (case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271   (eval "$ac_try") 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }; then
22275   eval "$as_ac_var=yes"
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280         eval "$as_ac_var=no"
22281 fi
22282
22283 rm -f core conftest.err conftest.$ac_objext \
22284       conftest$ac_exeext conftest.$ac_ext
22285 fi
22286 ac_res=`eval echo '${'$as_ac_var'}'`
22287                { echo "$as_me:$LINENO: result: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 if test `eval echo '${'$as_ac_var'}'` = yes; then
22290   cat >>confdefs.h <<_ACEOF
22291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 _ACEOF
22293
22294 fi
22295 done
22296
22297
22298 SHLIBEXT=$libltdl_cv_shlibext
22299
22300
22301 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22302
22303
22304 if test "${prefix}" = "NONE" ; then
22305   prefix="/usr/local"
22306 fi
22307 eval LLVM_PREFIX="${prefix}";
22308 eval LLVM_BINDIR="${prefix}/bin";
22309 eval LLVM_LIBDIR="${prefix}/lib";
22310 eval LLVM_DATADIR="${prefix}/share/llvm";
22311 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22312 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22313 eval LLVM_INCLUDEDIR="${prefix}/include";
22314 eval LLVM_INFODIR="${prefix}/info";
22315 eval LLVM_MANDIR="${prefix}/man";
22316 LLVM_CONFIGTIME=`date`
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22329   LLVM_CONFIGTIME="(timestamp not enabled)"
22330 fi
22331
22332
22333 cat >>confdefs.h <<_ACEOF
22334 #define LLVM_PREFIX "$LLVM_PREFIX"
22335 _ACEOF
22336
22337
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_BINDIR "$LLVM_BINDIR"
22340 _ACEOF
22341
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22345 _ACEOF
22346
22347
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_DATADIR "$LLVM_DATADIR"
22350 _ACEOF
22351
22352
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22355 _ACEOF
22356
22357
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22360 _ACEOF
22361
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22365 _ACEOF
22366
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_INFODIR "$LLVM_INFODIR"
22370 _ACEOF
22371
22372
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_MANDIR "$LLVM_MANDIR"
22375 _ACEOF
22376
22377
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22380 _ACEOF
22381
22382
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_HOST_TRIPLE "$host"
22385 _ACEOF
22386
22387
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22390 _ACEOF
22391
22392
22393 if test "$BINDINGS_TO_BUILD" = auto ; then
22394   BINDINGS_TO_BUILD=""
22395   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22396     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22397   fi
22398 fi
22399 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22400
22401
22402 ALL_BINDINGS=ocaml
22403
22404
22405 binding_prereqs_failed=0
22406 for a_binding in $BINDINGS_TO_BUILD ; do
22407   case "$a_binding" in
22408   ocaml)
22409     if test "x$OCAMLC" = x ; then
22410       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22411 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22412       binding_prereqs_failed=1
22413     fi
22414     if test "x$OCAMLDEP" = x ; then
22415       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22416 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22417       binding_prereqs_failed=1
22418     fi
22419     if test "x$OCAMLOPT" = x ; then
22420       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22421 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22422           fi
22423     if test "x$with_ocaml_libdir" != xauto ; then
22424       OCAML_LIBDIR=$with_ocaml_libdir
22425
22426     else
22427       ocaml_stdlib="`"$OCAMLC" -where`"
22428       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22429       then
22430         # ocaml stdlib is beneath our prefix; use stdlib
22431         OCAML_LIBDIR=$ocaml_stdlib
22432
22433       else
22434         # ocaml stdlib is outside our prefix; use libdir/ocaml
22435         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22436
22437       fi
22438     fi
22439     ;;
22440   esac
22441 done
22442 if test "$binding_prereqs_failed" = 1 ; then
22443   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22444 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22445    { (exit 1); exit 1; }; }
22446 fi
22447
22448 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22449 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22450 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453    ac_ext=cpp
22454 ac_cpp='$CXXCPP $CPPFLAGS'
22455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22458
22459   oldcxxflags="$CXXFLAGS"
22460   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22468 int
22469 main ()
22470 {
22471 X<int>().f();
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483   (eval "$ac_compile") 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } &&
22490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22491   { (case "(($ac_try" in
22492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493   *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496   (eval "$ac_try") 2>&5
22497   ac_status=$?
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); }; } &&
22500          { ac_try='test -s conftest.$ac_objext'
22501   { (case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_try") 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; }; then
22510   llvm_cv_cxx_visibility_inlines_hidden=yes
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515         llvm_cv_cxx_visibility_inlines_hidden=no
22516 fi
22517
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519   CXXFLAGS="$oldcxxflags"
22520   ac_ext=c
22521 ac_cpp='$CPP $CPPFLAGS'
22522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22525
22526
22527 fi
22528 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22529 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22530 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22531   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22532
22533 else
22534   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22535
22536 fi
22537
22538
22539 if test "$llvm_cv_link_use_r" = "yes" ; then
22540   RPATH="-Wl,-R"
22541 else
22542   RPATH="-Wl,-rpath"
22543 fi
22544
22545
22546 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22547   RDYNAMIC="-Wl,-export-dynamic"
22548 else
22549   RDYNAMIC=""
22550 fi
22551
22552
22553
22554 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22555
22556
22557
22558
22559
22560
22561 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22562
22563 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22564
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22566
22567 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22568
22569 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22570
22571
22572 ac_config_files="$ac_config_files Makefile.config"
22573
22574
22575 ac_config_files="$ac_config_files llvm.spec"
22576
22577
22578 ac_config_files="$ac_config_files docs/doxygen.cfg"
22579
22580
22581 if test "${clang_src_root}" = ""; then
22582   clang_src_root="$srcdir/tools/clang"
22583 fi
22584 if test -f ${clang_src_root}/README.txt; then
22585     configh="include/clang/Config/config.h"
22586   doxy="docs/doxygen.cfg"
22587   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22588
22589   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22590
22591 fi
22592
22593 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22594
22595
22596 test "x$program_prefix" = "xNONE" && program_prefix=""
22597
22598
22599
22600 ac_config_commands="$ac_config_commands setup"
22601
22602 ac_config_commands="$ac_config_commands Makefile"
22603
22604
22605 ac_config_commands="$ac_config_commands Makefile.common"
22606
22607
22608 ac_config_commands="$ac_config_commands examples/Makefile"
22609
22610
22611 ac_config_commands="$ac_config_commands lib/Makefile"
22612
22613
22614 ac_config_commands="$ac_config_commands runtime/Makefile"
22615
22616
22617 ac_config_commands="$ac_config_commands test/Makefile"
22618
22619
22620 ac_config_commands="$ac_config_commands test/Makefile.tests"
22621
22622
22623 ac_config_commands="$ac_config_commands unittests/Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands tools/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands utils/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands projects/Makefile"
22633
22634
22635 ac_config_commands="$ac_config_commands bindings/Makefile"
22636
22637
22638 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22639
22640
22641
22642 cat >confcache <<\_ACEOF
22643 # This file is a shell script that caches the results of configure
22644 # tests run on this system so they can be shared between configure
22645 # scripts and configure runs, see configure's option --config-cache.
22646 # It is not useful on other systems.  If it contains results you don't
22647 # want to keep, you may remove or edit it.
22648 #
22649 # config.status only pays attention to the cache file if you give it
22650 # the --recheck option to rerun configure.
22651 #
22652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22654 # following values.
22655
22656 _ACEOF
22657
22658 # The following way of writing the cache mishandles newlines in values,
22659 # but we know of no workaround that is simple, portable, and efficient.
22660 # So, we kill variables containing newlines.
22661 # Ultrix sh set writes to stderr and can't be redirected directly,
22662 # and sets the high bit in the cache file unless we assign to the vars.
22663 (
22664   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22665     eval ac_val=\$$ac_var
22666     case $ac_val in #(
22667     *${as_nl}*)
22668       case $ac_var in #(
22669       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22671       esac
22672       case $ac_var in #(
22673       _ | IFS | as_nl) ;; #(
22674       *) $as_unset $ac_var ;;
22675       esac ;;
22676     esac
22677   done
22678
22679   (set) 2>&1 |
22680     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22681     *${as_nl}ac_space=\ *)
22682       # `set' does not quote correctly, so add quotes (double-quote
22683       # substitution turns \\\\ into \\, and sed turns \\ into \).
22684       sed -n \
22685         "s/'/'\\\\''/g;
22686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22687       ;; #(
22688     *)
22689       # `set' quotes correctly as required by POSIX, so do not add quotes.
22690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22691       ;;
22692     esac |
22693     sort
22694 ) |
22695   sed '
22696      /^ac_cv_env_/b end
22697      t clear
22698      :clear
22699      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22700      t end
22701      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22702      :end' >>confcache
22703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22704   if test -w "$cache_file"; then
22705     test "x$cache_file" != "x/dev/null" &&
22706       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22707 echo "$as_me: updating cache $cache_file" >&6;}
22708     cat confcache >$cache_file
22709   else
22710     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22711 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22712   fi
22713 fi
22714 rm -f confcache
22715
22716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22717 # Let make expand exec_prefix.
22718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22719
22720 DEFS=-DHAVE_CONFIG_H
22721
22722 ac_libobjs=
22723 ac_ltlibobjs=
22724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22725   # 1. Remove the extension, and $U if already installed.
22726   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22727   ac_i=`echo "$ac_i" | sed "$ac_script"`
22728   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22729   #    will be set to the directory where LIBOBJS objects are built.
22730   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22731   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22732 done
22733 LIBOBJS=$ac_libobjs
22734
22735 LTLIBOBJS=$ac_ltlibobjs
22736
22737
22738 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22739   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22740 Usually this means the macro was only invoked conditionally." >&5
22741 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22742 Usually this means the macro was only invoked conditionally." >&2;}
22743    { (exit 1); exit 1; }; }
22744 fi
22745 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22746   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22747 Usually this means the macro was only invoked conditionally." >&5
22748 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&2;}
22750    { (exit 1); exit 1; }; }
22751 fi
22752
22753 : ${CONFIG_STATUS=./config.status}
22754 ac_clean_files_save=$ac_clean_files
22755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22758 cat >$CONFIG_STATUS <<_ACEOF
22759 #! $SHELL
22760 # Generated by $as_me.
22761 # Run this file to recreate the current configuration.
22762 # Compiler output produced by configure, useful for debugging
22763 # configure, is in config.log if it exists.
22764
22765 debug=false
22766 ac_cs_recheck=false
22767 ac_cs_silent=false
22768 SHELL=\${CONFIG_SHELL-$SHELL}
22769 _ACEOF
22770
22771 cat >>$CONFIG_STATUS <<\_ACEOF
22772 ## --------------------- ##
22773 ## M4sh Initialization.  ##
22774 ## --------------------- ##
22775
22776 # Be Bourne compatible
22777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22778   emulate sh
22779   NULLCMD=:
22780   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22781   # is contrary to our usage.  Disable this feature.
22782   alias -g '${1+"$@"}'='"$@"'
22783   setopt NO_GLOB_SUBST
22784 else
22785   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22786 fi
22787 BIN_SH=xpg4; export BIN_SH # for Tru64
22788 DUALCASE=1; export DUALCASE # for MKS sh
22789
22790
22791 # PATH needs CR
22792 # Avoid depending upon Character Ranges.
22793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22796 as_cr_digits='0123456789'
22797 as_cr_alnum=$as_cr_Letters$as_cr_digits
22798
22799 # The user is always right.
22800 if test "${PATH_SEPARATOR+set}" != set; then
22801   echo "#! /bin/sh" >conf$$.sh
22802   echo  "exit 0"   >>conf$$.sh
22803   chmod +x conf$$.sh
22804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22805     PATH_SEPARATOR=';'
22806   else
22807     PATH_SEPARATOR=:
22808   fi
22809   rm -f conf$$.sh
22810 fi
22811
22812 # Support unset when possible.
22813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22814   as_unset=unset
22815 else
22816   as_unset=false
22817 fi
22818
22819
22820 # IFS
22821 # We need space, tab and new line, in precisely that order.  Quoting is
22822 # there to prevent editors from complaining about space-tab.
22823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22824 # splitting by setting IFS to empty value.)
22825 as_nl='
22826 '
22827 IFS=" ""        $as_nl"
22828
22829 # Find who we are.  Look in the path if we contain no directory separator.
22830 case $0 in
22831   *[\\/]* ) as_myself=$0 ;;
22832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22833 for as_dir in $PATH
22834 do
22835   IFS=$as_save_IFS
22836   test -z "$as_dir" && as_dir=.
22837   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22838 done
22839 IFS=$as_save_IFS
22840
22841      ;;
22842 esac
22843 # We did not find ourselves, most probably we were run as `sh COMMAND'
22844 # in which case we are not to be found in the path.
22845 if test "x$as_myself" = x; then
22846   as_myself=$0
22847 fi
22848 if test ! -f "$as_myself"; then
22849   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22850   { (exit 1); exit 1; }
22851 fi
22852
22853 # Work around bugs in pre-3.0 UWIN ksh.
22854 for as_var in ENV MAIL MAILPATH
22855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22856 done
22857 PS1='$ '
22858 PS2='> '
22859 PS4='+ '
22860
22861 # NLS nuisances.
22862 for as_var in \
22863   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22864   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22865   LC_TELEPHONE LC_TIME
22866 do
22867   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22868     eval $as_var=C; export $as_var
22869   else
22870     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22871   fi
22872 done
22873
22874 # Required to use basename.
22875 if expr a : '\(a\)' >/dev/null 2>&1 &&
22876    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22877   as_expr=expr
22878 else
22879   as_expr=false
22880 fi
22881
22882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22883   as_basename=basename
22884 else
22885   as_basename=false
22886 fi
22887
22888
22889 # Name of the executable.
22890 as_me=`$as_basename -- "$0" ||
22891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22892          X"$0" : 'X\(//\)$' \| \
22893          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22894 echo X/"$0" |
22895     sed '/^.*\/\([^/][^/]*\)\/*$/{
22896             s//\1/
22897             q
22898           }
22899           /^X\/\(\/\/\)$/{
22900             s//\1/
22901             q
22902           }
22903           /^X\/\(\/\).*/{
22904             s//\1/
22905             q
22906           }
22907           s/.*/./; q'`
22908
22909 # CDPATH.
22910 $as_unset CDPATH
22911
22912
22913
22914   as_lineno_1=$LINENO
22915   as_lineno_2=$LINENO
22916   test "x$as_lineno_1" != "x$as_lineno_2" &&
22917   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22918
22919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22920   # uniformly replaced by the line number.  The first 'sed' inserts a
22921   # line-number line after each line using $LINENO; the second 'sed'
22922   # does the real work.  The second script uses 'N' to pair each
22923   # line-number line with the line containing $LINENO, and appends
22924   # trailing '-' during substitution so that $LINENO is not a special
22925   # case at line end.
22926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22927   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22928   # E. McMahon (1931-1989) for sed's syntax.  :-)
22929   sed -n '
22930     p
22931     /[$]LINENO/=
22932   ' <$as_myself |
22933     sed '
22934       s/[$]LINENO.*/&-/
22935       t lineno
22936       b
22937       :lineno
22938       N
22939       :loop
22940       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22941       t loop
22942       s/-\n.*//
22943     ' >$as_me.lineno &&
22944   chmod +x "$as_me.lineno" ||
22945     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22946    { (exit 1); exit 1; }; }
22947
22948   # Don't try to exec as it changes $[0], causing all sort of problems
22949   # (the dirname of $[0] is not the place where we might find the
22950   # original and so on.  Autoconf is especially sensitive to this).
22951   . "./$as_me.lineno"
22952   # Exit status is that of the last command.
22953   exit
22954 }
22955
22956
22957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22958   as_dirname=dirname
22959 else
22960   as_dirname=false
22961 fi
22962
22963 ECHO_C= ECHO_N= ECHO_T=
22964 case `echo -n x` in
22965 -n*)
22966   case `echo 'x\c'` in
22967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22968   *)   ECHO_C='\c';;
22969   esac;;
22970 *)
22971   ECHO_N='-n';;
22972 esac
22973
22974 if expr a : '\(a\)' >/dev/null 2>&1 &&
22975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22976   as_expr=expr
22977 else
22978   as_expr=false
22979 fi
22980
22981 rm -f conf$$ conf$$.exe conf$$.file
22982 if test -d conf$$.dir; then
22983   rm -f conf$$.dir/conf$$.file
22984 else
22985   rm -f conf$$.dir
22986   mkdir conf$$.dir
22987 fi
22988 echo >conf$$.file
22989 if ln -s conf$$.file conf$$ 2>/dev/null; then
22990   as_ln_s='ln -s'
22991   # ... but there are two gotchas:
22992   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22993   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22994   # In both cases, we have to default to `cp -p'.
22995   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22996     as_ln_s='cp -p'
22997 elif ln conf$$.file conf$$ 2>/dev/null; then
22998   as_ln_s=ln
22999 else
23000   as_ln_s='cp -p'
23001 fi
23002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23003 rmdir conf$$.dir 2>/dev/null
23004
23005 if mkdir -p . 2>/dev/null; then
23006   as_mkdir_p=:
23007 else
23008   test -d ./-p && rmdir ./-p
23009   as_mkdir_p=false
23010 fi
23011
23012 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23013 # systems may use methods other than mode bits to determine executability.
23014 cat >conf$$.file <<_ASEOF
23015 #! /bin/sh
23016 exit 0
23017 _ASEOF
23018 chmod +x conf$$.file
23019 if test -x conf$$.file >/dev/null 2>&1; then
23020   as_executable_p="test -x"
23021 else
23022   as_executable_p=:
23023 fi
23024 rm -f conf$$.file
23025
23026 # Sed expression to map a string onto a valid CPP name.
23027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23028
23029 # Sed expression to map a string onto a valid variable name.
23030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23031
23032
23033 exec 6>&1
23034
23035 # Save the log message, to keep $[0] and so on meaningful, and to
23036 # report actual input values of CONFIG_FILES etc. instead of their
23037 # values after options handling.
23038 ac_log="
23039 This file was extended by LLVM $as_me 3.3svn, which was
23040 generated by GNU Autoconf 2.60.  Invocation command line was
23041
23042   CONFIG_FILES    = $CONFIG_FILES
23043   CONFIG_HEADERS  = $CONFIG_HEADERS
23044   CONFIG_LINKS    = $CONFIG_LINKS
23045   CONFIG_COMMANDS = $CONFIG_COMMANDS
23046   $ $0 $@
23047
23048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23049 "
23050
23051 _ACEOF
23052
23053 cat >>$CONFIG_STATUS <<_ACEOF
23054 # Files that config.status was made for.
23055 config_files="$ac_config_files"
23056 config_headers="$ac_config_headers"
23057 config_commands="$ac_config_commands"
23058
23059 _ACEOF
23060
23061 cat >>$CONFIG_STATUS <<\_ACEOF
23062 ac_cs_usage="\
23063 \`$as_me' instantiates files from templates according to the
23064 current configuration.
23065
23066 Usage: $0 [OPTIONS] [FILE]...
23067
23068   -h, --help       print this help, then exit
23069   -V, --version    print version number, then exit
23070   -q, --quiet      do not print progress messages
23071   -d, --debug      don't remove temporary files
23072       --recheck    update $as_me by reconfiguring in the same conditions
23073   --file=FILE[:TEMPLATE]
23074                    instantiate the configuration file FILE
23075   --header=FILE[:TEMPLATE]
23076                    instantiate the configuration header FILE
23077
23078 Configuration files:
23079 $config_files
23080
23081 Configuration headers:
23082 $config_headers
23083
23084 Configuration commands:
23085 $config_commands
23086
23087 Report bugs to <bug-autoconf@gnu.org>."
23088
23089 _ACEOF
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 ac_cs_version="\\
23092 LLVM config.status 3.3svn
23093 configured by $0, generated by GNU Autoconf 2.60,
23094   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23095
23096 Copyright (C) 2006 Free Software Foundation, Inc.
23097 This config.status script is free software; the Free Software Foundation
23098 gives unlimited permission to copy, distribute and modify it."
23099
23100 ac_pwd='$ac_pwd'
23101 srcdir='$srcdir'
23102 INSTALL='$INSTALL'
23103 _ACEOF
23104
23105 cat >>$CONFIG_STATUS <<\_ACEOF
23106 # If no file are specified by the user, then we need to provide default
23107 # value.  By we need to know if files were specified by the user.
23108 ac_need_defaults=:
23109 while test $# != 0
23110 do
23111   case $1 in
23112   --*=*)
23113     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23114     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23115     ac_shift=:
23116     ;;
23117   *)
23118     ac_option=$1
23119     ac_optarg=$2
23120     ac_shift=shift
23121     ;;
23122   esac
23123
23124   case $ac_option in
23125   # Handling of the options.
23126   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23127     ac_cs_recheck=: ;;
23128   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23129     echo "$ac_cs_version"; exit ;;
23130   --debug | --debu | --deb | --de | --d | -d )
23131     debug=: ;;
23132   --file | --fil | --fi | --f )
23133     $ac_shift
23134     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23135     ac_need_defaults=false;;
23136   --header | --heade | --head | --hea )
23137     $ac_shift
23138     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23139     ac_need_defaults=false;;
23140   --he | --h)
23141     # Conflict between --help and --header
23142     { echo "$as_me: error: ambiguous option: $1
23143 Try \`$0 --help' for more information." >&2
23144    { (exit 1); exit 1; }; };;
23145   --help | --hel | -h )
23146     echo "$ac_cs_usage"; exit ;;
23147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23149     ac_cs_silent=: ;;
23150
23151   # This is an error.
23152   -*) { echo "$as_me: error: unrecognized option: $1
23153 Try \`$0 --help' for more information." >&2
23154    { (exit 1); exit 1; }; } ;;
23155
23156   *) ac_config_targets="$ac_config_targets $1"
23157      ac_need_defaults=false ;;
23158
23159   esac
23160   shift
23161 done
23162
23163 ac_configure_extra_args=
23164
23165 if $ac_cs_silent; then
23166   exec 6>/dev/null
23167   ac_configure_extra_args="$ac_configure_extra_args --silent"
23168 fi
23169
23170 _ACEOF
23171 cat >>$CONFIG_STATUS <<_ACEOF
23172 if \$ac_cs_recheck; then
23173   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23174   CONFIG_SHELL=$SHELL
23175   export CONFIG_SHELL
23176   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23177 fi
23178
23179 _ACEOF
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23181 exec 5>>config.log
23182 {
23183   echo
23184   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23185 ## Running $as_me. ##
23186 _ASBOX
23187   echo "$ac_log"
23188 } >&5
23189
23190 _ACEOF
23191 cat >>$CONFIG_STATUS <<_ACEOF
23192 #
23193 # INIT-COMMANDS
23194 #
23195 llvm_src="${srcdir}"
23196
23197 _ACEOF
23198
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23200
23201 # Handling of arguments.
23202 for ac_config_target in $ac_config_targets
23203 do
23204   case $ac_config_target in
23205     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23206     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23207     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23208     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23209     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23210     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23211     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23212     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23213     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23214     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23215     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23216     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23217     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23218     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23219     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23220     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23221     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23222     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23223     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23224     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23225     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23226     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23227     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23228     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23229     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23230     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23231     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23232
23233   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23235    { (exit 1); exit 1; }; };;
23236   esac
23237 done
23238
23239
23240 # If the user did not use the arguments to specify the items to instantiate,
23241 # then the envvar interface is used.  Set only those that are not.
23242 # We use the long form for the default assignment because of an extremely
23243 # bizarre bug on SunOS 4.1.3.
23244 if $ac_need_defaults; then
23245   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23246   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23247   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23248 fi
23249
23250 # Have a temporary directory for convenience.  Make it in the build tree
23251 # simply because there is no reason against having it here, and in addition,
23252 # creating and moving files from /tmp can sometimes cause problems.
23253 # Hook for its removal unless debugging.
23254 # Note that there is a small window in which the directory will not be cleaned:
23255 # after its creation but before its name has been assigned to `$tmp'.
23256 $debug ||
23257 {
23258   tmp=
23259   trap 'exit_status=$?
23260   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23261 ' 0
23262   trap '{ (exit 1); exit 1; }' 1 2 13 15
23263 }
23264 # Create a (secure) tmp directory for tmp files.
23265
23266 {
23267   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23268   test -n "$tmp" && test -d "$tmp"
23269 }  ||
23270 {
23271   tmp=./conf$$-$RANDOM
23272   (umask 077 && mkdir "$tmp")
23273 } ||
23274 {
23275    echo "$me: cannot create a temporary directory in ." >&2
23276    { (exit 1); exit 1; }
23277 }
23278
23279 #
23280 # Set up the sed scripts for CONFIG_FILES section.
23281 #
23282
23283 # No need to generate the scripts if there are no CONFIG_FILES.
23284 # This happens for instance when ./config.status config.h
23285 if test -n "$CONFIG_FILES"; then
23286
23287 _ACEOF
23288
23289
23290
23291 ac_delim='%!_!# '
23292 for ac_last_try in false false false false false :; do
23293   cat >conf$$subs.sed <<_ACEOF
23294 SHELL!$SHELL$ac_delim
23295 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23296 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23297 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23298 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23299 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23300 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23301 exec_prefix!$exec_prefix$ac_delim
23302 prefix!$prefix$ac_delim
23303 program_transform_name!$program_transform_name$ac_delim
23304 bindir!$bindir$ac_delim
23305 sbindir!$sbindir$ac_delim
23306 libexecdir!$libexecdir$ac_delim
23307 datarootdir!$datarootdir$ac_delim
23308 datadir!$datadir$ac_delim
23309 sysconfdir!$sysconfdir$ac_delim
23310 sharedstatedir!$sharedstatedir$ac_delim
23311 localstatedir!$localstatedir$ac_delim
23312 includedir!$includedir$ac_delim
23313 oldincludedir!$oldincludedir$ac_delim
23314 docdir!$docdir$ac_delim
23315 infodir!$infodir$ac_delim
23316 htmldir!$htmldir$ac_delim
23317 dvidir!$dvidir$ac_delim
23318 pdfdir!$pdfdir$ac_delim
23319 psdir!$psdir$ac_delim
23320 libdir!$libdir$ac_delim
23321 localedir!$localedir$ac_delim
23322 mandir!$mandir$ac_delim
23323 DEFS!$DEFS$ac_delim
23324 ECHO_C!$ECHO_C$ac_delim
23325 ECHO_N!$ECHO_N$ac_delim
23326 ECHO_T!$ECHO_T$ac_delim
23327 LIBS!$LIBS$ac_delim
23328 build_alias!$build_alias$ac_delim
23329 host_alias!$host_alias$ac_delim
23330 target_alias!$target_alias$ac_delim
23331 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23332 CC!$CC$ac_delim
23333 CFLAGS!$CFLAGS$ac_delim
23334 LDFLAGS!$LDFLAGS$ac_delim
23335 CPPFLAGS!$CPPFLAGS$ac_delim
23336 ac_ct_CC!$ac_ct_CC$ac_delim
23337 EXEEXT!$EXEEXT$ac_delim
23338 OBJEXT!$OBJEXT$ac_delim
23339 CXX!$CXX$ac_delim
23340 CXXFLAGS!$CXXFLAGS$ac_delim
23341 ac_ct_CXX!$ac_ct_CXX$ac_delim
23342 CPP!$CPP$ac_delim
23343 subdirs!$subdirs$ac_delim
23344 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23345 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23346 build!$build$ac_delim
23347 build_cpu!$build_cpu$ac_delim
23348 build_vendor!$build_vendor$ac_delim
23349 build_os!$build_os$ac_delim
23350 host!$host$ac_delim
23351 host_cpu!$host_cpu$ac_delim
23352 host_vendor!$host_vendor$ac_delim
23353 host_os!$host_os$ac_delim
23354 target!$target$ac_delim
23355 target_cpu!$target_cpu$ac_delim
23356 target_vendor!$target_vendor$ac_delim
23357 target_os!$target_os$ac_delim
23358 OS!$OS$ac_delim
23359 HOST_OS!$HOST_OS$ac_delim
23360 TARGET_OS!$TARGET_OS$ac_delim
23361 LINKALL!$LINKALL$ac_delim
23362 NOLINKALL!$NOLINKALL$ac_delim
23363 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23364 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23365 ARCH!$ARCH$ac_delim
23366 HOST_ARCH!$HOST_ARCH$ac_delim
23367 ENDIAN!$ENDIAN$ac_delim
23368 GREP!$GREP$ac_delim
23369 EGREP!$EGREP$ac_delim
23370 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23371 BUILD_CC!$BUILD_CC$ac_delim
23372 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23373 BUILD_CXX!$BUILD_CXX$ac_delim
23374 CVSBUILD!$CVSBUILD$ac_delim
23375 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23376 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23377 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23378 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23379 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23380 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23381 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23382 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23383 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23384 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23385 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23386 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23387 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23388 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23389 JIT!$JIT$ac_delim
23390 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23391 _ACEOF
23392
23393   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23394     break
23395   elif $ac_last_try; then
23396     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23397 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23398    { (exit 1); exit 1; }; }
23399   else
23400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23401   fi
23402 done
23403
23404 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23405 if test -n "$ac_eof"; then
23406   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23407   ac_eof=`expr $ac_eof + 1`
23408 fi
23409
23410 cat >>$CONFIG_STATUS <<_ACEOF
23411 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23413 _ACEOF
23414 sed '
23415 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23416 s/^/s,@/; s/!/@,|#_!!_#|/
23417 :n
23418 t n
23419 s/'"$ac_delim"'$/,g/; t
23420 s/$/\\/; p
23421 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23422 ' >>$CONFIG_STATUS <conf$$subs.sed
23423 rm -f conf$$subs.sed
23424 cat >>$CONFIG_STATUS <<_ACEOF
23425 CEOF$ac_eof
23426 _ACEOF
23427
23428
23429 ac_delim='%!_!# '
23430 for ac_last_try in false false false false false :; do
23431   cat >conf$$subs.sed <<_ACEOF
23432 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23433 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23434 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23435 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23436 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23437 ENABLE_PIC!$ENABLE_PIC$ac_delim
23438 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23439 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23440 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23441 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23442 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23443 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23444 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23445 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23446 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23447 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23448 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23449 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23450 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23451 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23452 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23453 NM!$NM$ac_delim
23454 ifGNUmake!$ifGNUmake$ac_delim
23455 LN_S!$LN_S$ac_delim
23456 CMP!$CMP$ac_delim
23457 CP!$CP$ac_delim
23458 DATE!$DATE$ac_delim
23459 FIND!$FIND$ac_delim
23460 MKDIR!$MKDIR$ac_delim
23461 MV!$MV$ac_delim
23462 RANLIB!$RANLIB$ac_delim
23463 AR!$AR$ac_delim
23464 RM!$RM$ac_delim
23465 SED!$SED$ac_delim
23466 TAR!$TAR$ac_delim
23467 BINPWD!$BINPWD$ac_delim
23468 GRAPHVIZ!$GRAPHVIZ$ac_delim
23469 DOT!$DOT$ac_delim
23470 FDP!$FDP$ac_delim
23471 NEATO!$NEATO$ac_delim
23472 TWOPI!$TWOPI$ac_delim
23473 CIRCO!$CIRCO$ac_delim
23474 GV!$GV$ac_delim
23475 DOTTY!$DOTTY$ac_delim
23476 XDOT_PY!$XDOT_PY$ac_delim
23477 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23478 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23479 INSTALL_DATA!$INSTALL_DATA$ac_delim
23480 BZIP2!$BZIP2$ac_delim
23481 CAT!$CAT$ac_delim
23482 DOXYGEN!$DOXYGEN$ac_delim
23483 GROFF!$GROFF$ac_delim
23484 GZIPBIN!$GZIPBIN$ac_delim
23485 PDFROFF!$PDFROFF$ac_delim
23486 ZIP!$ZIP$ac_delim
23487 OCAMLC!$OCAMLC$ac_delim
23488 OCAMLOPT!$OCAMLOPT$ac_delim
23489 OCAMLDEP!$OCAMLDEP$ac_delim
23490 OCAMLDOC!$OCAMLDOC$ac_delim
23491 GAS!$GAS$ac_delim
23492 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23493 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23494 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23495 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23496 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23497 LIBADD_DL!$LIBADD_DL$ac_delim
23498 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23499 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23500 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23501 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23502 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23503 PYTHON!$PYTHON$ac_delim
23504 USE_UDIS86!$USE_UDIS86$ac_delim
23505 USE_OPROFILE!$USE_OPROFILE$ac_delim
23506 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23507 XML2CONFIG!$XML2CONFIG$ac_delim
23508 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23509 LIBXML2_INC!$LIBXML2_INC$ac_delim
23510 CXXCPP!$CXXCPP$ac_delim
23511 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23512 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23513 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23514 MMAP_FILE!$MMAP_FILE$ac_delim
23515 SHLIBEXT!$SHLIBEXT$ac_delim
23516 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23517 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23518 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23519 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23520 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23521 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23522 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23523 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23524 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23525 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23526 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23527 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23528 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23529 _ACEOF
23530
23531   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23532     break
23533   elif $ac_last_try; then
23534     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23536    { (exit 1); exit 1; }; }
23537   else
23538     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23539   fi
23540 done
23541
23542 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23543 if test -n "$ac_eof"; then
23544   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23545   ac_eof=`expr $ac_eof + 1`
23546 fi
23547
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23551 _ACEOF
23552 sed '
23553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23554 s/^/s,@/; s/!/@,|#_!!_#|/
23555 :n
23556 t n
23557 s/'"$ac_delim"'$/,g/; t
23558 s/$/\\/; p
23559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23560 ' >>$CONFIG_STATUS <conf$$subs.sed
23561 rm -f conf$$subs.sed
23562 cat >>$CONFIG_STATUS <<_ACEOF
23563 CEOF$ac_eof
23564 _ACEOF
23565
23566
23567 ac_delim='%!_!# '
23568 for ac_last_try in false false false false false :; do
23569   cat >conf$$subs.sed <<_ACEOF
23570 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23571 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23572 RPATH!$RPATH$ac_delim
23573 RDYNAMIC!$RDYNAMIC$ac_delim
23574 program_prefix!$program_prefix$ac_delim
23575 LIBOBJS!$LIBOBJS$ac_delim
23576 LTLIBOBJS!$LTLIBOBJS$ac_delim
23577 _ACEOF
23578
23579   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23580     break
23581   elif $ac_last_try; then
23582     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23584    { (exit 1); exit 1; }; }
23585   else
23586     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23587   fi
23588 done
23589
23590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23591 if test -n "$ac_eof"; then
23592   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23593   ac_eof=`expr $ac_eof + 1`
23594 fi
23595
23596 cat >>$CONFIG_STATUS <<_ACEOF
23597 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23599 _ACEOF
23600 sed '
23601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23602 s/^/s,@/; s/!/@,|#_!!_#|/
23603 :n
23604 t n
23605 s/'"$ac_delim"'$/,g/; t
23606 s/$/\\/; p
23607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23608 ' >>$CONFIG_STATUS <conf$$subs.sed
23609 rm -f conf$$subs.sed
23610 cat >>$CONFIG_STATUS <<_ACEOF
23611 :end
23612 s/|#_!!_#|//g
23613 CEOF$ac_eof
23614 _ACEOF
23615
23616
23617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23619 # trailing colons and then remove the whole line if VPATH becomes empty
23620 # (actually we leave an empty line to preserve line numbers).
23621 if test "x$srcdir" = x.; then
23622   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23623 s/:*\$(srcdir):*/:/
23624 s/:*\${srcdir}:*/:/
23625 s/:*@srcdir@:*/:/
23626 s/^\([^=]*=[     ]*\):*/\1/
23627 s/:*$//
23628 s/^[^=]*=[       ]*$//
23629 }'
23630 fi
23631
23632 cat >>$CONFIG_STATUS <<\_ACEOF
23633 fi # test -n "$CONFIG_FILES"
23634
23635
23636 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23637 do
23638   case $ac_tag in
23639   :[FHLC]) ac_mode=$ac_tag; continue;;
23640   esac
23641   case $ac_mode$ac_tag in
23642   :[FHL]*:*);;
23643   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23644 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23645    { (exit 1); exit 1; }; };;
23646   :[FH]-) ac_tag=-:-;;
23647   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23648   esac
23649   ac_save_IFS=$IFS
23650   IFS=:
23651   set x $ac_tag
23652   IFS=$ac_save_IFS
23653   shift
23654   ac_file=$1
23655   shift
23656
23657   case $ac_mode in
23658   :L) ac_source=$1;;
23659   :[FH])
23660     ac_file_inputs=
23661     for ac_f
23662     do
23663       case $ac_f in
23664       -) ac_f="$tmp/stdin";;
23665       *) # Look for the file first in the build tree, then in the source tree
23666          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23667          # because $ac_f cannot contain `:'.
23668          test -f "$ac_f" ||
23669            case $ac_f in
23670            [\\/$]*) false;;
23671            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23672            esac ||
23673            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23674 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23675    { (exit 1); exit 1; }; };;
23676       esac
23677       ac_file_inputs="$ac_file_inputs $ac_f"
23678     done
23679
23680     # Let's still pretend it is `configure' which instantiates (i.e., don't
23681     # use $as_me), people would be surprised to read:
23682     #    /* config.h.  Generated by config.status.  */
23683     configure_input="Generated from "`IFS=:
23684           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23685     if test x"$ac_file" != x-; then
23686       configure_input="$ac_file.  $configure_input"
23687       { echo "$as_me:$LINENO: creating $ac_file" >&5
23688 echo "$as_me: creating $ac_file" >&6;}
23689     fi
23690
23691     case $ac_tag in
23692     *:-:* | *:-) cat >"$tmp/stdin";;
23693     esac
23694     ;;
23695   esac
23696
23697   ac_dir=`$as_dirname -- "$ac_file" ||
23698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23699          X"$ac_file" : 'X\(//\)[^/]' \| \
23700          X"$ac_file" : 'X\(//\)$' \| \
23701          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23702 echo X"$ac_file" |
23703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23704             s//\1/
23705             q
23706           }
23707           /^X\(\/\/\)[^/].*/{
23708             s//\1/
23709             q
23710           }
23711           /^X\(\/\/\)$/{
23712             s//\1/
23713             q
23714           }
23715           /^X\(\/\).*/{
23716             s//\1/
23717             q
23718           }
23719           s/.*/./; q'`
23720   { as_dir="$ac_dir"
23721   case $as_dir in #(
23722   -*) as_dir=./$as_dir;;
23723   esac
23724   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23725     as_dirs=
23726     while :; do
23727       case $as_dir in #(
23728       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23729       *) as_qdir=$as_dir;;
23730       esac
23731       as_dirs="'$as_qdir' $as_dirs"
23732       as_dir=`$as_dirname -- "$as_dir" ||
23733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23734          X"$as_dir" : 'X\(//\)[^/]' \| \
23735          X"$as_dir" : 'X\(//\)$' \| \
23736          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23737 echo X"$as_dir" |
23738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23739             s//\1/
23740             q
23741           }
23742           /^X\(\/\/\)[^/].*/{
23743             s//\1/
23744             q
23745           }
23746           /^X\(\/\/\)$/{
23747             s//\1/
23748             q
23749           }
23750           /^X\(\/\).*/{
23751             s//\1/
23752             q
23753           }
23754           s/.*/./; q'`
23755       test -d "$as_dir" && break
23756     done
23757     test -z "$as_dirs" || eval "mkdir $as_dirs"
23758   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23759 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23760    { (exit 1); exit 1; }; }; }
23761   ac_builddir=.
23762
23763 case "$ac_dir" in
23764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 *)
23766   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23767   # A ".." for each directory in $ac_dir_suffix.
23768   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23769   case $ac_top_builddir_sub in
23770   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23771   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23772   esac ;;
23773 esac
23774 ac_abs_top_builddir=$ac_pwd
23775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23776 # for backward compatibility:
23777 ac_top_builddir=$ac_top_build_prefix
23778
23779 case $srcdir in
23780   .)  # We are building in place.
23781     ac_srcdir=.
23782     ac_top_srcdir=$ac_top_builddir_sub
23783     ac_abs_top_srcdir=$ac_pwd ;;
23784   [\\/]* | ?:[\\/]* )  # Absolute name.
23785     ac_srcdir=$srcdir$ac_dir_suffix;
23786     ac_top_srcdir=$srcdir
23787     ac_abs_top_srcdir=$srcdir ;;
23788   *) # Relative name.
23789     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23790     ac_top_srcdir=$ac_top_build_prefix$srcdir
23791     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23792 esac
23793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23794
23795
23796   case $ac_mode in
23797   :F)
23798   #
23799   # CONFIG_FILE
23800   #
23801
23802   case $INSTALL in
23803   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23804   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23805   esac
23806 _ACEOF
23807
23808 cat >>$CONFIG_STATUS <<\_ACEOF
23809 # If the template does not know about datarootdir, expand it.
23810 # FIXME: This hack should be removed a few years after 2.60.
23811 ac_datarootdir_hack=; ac_datarootdir_seen=
23812
23813 case `sed -n '/datarootdir/ {
23814   p
23815   q
23816 }
23817 /@datadir@/p
23818 /@docdir@/p
23819 /@infodir@/p
23820 /@localedir@/p
23821 /@mandir@/p
23822 ' $ac_file_inputs` in
23823 *datarootdir*) ac_datarootdir_seen=yes;;
23824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23825   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23826 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23827 _ACEOF
23828 cat >>$CONFIG_STATUS <<_ACEOF
23829   ac_datarootdir_hack='
23830   s&@datadir@&$datadir&g
23831   s&@docdir@&$docdir&g
23832   s&@infodir@&$infodir&g
23833   s&@localedir@&$localedir&g
23834   s&@mandir@&$mandir&g
23835     s&\\\${datarootdir}&$datarootdir&g' ;;
23836 esac
23837 _ACEOF
23838
23839 # Neutralize VPATH when `$srcdir' = `.'.
23840 # Shell code in configure.ac might set extrasub.
23841 # FIXME: do we really want to maintain this feature?
23842 cat >>$CONFIG_STATUS <<_ACEOF
23843   sed "$ac_vpsub
23844 $extrasub
23845 _ACEOF
23846 cat >>$CONFIG_STATUS <<\_ACEOF
23847 :t
23848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23849 s&@configure_input@&$configure_input&;t t
23850 s&@top_builddir@&$ac_top_builddir_sub&;t t
23851 s&@srcdir@&$ac_srcdir&;t t
23852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23853 s&@top_srcdir@&$ac_top_srcdir&;t t
23854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23855 s&@builddir@&$ac_builddir&;t t
23856 s&@abs_builddir@&$ac_abs_builddir&;t t
23857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23858 s&@INSTALL@&$ac_INSTALL&;t t
23859 $ac_datarootdir_hack
23860 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23861
23862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23863   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23864   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23865   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23866 which seems to be undefined.  Please make sure it is defined." >&5
23867 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23868 which seems to be undefined.  Please make sure it is defined." >&2;}
23869
23870   rm -f "$tmp/stdin"
23871   case $ac_file in
23872   -) cat "$tmp/out"; rm -f "$tmp/out";;
23873   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23874   esac
23875  ;;
23876   :H)
23877   #
23878   # CONFIG_HEADER
23879   #
23880 _ACEOF
23881
23882 # Transform confdefs.h into a sed script `conftest.defines', that
23883 # substitutes the proper values into config.h.in to produce config.h.
23884 rm -f conftest.defines conftest.tail
23885 # First, append a space to every undef/define line, to ease matching.
23886 echo 's/$/ /' >conftest.defines
23887 # Then, protect against being on the right side of a sed subst, or in
23888 # an unquoted here document, in config.status.  If some macros were
23889 # called several times there might be several #defines for the same
23890 # symbol, which is useless.  But do not sort them, since the last
23891 # AC_DEFINE must be honored.
23892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23893 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23894 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23895 # PARAMS is the parameter list in the macro definition--in most cases, it's
23896 # just an empty string.
23897 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23898 ac_dB='\\)[      (].*,\\1define\\2'
23899 ac_dC=' '
23900 ac_dD=' ,'
23901
23902 uniq confdefs.h |
23903   sed -n '
23904         t rset
23905         :rset
23906         s/^[     ]*#[    ]*define[       ][      ]*//
23907         t ok
23908         d
23909         :ok
23910         s/[\\&,]/\\&/g
23911         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23912         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23913   ' >>conftest.defines
23914
23915 # Remove the space that was appended to ease matching.
23916 # Then replace #undef with comments.  This is necessary, for
23917 # example, in the case of _POSIX_SOURCE, which is predefined and required
23918 # on some systems where configure will not decide to define it.
23919 # (The regexp can be short, since the line contains either #define or #undef.)
23920 echo 's/ $//
23921 s,^[     #]*u.*,/* & */,' >>conftest.defines
23922
23923 # Break up conftest.defines:
23924 ac_max_sed_lines=50
23925
23926 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23927 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23928 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23929 # et cetera.
23930 ac_in='$ac_file_inputs'
23931 ac_out='"$tmp/out1"'
23932 ac_nxt='"$tmp/out2"'
23933
23934 while :
23935 do
23936   # Write a here document:
23937     cat >>$CONFIG_STATUS <<_ACEOF
23938     # First, check the format of the line:
23939     cat >"\$tmp/defines.sed" <<\\CEOF
23940 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23941 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23942 b
23943 :def
23944 _ACEOF
23945   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23946   echo 'CEOF
23947     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23948   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23949   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23950   grep . conftest.tail >/dev/null || break
23951   rm -f conftest.defines
23952   mv conftest.tail conftest.defines
23953 done
23954 rm -f conftest.defines conftest.tail
23955
23956 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23958   if test x"$ac_file" != x-; then
23959     echo "/* $configure_input  */" >"$tmp/config.h"
23960     cat "$ac_result" >>"$tmp/config.h"
23961     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23962       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23963 echo "$as_me: $ac_file is unchanged" >&6;}
23964     else
23965       rm -f $ac_file
23966       mv "$tmp/config.h" $ac_file
23967     fi
23968   else
23969     echo "/* $configure_input  */"
23970     cat "$ac_result"
23971   fi
23972   rm -f "$tmp/out12"
23973  ;;
23974
23975   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23976 echo "$as_me: executing $ac_file commands" >&6;}
23977  ;;
23978   esac
23979
23980
23981   case $ac_file$ac_mode in
23982     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23984     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23986     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23988     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23990     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23992     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23994     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23996     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23998     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24000     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24002     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24004     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24005    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24006     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24007    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24008
24009   esac
24010 done # for ac_tag
24011
24012
24013 { (exit 0); exit 0; }
24014 _ACEOF
24015 chmod +x $CONFIG_STATUS
24016 ac_clean_files=$ac_clean_files_save
24017
24018
24019 # configure is writing to config.log, and then calls config.status.
24020 # config.status does its own redirection, appending to config.log.
24021 # Unfortunately, on DOS this fails, as config.log is still kept open
24022 # by configure, so config.status won't be able to write to it; its
24023 # output is simply discarded.  So we exec the FD to /dev/null,
24024 # effectively closing config.log, so it can be properly (re)opened and
24025 # appended to by config.status.  When coming back to configure, we
24026 # need to make the FD available again.
24027 if test "$no_create" != yes; then
24028   ac_cs_success=:
24029   ac_config_status_args=
24030   test "$silent" = yes &&
24031     ac_config_status_args="$ac_config_status_args --quiet"
24032   exec 5>/dev/null
24033   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24034   exec 5>>config.log
24035   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24036   # would make configure fail if this is the last instruction.
24037   $ac_cs_success || { (exit 1); exit 1; }
24038 fi
24039
24040 #
24041 # CONFIG_SUBDIRS section.
24042 #
24043 if test "$no_recursion" != yes; then
24044
24045   # Remove --cache-file and --srcdir arguments so they do not pile up.
24046   ac_sub_configure_args=
24047   ac_prev=
24048   eval "set x $ac_configure_args"
24049   shift
24050   for ac_arg
24051   do
24052     if test -n "$ac_prev"; then
24053       ac_prev=
24054       continue
24055     fi
24056     case $ac_arg in
24057     -cache-file | --cache-file | --cache-fil | --cache-fi \
24058     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24059       ac_prev=cache_file ;;
24060     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24061     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24062     | --c=*)
24063       ;;
24064     --config-cache | -C)
24065       ;;
24066     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24067       ac_prev=srcdir ;;
24068     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24069       ;;
24070     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24071       ac_prev=prefix ;;
24072     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24073       ;;
24074     *)
24075       case $ac_arg in
24076       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24077       esac
24078       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24079     esac
24080   done
24081
24082   # Always prepend --prefix to ensure using the same prefix
24083   # in subdir configurations.
24084   ac_arg="--prefix=$prefix"
24085   case $ac_arg in
24086   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24087   esac
24088   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24089
24090   ac_popdir=`pwd`
24091   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24092
24093     # Do not complain, so a configure script can configure whichever
24094     # parts of a large source tree are present.
24095     test -d "$srcdir/$ac_dir" || continue
24096
24097     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24098     echo "$as_me:$LINENO: $ac_msg" >&5
24099     echo "$ac_msg" >&6
24100     { as_dir="$ac_dir"
24101   case $as_dir in #(
24102   -*) as_dir=./$as_dir;;
24103   esac
24104   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24105     as_dirs=
24106     while :; do
24107       case $as_dir in #(
24108       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24109       *) as_qdir=$as_dir;;
24110       esac
24111       as_dirs="'$as_qdir' $as_dirs"
24112       as_dir=`$as_dirname -- "$as_dir" ||
24113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24114          X"$as_dir" : 'X\(//\)[^/]' \| \
24115          X"$as_dir" : 'X\(//\)$' \| \
24116          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24117 echo X"$as_dir" |
24118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24119             s//\1/
24120             q
24121           }
24122           /^X\(\/\/\)[^/].*/{
24123             s//\1/
24124             q
24125           }
24126           /^X\(\/\/\)$/{
24127             s//\1/
24128             q
24129           }
24130           /^X\(\/\).*/{
24131             s//\1/
24132             q
24133           }
24134           s/.*/./; q'`
24135       test -d "$as_dir" && break
24136     done
24137     test -z "$as_dirs" || eval "mkdir $as_dirs"
24138   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24140    { (exit 1); exit 1; }; }; }
24141     ac_builddir=.
24142
24143 case "$ac_dir" in
24144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145 *)
24146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24147   # A ".." for each directory in $ac_dir_suffix.
24148   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24149   case $ac_top_builddir_sub in
24150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24152   esac ;;
24153 esac
24154 ac_abs_top_builddir=$ac_pwd
24155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24156 # for backward compatibility:
24157 ac_top_builddir=$ac_top_build_prefix
24158
24159 case $srcdir in
24160   .)  # We are building in place.
24161     ac_srcdir=.
24162     ac_top_srcdir=$ac_top_builddir_sub
24163     ac_abs_top_srcdir=$ac_pwd ;;
24164   [\\/]* | ?:[\\/]* )  # Absolute name.
24165     ac_srcdir=$srcdir$ac_dir_suffix;
24166     ac_top_srcdir=$srcdir
24167     ac_abs_top_srcdir=$srcdir ;;
24168   *) # Relative name.
24169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24170     ac_top_srcdir=$ac_top_build_prefix$srcdir
24171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24172 esac
24173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24174
24175
24176     cd "$ac_dir"
24177
24178     # Check for guested configure; otherwise get Cygnus style configure.
24179     if test -f "$ac_srcdir/configure.gnu"; then
24180       ac_sub_configure=$ac_srcdir/configure.gnu
24181     elif test -f "$ac_srcdir/configure"; then
24182       ac_sub_configure=$ac_srcdir/configure
24183     elif test -f "$ac_srcdir/configure.in"; then
24184       # This should be Cygnus configure.
24185       ac_sub_configure=$ac_aux_dir/configure
24186     else
24187       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24189       ac_sub_configure=
24190     fi
24191
24192     # The recursion is here.
24193     if test -n "$ac_sub_configure"; then
24194       # Make the cache file name correct relative to the subdirectory.
24195       case $cache_file in
24196       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24197       *) # Relative name.
24198         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24199       esac
24200
24201       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24202 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24203       # The eval makes quoting arguments work.
24204       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24205            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24206         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24207 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24208    { (exit 1); exit 1; }; }
24209     fi
24210
24211     cd "$ac_popdir"
24212   done
24213 fi
24214