COFF: Fix weak external aliases.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 HAVE_PTHREAD
780 HUGE_VAL_SANITY
781 MMAP_FILE
782 SHLIBEXT
783 SHLIBPATH_VAR
784 LLVM_PREFIX
785 LLVM_BINDIR
786 LLVM_LIBDIR
787 LLVM_DATADIR
788 LLVM_DOCSDIR
789 LLVM_ETCDIR
790 LLVM_INCLUDEDIR
791 LLVM_INFODIR
792 LLVM_MANDIR
793 LLVM_CONFIGTIME
794 BINDINGS_TO_BUILD
795 ALL_BINDINGS
796 OCAML_LIBDIR
797 ENABLE_VISIBILITY_INLINES_HIDDEN
798 RPATH
799 RDYNAMIC
800 program_prefix
801 LIBOBJS
802 LTLIBOBJS'
803 ac_subst_files=''
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 CXX
812 CXXFLAGS
813 CCC
814 CPP'
815 ac_subdirs_all='projects/llvm-gcc
816 projects/test-suite
817 projects/llvm-test
818 projects/poolalloc
819 projects/llvm-poolalloc
820 projects/sample
821 projects/privbracket
822 projects/llvm-stacker
823 projects/llvm-reopt
824 projects/llvm-java
825 projects/llvm-tv
826 projects/safecode
827 projects/llvm-kernel
828 tools/polly'
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935    { (exit 1); exit 1; }; }
936     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937     eval enable_$ac_feature=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954    { (exit 1); exit 1; }; }
955     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956     eval enable_$ac_feature=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package| sed 's/-/_/g'`
1153     eval with_$ac_package=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid package name: $ac_package" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_package=`echo $ac_package | sed 's/-/_/g'`
1162     eval with_$ac_package=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184    { (exit 1); exit 1; }; }
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192    { (exit 1); exit 1; }; }
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   { echo "$as_me: error: missing argument to $ac_option" >&2
1210    { (exit 1); exit 1; }; }
1211 fi
1212
1213 # Be sure to have absolute directory names.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225    { (exit 1); exit 1; }; }
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   { echo "$as_me: error: Working directory cannot be determined" >&2
1256    { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   { echo "$as_me: error: pwd does not report name of working directory" >&2
1259    { (exit 1); exit 1; }; }
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$0" : 'X\(//\)[^/]' \| \
1269          X"$0" : 'X\(//\)$' \| \
1270          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 echo X"$0" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304    { (exit 1); exit 1; }; }
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR           user executables [EPREFIX/bin]
1365   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR       program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR           object code libraries [EPREFIX/lib]
1371   --includedir=DIR       C header files [PREFIX/include]
1372   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR          info documentation [DATAROOTDIR/info]
1376   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR           man documentation [DATAROOTDIR/man]
1378   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1379   --htmldir=DIR          html documentation [DOCDIR]
1380   --dvidir=DIR           dvi documentation [DOCDIR]
1381   --pdfdir=DIR           pdf documentation [DOCDIR]
1382   --psdir=DIR            ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390   --target=TARGET   configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-polly          Use polly if available (default is YES)
1404   --enable-libcpp         Use libc++ if available (default is NO)
1405   --enable-cxx11          Use c++11 if available (default is NO)
1406   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1407   --enable-clang-static-analyzer
1408                           Enable building of clang Static Analyzer (default is
1409                           YES)
1410   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411   --enable-optimized      Compile with optimizations enabled (default is NO)
1412   --enable-profiling      Compile with profiling enabled (default is NO)
1413   --enable-assertions     Compile with assertion checks enabled (default is
1414                           YES)
1415   --enable-werror         Compile with -Werror enabled (default is NO)
1416   --enable-expensive-checks
1417                           Compile with expensive debug checks enabled (default
1418                           is NO)
1419   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1420                           NO)
1421   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1422                           optimization is on and YES if it's off)
1423   --enable-keep-symbols   Do not strip installed executables)
1424   --enable-jit            Enable Just In Time Compiling (default is YES)
1425   --enable-docs           Build documents (default is YES)
1426   --enable-doxygen        Build doxygen documentation (default is NO)
1427   --enable-threads        Use threads if available (default is YES)
1428   --enable-pthreads       Use pthreads if available (default is YES)
1429   --enable-pic            Build LLVM with Position Independent Code (default
1430                           is YES)
1431   --enable-shared         Build a shared library and link tools against it
1432                           (default is NO)
1433   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1434                           Win32 DLL (default is NO)
1435   --enable-timestamps     Enable embedding timestamp information in build
1436                           (default is YES)
1437   --enable-backtraces     Enable embedding backtraces on crash (default is
1438                           YES)
1439   --enable-targets        Build specific host targets: all or
1440                           target1,target2,... Valid targets are: host, x86,
1441                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1442                           xcore, msp430, nvptx, and cpp (default=all)
1443   --enable-experimental-targets
1444                           Build experimental host targets: disable or
1445                           target1,target2,... (default=disable)
1446   --enable-bindings       Build specific language bindings:
1447                           all,auto,none,{binding-name} (default=auto)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449   --enable-ltdl-install   install libltdl
1450
1451 Optional Packages:
1452   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454   --with-optimize-option  Select the compiler options to use for optimized
1455                           builds
1456   --with-extra-options    Specify additional options to compile LLVM with
1457   --with-extra-ld-options Specify additional options to link LLVM with
1458   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1459                           is stdlib)
1460   --with-clang-srcdir     Directory to the out-of-tree Clang source
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-gcc-toolchain    Directory where gcc is installed.
1467   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1468   --with-binutils-include Specify path to binutils/include/ containing
1469                           plugin-api.h file for gold plugin.
1470   --with-bug-report-url   Specify the URL where bug reports should be
1471                           submitted (default=http://llvm.org/bugs/)
1472   --with-internal-prefix  Installation directory for internal files
1473   --with-python           path to python
1474   --with-udis86=<path>    Use udis86 external x86 disassembler library
1475   --with-oprofile=<prefix>
1476                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1477   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1478
1479
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   CPP         C preprocessor
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <http://llvm.org/bugs/>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500   # If there are subdirs, report their specific --help.
1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502     test -d "$ac_dir" || continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 LLVM configure 3.3svn
1556 generated by GNU Autoconf 2.60
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562
1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1564 _ACEOF
1565   exit
1566 fi
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by LLVM $as_me 3.3svn, which was
1572 generated by GNU Autoconf 2.60.  Invocation command line was
1573
1574   $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1592
1593 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1594 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1597 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1598 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1599 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635   for ac_arg
1636   do
1637     case $ac_arg in
1638     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640     | -silent | --silent | --silen | --sile | --sil)
1641       continue ;;
1642     *\'*)
1643       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644     esac
1645     case $ac_pass in
1646     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647     2)
1648       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649       if test $ac_must_keep_next = true; then
1650         ac_must_keep_next=false # Got value, back to normal.
1651       else
1652         case $ac_arg in
1653           *=* | --config-cache | -C | -disable-* | --disable-* \
1654           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656           | -with-* | --with-* | -without-* | --without-* | --x)
1657             case "$ac_configure_args0 " in
1658               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659             esac
1660             ;;
1661           -* ) ac_must_keep_next=true ;;
1662         esac
1663       fi
1664       ac_configure_args="$ac_configure_args '$ac_arg'"
1665       ;;
1666     esac
1667   done
1668 done
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log.  We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678   # Save into config.log some information that might help in debugging.
1679   {
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1686 _ASBOX
1687     echo
1688     # The following way of writing the cache mishandles newlines in values,
1689 (
1690   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691     eval ac_val=\$$ac_var
1692     case $ac_val in #(
1693     *${as_nl}*)
1694       case $ac_var in #(
1695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697       esac
1698       case $ac_var in #(
1699       _ | IFS | as_nl) ;; #(
1700       *) $as_unset $ac_var ;;
1701       esac ;;
1702     esac
1703   done
1704   (set) 2>&1 |
1705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706     *${as_nl}ac_space=\ *)
1707       sed -n \
1708         "s/'\''/'\''\\\\'\'''\''/g;
1709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710       ;; #(
1711     *)
1712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713       ;;
1714     esac |
1715     sort
1716 )
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724     echo
1725     for ac_var in $ac_subst_vars
1726     do
1727       eval ac_val=\$$ac_var
1728       case $ac_val in
1729       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730       esac
1731       echo "$ac_var='\''$ac_val'\''"
1732     done | sort
1733     echo
1734
1735     if test -n "$ac_subst_files"; then
1736       cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741       echo
1742       for ac_var in $ac_subst_files
1743       do
1744         eval ac_val=\$$ac_var
1745         case $ac_val in
1746         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747         esac
1748         echo "$ac_var='\''$ac_val'\''"
1749       done | sort
1750       echo
1751     fi
1752
1753     if test -s confdefs.h; then
1754       cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759       echo
1760       cat confdefs.h
1761       echo
1762     fi
1763     test "$ac_signal" != 0 &&
1764       echo "$as_me: caught signal $ac_signal"
1765     echo "$as_me: exit $exit_status"
1766   } >&5
1767   rm -f core *.core core.conftest.* &&
1768     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769     exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809   set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813   set x "$ac_default_prefix/share/config.site" \
1814         "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819   if test -r "$ac_site_file"; then
1820     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822     sed 's/^/| /' "$ac_site_file" >&5
1823     . "$ac_site_file"
1824   fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828   # Some versions of bash will fail to source /dev/null (special
1829   # files actually), so we avoid doing that.
1830   if test -f "$cache_file"; then
1831     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1833     case $cache_file in
1834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835       *)                      . "./$cache_file";;
1836     esac
1837   fi
1838 else
1839   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1841   >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849   eval ac_new_set=\$ac_env_${ac_var}_set
1850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851   eval ac_new_val=\$ac_env_${ac_var}_value
1852   case $ac_old_set,$ac_new_set in
1853     set,)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,set)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,);;
1862     *)
1863       if test "x$ac_old_val" != "x$ac_new_val"; then
1864         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1867 echo "$as_me:   former value:  $ac_old_val" >&2;}
1868         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1869 echo "$as_me:   current value: $ac_new_val" >&2;}
1870         ac_cache_corrupted=:
1871       fi;;
1872   esac
1873   # Pass precious variables to config.status.
1874   if test "$ac_new_set" = set; then
1875     case $ac_new_val in
1876     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877     *) ac_arg=$ac_var=$ac_new_val ;;
1878     esac
1879     case " $ac_configure_args " in
1880       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1881       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882     esac
1883   fi
1884 done
1885 if $ac_cache_corrupted; then
1886   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924
1925 cat >>confdefs.h <<\_ACEOF
1926 #define LLVM_VERSION_MAJOR 3
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MINOR 3
1932 _ACEOF
1933
1934
1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1936
1937
1938
1939
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974
1975 if test ${srcdir} != "." ; then
1976   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1977     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1979    { (exit 1); exit 1; }; }
1980   fi
1981 fi
1982
1983 ${CFLAGS=}
1984 ${CXXFLAGS=}
1985
1986 ac_ext=c
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 if test -n "$ac_tool_prefix"; then
1992   for ac_prog in clang llvm-gcc gcc
1993   do
1994     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030
2031     test -n "$CC" && break
2032   done
2033 fi
2034 if test -z "$CC"; then
2035   ac_ct_CC=$CC
2036   for ac_prog in clang llvm-gcc gcc
2037 do
2038   # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_CC"; then
2046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_prog_ac_ct_CC="$ac_prog"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075   test -n "$ac_ct_CC" && break
2076 done
2077
2078   if test "x$ac_ct_CC" = x; then
2079     CC=""
2080   else
2081     case $cross_compiling:$ac_tool_warned in
2082 yes:)
2083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet.  If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&5
2086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2087 whose name does not start with the host triplet.  If you think this
2088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2089 ac_tool_warned=yes ;;
2090 esac
2091     CC=$ac_ct_CC
2092   fi
2093 fi
2094
2095
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100    { (exit 1); exit 1; }; }
2101
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO: checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (ac_try="$ac_compiler --version >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler --version >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -v >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -v >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125 { (ac_try="$ac_compiler -V >&5"
2126 case "(($ac_try" in
2127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128   *) ac_try_echo=$ac_try;;
2129 esac
2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2131   (eval "$ac_compiler -V >&5") 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2155 # of exeext.
2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 #
2160 # List of possible output files, starting from the most likely.
2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2162 # only as a last resort.  b.out is created by i960 compilers.
2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2164 #
2165 # The IRIX 6 linker writes into existing files which may not be
2166 # executable, retaining their permissions.  Remove them first so a
2167 # subsequent execution test works.
2168 ac_rmfiles=
2169 for ac_file in $ac_files
2170 do
2171   case $ac_file in
2172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2173     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2174   esac
2175 done
2176 rm -f $ac_rmfiles
2177
2178 if { (ac_try="$ac_link_default"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_link_default") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2190 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2191 # so that the user can short-circuit this test for compilers unknown to
2192 # Autoconf.
2193 for ac_file in $ac_files
2194 do
2195   test -f "$ac_file" || continue
2196   case $ac_file in
2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2198         ;;
2199     [ab].out )
2200         # We found the default executable, but exeext='' is most
2201         # certainly right.
2202         break;;
2203     *.* )
2204         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2205         then :; else
2206            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207         fi
2208         # We set ac_cv_exeext here because the later test for it is not
2209         # safe: cross compilers may not add the suffix if given an `-o'
2210         # argument, so we may need to know it at that point already.
2211         # Even if this section looks crufty: it has the advantage of
2212         # actually working.
2213         break;;
2214     * )
2215         break;;
2216   esac
2217 done
2218 test "$ac_cv_exeext" = no && ac_cv_exeext=
2219
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228    { (exit 77); exit 77; }; }
2229 fi
2230
2231 ac_exeext=$ac_cv_exeext
2232 { echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6; }
2234
2235 # Check that the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242   if { ac_try='./$ac_file'
2243   { (case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248   (eval "$ac_try") 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; }; then
2252     cross_compiling=no
2253   else
2254     if test "$cross_compiling" = maybe; then
2255         cross_compiling=yes
2256     else
2257         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264     fi
2265   fi
2266 fi
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269
2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271 ac_clean_files=$ac_clean_files_save
2272 # Check that the compiler produces executables we can run.  If not, either
2273 # the compiler is broken, or we cross compile.
2274 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2276 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277 echo "${ECHO_T}$cross_compiling" >&6; }
2278
2279 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2281 if { (ac_try="$ac_link"
2282 case "(($ac_try" in
2283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284   *) ac_try_echo=$ac_try;;
2285 esac
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287   (eval "$ac_link") 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; then
2291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2294 # `rm'.
2295 for ac_file in conftest.exe conftest conftest.*; do
2296   test -f "$ac_file" || continue
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300           break;;
2301     * ) break;;
2302   esac
2303 done
2304 else
2305   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310 fi
2311
2312 rm -f conftest$ac_cv_exeext
2313 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2314 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2315
2316 rm -f conftest.$ac_ext
2317 EXEEXT=$ac_cv_exeext
2318 ac_exeext=$EXEEXT
2319 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2320 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2321 if test "${ac_cv_objext+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h.  */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h.  */
2330
2331 int
2332 main ()
2333 {
2334
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.o conftest.obj
2340 if { (ac_try="$ac_compile"
2341 case "(($ac_try" in
2342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343   *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346   (eval "$ac_compile") 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; then
2350   for ac_file in conftest.o conftest.obj conftest.*; do
2351   test -f "$ac_file" || continue;
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2354     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355        break;;
2356   esac
2357 done
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366    { (exit 1); exit 1; }; }
2367 fi
2368
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370 fi
2371 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6; }
2373 OBJEXT=$ac_cv_objext
2374 ac_objext=$OBJEXT
2375 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390 #ifndef __GNUC__
2391        choke me
2392 #endif
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (ac_try="$ac_compile"
2400 case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_compile") 2>conftest.er1
2406   ac_status=$?
2407   grep -v '^ *+' conftest.er1 >conftest.err
2408   rm -f conftest.er1
2409   cat conftest.err >&5
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; } &&
2422          { ac_try='test -s conftest.$ac_objext'
2423   { (case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428   (eval "$ac_try") 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; }; then
2432   ac_compiler_gnu=yes
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437         ac_compiler_gnu=no
2438 fi
2439
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2446 GCC=`test $ac_compiler_gnu = yes && echo yes`
2447 ac_test_CFLAGS=${CFLAGS+set}
2448 ac_save_CFLAGS=$CFLAGS
2449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_cc_g+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   ac_save_c_werror_flag=$ac_c_werror_flag
2455    ac_c_werror_flag=yes
2456    ac_cv_prog_cc_g=no
2457    CFLAGS="-g"
2458    cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h.  */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h.  */
2464
2465 int
2466 main ()
2467 {
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2475 case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_compile") 2>conftest.er1
2481   ac_status=$?
2482   grep -v '^ *+' conftest.er1 >conftest.err
2483   rm -f conftest.er1
2484   cat conftest.err >&5
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); } &&
2487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; } &&
2497          { ac_try='test -s conftest.$ac_objext'
2498   { (case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_try") 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507   ac_cv_prog_cc_g=yes
2508 else
2509   echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512         CFLAGS=""
2513       cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2519
2520 int
2521 main ()
2522 {
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_compile") 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; } &&
2552          { ac_try='test -s conftest.$ac_objext'
2553   { (case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558   (eval "$ac_try") 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   :
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567         ac_c_werror_flag=$ac_save_c_werror_flag
2568          CFLAGS="-g"
2569          cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2586 case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_compile") 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (case "(($ac_try" in
2610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611   *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614   (eval "$ac_try") 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_cv_prog_cc_g=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623
2624 fi
2625
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 fi
2628
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633    ac_c_werror_flag=$ac_save_c_werror_flag
2634 fi
2635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2637 if test "$ac_test_CFLAGS" = set; then
2638   CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640   if test "$GCC" = yes; then
2641     CFLAGS="-g -O2"
2642   else
2643     CFLAGS="-g"
2644   fi
2645 else
2646   if test "$GCC" = yes; then
2647     CFLAGS="-O2"
2648   else
2649     CFLAGS=
2650   fi
2651 fi
2652 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2653 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_cc_c89+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   ac_cv_prog_cc_c89=no
2658 ac_save_CC=$CC
2659 cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 #include <stdarg.h>
2666 #include <stdio.h>
2667 #include <sys/types.h>
2668 #include <sys/stat.h>
2669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2670 struct buf { int x; };
2671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (p, i)
2673      char **p;
2674      int i;
2675 {
2676   return p[i];
2677 }
2678 static char *f (char * (*g) (char **, int), char **p, ...)
2679 {
2680   char *s;
2681   va_list v;
2682   va_start (v,p);
2683   s = g (p, va_arg (v,int));
2684   va_end (v);
2685   return s;
2686 }
2687
2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2689    function prototypes and stuff, but not '\xHH' hex character constants.
2690    These don't provoke an error unfortunately, instead are silently treated
2691    as 'x'.  The following induces an error, until -std is added to get
2692    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2693    array size at least.  It's necessary to write '\x00'==0 to get something
2694    that's true only with -std.  */
2695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2696
2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2698    inside strings and character constants.  */
2699 #define FOO(x) 'x'
2700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2701
2702 int test (int i, double x);
2703 struct s1 {int (*f) (int a);};
2704 struct s2 {int (*f) (double a);};
2705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2706 int argc;
2707 char **argv;
2708 int
2709 main ()
2710 {
2711 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2717         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2718 do
2719   CC="$ac_save_CC $ac_arg"
2720   rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compile") 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_try") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; }; then
2754   ac_cv_prog_cc_c89=$ac_arg
2755 else
2756   echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext
2763   test "x$ac_cv_prog_cc_c89" != "xno" && break
2764 done
2765 rm -f conftest.$ac_ext
2766 CC=$ac_save_CC
2767
2768 fi
2769 # AC_CACHE_VAL
2770 case "x$ac_cv_prog_cc_c89" in
2771   x)
2772     { echo "$as_me:$LINENO: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6; } ;;
2774   xno)
2775     { echo "$as_me:$LINENO: result: unsupported" >&5
2776 echo "${ECHO_T}unsupported" >&6; } ;;
2777   *)
2778     CC="$CC $ac_cv_prog_cc_c89"
2779     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2781 esac
2782
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790 ac_ext=cpp
2791 ac_cpp='$CXXCPP $CPPFLAGS'
2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2795 if test -z "$CXX"; then
2796   if test -n "$CCC"; then
2797     CXX=$CCC
2798   else
2799     if test -n "$ac_tool_prefix"; then
2800   for ac_prog in clang++ llvm-g++ g++
2801   do
2802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CXX+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   if test -n "$CXX"; then
2810   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817   for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CXX=$ac_cv_prog_CXX
2830 if test -n "$CXX"; then
2831   { echo "$as_me:$LINENO: result: $CXX" >&5
2832 echo "${ECHO_T}$CXX" >&6; }
2833 else
2834   { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2836 fi
2837
2838
2839     test -n "$CXX" && break
2840   done
2841 fi
2842 if test -z "$CXX"; then
2843   ac_ct_CXX=$CXX
2844   for ac_prog in clang++ llvm-g++ g++
2845 do
2846   # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2851   echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853   if test -n "$ac_ct_CXX"; then
2854   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859   IFS=$as_save_IFS
2860   test -z "$as_dir" && as_dir=.
2861   for ac_exec_ext in '' $ac_executable_extensions; do
2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2863     ac_cv_prog_ac_ct_CXX="$ac_prog"
2864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865     break 2
2866   fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2874 if test -n "$ac_ct_CXX"; then
2875   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2876 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2877 else
2878   { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
2880 fi
2881
2882
2883   test -n "$ac_ct_CXX" && break
2884 done
2885
2886   if test "x$ac_ct_CXX" = x; then
2887     CXX="g++"
2888   else
2889     case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet.  If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&5
2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet.  If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899     CXX=$ac_ct_CXX
2900   fi
2901 fi
2902
2903   fi
2904 fi
2905 # Provide some information about the compiler.
2906 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2907 ac_compiler=`set X $ac_compile; echo $2`
2908 { (ac_try="$ac_compiler --version >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler --version >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -v >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -v >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928 { (ac_try="$ac_compiler -V >&5"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compiler -V >&5") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }
2938
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest.$ac_objext'
2987   { (case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_try") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_compiler_gnu=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         ac_compiler_gnu=no
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3006
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3010 GXX=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CXXFLAGS=${CXXFLAGS+set}
3012 ac_save_CXXFLAGS=$CXXFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cxx_g+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3019    ac_cxx_werror_flag=yes
3020    ac_cv_prog_cxx_g=no
3021    CXXFLAGS="-g"
3022    cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_cv_prog_cxx_g=yes
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         CXXFLAGS=""
3077       cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   :
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3132          CXXFLAGS="-g"
3133          cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_compile") 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_cv_prog_cxx_g=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3201 if test "$ac_test_CXXFLAGS" = set; then
3202   CXXFLAGS=$ac_save_CXXFLAGS
3203 elif test $ac_cv_prog_cxx_g = yes; then
3204   if test "$GXX" = yes; then
3205     CXXFLAGS="-g -O2"
3206   else
3207     CXXFLAGS="-g"
3208   fi
3209 else
3210   if test "$GXX" = yes; then
3211     CXXFLAGS="-O2"
3212   else
3213     CXXFLAGS=
3214   fi
3215 fi
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3231   CPP=
3232 fi
3233 if test -z "$CPP"; then
3234   if test "${ac_cv_prog_CPP+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237       # Double quotes because CPP needs to be expanded
3238     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239     do
3240       ac_preproc_ok=false
3241 for ac_c_preproc_warn_flag in '' yes
3242 do
3243   # Use a header file that comes with gcc, so configuring glibc
3244   # with a fresh cross-compiler works.
3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246   # <limits.h> exists even on freestanding compilers.
3247   # On the NeXT, cc -E runs the code through the compiler's parser,
3248   # not just through cpp. "Syntax error" is here to catch this case.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #ifdef __STDC__
3256 # include <limits.h>
3257 #else
3258 # include <assert.h>
3259 #endif
3260                      Syntax error
3261 _ACEOF
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } >/dev/null; then
3275   if test -s conftest.err; then
3276     ac_cpp_err=$ac_c_preproc_warn_flag
3277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3278   else
3279     ac_cpp_err=
3280   fi
3281 else
3282   ac_cpp_err=yes
3283 fi
3284 if test -z "$ac_cpp_err"; then
3285   :
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290   # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296   # OK, works on sane cases.  Now check whether nonexistent headers
3297   # can be detected and how.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null; then
3319   if test -s conftest.err; then
3320     ac_cpp_err=$ac_c_preproc_warn_flag
3321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322   else
3323     ac_cpp_err=
3324   fi
3325 else
3326   ac_cpp_err=yes
3327 fi
3328 if test -z "$ac_cpp_err"; then
3329   # Broken: success on invalid input.
3330 continue
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335   # Passes both tests.
3336 ac_preproc_ok=:
3337 break
3338 fi
3339
3340 rm -f conftest.err conftest.$ac_ext
3341
3342 done
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3346   break
3347 fi
3348
3349     done
3350     ac_cv_prog_CPP=$CPP
3351
3352 fi
3353   CPP=$ac_cv_prog_CPP
3354 else
3355   ac_cv_prog_CPP=$CPP
3356 fi
3357 { echo "$as_me:$LINENO: result: $CPP" >&5
3358 echo "${ECHO_T}$CPP" >&6; }
3359 ac_preproc_ok=false
3360 for ac_c_preproc_warn_flag in '' yes
3361 do
3362   # Use a header file that comes with gcc, so configuring glibc
3363   # with a fresh cross-compiler works.
3364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365   # <limits.h> exists even on freestanding compilers.
3366   # On the NeXT, cc -E runs the code through the compiler's parser,
3367   # not just through cpp. "Syntax error" is here to catch this case.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #ifdef __STDC__
3375 # include <limits.h>
3376 #else
3377 # include <assert.h>
3378 #endif
3379                      Syntax error
3380 _ACEOF
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null; then
3394   if test -s conftest.err; then
3395     ac_cpp_err=$ac_c_preproc_warn_flag
3396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397   else
3398     ac_cpp_err=
3399   fi
3400 else
3401   ac_cpp_err=yes
3402 fi
3403 if test -z "$ac_cpp_err"; then
3404   :
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409   # Broken: fails on valid input.
3410 continue
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415   # OK, works on sane cases.  Now check whether nonexistent headers
3416   # can be detected and how.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null; then
3438   if test -s conftest.err; then
3439     ac_cpp_err=$ac_c_preproc_warn_flag
3440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441   else
3442     ac_cpp_err=
3443   fi
3444 else
3445   ac_cpp_err=yes
3446 fi
3447 if test -z "$ac_cpp_err"; then
3448   # Broken: success on invalid input.
3449 continue
3450 else
3451   echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454   # Passes both tests.
3455 ac_preproc_ok=:
3456 break
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461 done
3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463 rm -f conftest.err conftest.$ac_ext
3464 if $ac_preproc_ok; then
3465   :
3466 else
3467   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481 if test "$CXX" = "clang++" ; then
3482   { echo "$as_me:$LINENO: checking whether clang works" >&5
3483 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3484   ac_ext=cpp
3485 ac_cpp='$CXXCPP $CPPFLAGS'
3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489
3490
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 #include <limits>
3498 #if __has_include (<cxxabi.h>)
3499 #include <cxxabi.h>
3500 #endif
3501 #if __has_include (<unwind.h>)
3502 #include <unwind.h>
3503 #endif
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_compile") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3528   { (case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533   (eval "$ac_try") 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; } &&
3537          { ac_try='test -s conftest.$ac_objext'
3538   { (case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_try") 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; }; then
3547
3548   { echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6; }
3550
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555
3556   { echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6; }
3558   { { 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
3559 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;}
3560    { (exit 1); exit 1; }; }
3561
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565   ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571 fi
3572
3573
3574
3575 if test -d ${srcdir}/projects/llvm-gcc ; then
3576   subdirs="$subdirs projects/llvm-gcc"
3577
3578 fi
3579
3580 if test -d ${srcdir}/projects/test-suite ; then
3581   subdirs="$subdirs projects/test-suite"
3582
3583 fi
3584
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586   subdirs="$subdirs projects/llvm-test"
3587
3588 fi
3589
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591   subdirs="$subdirs projects/poolalloc"
3592
3593 fi
3594
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596   subdirs="$subdirs projects/llvm-poolalloc"
3597
3598 fi
3599
3600 for i in `ls ${srcdir}/projects`
3601 do
3602   if test -d ${srcdir}/projects/${i} ; then
3603     case ${i} in
3604       sample)       subdirs="$subdirs projects/sample"
3605     ;;
3606       privbracket)  subdirs="$subdirs projects/privbracket"
3607  ;;
3608       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3609  ;;
3610       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3611 ;;
3612       llvm-java)    subdirs="$subdirs projects/llvm-java"
3613  ;;
3614       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3615    ;;
3616       safecode)     subdirs="$subdirs projects/safecode"
3617  ;;
3618       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3619  ;;
3620       compiler-rt)       ;;
3621       llvm-gcc)       ;;
3622       test-suite)     ;;
3623       llvm-test)      ;;
3624       poolalloc)      ;;
3625       llvm-poolalloc) ;;
3626       *)
3627         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3628 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3629         ;;
3630     esac
3631   fi
3632 done
3633
3634 # Check whether --enable-polly was given.
3635 if test "${enable_polly+set}" = set; then
3636   enableval=$enable_polly;
3637 else
3638   enableval=default
3639 fi
3640
3641 case "$enableval" in
3642   yes) ENABLE_POLLY=1
3643  ;;
3644   no)  ENABLE_POLLY=0
3645  ;;
3646   default) ENABLE_POLLY=1
3647  ;;
3648   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3649 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3650    { (exit 1); exit 1; }; } ;;
3651 esac
3652
3653
3654 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3655   LLVM_HAS_POLLY=1
3656
3657   subdirs="$subdirs tools/polly"
3658
3659 fi
3660
3661
3662 # Make sure we can run config.sub.
3663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3664   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3665 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3666    { (exit 1); exit 1; }; }
3667
3668 { echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3670 if test "${ac_cv_build+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   ac_build_alias=$build_alias
3674 test "x$ac_build_alias" = x &&
3675   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3676 test "x$ac_build_alias" = x &&
3677   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679    { (exit 1); exit 1; }; }
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3682 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3683    { (exit 1); exit 1; }; }
3684
3685 fi
3686 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3689 *-*-*) ;;
3690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3691 echo "$as_me: error: invalid value of canonical build" >&2;}
3692    { (exit 1); exit 1; }; };;
3693 esac
3694 build=$ac_cv_build
3695 ac_save_IFS=$IFS; IFS='-'
3696 set x $ac_cv_build
3697 shift
3698 build_cpu=$1
3699 build_vendor=$2
3700 shift; shift
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3703 build_os=$*
3704 IFS=$ac_save_IFS
3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706
3707
3708 { echo "$as_me:$LINENO: checking host system type" >&5
3709 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3710 if test "${ac_cv_host+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   if test "x$host_alias" = x; then
3714   ac_cv_host=$ac_cv_build
3715 else
3716   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3717     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3718 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3719    { (exit 1); exit 1; }; }
3720 fi
3721
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3724 echo "${ECHO_T}$ac_cv_host" >&6; }
3725 case $ac_cv_host in
3726 *-*-*) ;;
3727 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3728 echo "$as_me: error: invalid value of canonical host" >&2;}
3729    { (exit 1); exit 1; }; };;
3730 esac
3731 host=$ac_cv_host
3732 ac_save_IFS=$IFS; IFS='-'
3733 set x $ac_cv_host
3734 shift
3735 host_cpu=$1
3736 host_vendor=$2
3737 shift; shift
3738 # Remember, the first character of IFS is used to create $*,
3739 # except with old shells:
3740 host_os=$*
3741 IFS=$ac_save_IFS
3742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743
3744
3745 { echo "$as_me:$LINENO: checking target system type" >&5
3746 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3747 if test "${ac_cv_target+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if test "x$target_alias" = x; then
3751   ac_cv_target=$ac_cv_host
3752 else
3753   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3754     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3756    { (exit 1); exit 1; }; }
3757 fi
3758
3759 fi
3760 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3761 echo "${ECHO_T}$ac_cv_target" >&6; }
3762 case $ac_cv_target in
3763 *-*-*) ;;
3764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3765 echo "$as_me: error: invalid value of canonical target" >&2;}
3766    { (exit 1); exit 1; }; };;
3767 esac
3768 target=$ac_cv_target
3769 ac_save_IFS=$IFS; IFS='-'
3770 set x $ac_cv_target
3771 shift
3772 target_cpu=$1
3773 target_vendor=$2
3774 shift; shift
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3777 target_os=$*
3778 IFS=$ac_save_IFS
3779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3780
3781
3782 # The aliases save the names the user supplied, while $host etc.
3783 # will get canonicalized.
3784 test -n "$target_alias" &&
3785   test "$program_prefix$program_suffix$program_transform_name" = \
3786     NONENONEs,x,x, &&
3787   program_prefix=${target_alias}-
3788
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3790 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3791 if test "${llvm_cv_os_type+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   case $host in
3795   *-*-aix*)
3796     llvm_cv_link_all_option="-Wl,--whole-archive"
3797     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798     llvm_cv_os_type="AIX"
3799     llvm_cv_platform_type="Unix" ;;
3800   *-*-irix*)
3801     llvm_cv_link_all_option="-Wl,--whole-archive"
3802     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803     llvm_cv_os_type="IRIX"
3804     llvm_cv_platform_type="Unix" ;;
3805   *-*-cygwin*)
3806     llvm_cv_link_all_option="-Wl,--whole-archive"
3807     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3808     llvm_cv_os_type="Cygwin"
3809     llvm_cv_platform_type="Unix" ;;
3810   *-*-darwin*)
3811     llvm_cv_link_all_option="-Wl,-all_load"
3812     llvm_cv_no_link_all_option="-Wl,-noall_load"
3813     llvm_cv_os_type="Darwin"
3814     llvm_cv_platform_type="Unix" ;;
3815   *-*-minix*)
3816     llvm_cv_link_all_option="-Wl,-all_load"
3817     llvm_cv_no_link_all_option="-Wl,-noall_load"
3818     llvm_cv_os_type="Minix"
3819     llvm_cv_platform_type="Unix" ;;
3820   *-*-freebsd* | *-*-kfreebsd-gnu)
3821     llvm_cv_link_all_option="-Wl,--whole-archive"
3822     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823     llvm_cv_os_type="FreeBSD"
3824     llvm_cv_platform_type="Unix" ;;
3825   *-*-openbsd*)
3826     llvm_cv_link_all_option="-Wl,--whole-archive"
3827     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828     llvm_cv_os_type="OpenBSD"
3829     llvm_cv_platform_type="Unix" ;;
3830   *-*-netbsd*)
3831     llvm_cv_link_all_option="-Wl,--whole-archive"
3832     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833     llvm_cv_os_type="NetBSD"
3834     llvm_cv_platform_type="Unix" ;;
3835   *-*-dragonfly*)
3836     llvm_cv_link_all_option="-Wl,--whole-archive"
3837     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838     llvm_cv_os_type="DragonFly"
3839     llvm_cv_platform_type="Unix" ;;
3840   *-*-hpux*)
3841     llvm_cv_link_all_option="-Wl,--whole-archive"
3842     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843     llvm_cv_os_type="HP-UX"
3844     llvm_cv_platform_type="Unix" ;;
3845   *-*-interix*)
3846     llvm_cv_link_all_option="-Wl,--whole-archive"
3847     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848     llvm_cv_os_type="Interix"
3849     llvm_cv_platform_type="Unix" ;;
3850   *-*-linux*)
3851     llvm_cv_link_all_option="-Wl,--whole-archive"
3852     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853     llvm_cv_os_type="Linux"
3854     llvm_cv_platform_type="Unix" ;;
3855   *-*-gnu*)
3856     llvm_cv_link_all_option="-Wl,--whole-archive"
3857     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3858     llvm_cv_os_type="GNU"
3859     llvm_cv_platform_type="Unix" ;;
3860   *-*-solaris*)
3861     llvm_cv_link_all_option="-Wl,-z,allextract"
3862     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3863     llvm_cv_os_type="SunOS"
3864     llvm_cv_platform_type="Unix" ;;
3865   *-*-auroraux*)
3866     llvm_cv_link_all_option="-Wl,-z,allextract"
3867     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3868     llvm_cv_os_type="AuroraUX"
3869     llvm_cv_platform_type="Unix" ;;
3870   *-*-win32*)
3871     llvm_cv_link_all_option="-Wl,--whole-archive"
3872     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873     llvm_cv_os_type="Win32"
3874     llvm_cv_platform_type="Win32" ;;
3875   *-*-mingw*)
3876     llvm_cv_link_all_option="-Wl,--whole-archive"
3877     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878     llvm_cv_os_type="MingW"
3879     llvm_cv_platform_type="Win32" ;;
3880   *-*-haiku*)
3881     llvm_cv_link_all_option="-Wl,--whole-archive"
3882     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883     llvm_cv_os_type="Haiku"
3884     llvm_cv_platform_type="Unix" ;;
3885   *-unknown-eabi*)
3886     llvm_cv_link_all_option="-Wl,--whole-archive"
3887     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888     llvm_cv_os_type="Freestanding"
3889     llvm_cv_platform_type="Unix" ;;
3890   *-unknown-elf*)
3891     llvm_cv_link_all_option="-Wl,--whole-archive"
3892     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3893     llvm_cv_os_type="Freestanding"
3894     llvm_cv_platform_type="Unix" ;;
3895   *)
3896     llvm_cv_link_all_option=""
3897     llvm_cv_no_link_all_option=""
3898     llvm_cv_os_type="Unknown"
3899     llvm_cv_platform_type="Unknown" ;;
3900 esac
3901 fi
3902 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3903 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3904
3905 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3906 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3907 if test "${llvm_cv_target_os_type+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   case $target in
3911   *-*-aix*)
3912     llvm_cv_target_os_type="AIX" ;;
3913   *-*-irix*)
3914     llvm_cv_target_os_type="IRIX" ;;
3915   *-*-cygwin*)
3916     llvm_cv_target_os_type="Cygwin" ;;
3917   *-*-darwin*)
3918     llvm_cv_target_os_type="Darwin" ;;
3919   *-*-minix*)
3920     llvm_cv_target_os_type="Minix" ;;
3921   *-*-freebsd* | *-*-kfreebsd-gnu)
3922     llvm_cv_target_os_type="FreeBSD" ;;
3923   *-*-openbsd*)
3924     llvm_cv_target_os_type="OpenBSD" ;;
3925   *-*-netbsd*)
3926     llvm_cv_target_os_type="NetBSD" ;;
3927   *-*-dragonfly*)
3928     llvm_cv_target_os_type="DragonFly" ;;
3929   *-*-hpux*)
3930     llvm_cv_target_os_type="HP-UX" ;;
3931   *-*-interix*)
3932     llvm_cv_target_os_type="Interix" ;;
3933   *-*-linux*)
3934     llvm_cv_target_os_type="Linux" ;;
3935   *-*-gnu*)
3936     llvm_cv_target_os_type="GNU" ;;
3937   *-*-solaris*)
3938     llvm_cv_target_os_type="SunOS" ;;
3939   *-*-auroraux*)
3940     llvm_cv_target_os_type="AuroraUX" ;;
3941   *-*-win32*)
3942     llvm_cv_target_os_type="Win32" ;;
3943   *-*-mingw*)
3944     llvm_cv_target_os_type="MingW" ;;
3945   *-*-haiku*)
3946     llvm_cv_target_os_type="Haiku" ;;
3947   *-*-rtems*)
3948     llvm_cv_target_os_type="RTEMS" ;;
3949   *-*-nacl*)
3950     llvm_cv_target_os_type="NativeClient" ;;
3951   *-unknown-eabi*)
3952     llvm_cv_target_os_type="Freestanding" ;;
3953   *)
3954     llvm_cv_target_os_type="Unknown" ;;
3955 esac
3956 fi
3957 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3958 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3959
3960 if test "$llvm_cv_os_type" = "Unknown" ; then
3961   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3962 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 OS=$llvm_cv_os_type
3967
3968 HOST_OS=$llvm_cv_os_type
3969
3970 TARGET_OS=$llvm_cv_target_os_type
3971
3972
3973 LINKALL=$llvm_cv_link_all_option
3974
3975 NOLINKALL=$llvm_cv_no_link_all_option
3976
3977
3978 case $llvm_cv_platform_type in
3979   Unix)
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LLVM_ON_UNIX 1
3983 _ACEOF
3984
3985     LLVM_ON_UNIX=1
3986
3987     LLVM_ON_WIN32=0
3988
3989     ;;
3990   Win32)
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define LLVM_ON_WIN32 1
3994 _ACEOF
3995
3996     LLVM_ON_UNIX=0
3997
3998     LLVM_ON_WIN32=1
3999
4000     ;;
4001 esac
4002
4003 { echo "$as_me:$LINENO: checking target architecture" >&5
4004 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4005 if test "${llvm_cv_target_arch+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $target in
4009   i?86-*)                 llvm_cv_target_arch="x86" ;;
4010   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4011   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4012   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4013   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4014   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4015   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4016   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4017   xcore-*)                llvm_cv_target_arch="XCore" ;;
4018   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4019   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4020   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4021   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4022   *)                      llvm_cv_target_arch="Unknown" ;;
4023 esac
4024 fi
4025 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4026 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4027
4028 if test "$llvm_cv_target_arch" = "Unknown" ; then
4029   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4030 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4031 fi
4032
4033 case "$llvm_cv_target_arch" in
4034     x86)     LLVM_NATIVE_ARCH="X86" ;;
4035     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4036     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4037 esac
4038
4039 ARCH=$llvm_cv_target_arch
4040
4041
4042 case $host in
4043   i?86-*)                 host_arch="x86" ;;
4044   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4045   sparc*-*)               host_arch="Sparc" ;;
4046   powerpc*-*)             host_arch="PowerPC" ;;
4047   arm*-*)                 host_arch="ARM" ;;
4048   aarch64*-*)             host_arch="AArch64" ;;
4049   mips-* | mips64-*)      host_arch="Mips" ;;
4050   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4051   xcore-*)                host_arch="XCore" ;;
4052   msp430-*)               host_arch="MSP430" ;;
4053   hexagon-*)              host_arch="Hexagon" ;;
4054   mblaze-*)               host_arch="MBlaze" ;;
4055   *)                      host_arch="Unknown" ;;
4056 esac
4057
4058 if test "$host_arch" = "Unknown" ; then
4059   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4060 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4061 fi
4062
4063 HOST_ARCH=$host_arch
4064
4065
4066
4067
4068 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4069 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   # Extract the first word of "grep ggrep" to use in msg output
4074 if test -z "$GREP"; then
4075 set dummy grep ggrep; ac_prog_name=$2
4076 if test "${ac_cv_path_GREP+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_prog in grep ggrep; do
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4090     # Check for GNU ac_path_GREP and select it if it is found.
4091   # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4093 *GNU*)
4094   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 *)
4096   ac_count=0
4097   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4098   while :
4099   do
4100     cat "conftest.in" "conftest.in" >"conftest.tmp"
4101     mv "conftest.tmp" "conftest.in"
4102     cp "conftest.in" "conftest.nl"
4103     echo 'GREP' >> "conftest.nl"
4104     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106     ac_count=`expr $ac_count + 1`
4107     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108       # Best one so far, save it but keep looking for a better one
4109       ac_cv_path_GREP="$ac_path_GREP"
4110       ac_path_GREP_max=$ac_count
4111     fi
4112     # 10*(2^10) chars as input seems more than enough
4113     test $ac_count -gt 10 && break
4114   done
4115   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 esac
4117
4118
4119     $ac_path_GREP_found && break 3
4120   done
4121 done
4122
4123 done
4124 IFS=$as_save_IFS
4125
4126
4127 fi
4128
4129 GREP="$ac_cv_path_GREP"
4130 if test -z "$GREP"; then
4131   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4132 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4133    { (exit 1); exit 1; }; }
4134 fi
4135
4136 else
4137   ac_cv_path_GREP=$GREP
4138 fi
4139
4140
4141 fi
4142 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4143 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4144  GREP="$ac_cv_path_GREP"
4145
4146
4147 { echo "$as_me:$LINENO: checking for egrep" >&5
4148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4153    then ac_cv_path_EGREP="$GREP -E"
4154    else
4155      # Extract the first word of "egrep" to use in msg output
4156 if test -z "$EGREP"; then
4157 set dummy egrep; ac_prog_name=$2
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168   for ac_prog in egrep; do
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4172     # Check for GNU ac_path_EGREP and select it if it is found.
4173   # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4175 *GNU*)
4176   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4177 *)
4178   ac_count=0
4179   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4180   while :
4181   do
4182     cat "conftest.in" "conftest.in" >"conftest.tmp"
4183     mv "conftest.tmp" "conftest.in"
4184     cp "conftest.in" "conftest.nl"
4185     echo 'EGREP' >> "conftest.nl"
4186     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188     ac_count=`expr $ac_count + 1`
4189     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190       # Best one so far, save it but keep looking for a better one
4191       ac_cv_path_EGREP="$ac_path_EGREP"
4192       ac_path_EGREP_max=$ac_count
4193     fi
4194     # 10*(2^10) chars as input seems more than enough
4195     test $ac_count -gt 10 && break
4196   done
4197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200
4201     $ac_path_EGREP_found && break 3
4202   done
4203 done
4204
4205 done
4206 IFS=$as_save_IFS
4207
4208
4209 fi
4210
4211 EGREP="$ac_cv_path_EGREP"
4212 if test -z "$EGREP"; then
4213   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4215    { (exit 1); exit 1; }; }
4216 fi
4217
4218 else
4219   ac_cv_path_EGREP=$EGREP
4220 fi
4221
4222
4223    fi
4224 fi
4225 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4226 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4227  EGREP="$ac_cv_path_EGREP"
4228
4229
4230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4232 if test "${ac_cv_header_stdc+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <stdlib.h>
4242 #include <stdarg.h>
4243 #include <string.h>
4244 #include <float.h>
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_compile") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   ac_cv_header_stdc=yes
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293         ac_cv_header_stdc=no
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298 if test $ac_cv_header_stdc = yes; then
4299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300   cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 #include <string.h>
4307
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310   $EGREP "memchr" >/dev/null 2>&1; then
4311   :
4312 else
4313   ac_cv_header_stdc=no
4314 fi
4315 rm -f conftest*
4316
4317 fi
4318
4319 if test $ac_cv_header_stdc = yes; then
4320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 #include <stdlib.h>
4328
4329 _ACEOF
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331   $EGREP "free" >/dev/null 2>&1; then
4332   :
4333 else
4334   ac_cv_header_stdc=no
4335 fi
4336 rm -f conftest*
4337
4338 fi
4339
4340 if test $ac_cv_header_stdc = yes; then
4341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342   if test "$cross_compiling" = yes; then
4343   :
4344 else
4345   cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 #include <ctype.h>
4352 #include <stdlib.h>
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356 #else
4357 # define ISLOWER(c) \
4358                    (('a' <= (c) && (c) <= 'i') \
4359                      || ('j' <= (c) && (c) <= 'r') \
4360                      || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #endif
4363
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 int
4366 main ()
4367 {
4368   int i;
4369   for (i = 0; i < 256; i++)
4370     if (XOR (islower (i), ISLOWER (i))
4371         || toupper (i) != TOUPPER (i))
4372       return 2;
4373   return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest$ac_exeext
4377 if { (ac_try="$ac_link"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_link") 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; }; then
4396   :
4397 else
4398   echo "$as_me: program exited with status $ac_status" >&5
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ( exit $ac_status )
4403 ac_cv_header_stdc=no
4404 fi
4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4406 fi
4407
4408
4409 fi
4410 fi
4411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4413 if test $ac_cv_header_stdc = yes; then
4414
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4417 _ACEOF
4418
4419 fi
4420
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432                   inttypes.h stdint.h unistd.h
4433 do
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 $ac_includes_default
4447
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_compile") 2>conftest.er1
4458   ac_status=$?
4459   grep -v '^ *+' conftest.er1 >conftest.err
4460   rm -f conftest.er1
4461   cat conftest.err >&5
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } &&
4464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465   { (case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470   (eval "$ac_try") 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; } &&
4474          { ac_try='test -s conftest.$ac_objext'
4475   { (case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480   (eval "$ac_try") 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   eval "$as_ac_Header=yes"
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         eval "$as_ac_Header=no"
4490 fi
4491
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 ac_res=`eval echo '${'$as_ac_Header'}'`
4495                { echo "$as_me:$LINENO: result: $ac_res" >&5
4496 echo "${ECHO_T}$ac_res" >&6; }
4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498   cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500 _ACEOF
4501
4502 fi
4503
4504 done
4505
4506
4507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4509 if test "${ac_cv_c_bigendian+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   # See if sys/param.h defines the BYTE_ORDER macro.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 #include <sys/types.h>
4520 #include <sys/param.h>
4521
4522 int
4523 main ()
4524 {
4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4526  bogus endian macros
4527 #endif
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_compile") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4548   { (case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; } &&
4557          { ac_try='test -s conftest.$ac_objext'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4576
4577 int
4578 main ()
4579 {
4580 #if BYTE_ORDER != BIG_ENDIAN
4581  not big endian
4582 #endif
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595   (eval "$ac_compile") 2>conftest.er1
4596   ac_status=$?
4597   grep -v '^ *+' conftest.er1 >conftest.err
4598   rm -f conftest.er1
4599   cat conftest.err >&5
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } &&
4602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4603   { (case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608   (eval "$ac_try") 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (case "(($ac_try" in
4614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615   *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618   (eval "$ac_try") 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_cv_c_bigendian=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627         ac_cv_c_bigendian=no
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635         # It does not; compile a test program.
4636 if test "$cross_compiling" = yes; then
4637   # try to guess the endianness by grepping values into an object file
4638   ac_cv_c_bigendian=unknown
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4651 int
4652 main ()
4653 {
4654  _ascii (); _ebcdic ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4661 case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_compile") 2>conftest.er1
4667   ac_status=$?
4668   grep -v '^ *+' conftest.er1 >conftest.err
4669   rm -f conftest.er1
4670   cat conftest.err >&5
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } &&
4673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4674   { (case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; } &&
4683          { ac_try='test -s conftest.$ac_objext'
4684   { (case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_try") 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4694   ac_cv_c_bigendian=yes
4695 fi
4696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4697   if test "$ac_cv_c_bigendian" = unknown; then
4698     ac_cv_c_bigendian=no
4699   else
4700     # finding both strings is unlikely to happen, but who knows?
4701     ac_cv_c_bigendian=unknown
4702   fi
4703 fi
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708
4709 fi
4710
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 else
4713   cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 $ac_includes_default
4720 int
4721 main ()
4722 {
4723
4724   /* Are we little or big endian?  From Harbison&Steele.  */
4725   union
4726   {
4727     long int l;
4728     char c[sizeof (long int)];
4729   } u;
4730   u.l = 1;
4731   return u.c[sizeof (long int) - 1] == 1;
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest$ac_exeext
4738 if { (ac_try="$ac_link"
4739 case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_link") 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_cv_c_bigendian=no
4758 else
4759   echo "$as_me: program exited with status $ac_status" >&5
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ( exit $ac_status )
4764 ac_cv_c_bigendian=yes
4765 fi
4766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 fi
4768
4769
4770 fi
4771
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4776 case $ac_cv_c_bigendian in
4777   yes)
4778     ENDIAN=big
4779  ;;
4780   no)
4781     ENDIAN=little
4782  ;;
4783   *)
4784     { { echo "$as_me:$LINENO: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4786 echo "$as_me: error: unknown endianness
4787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4788    { (exit 1); exit 1; }; } ;;
4789 esac
4790
4791
4792 if test "$cross_compiling" = yes; then
4793   LLVM_CROSS_COMPILING=1
4794
4795
4796 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4797 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4798 if test "${ac_cv_build_exeext+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4802   ac_cv_build_exeext=.exe
4803 else
4804   ac_build_prefix=${build_alias}-
4805
4806   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_build_prefix}gcc; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$BUILD_CC"; then
4814   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 BUILD_CC=$ac_cv_prog_BUILD_CC
4834 if test -n "$BUILD_CC"; then
4835   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4836 echo "${ECHO_T}$BUILD_CC" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842
4843   if test -z "$BUILD_CC"; then
4844      # Extract the first word of "gcc", so it can be a program name with args.
4845 set dummy gcc; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   if test -n "$BUILD_CC"; then
4852   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_prog_BUILD_CC="gcc"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869 fi
4870 fi
4871 BUILD_CC=$ac_cv_prog_BUILD_CC
4872 if test -n "$BUILD_CC"; then
4873   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4874 echo "${ECHO_T}$BUILD_CC" >&6; }
4875 else
4876   { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 fi
4879
4880
4881      if test -z "$BUILD_CC"; then
4882        # Extract the first word of "cc", so it can be a program name with args.
4883 set dummy cc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$BUILD_CC"; then
4890   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4891 else
4892   ac_prog_rejected=no
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898   for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4901        ac_prog_rejected=yes
4902        continue
4903      fi
4904     ac_cv_prog_BUILD_CC="cc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 if test $ac_prog_rejected = yes; then
4913   # We found a bogon in the path, so make sure we never use it.
4914   set dummy $ac_cv_prog_BUILD_CC
4915   shift
4916   if test $# != 0; then
4917     # We chose a different compiler from the bogus one.
4918     # However, it has the same basename, so the bogon will be chosen
4919     # first if we set BUILD_CC to just the basename; use the full file name.
4920     shift
4921     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4922   fi
4923 fi
4924 fi
4925 fi
4926 BUILD_CC=$ac_cv_prog_BUILD_CC
4927 if test -n "$BUILD_CC"; then
4928   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4929 echo "${ECHO_T}$BUILD_CC" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936      fi
4937   fi
4938   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4939 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4940    { (exit 1); exit 1; }; }
4941   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4942   rm -f conftest*
4943   echo 'int main () { return 0; }' > conftest.$ac_ext
4944   ac_cv_build_exeext=
4945   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4946   (eval $ac_build_link) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; then
4950     for file in conftest.*; do
4951       case $file in
4952       *.c | *.o | *.obj | *.dSYM) ;;
4953       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4954       esac
4955     done
4956   else
4957     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4958 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4959    { (exit 1); exit 1; }; }
4960   fi
4961   rm -f conftest*
4962   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4963 fi
4964 fi
4965
4966 BUILD_EXEEXT=""
4967 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4968 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4969 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4970 ac_build_exeext=$BUILD_EXEEXT
4971
4972   ac_build_prefix=${build_alias}-
4973   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4974 set dummy ${ac_build_prefix}g++; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   if test -n "$BUILD_CXX"; then
4981   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5001 if test -n "$BUILD_CXX"; then
5002   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5003 echo "${ECHO_T}$BUILD_CXX" >&6; }
5004 else
5005   { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009
5010   if test -z "$BUILD_CXX"; then
5011      # Extract the first word of "g++", so it can be a program name with args.
5012 set dummy g++; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$BUILD_CXX"; then
5019   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5028     ac_cv_prog_BUILD_CXX="g++"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5039 if test -n "$BUILD_CXX"; then
5040   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5041 echo "${ECHO_T}$BUILD_CXX" >&6; }
5042 else
5043   { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5045 fi
5046
5047
5048      if test -z "$BUILD_CXX"; then
5049        # Extract the first word of "c++", so it can be a program name with args.
5050 set dummy c++; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$BUILD_CXX"; then
5057   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5058 else
5059   ac_prog_rejected=no
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5068        ac_prog_rejected=yes
5069        continue
5070      fi
5071     ac_cv_prog_BUILD_CXX="c++"
5072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 if test $ac_prog_rejected = yes; then
5080   # We found a bogon in the path, so make sure we never use it.
5081   set dummy $ac_cv_prog_BUILD_CXX
5082   shift
5083   if test $# != 0; then
5084     # We chose a different compiler from the bogus one.
5085     # However, it has the same basename, so the bogon will be chosen
5086     # first if we set BUILD_CXX to just the basename; use the full file name.
5087     shift
5088     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5089   fi
5090 fi
5091 fi
5092 fi
5093 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5094 if test -n "$BUILD_CXX"; then
5095   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5096 echo "${ECHO_T}$BUILD_CXX" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103      fi
5104   fi
5105 else
5106   LLVM_CROSS_COMPILING=0
5107
5108 fi
5109
5110 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5111   cvsbuild="yes"
5112   optimize="no"
5113   CVSBUILD=CVSBUILD=1
5114
5115 else
5116   cvsbuild="no"
5117   optimize="yes"
5118 fi
5119
5120
5121 # Check whether --enable-libcpp was given.
5122 if test "${enable_libcpp+set}" = set; then
5123   enableval=$enable_libcpp;
5124 else
5125   enableval=default
5126 fi
5127
5128 case "$enableval" in
5129   yes) ENABLE_LIBCPP=1
5130  ;;
5131   no)  ENABLE_LIBCPP=0
5132  ;;
5133   default) ENABLE_LIBCPP=0
5134 ;;
5135   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5137    { (exit 1); exit 1; }; } ;;
5138 esac
5139
5140 # Check whether --enable-cxx11 was given.
5141 if test "${enable_cxx11+set}" = set; then
5142   enableval=$enable_cxx11;
5143 else
5144   enableval=default
5145 fi
5146
5147 case "$enableval" in
5148   yes) ENABLE_CXX11=1
5149  ;;
5150   no)  ENABLE_CXX11=0
5151  ;;
5152   default) ENABLE_CXX11=0
5153 ;;
5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5156    { (exit 1); exit 1; }; } ;;
5157 esac
5158
5159 clang_arcmt="yes"
5160 # Check whether --enable-clang-arcmt was given.
5161 if test "${enable_clang_arcmt+set}" = set; then
5162   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5163 else
5164   enableval="yes"
5165 fi
5166
5167 case "$enableval" in
5168   yes) ENABLE_CLANG_ARCMT=1
5169  ;;
5170   no)  ENABLE_CLANG_ARCMT=0
5171  ;;
5172   default) ENABLE_CLANG_ARCMT=1
5173 ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179 clang_static_analyzer="yes"
5180 # Check whether --enable-clang-static-analyzer was given.
5181 if test "${enable_clang_static_analyzer+set}" = set; then
5182   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5183 else
5184   enableval="yes"
5185 fi
5186
5187 case "$enableval" in
5188   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5189  ;;
5190   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5191  ;;
5192   default) ENABLE_CLANG_STATIC_ANALYZER=1
5193 ;;
5194   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5196    { (exit 1); exit 1; }; } ;;
5197 esac
5198
5199 # Check whether --enable-clang-rewriter was given.
5200 if test "${enable_clang_rewriter+set}" = set; then
5201   enableval=$enable_clang_rewriter;
5202 else
5203   enableval="yes"
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_CLANG_REWRITER=1
5208  ;;
5209   no)
5210     if test ${clang_arcmt} != "no" ; then
5211       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5213    { (exit 1); exit 1; }; }
5214     fi
5215     if test ${clang_static_analyzer} != "no" ; then
5216       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5217 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5218    { (exit 1); exit 1; }; }
5219     fi
5220     ENABLE_CLANG_REWRITER=0
5221
5222     ;;
5223   default) ENABLE_CLANG_REWRITER=1
5224 ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229
5230 # Check whether --enable-optimized was given.
5231 if test "${enable_optimized+set}" = set; then
5232   enableval=$enable_optimized;
5233 else
5234   enableval=$optimize
5235 fi
5236
5237 if test ${enableval} = "no" ; then
5238   ENABLE_OPTIMIZED=
5239
5240 else
5241   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5242
5243 fi
5244
5245 # Check whether --enable-profiling was given.
5246 if test "${enable_profiling+set}" = set; then
5247   enableval=$enable_profiling;
5248 else
5249   enableval="no"
5250 fi
5251
5252 if test ${enableval} = "no" ; then
5253   ENABLE_PROFILING=
5254
5255 else
5256   ENABLE_PROFILING=ENABLE_PROFILING=1
5257
5258 fi
5259
5260 # Check whether --enable-assertions was given.
5261 if test "${enable_assertions+set}" = set; then
5262   enableval=$enable_assertions;
5263 else
5264   enableval="yes"
5265 fi
5266
5267 if test ${enableval} = "yes" ; then
5268   DISABLE_ASSERTIONS=
5269
5270 else
5271   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5272
5273 fi
5274
5275 # Check whether --enable-werror was given.
5276 if test "${enable_werror+set}" = set; then
5277   enableval=$enable_werror;
5278 else
5279   enableval="no"
5280 fi
5281
5282 case "$enableval" in
5283   yes) ENABLE_WERROR=1
5284  ;;
5285   no)  ENABLE_WERROR=0
5286  ;;
5287   default) ENABLE_WERROR=0
5288 ;;
5289   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5291    { (exit 1); exit 1; }; } ;;
5292 esac
5293
5294 # Check whether --enable-expensive-checks was given.
5295 if test "${enable_expensive_checks+set}" = set; then
5296   enableval=$enable_expensive_checks;
5297 else
5298   enableval="no"
5299 fi
5300
5301 if test ${enableval} = "yes" ; then
5302   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5303
5304   EXPENSIVE_CHECKS=yes
5305
5306 else
5307   ENABLE_EXPENSIVE_CHECKS=
5308
5309   EXPENSIVE_CHECKS=no
5310
5311 fi
5312
5313 # Check whether --enable-debug-runtime was given.
5314 if test "${enable_debug_runtime+set}" = set; then
5315   enableval=$enable_debug_runtime;
5316 else
5317   enableval=no
5318 fi
5319
5320 if test ${enableval} = "no" ; then
5321   DEBUG_RUNTIME=
5322
5323 else
5324   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5325
5326 fi
5327
5328 # Check whether --enable-debug-symbols was given.
5329 if test "${enable_debug_symbols+set}" = set; then
5330   enableval=$enable_debug_symbols;
5331 else
5332   enableval=no
5333 fi
5334
5335 if test ${enableval} = "no" ; then
5336   DEBUG_SYMBOLS=
5337
5338 else
5339   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5340
5341 fi
5342
5343 # Check whether --enable-keep-symbols was given.
5344 if test "${enable_keep_symbols+set}" = set; then
5345   enableval=$enable_keep_symbols;
5346 else
5347   enableval=no
5348 fi
5349
5350 if test ${enableval} = "no" ; then
5351   KEEP_SYMBOLS=
5352
5353 else
5354   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5355
5356 fi
5357
5358 # Check whether --enable-jit was given.
5359 if test "${enable_jit+set}" = set; then
5360   enableval=$enable_jit;
5361 else
5362   enableval=default
5363 fi
5364
5365 if test ${enableval} = "no"
5366 then
5367   JIT=
5368
5369 else
5370   case "$llvm_cv_target_arch" in
5371     x86)         TARGET_HAS_JIT=1
5372  ;;
5373     Sparc)       TARGET_HAS_JIT=0
5374  ;;
5375     PowerPC)     TARGET_HAS_JIT=1
5376  ;;
5377     x86_64)      TARGET_HAS_JIT=1
5378  ;;
5379     ARM)         TARGET_HAS_JIT=1
5380  ;;
5381     AArch64)     TARGET_HAS_JIT=0
5382  ;;
5383     Mips)        TARGET_HAS_JIT=1
5384  ;;
5385     XCore)       TARGET_HAS_JIT=0
5386  ;;
5387     MSP430)      TARGET_HAS_JIT=0
5388  ;;
5389     Hexagon)     TARGET_HAS_JIT=0
5390  ;;
5391     MBlaze)      TARGET_HAS_JIT=0
5392  ;;
5393     NVPTX)       TARGET_HAS_JIT=0
5394  ;;
5395     *)           TARGET_HAS_JIT=0
5396  ;;
5397   esac
5398 fi
5399
5400 # Check whether --enable-docs was given.
5401 if test "${enable_docs+set}" = set; then
5402   enableval=$enable_docs;
5403 else
5404   enableval=default
5405 fi
5406
5407 case "$enableval" in
5408   yes) ENABLE_DOCS=1
5409  ;;
5410   no)  ENABLE_DOCS=0
5411  ;;
5412   default) ENABLE_DOCS=1
5413  ;;
5414   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417 esac
5418
5419 # Check whether --enable-doxygen was given.
5420 if test "${enable_doxygen+set}" = set; then
5421   enableval=$enable_doxygen;
5422 else
5423   enableval=default
5424 fi
5425
5426 case "$enableval" in
5427   yes) ENABLE_DOXYGEN=1
5428  ;;
5429   no)  ENABLE_DOXYGEN=0
5430  ;;
5431   default) ENABLE_DOXYGEN=0
5432  ;;
5433   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5435    { (exit 1); exit 1; }; } ;;
5436 esac
5437
5438 # Check whether --enable-threads was given.
5439 if test "${enable_threads+set}" = set; then
5440   enableval=$enable_threads;
5441 else
5442   enableval=default
5443 fi
5444
5445 case "$enableval" in
5446   yes) LLVM_ENABLE_THREADS=1
5447  ;;
5448   no)  LLVM_ENABLE_THREADS=0
5449  ;;
5450   default) LLVM_ENABLE_THREADS=1
5451  ;;
5452   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5453 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5454    { (exit 1); exit 1; }; } ;;
5455 esac
5456
5457 cat >>confdefs.h <<_ACEOF
5458 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5459 _ACEOF
5460
5461
5462 # Check whether --enable-pthreads was given.
5463 if test "${enable_pthreads+set}" = set; then
5464   enableval=$enable_pthreads;
5465 else
5466   enableval=default
5467 fi
5468
5469 case "$enableval" in
5470   yes) ENABLE_PTHREADS=1
5471  ;;
5472   no)  ENABLE_PTHREADS=0
5473  ;;
5474   default) ENABLE_PTHREADS=1
5475  ;;
5476   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5478    { (exit 1); exit 1; }; } ;;
5479 esac
5480
5481 # Check whether --enable-pic was given.
5482 if test "${enable_pic+set}" = set; then
5483   enableval=$enable_pic;
5484 else
5485   enableval=default
5486 fi
5487
5488 case "$enableval" in
5489   yes) ENABLE_PIC=1
5490  ;;
5491   no)  ENABLE_PIC=0
5492  ;;
5493   default) ENABLE_PIC=1
5494  ;;
5495   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5497    { (exit 1); exit 1; }; } ;;
5498 esac
5499
5500 cat >>confdefs.h <<_ACEOF
5501 #define ENABLE_PIC $ENABLE_PIC
5502 _ACEOF
5503
5504
5505 # Check whether --enable-shared was given.
5506 if test "${enable_shared+set}" = set; then
5507   enableval=$enable_shared;
5508 else
5509   enableval=default
5510 fi
5511
5512 case "$enableval" in
5513   yes) ENABLE_SHARED=1
5514  ;;
5515   no)  ENABLE_SHARED=0
5516  ;;
5517   default) ENABLE_SHARED=0
5518  ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524 # Check whether --enable-embed-stdcxx was given.
5525 if test "${enable_embed_stdcxx+set}" = set; then
5526   enableval=$enable_embed_stdcxx;
5527 else
5528   enableval=default
5529 fi
5530
5531 case "$enableval" in
5532   yes) ENABLE_EMBED_STDCXX=1
5533  ;;
5534   no)  ENABLE_EMBED_STDCXX=0
5535  ;;
5536   default) ENABLE_EMBED_STDCXX=0
5537  ;;
5538   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5540    { (exit 1); exit 1; }; } ;;
5541 esac
5542
5543 # Check whether --enable-timestamps was given.
5544 if test "${enable_timestamps+set}" = set; then
5545   enableval=$enable_timestamps;
5546 else
5547   enableval=default
5548 fi
5549
5550 case "$enableval" in
5551   yes) ENABLE_TIMESTAMPS=1
5552  ;;
5553   no)  ENABLE_TIMESTAMPS=0
5554  ;;
5555   default) ENABLE_TIMESTAMPS=1
5556  ;;
5557   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5558 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5559    { (exit 1); exit 1; }; } ;;
5560 esac
5561
5562 cat >>confdefs.h <<_ACEOF
5563 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5564 _ACEOF
5565
5566
5567
5568 # Check whether --enable-backtraces was given.
5569 if test "${enable_backtraces+set}" = set; then
5570   enableval=$enable_backtraces;
5571 else
5572   enableval=default
5573 fi
5574
5575 case "$enableval" in
5576   yes) ENABLE_BACKTRACES=1
5577  ;;
5578   no)  ENABLE_BACKTRACES=0
5579  ;;
5580   default) ENABLE_BACKTRACES=1
5581  ;;
5582   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585 esac
5586
5587 cat >>confdefs.h <<_ACEOF
5588 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5589 _ACEOF
5590
5591
5592 TARGETS_TO_BUILD=""
5593 # Check whether --enable-targets was given.
5594 if test "${enable_targets+set}" = set; then
5595   enableval=$enable_targets;
5596 else
5597   enableval=all
5598 fi
5599
5600 if test "$enableval" = host-only ; then
5601   enableval=host
5602 fi
5603 case "$enableval" in
5604   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5605   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5606       case "$a_target" in
5607         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5608         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5610         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5611         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5612         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5613         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5616         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5618         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5619         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5620         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5621         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5622         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623         host) case "$llvm_cv_target_arch" in
5624             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5625             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5627             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5628             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5629             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5630             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5631             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5632             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5633             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5634             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5635             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5636             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5637 echo "$as_me: error: Can not set target to build" >&2;}
5638    { (exit 1); exit 1; }; } ;;
5639           esac ;;
5640         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5641 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5642    { (exit 1); exit 1; }; } ;;
5643       esac
5644   done
5645   ;;
5646 esac
5647
5648 # Check whether --enable-experimental-targets was given.
5649 if test "${enable_experimental_targets+set}" = set; then
5650   enableval=$enable_experimental_targets;
5651 else
5652   enableval=disable
5653 fi
5654
5655
5656 if test ${enableval} != "disable"
5657 then
5658   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5659 fi
5660
5661 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5662
5663
5664 for a_target in $TARGETS_TO_BUILD; do
5665   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5669 _ACEOF
5670
5671     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5672     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5673     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5674     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5675     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5676       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5677     fi
5678     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5679       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5680     fi
5681
5682 cat >>confdefs.h <<_ACEOF
5683 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5684 _ACEOF
5685
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5689 _ACEOF
5690
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5694 _ACEOF
5695
5696
5697 cat >>confdefs.h <<_ACEOF
5698 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5699 _ACEOF
5700
5701     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5702
5703 cat >>confdefs.h <<_ACEOF
5704 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5705 _ACEOF
5706
5707     fi
5708     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5709
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5712 _ACEOF
5713
5714     fi
5715   fi
5716 done
5717
5718 LLVM_ENUM_TARGETS=""
5719 LLVM_ENUM_ASM_PRINTERS=""
5720 LLVM_ENUM_ASM_PARSERS=""
5721 LLVM_ENUM_DISASSEMBLERS=""
5722 for target_to_build in $TARGETS_TO_BUILD; do
5723   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5724   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5725     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5726   fi
5727   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5728     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5729   fi
5730   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5731     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5732   fi
5733 done
5734
5735
5736
5737
5738
5739
5740 # Check whether --with-optimize-option was given.
5741 if test "${with_optimize_option+set}" = set; then
5742   withval=$with_optimize_option;
5743 else
5744   withval=default
5745 fi
5746
5747 { echo "$as_me:$LINENO: checking optimization flags" >&5
5748 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5749 case "$withval" in
5750   default)
5751     case "$llvm_cv_os_type" in
5752     FreeBSD) optimize_option=-O2 ;;
5753     MingW) optimize_option=-O2 ;;
5754     *)     optimize_option=-O3 ;;
5755     esac ;;
5756   *) optimize_option="$withval" ;;
5757 esac
5758 OPTIMIZE_OPTION=$optimize_option
5759
5760 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5761 echo "${ECHO_T}$optimize_option" >&6; }
5762
5763
5764 # Check whether --with-extra-options was given.
5765 if test "${with_extra_options+set}" = set; then
5766   withval=$with_extra_options;
5767 else
5768   withval=default
5769 fi
5770
5771 case "$withval" in
5772   default) EXTRA_OPTIONS= ;;
5773   *) EXTRA_OPTIONS=$withval ;;
5774 esac
5775 EXTRA_OPTIONS=$EXTRA_OPTIONS
5776
5777
5778
5779 # Check whether --with-extra-ld-options was given.
5780 if test "${with_extra_ld_options+set}" = set; then
5781   withval=$with_extra_ld_options;
5782 else
5783   withval=default
5784 fi
5785
5786 case "$withval" in
5787   default) EXTRA_LD_OPTIONS= ;;
5788   *) EXTRA_LD_OPTIONS=$withval ;;
5789 esac
5790 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5791
5792
5793 # Check whether --enable-bindings was given.
5794 if test "${enable_bindings+set}" = set; then
5795   enableval=$enable_bindings;
5796 else
5797   enableval=default
5798 fi
5799
5800 BINDINGS_TO_BUILD=""
5801 case "$enableval" in
5802   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5803   all ) BINDINGS_TO_BUILD="ocaml" ;;
5804   none | no) BINDINGS_TO_BUILD="" ;;
5805   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5806       case "$a_binding" in
5807         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5808         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5809 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5810    { (exit 1); exit 1; }; } ;;
5811       esac
5812   done
5813   ;;
5814 esac
5815
5816
5817 # Check whether --with-ocaml-libdir was given.
5818 if test "${with_ocaml_libdir+set}" = set; then
5819   withval=$with_ocaml_libdir;
5820 else
5821   withval=auto
5822 fi
5823
5824 case "$withval" in
5825   auto) with_ocaml_libdir="$withval" ;;
5826   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5827   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5828 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5829    { (exit 1); exit 1; }; } ;;
5830 esac
5831
5832
5833 # Check whether --with-clang-srcdir was given.
5834 if test "${with_clang_srcdir+set}" = set; then
5835   withval=$with_clang_srcdir;
5836 else
5837   withval="-"
5838 fi
5839
5840 case "$withval" in
5841   -) clang_src_root="" ;;
5842   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5843   *) clang_src_root="$ac_pwd/$withval" ;;
5844 esac
5845 CLANG_SRC_ROOT=$clang_src_root
5846
5847
5848
5849 # Check whether --with-clang-resource-dir was given.
5850 if test "${with_clang_resource_dir+set}" = set; then
5851   withval=$with_clang_resource_dir;
5852 else
5853   withval=""
5854 fi
5855
5856
5857 cat >>confdefs.h <<_ACEOF
5858 #define CLANG_RESOURCE_DIR "$withval"
5859 _ACEOF
5860
5861
5862
5863 # Check whether --with-c-include-dirs was given.
5864 if test "${with_c_include_dirs+set}" = set; then
5865   withval=$with_c_include_dirs;
5866 else
5867   withval=""
5868 fi
5869
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define C_INCLUDE_DIRS "$withval"
5873 _ACEOF
5874
5875
5876 # Clang normally uses the system c++ headers and libraries. With this option,
5877 # clang will use the ones provided by a gcc installation instead. This option should
5878 # be passed the same value that was used with --prefix when configuring gcc.
5879
5880 # Check whether --with-gcc-toolchain was given.
5881 if test "${with_gcc_toolchain+set}" = set; then
5882   withval=$with_gcc_toolchain;
5883 else
5884   withval=""
5885 fi
5886
5887
5888 cat >>confdefs.h <<_ACEOF
5889 #define GCC_INSTALL_PREFIX "$withval"
5890 _ACEOF
5891
5892
5893
5894 # Check whether --with-default-sysroot was given.
5895 if test "${with_default_sysroot+set}" = set; then
5896   withval=$with_default_sysroot;
5897 else
5898   withval=""
5899 fi
5900
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define DEFAULT_SYSROOT "$withval"
5904 _ACEOF
5905
5906
5907
5908 # Check whether --with-binutils-include was given.
5909 if test "${with_binutils_include+set}" = set; then
5910   withval=$with_binutils_include;
5911 else
5912   withval=default
5913 fi
5914
5915 case "$withval" in
5916   default) WITH_BINUTILS_INCDIR=default ;;
5917   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5918   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5919 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5920    { (exit 1); exit 1; }; } ;;
5921 esac
5922 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5923   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5924
5925   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5926      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5927      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5928 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5929    { (exit 1); exit 1; }; };
5930   fi
5931 fi
5932
5933
5934 # Check whether --with-bug-report-url was given.
5935 if test "${with_bug_report_url+set}" = set; then
5936   withval=$with_bug_report_url;
5937 else
5938   withval="http://llvm.org/bugs/"
5939 fi
5940
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define BUG_REPORT_URL "$withval"
5944 _ACEOF
5945
5946
5947 # Check whether --enable-libffi was given.
5948 if test "${enable_libffi+set}" = set; then
5949   enableval=$enable_libffi; case "$enableval" in
5950     yes) llvm_cv_enable_libffi="yes" ;;
5951     no)  llvm_cv_enable_libffi="no"  ;;
5952     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5953 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5954    { (exit 1); exit 1; }; } ;;
5955   esac
5956 else
5957   llvm_cv_enable_libffi=no
5958 fi
5959
5960
5961
5962 # Check whether --with-internal-prefix was given.
5963 if test "${with_internal_prefix+set}" = set; then
5964   withval=$with_internal_prefix;
5965 else
5966   withval=""
5967 fi
5968
5969 INTERNAL_PREFIX=$withval
5970
5971
5972
5973 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975 if test "${lt_cv_path_NM+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   if test -n "$NM"; then
5979   # Let the user override the test.
5980   lt_cv_path_NM="$NM"
5981 else
5982   lt_nm_to_check="${ac_tool_prefix}nm"
5983   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984     lt_nm_to_check="$lt_nm_to_check nm"
5985   fi
5986   for lt_tmp_nm in $lt_nm_to_check; do
5987     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989       IFS="$lt_save_ifs"
5990       test -z "$ac_dir" && ac_dir=.
5991       tmp_nm="$ac_dir/$lt_tmp_nm"
5992       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993         # Check to see if the nm accepts a BSD-compat flag.
5994         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995         #   nm: unknown option "B" ignored
5996         # Tru64's nm complains that /dev/null is an invalid object file
5997         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998         */dev/null* | *'Invalid file or object type'*)
5999           lt_cv_path_NM="$tmp_nm -B"
6000           break
6001           ;;
6002         *)
6003           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004           */dev/null*)
6005             lt_cv_path_NM="$tmp_nm -p"
6006             break
6007             ;;
6008           *)
6009             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010             continue # so that we can try to find one that supports BSD flags
6011             ;;
6012           esac
6013           ;;
6014         esac
6015       fi
6016     done
6017     IFS="$lt_save_ifs"
6018   done
6019   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020 fi
6021 fi
6022 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6024 NM="$lt_cv_path_NM"
6025
6026
6027
6028 { echo "$as_me:$LINENO: checking for GNU make" >&5
6029 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6030 if test "${llvm_cv_gnu_make_command+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   llvm_cv_gnu_make_command=''
6034  for a in "$MAKE" make gmake gnumake ; do
6035   if test -z "$a" ; then continue ; fi ;
6036   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6037   then
6038    llvm_cv_gnu_make_command=$a ;
6039    break;
6040   fi
6041  done
6042 fi
6043 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6044 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6045  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6046    ifGNUmake='' ;
6047  else
6048    ifGNUmake='#' ;
6049    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6050 echo "${ECHO_T}\"Not found\"" >&6; };
6051  fi
6052
6053
6054 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6055 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6056 LN_S=$as_ln_s
6057 if test "$LN_S" = "ln -s"; then
6058   { echo "$as_me:$LINENO: result: yes" >&5
6059 echo "${ECHO_T}yes" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6062 echo "${ECHO_T}no, using $LN_S" >&6; }
6063 fi
6064
6065 # Extract the first word of "cmp", so it can be a program name with args.
6066 set dummy cmp; ac_word=$2
6067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069 if test "${ac_cv_path_CMP+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   case $CMP in
6073   [\\/]* | ?:[\\/]*)
6074   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6075   ;;
6076   *)
6077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082   for ac_exec_ext in '' $ac_executable_extensions; do
6083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6084     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6093   ;;
6094 esac
6095 fi
6096 CMP=$ac_cv_path_CMP
6097 if test -n "$CMP"; then
6098   { echo "$as_me:$LINENO: result: $CMP" >&5
6099 echo "${ECHO_T}$CMP" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6103 fi
6104
6105
6106 # Extract the first word of "cp", so it can be a program name with args.
6107 set dummy cp; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_path_CP+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   case $CP in
6114   [\\/]* | ?:[\\/]*)
6115   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6116   ;;
6117   *)
6118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123   for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6134   ;;
6135 esac
6136 fi
6137 CP=$ac_cv_path_CP
6138 if test -n "$CP"; then
6139   { echo "$as_me:$LINENO: result: $CP" >&5
6140 echo "${ECHO_T}$CP" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6144 fi
6145
6146
6147 # Extract the first word of "date", so it can be a program name with args.
6148 set dummy date; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_path_DATE+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   case $DATE in
6155   [\\/]* | ?:[\\/]*)
6156   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6157   ;;
6158   *)
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6175   ;;
6176 esac
6177 fi
6178 DATE=$ac_cv_path_DATE
6179 if test -n "$DATE"; then
6180   { echo "$as_me:$LINENO: result: $DATE" >&5
6181 echo "${ECHO_T}$DATE" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188 # Extract the first word of "find", so it can be a program name with args.
6189 set dummy find; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_path_FIND+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   case $FIND in
6196   [\\/]* | ?:[\\/]*)
6197   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6198   ;;
6199   *)
6200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6216   ;;
6217 esac
6218 fi
6219 FIND=$ac_cv_path_FIND
6220 if test -n "$FIND"; then
6221   { echo "$as_me:$LINENO: result: $FIND" >&5
6222 echo "${ECHO_T}$FIND" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 # Extract the first word of "grep", so it can be a program name with args.
6230 set dummy grep; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_GREP+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   case $GREP in
6237   [\\/]* | ?:[\\/]*)
6238   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6239   ;;
6240   *)
6241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6257   ;;
6258 esac
6259 fi
6260 GREP=$ac_cv_path_GREP
6261 if test -n "$GREP"; then
6262   { echo "$as_me:$LINENO: result: $GREP" >&5
6263 echo "${ECHO_T}$GREP" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270 # Extract the first word of "mkdir", so it can be a program name with args.
6271 set dummy mkdir; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_MKDIR+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   case $MKDIR in
6278   [\\/]* | ?:[\\/]*)
6279   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6280   ;;
6281   *)
6282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6298   ;;
6299 esac
6300 fi
6301 MKDIR=$ac_cv_path_MKDIR
6302 if test -n "$MKDIR"; then
6303   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6304 echo "${ECHO_T}$MKDIR" >&6; }
6305 else
6306   { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6308 fi
6309
6310
6311 # Extract the first word of "mv", so it can be a program name with args.
6312 set dummy mv; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_MV+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   case $MV in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6339   ;;
6340 esac
6341 fi
6342 MV=$ac_cv_path_MV
6343 if test -n "$MV"; then
6344   { echo "$as_me:$LINENO: result: $MV" >&5
6345 echo "${ECHO_T}$MV" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6349 fi
6350
6351
6352 if test -n "$ac_tool_prefix"; then
6353   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   if test -n "$RANLIB"; then
6361   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392   ac_ct_RANLIB=$RANLIB
6393   # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   if test -n "$ac_ct_RANLIB"; then
6401   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408   for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_ac_ct_RANLIB="ranlib"
6411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428
6429   if test "x$ac_ct_RANLIB" = x; then
6430     RANLIB=":"
6431   else
6432     case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet.  If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet.  If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     RANLIB=$ac_ct_RANLIB
6443   fi
6444 else
6445   RANLIB="$ac_cv_prog_RANLIB"
6446 fi
6447
6448 if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ar; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_prog_AR+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   if test -n "$AR"; then
6457   ac_cv_prog_AR="$AR" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464   for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_AR="${ac_tool_prefix}ar"
6467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 AR=$ac_cv_prog_AR
6477 if test -n "$AR"; then
6478   { echo "$as_me:$LINENO: result: $AR" >&5
6479 echo "${ECHO_T}$AR" >&6; }
6480 else
6481   { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_AR"; then
6488   ac_ct_AR=$AR
6489   # Extract the first word of "ar", so it can be a program name with args.
6490 set dummy ar; ac_word=$2
6491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   if test -n "$ac_ct_AR"; then
6497   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504   for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_prog_ac_ct_AR="ar"
6507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6517 if test -n "$ac_ct_AR"; then
6518   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6519 echo "${ECHO_T}$ac_ct_AR" >&6; }
6520 else
6521   { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_AR" = x; then
6526     AR="false"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6531 whose name does not start with the host triplet.  If you think this
6532 configuration is useful to you, please write to autoconf@gnu.org." >&5
6533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6534 whose name does not start with the host triplet.  If you think this
6535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538     AR=$ac_ct_AR
6539   fi
6540 else
6541   AR="$ac_cv_prog_AR"
6542 fi
6543
6544 # Extract the first word of "rm", so it can be a program name with args.
6545 set dummy rm; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_RM+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   case $RM in
6552   [\\/]* | ?:[\\/]*)
6553   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6554   ;;
6555   *)
6556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561   for ac_exec_ext in '' $ac_executable_extensions; do
6562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6563     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6572   ;;
6573 esac
6574 fi
6575 RM=$ac_cv_path_RM
6576 if test -n "$RM"; then
6577   { echo "$as_me:$LINENO: result: $RM" >&5
6578 echo "${ECHO_T}$RM" >&6; }
6579 else
6580   { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6582 fi
6583
6584
6585 # Extract the first word of "sed", so it can be a program name with args.
6586 set dummy sed; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_SED+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   case $SED in
6593   [\\/]* | ?:[\\/]*)
6594   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6595   ;;
6596   *)
6597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602   for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6613   ;;
6614 esac
6615 fi
6616 SED=$ac_cv_path_SED
6617 if test -n "$SED"; then
6618   { echo "$as_me:$LINENO: result: $SED" >&5
6619 echo "${ECHO_T}$SED" >&6; }
6620 else
6621   { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6623 fi
6624
6625
6626 # Extract the first word of "tar", so it can be a program name with args.
6627 set dummy tar; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TAR+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   case $TAR in
6634   [\\/]* | ?:[\\/]*)
6635   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6636   ;;
6637   *)
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643   for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6654   ;;
6655 esac
6656 fi
6657 TAR=$ac_cv_path_TAR
6658 if test -n "$TAR"; then
6659   { echo "$as_me:$LINENO: result: $TAR" >&5
6660 echo "${ECHO_T}$TAR" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 # Extract the first word of "pwd", so it can be a program name with args.
6668 set dummy pwd; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BINPWD+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   case $BINPWD in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6695   ;;
6696 esac
6697 fi
6698 BINPWD=$ac_cv_path_BINPWD
6699 if test -n "$BINPWD"; then
6700   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6701 echo "${ECHO_T}$BINPWD" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707
6708
6709 # Extract the first word of "Graphviz", so it can be a program name with args.
6710 set dummy Graphviz; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   case $GRAPHVIZ in
6717   [\\/]* | ?:[\\/]*)
6718   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6719   ;;
6720   *)
6721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6737   ;;
6738 esac
6739 fi
6740 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6741 if test -n "$GRAPHVIZ"; then
6742   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6743 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749
6750 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_GRAPHVIZ 1
6754 _ACEOF
6755
6756     if test "$llvm_cv_os_type" = "MingW" ; then
6757     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758   fi
6759
6760 cat >>confdefs.h <<_ACEOF
6761 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6762 _ACEOF
6763
6764 fi
6765 # Extract the first word of "dot", so it can be a program name with args.
6766 set dummy dot; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_DOT+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   case $DOT in
6773   [\\/]* | ?:[\\/]*)
6774   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6775   ;;
6776   *)
6777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782   for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6793   ;;
6794 esac
6795 fi
6796 DOT=$ac_cv_path_DOT
6797 if test -n "$DOT"; then
6798   { echo "$as_me:$LINENO: result: $DOT" >&5
6799 echo "${ECHO_T}$DOT" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 if test "$DOT" != "echo dot" ; then
6807
6808 cat >>confdefs.h <<\_ACEOF
6809 #define HAVE_DOT 1
6810 _ACEOF
6811
6812     if test "$llvm_cv_os_type" = "MingW" ; then
6813     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814   fi
6815
6816 cat >>confdefs.h <<_ACEOF
6817 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6818 _ACEOF
6819
6820 fi
6821 # Extract the first word of "fdp", so it can be a program name with args.
6822 set dummy fdp; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_FDP+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   case $FDP in
6829   [\\/]* | ?:[\\/]*)
6830   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6831   ;;
6832   *)
6833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6849   ;;
6850 esac
6851 fi
6852 FDP=$ac_cv_path_FDP
6853 if test -n "$FDP"; then
6854   { echo "$as_me:$LINENO: result: $FDP" >&5
6855 echo "${ECHO_T}$FDP" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861
6862 if test "$FDP" != "echo fdp" ; then
6863
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_FDP 1
6866 _ACEOF
6867
6868     if test "$llvm_cv_os_type" = "MingW" ; then
6869     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870   fi
6871
6872 cat >>confdefs.h <<_ACEOF
6873 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6874 _ACEOF
6875
6876 fi
6877 # Extract the first word of "neato", so it can be a program name with args.
6878 set dummy neato; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_NEATO+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   case $NEATO in
6885   [\\/]* | ?:[\\/]*)
6886   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6887   ;;
6888   *)
6889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894   for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6905   ;;
6906 esac
6907 fi
6908 NEATO=$ac_cv_path_NEATO
6909 if test -n "$NEATO"; then
6910   { echo "$as_me:$LINENO: result: $NEATO" >&5
6911 echo "${ECHO_T}$NEATO" >&6; }
6912 else
6913   { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917
6918 if test "$NEATO" != "echo neato" ; then
6919
6920 cat >>confdefs.h <<\_ACEOF
6921 #define HAVE_NEATO 1
6922 _ACEOF
6923
6924     if test "$llvm_cv_os_type" = "MingW" ; then
6925     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926   fi
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6930 _ACEOF
6931
6932 fi
6933 # Extract the first word of "twopi", so it can be a program name with args.
6934 set dummy twopi; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_TWOPI+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   case $TWOPI in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6961   ;;
6962 esac
6963 fi
6964 TWOPI=$ac_cv_path_TWOPI
6965 if test -n "$TWOPI"; then
6966   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6967 echo "${ECHO_T}$TWOPI" >&6; }
6968 else
6969   { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6971 fi
6972
6973
6974 if test "$TWOPI" != "echo twopi" ; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define HAVE_TWOPI 1
6978 _ACEOF
6979
6980     if test "$llvm_cv_os_type" = "MingW" ; then
6981     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6982   fi
6983
6984 cat >>confdefs.h <<_ACEOF
6985 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6986 _ACEOF
6987
6988 fi
6989 # Extract the first word of "circo", so it can be a program name with args.
6990 set dummy circo; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_CIRCO+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   case $CIRCO in
6997   [\\/]* | ?:[\\/]*)
6998   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6999   ;;
7000   *)
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7017   ;;
7018 esac
7019 fi
7020 CIRCO=$ac_cv_path_CIRCO
7021 if test -n "$CIRCO"; then
7022   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7023 echo "${ECHO_T}$CIRCO" >&6; }
7024 else
7025   { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7027 fi
7028
7029
7030 if test "$CIRCO" != "echo circo" ; then
7031
7032 cat >>confdefs.h <<\_ACEOF
7033 #define HAVE_CIRCO 1
7034 _ACEOF
7035
7036     if test "$llvm_cv_os_type" = "MingW" ; then
7037     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7038   fi
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7042 _ACEOF
7043
7044 fi
7045 for ac_prog in gv gsview32
7046 do
7047   # Extract the first word of "$ac_prog", so it can be a program name with args.
7048 set dummy $ac_prog; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_GV+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   case $GV in
7055   [\\/]* | ?:[\\/]*)
7056   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7057   ;;
7058   *)
7059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074   ;;
7075 esac
7076 fi
7077 GV=$ac_cv_path_GV
7078 if test -n "$GV"; then
7079   { echo "$as_me:$LINENO: result: $GV" >&5
7080 echo "${ECHO_T}$GV" >&6; }
7081 else
7082   { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7084 fi
7085
7086
7087   test -n "$GV" && break
7088 done
7089 test -n "$GV" || GV="echo gv"
7090
7091 if test "$GV" != "echo gv" ; then
7092
7093 cat >>confdefs.h <<\_ACEOF
7094 #define HAVE_GV 1
7095 _ACEOF
7096
7097     if test "$llvm_cv_os_type" = "MingW" ; then
7098     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7099   fi
7100
7101 cat >>confdefs.h <<_ACEOF
7102 #define LLVM_PATH_GV "$GV${EXEEXT}"
7103 _ACEOF
7104
7105 fi
7106 # Extract the first word of "dotty", so it can be a program name with args.
7107 set dummy dotty; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_DOTTY+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   case $DOTTY in
7114   [\\/]* | ?:[\\/]*)
7115   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7116   ;;
7117   *)
7118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123   for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7134   ;;
7135 esac
7136 fi
7137 DOTTY=$ac_cv_path_DOTTY
7138 if test -n "$DOTTY"; then
7139   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7140 echo "${ECHO_T}$DOTTY" >&6; }
7141 else
7142   { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7145
7146
7147 if test "$DOTTY" != "echo dotty" ; then
7148
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_DOTTY 1
7151 _ACEOF
7152
7153     if test "$llvm_cv_os_type" = "MingW" ; then
7154     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7155   fi
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7159 _ACEOF
7160
7161 fi
7162 # Extract the first word of "xdot.py", so it can be a program name with args.
7163 set dummy xdot.py; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $XDOT_PY in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7190   ;;
7191 esac
7192 fi
7193 XDOT_PY=$ac_cv_path_XDOT_PY
7194 if test -n "$XDOT_PY"; then
7195   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7196 echo "${ECHO_T}$XDOT_PY" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 if test "$XDOT_PY" != "echo xdot.py" ; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_XDOT_PY 1
7207 _ACEOF
7208
7209     if test "$llvm_cv_os_type" = "MingW" ; then
7210     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7211   fi
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7215 _ACEOF
7216
7217 fi
7218
7219 # Find a good install program.  We prefer a C program (faster),
7220 # so one script is as good as another.  But avoid the broken or
7221 # incompatible versions:
7222 # SysV /etc/install, /usr/sbin/install
7223 # SunOS /usr/etc/install
7224 # IRIX /sbin/install
7225 # AIX /bin/install
7226 # AmigaOS /C/install, which installs bootblocks on floppy discs
7227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # OS/2's system install, which has a completely different semantic
7231 # ./install, which can be erroneously created by make from ./install.sh.
7232 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7234 if test -z "$INSTALL"; then
7235 if test "${ac_cv_path_install+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   # Account for people who put trailing slashes in PATH elements.
7244 case $as_dir/ in
7245   ./ | .// | /cC/* | \
7246   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7247   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7248   /usr/ucb/* ) ;;
7249   *)
7250     # OSF1 and SCO ODT 3.0 have their own names for install.
7251     # Don't use installbsd from OSF since it installs stuff as root
7252     # by default.
7253     for ac_prog in ginstall scoinst install; do
7254       for ac_exec_ext in '' $ac_executable_extensions; do
7255         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7256           if test $ac_prog = install &&
7257             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258             # AIX install.  It has an incompatible calling convention.
7259             :
7260           elif test $ac_prog = install &&
7261             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7262             # program-specific install script used by HP pwplus--don't use.
7263             :
7264           else
7265             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7266             break 3
7267           fi
7268         fi
7269       done
7270     done
7271     ;;
7272 esac
7273 done
7274 IFS=$as_save_IFS
7275
7276
7277 fi
7278   if test "${ac_cv_path_install+set}" = set; then
7279     INSTALL=$ac_cv_path_install
7280   else
7281     # As a last resort, use the slow shell script.  Don't cache a
7282     # value for INSTALL within a source directory, because that will
7283     # break other packages using the cache if that directory is
7284     # removed, or if the value is a relative name.
7285     INSTALL=$ac_install_sh
7286   fi
7287 fi
7288 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7289 echo "${ECHO_T}$INSTALL" >&6; }
7290
7291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7292 # It thinks the first close brace ends the variable substitution.
7293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294
7295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7296
7297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7298
7299 case "$INSTALL" in
7300  [\\/$]* | ?:[\\/]* ) ;;
7301  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7302 esac
7303
7304 # Extract the first word of "bzip2", so it can be a program name with args.
7305 set dummy bzip2; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_BZIP2+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   case $BZIP2 in
7312   [\\/]* | ?:[\\/]*)
7313   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321   for ac_exec_ext in '' $ac_executable_extensions; do
7322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328 done
7329 IFS=$as_save_IFS
7330
7331   ;;
7332 esac
7333 fi
7334 BZIP2=$ac_cv_path_BZIP2
7335 if test -n "$BZIP2"; then
7336   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7337 echo "${ECHO_T}$BZIP2" >&6; }
7338 else
7339   { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7341 fi
7342
7343
7344 # Extract the first word of "cat", so it can be a program name with args.
7345 set dummy cat; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_CAT+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $CAT in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371   ;;
7372 esac
7373 fi
7374 CAT=$ac_cv_path_CAT
7375 if test -n "$CAT"; then
7376   { echo "$as_me:$LINENO: result: $CAT" >&5
7377 echo "${ECHO_T}$CAT" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384 # Extract the first word of "doxygen", so it can be a program name with args.
7385 set dummy doxygen; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   case $DOXYGEN in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401   for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411   ;;
7412 esac
7413 fi
7414 DOXYGEN=$ac_cv_path_DOXYGEN
7415 if test -n "$DOXYGEN"; then
7416   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7417 echo "${ECHO_T}$DOXYGEN" >&6; }
7418 else
7419   { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7421 fi
7422
7423
7424 # Extract the first word of "groff", so it can be a program name with args.
7425 set dummy groff; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_GROFF+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $GROFF in
7432   [\\/]* | ?:[\\/]*)
7433   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7434   ;;
7435   *)
7436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441   for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451   ;;
7452 esac
7453 fi
7454 GROFF=$ac_cv_path_GROFF
7455 if test -n "$GROFF"; then
7456   { echo "$as_me:$LINENO: result: $GROFF" >&5
7457 echo "${ECHO_T}$GROFF" >&6; }
7458 else
7459   { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7461 fi
7462
7463
7464 # Extract the first word of "gzip", so it can be a program name with args.
7465 set dummy gzip; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $GZIPBIN in
7472   [\\/]* | ?:[\\/]*)
7473   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7474   ;;
7475   *)
7476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   test -z "$as_dir" && as_dir=.
7481   for ac_exec_ext in '' $ac_executable_extensions; do
7482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485     break 2
7486   fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491   ;;
7492 esac
7493 fi
7494 GZIPBIN=$ac_cv_path_GZIPBIN
7495 if test -n "$GZIPBIN"; then
7496   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7497 echo "${ECHO_T}$GZIPBIN" >&6; }
7498 else
7499   { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503
7504 # Extract the first word of "pdfroff", so it can be a program name with args.
7505 set dummy pdfroff; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_PDFROFF+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   case $PDFROFF in
7512   [\\/]* | ?:[\\/]*)
7513   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7514   ;;
7515   *)
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531   ;;
7532 esac
7533 fi
7534 PDFROFF=$ac_cv_path_PDFROFF
7535 if test -n "$PDFROFF"; then
7536   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7537 echo "${ECHO_T}$PDFROFF" >&6; }
7538 else
7539   { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543
7544 # Extract the first word of "zip", so it can be a program name with args.
7545 set dummy zip; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_ZIP+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $ZIP in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   ;;
7572 esac
7573 fi
7574 ZIP=$ac_cv_path_ZIP
7575 if test -n "$ZIP"; then
7576   { echo "$as_me:$LINENO: result: $ZIP" >&5
7577 echo "${ECHO_T}$ZIP" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583
7584 for ac_prog in ocamlc
7585 do
7586   # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_OCAMLC+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $OCAMLC in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   ;;
7614 esac
7615 fi
7616 OCAMLC=$ac_cv_path_OCAMLC
7617 if test -n "$OCAMLC"; then
7618   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7619 echo "${ECHO_T}$OCAMLC" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626   test -n "$OCAMLC" && break
7627 done
7628
7629 for ac_prog in ocamlopt
7630 do
7631   # Extract the first word of "$ac_prog", so it can be a program name with args.
7632 set dummy $ac_prog; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   case $OCAMLOPT in
7639   [\\/]* | ?:[\\/]*)
7640   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7641   ;;
7642   *)
7643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648   for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658   ;;
7659 esac
7660 fi
7661 OCAMLOPT=$ac_cv_path_OCAMLOPT
7662 if test -n "$OCAMLOPT"; then
7663   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7664 echo "${ECHO_T}$OCAMLOPT" >&6; }
7665 else
7666   { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7668 fi
7669
7670
7671   test -n "$OCAMLOPT" && break
7672 done
7673
7674 for ac_prog in ocamldep
7675 do
7676   # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   case $OCAMLDEP in
7684   [\\/]* | ?:[\\/]*)
7685   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7686   ;;
7687   *)
7688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7695     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703   ;;
7704 esac
7705 fi
7706 OCAMLDEP=$ac_cv_path_OCAMLDEP
7707 if test -n "$OCAMLDEP"; then
7708   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7709 echo "${ECHO_T}$OCAMLDEP" >&6; }
7710 else
7711   { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7713 fi
7714
7715
7716   test -n "$OCAMLDEP" && break
7717 done
7718
7719 for ac_prog in ocamldoc
7720 do
7721   # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   case $OCAMLDOC in
7729   [\\/]* | ?:[\\/]*)
7730   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7731   ;;
7732   *)
7733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738   for ac_exec_ext in '' $ac_executable_extensions; do
7739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748   ;;
7749 esac
7750 fi
7751 OCAMLDOC=$ac_cv_path_OCAMLDOC
7752 if test -n "$OCAMLDOC"; then
7753   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7754 echo "${ECHO_T}$OCAMLDOC" >&6; }
7755 else
7756   { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7758 fi
7759
7760
7761   test -n "$OCAMLDOC" && break
7762 done
7763
7764 for ac_prog in gas as
7765 do
7766   # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770 if test "${ac_cv_path_GAS+set}" = set; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   case $GAS in
7774   [\\/]* | ?:[\\/]*)
7775   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7776   ;;
7777   *)
7778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   test -z "$as_dir" && as_dir=.
7783   for ac_exec_ext in '' $ac_executable_extensions; do
7784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7785     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793   ;;
7794 esac
7795 fi
7796 GAS=$ac_cv_path_GAS
7797 if test -n "$GAS"; then
7798   { echo "$as_me:$LINENO: result: $GAS" >&5
7799 echo "${ECHO_T}$GAS" >&6; }
7800 else
7801   { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7803 fi
7804
7805
7806   test -n "$GAS" && break
7807 done
7808
7809
7810 { echo "$as_me:$LINENO: checking for linker version" >&5
7811 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7812 if test "${llvm_cv_link_version+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815
7816    version_string="$(ld -v 2>&1 | head -1)"
7817
7818    # Check for ld64.
7819    if (echo "$version_string" | grep -q "ld64"); then
7820      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7821    else
7822      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7823    fi
7824
7825 fi
7826 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7827 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828
7829 cat >>confdefs.h <<_ACEOF
7830 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7831 _ACEOF
7832
7833
7834
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_r+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840    ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846   oldcflags="$CFLAGS"
7847   CFLAGS="$CFLAGS -Wl,-R."
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854
7855 int
7856 main ()
7857 {
7858
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7865 case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_link") 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_try") 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   llvm_cv_link_use_r=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902         llvm_cv_link_use_r=no
7903 fi
7904
7905 rm -f core conftest.err conftest.$ac_objext \
7906       conftest$ac_exeext conftest.$ac_ext
7907   CFLAGS="$oldcflags"
7908   ac_ext=c
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915 fi
7916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7917 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7918 if test "$llvm_cv_link_use_r" = yes ; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LINK_R 1
7922 _ACEOF
7923
7924   fi
7925
7926
7927 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7928 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7929 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932    ac_ext=c
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938   oldcflags="$CFLAGS"
7939   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946
7947 int
7948 main ()
7949 {
7950
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_link") 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970   { (case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_try") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (case "(($ac_try" in
7981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982   *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985   (eval "$ac_try") 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; }; then
7989   llvm_cv_link_use_export_dynamic=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         llvm_cv_link_use_export_dynamic=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext \
7998       conftest$ac_exeext conftest.$ac_ext
7999   CFLAGS="$oldcflags"
8000   ac_ext=c
8001 ac_cpp='$CPP $CPPFLAGS'
8002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007 fi
8008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8009 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8010 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_LINK_EXPORT_DYNAMIC 1
8014 _ACEOF
8015
8016   fi
8017
8018
8019 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8020 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8021 if test "${llvm_cv_link_use_version_script+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024    ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030   oldcflags="$CFLAGS"
8031
8032   # The following code is from the autoconf manual,
8033   # "11.13: Limitations of Usual Tools".
8034   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8035   # Use mktemp if possible; otherwise fall back on mkdir,
8036   # with $RANDOM to make collisions less likely.
8037   : ${TMPDIR=/tmp}
8038   {
8039     tmp=`
8040       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041     ` &&
8042     test -n "$tmp" && test -d "$tmp"
8043   } || {
8044     tmp=$TMPDIR/foo$$-$RANDOM
8045     (umask 077 && mkdir "$tmp")
8046   } || exit $?
8047
8048   echo "{" > "$tmp/export.map"
8049   echo "  global: main;" >> "$tmp/export.map"
8050   echo "  local: *;" >> "$tmp/export.map"
8051   echo "};" >> "$tmp/export.map"
8052
8053   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084   { (case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_try") 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest$ac_exeext'
8094   { (case "(($ac_try" in
8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096   *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099   (eval "$ac_try") 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; }; then
8103   llvm_cv_link_use_version_script=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108         llvm_cv_link_use_version_script=no
8109 fi
8110
8111 rm -f core conftest.err conftest.$ac_objext \
8112       conftest$ac_exeext conftest.$ac_ext
8113   rm "$tmp/export.map"
8114   rmdir "$tmp"
8115   CFLAGS="$oldcflags"
8116   ac_ext=c
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122
8123 fi
8124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8125 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8126 if test "$llvm_cv_link_use_version_script" = yes ; then
8127   HAVE_LINK_VERSION_SCRIPT=1
8128
8129   fi
8130
8131
8132
8133
8134 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8136 if test "${ac_cv_c_const+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
8146 int
8147 main ()
8148 {
8149 /* FIXME: Include the comments suggested by Paul. */
8150 #ifndef __cplusplus
8151   /* Ultrix mips cc rejects this.  */
8152   typedef int charset[2];
8153   const charset x;
8154   /* SunOS 4.1.1 cc rejects this.  */
8155   char const *const *ccp;
8156   char **p;
8157   /* NEC SVR4.0.2 mips cc rejects this.  */
8158   struct point {int x, y;};
8159   static struct point const zero = {0,0};
8160   /* AIX XL C 1.02.0.0 rejects this.
8161      It does not let you subtract one const X* pointer from another in
8162      an arm of an if-expression whose if-part is not a constant
8163      expression */
8164   const char *g = "string";
8165   ccp = &g + (g ? g-g : 0);
8166   /* HPUX 7.0 cc rejects these. */
8167   ++ccp;
8168   p = (char**) ccp;
8169   ccp = (char const *const *) p;
8170   { /* SCO 3.2v4 cc rejects this.  */
8171     char *t;
8172     char const *s = 0 ? (char *) 0 : (char const *) 0;
8173
8174     *t++ = 0;
8175     if (s) return 0;
8176   }
8177   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8178     int x[] = {25, 17};
8179     const int *foo = &x[0];
8180     ++foo;
8181   }
8182   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8183     typedef const int *iptr;
8184     iptr p = 0;
8185     ++p;
8186   }
8187   { /* AIX XL C 1.02.0.0 rejects this saying
8188        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8189     struct s { int j; const int *ap[3]; };
8190     struct s *b; b->j = 5;
8191   }
8192   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8193     const int foo = 10;
8194     if (!foo) return 0;
8195   }
8196   return !x[0] && !zero.x;
8197 #endif
8198
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8205 case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_compile") 2>conftest.er1
8211   ac_status=$?
8212   grep -v '^ *+' conftest.er1 >conftest.err
8213   rm -f conftest.er1
8214   cat conftest.err >&5
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); } &&
8217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218   { (case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_try") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; } &&
8227          { ac_try='test -s conftest.$ac_objext'
8228   { (case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_try") 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   ac_cv_c_const=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242         ac_cv_c_const=no
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8248 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8249 if test $ac_cv_c_const = no; then
8250
8251 cat >>confdefs.h <<\_ACEOF
8252 #define const
8253 _ACEOF
8254
8255 fi
8256
8257
8258
8259
8260
8261
8262 ac_header_dirent=no
8263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8264   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276 #include <sys/types.h>
8277 #include <$ac_hdr>
8278
8279 int
8280 main ()
8281 {
8282 if ((DIR *) 0)
8283 return 0;
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_compile") 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest.$ac_objext'
8313   { (case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_try") 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   eval "$as_ac_Header=yes"
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327         eval "$as_ac_Header=no"
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333                { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336   cat >>confdefs.h <<_ACEOF
8337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8338 _ACEOF
8339
8340 ac_header_dirent=$ac_hdr; break
8341 fi
8342
8343 done
8344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8345 if test $ac_header_dirent = dirent.h; then
8346   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8348 if test "${ac_cv_search_opendir+set}" = set; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   ac_func_search_save_LIBS=$LIBS
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 /* Override any GCC internal prototype to avoid an error.
8360    Use char because int might match the return type of a GCC
8361    builtin and then its argument prototype would still apply.  */
8362 #ifdef __cplusplus
8363 extern "C"
8364 #endif
8365 char opendir ();
8366 int
8367 main ()
8368 {
8369 return opendir ();
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 for ac_lib in '' dir; do
8375   if test -z "$ac_lib"; then
8376     ac_res="none required"
8377   else
8378     ac_res=-l$ac_lib
8379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8380   fi
8381   rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (ac_try="$ac_link"
8383 case "(($ac_try" in
8384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385   *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388   (eval "$ac_link") 2>conftest.er1
8389   ac_status=$?
8390   grep -v '^ *+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396   { (case "(($ac_try" in
8397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398   *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401   (eval "$ac_try") 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (case "(($ac_try" in
8407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408   *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411   (eval "$ac_try") 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   ac_cv_search_opendir=$ac_res
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420
8421 fi
8422
8423 rm -f core conftest.err conftest.$ac_objext \
8424       conftest$ac_exeext
8425   if test "${ac_cv_search_opendir+set}" = set; then
8426   break
8427 fi
8428 done
8429 if test "${ac_cv_search_opendir+set}" = set; then
8430   :
8431 else
8432   ac_cv_search_opendir=no
8433 fi
8434 rm conftest.$ac_ext
8435 LIBS=$ac_func_search_save_LIBS
8436 fi
8437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8439 ac_res=$ac_cv_search_opendir
8440 if test "$ac_res" != no; then
8441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8442
8443 fi
8444
8445 else
8446   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8448 if test "${ac_cv_search_opendir+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   ac_func_search_save_LIBS=$LIBS
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458
8459 /* Override any GCC internal prototype to avoid an error.
8460    Use char because int might match the return type of a GCC
8461    builtin and then its argument prototype would still apply.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 char opendir ();
8466 int
8467 main ()
8468 {
8469 return opendir ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 for ac_lib in '' x; do
8475   if test -z "$ac_lib"; then
8476     ac_res="none required"
8477   else
8478     ac_res=-l$ac_lib
8479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8480   fi
8481   rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (ac_try="$ac_link"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_link") 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496   { (case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_try") 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; } &&
8505          { ac_try='test -s conftest$ac_exeext'
8506   { (case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_try") 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_cv_search_opendir=$ac_res
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext \
8524       conftest$ac_exeext
8525   if test "${ac_cv_search_opendir+set}" = set; then
8526   break
8527 fi
8528 done
8529 if test "${ac_cv_search_opendir+set}" = set; then
8530   :
8531 else
8532   ac_cv_search_opendir=no
8533 fi
8534 rm conftest.$ac_ext
8535 LIBS=$ac_func_search_save_LIBS
8536 fi
8537 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8538 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8539 ac_res=$ac_cv_search_opendir
8540 if test "$ac_res" != no; then
8541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8542
8543 fi
8544
8545 fi
8546
8547
8548 for ac_header in dlfcn.h
8549 do
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 fi
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558                { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8560 else
8561   # Is the header compilable?
8562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570 $ac_includes_default
8571 #include <$ac_header>
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_compile") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588   { (case "(($ac_try" in
8589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590   *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593   (eval "$ac_try") 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; } &&
8597          { ac_try='test -s conftest.$ac_objext'
8598   { (case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_try") 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   ac_header_compiler=yes
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612         ac_header_compiler=no
8613 fi
8614
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617 echo "${ECHO_T}$ac_header_compiler" >&6; }
8618
8619 # Is the header present?
8620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 #include <$ac_header>
8629 _ACEOF
8630 if { (ac_try="$ac_cpp conftest.$ac_ext"
8631 case "(($ac_try" in
8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633   *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } >/dev/null; then
8643   if test -s conftest.err; then
8644     ac_cpp_err=$ac_c_preproc_warn_flag
8645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8646   else
8647     ac_cpp_err=
8648   fi
8649 else
8650   ac_cpp_err=yes
8651 fi
8652 if test -z "$ac_cpp_err"; then
8653   ac_header_preproc=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658   ac_header_preproc=no
8659 fi
8660
8661 rm -f conftest.err conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663 echo "${ECHO_T}$ac_header_preproc" >&6; }
8664
8665 # So?  What about this header?
8666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667   yes:no: )
8668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672     ac_header_preproc=yes
8673     ;;
8674   no:yes:* )
8675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687     ( cat <<\_ASBOX
8688 ## ------------------------------------ ##
8689 ## Report this to http://llvm.org/bugs/ ##
8690 ## ------------------------------------ ##
8691 _ASBOX
8692      ) | sed "s/^/$as_me: WARNING:     /" >&2
8693     ;;
8694 esac
8695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   eval "$as_ac_Header=\$ac_header_preproc"
8701 fi
8702 ac_res=`eval echo '${'$as_ac_Header'}'`
8703                { echo "$as_me:$LINENO: result: $ac_res" >&5
8704 echo "${ECHO_T}$ac_res" >&6; }
8705
8706 fi
8707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8708   cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8710 _ACEOF
8711
8712 fi
8713
8714 done
8715
8716 # Check whether --enable-ltdl-install was given.
8717 if test "${enable_ltdl_install+set}" = set; then
8718   enableval=$enable_ltdl_install;
8719 fi
8720
8721
8722
8723
8724 if test x"${enable_ltdl_install-no}" != xno; then
8725   INSTALL_LTDL_TRUE=
8726   INSTALL_LTDL_FALSE='#'
8727 else
8728   INSTALL_LTDL_TRUE='#'
8729   INSTALL_LTDL_FALSE=
8730 fi
8731
8732
8733
8734 if test x"${enable_ltdl_convenience-no}" != xno; then
8735   CONVENIENCE_LTDL_TRUE=
8736   CONVENIENCE_LTDL_FALSE='#'
8737 else
8738   CONVENIENCE_LTDL_TRUE='#'
8739   CONVENIENCE_LTDL_FALSE=
8740 fi
8741
8742
8743 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8745 library_names_spec=
8746 libname_spec='lib$name'
8747 soname_spec=
8748 shrext_cmds=".so"
8749 postinstall_cmds=
8750 postuninstall_cmds=
8751 finish_cmds=
8752 finish_eval=
8753 shlibpath_var=
8754 shlibpath_overrides_runpath=unknown
8755 version_type=none
8756 dynamic_linker="$host_os ld.so"
8757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8758 if test "$GCC" = yes; then
8759   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8760   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8761     # if the path contains ";" then we assume it to be the separator
8762     # otherwise default to the standard path separator (i.e. ":") - it is
8763     # assumed that no part of a normal pathname contains ";" but that should
8764     # okay in the real world where ";" in dirpaths is itself problematic.
8765     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766   else
8767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768   fi
8769 else
8770   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8771 fi
8772 need_lib_prefix=unknown
8773 hardcode_into_libs=no
8774
8775 # when you set need_version to no, make sure it does not cause -set_version
8776 # flags to be left without arguments
8777 need_version=unknown
8778
8779 case $host_os in
8780 aix3*)
8781   version_type=linux
8782   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8783   shlibpath_var=LIBPATH
8784
8785   # AIX 3 has no versioning support, so we append a major version to the name.
8786   soname_spec='${libname}${release}${shared_ext}$major'
8787   ;;
8788
8789 aix4* | aix5*)
8790   version_type=linux
8791   need_lib_prefix=no
8792   need_version=no
8793   hardcode_into_libs=yes
8794   if test "$host_cpu" = ia64; then
8795     # AIX 5 supports IA64
8796     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8797     shlibpath_var=LD_LIBRARY_PATH
8798   else
8799     # With GCC up to 2.95.x, collect2 would create an import file
8800     # for dependence libraries.  The import file would start with
8801     # the line `#! .'.  This would cause the generated library to
8802     # depend on `.', always an invalid library.  This was fixed in
8803     # development snapshots of GCC prior to 3.0.
8804     case $host_os in
8805       aix4 | aix4.[01] | aix4.[01].*)
8806       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807            echo ' yes '
8808            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8809         :
8810       else
8811         can_build_shared=no
8812       fi
8813       ;;
8814     esac
8815     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8816     # soname into executable. Probably we can add versioning support to
8817     # collect2, so additional links can be useful in future.
8818     if test "$aix_use_runtimelinking" = yes; then
8819       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8820       # instead of lib<name>.a to let people know that these are not
8821       # typical AIX shared libraries.
8822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823     else
8824       # We preserve .a as extension for shared libraries through AIX4.2
8825       # and later when we are not doing run time linking.
8826       library_names_spec='${libname}${release}.a $libname.a'
8827       soname_spec='${libname}${release}${shared_ext}$major'
8828     fi
8829     shlibpath_var=LIBPATH
8830   fi
8831   ;;
8832
8833 amigaos*)
8834   library_names_spec='$libname.ixlibrary $libname.a'
8835   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8836   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'
8837   ;;
8838
8839 beos*)
8840   library_names_spec='${libname}${shared_ext}'
8841   dynamic_linker="$host_os ld.so"
8842   shlibpath_var=LIBRARY_PATH
8843   ;;
8844
8845 bsdi[45]*)
8846   version_type=linux
8847   need_version=no
8848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849   soname_spec='${libname}${release}${shared_ext}$major'
8850   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8851   shlibpath_var=LD_LIBRARY_PATH
8852   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8853   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8854   # the default ld.so.conf also contains /usr/contrib/lib and
8855   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8856   # libtool to hard-code these into programs
8857   ;;
8858
8859 cygwin* | mingw* | pw32*)
8860   version_type=windows
8861   shrext_cmds=".dll"
8862   need_version=no
8863   need_lib_prefix=no
8864
8865   case $GCC,$host_os in
8866   yes,cygwin* | yes,mingw* | yes,pw32*)
8867     library_names_spec='$libname.dll.a'
8868     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8869     postinstall_cmds='base_file=`basename \${file}`~
8870       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8871       dldir=$destdir/`dirname \$dlpath`~
8872       test -d \$dldir || mkdir -p \$dldir~
8873       $install_prog $dir/$dlname \$dldir/$dlname~
8874       chmod a+x \$dldir/$dlname'
8875     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8876       dlpath=$dir/\$dldll~
8877        $rm \$dlpath'
8878     shlibpath_overrides_runpath=yes
8879
8880     case $host_os in
8881     cygwin*)
8882       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8883       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8885       ;;
8886     mingw*)
8887       # MinGW DLLs use traditional 'lib' prefix
8888       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8889       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8891         # It is most probably a Windows format PATH printed by
8892         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8893         # path with ; separators, and with drive letters. We can handle the
8894         # drive letters (cygwin fileutils understands them), so leave them,
8895         # especially as we might pass files found there to a mingw objdump,
8896         # which wouldn't understand a cygwinified path. Ahh.
8897         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898       else
8899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8900       fi
8901       ;;
8902     pw32*)
8903       # pw32 DLLs use 'pw' prefix rather than 'lib'
8904       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8905       ;;
8906     esac
8907     ;;
8908
8909   *)
8910     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8911     ;;
8912   esac
8913   dynamic_linker='Win32 ld.exe'
8914   # FIXME: first we should search . and the directory the executable is in
8915   shlibpath_var=PATH
8916   ;;
8917
8918 darwin* | rhapsody*)
8919   dynamic_linker="$host_os dyld"
8920   version_type=darwin
8921   need_lib_prefix=no
8922   need_version=no
8923   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8924   soname_spec='${libname}${release}${major}$shared_ext'
8925   shlibpath_overrides_runpath=yes
8926   shlibpath_var=DYLD_LIBRARY_PATH
8927   shrext_cmds='.dylib'
8928   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8929   if test "$GCC" = yes; then
8930     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"`
8931   else
8932     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8933   fi
8934   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8935   ;;
8936
8937 dgux*)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   ;;
8945
8946 freebsd1.*)
8947   dynamic_linker=no
8948   ;;
8949
8950 kfreebsd*-gnu)
8951   version_type=linux
8952   need_lib_prefix=no
8953   need_version=no
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955   soname_spec='${libname}${release}${shared_ext}$major'
8956   shlibpath_var=LD_LIBRARY_PATH
8957   shlibpath_overrides_runpath=no
8958   hardcode_into_libs=yes
8959   dynamic_linker='GNU ld.so'
8960   ;;
8961
8962 freebsd* | dragonfly*)
8963   # DragonFly does not have aout.  When/if they implement a new
8964   # versioning mechanism, adjust this.
8965   if test -x /usr/bin/objformat; then
8966     objformat=`/usr/bin/objformat`
8967   else
8968     case $host_os in
8969     freebsd[123].*) objformat=aout ;;
8970     *) objformat=elf ;;
8971     esac
8972   fi
8973   version_type=freebsd-$objformat
8974   case $version_type in
8975     freebsd-elf*)
8976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8977       need_version=no
8978       need_lib_prefix=no
8979       ;;
8980     freebsd-*)
8981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8982       need_version=yes
8983       ;;
8984   esac
8985   shlibpath_var=LD_LIBRARY_PATH
8986   case $host_os in
8987   freebsd2.*)
8988     shlibpath_overrides_runpath=yes
8989     ;;
8990   freebsd3.[01]* | freebsdelf3.[01]*)
8991     shlibpath_overrides_runpath=yes
8992     hardcode_into_libs=yes
8993     ;;
8994   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8995   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8996     shlibpath_overrides_runpath=no
8997     hardcode_into_libs=yes
8998     ;;
8999   freebsd*) # from 4.6 on
9000     shlibpath_overrides_runpath=yes
9001     hardcode_into_libs=yes
9002     ;;
9003   esac
9004   ;;
9005
9006 gnu*)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   hardcode_into_libs=yes
9014   ;;
9015
9016 hpux9* | hpux10* | hpux11*)
9017   # Give a soname corresponding to the major version so that dld.sl refuses to
9018   # link against other versions.
9019   version_type=sunos
9020   need_lib_prefix=no
9021   need_version=no
9022   case $host_cpu in
9023   ia64*)
9024     shrext_cmds='.so'
9025     hardcode_into_libs=yes
9026     dynamic_linker="$host_os dld.so"
9027     shlibpath_var=LD_LIBRARY_PATH
9028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030     soname_spec='${libname}${release}${shared_ext}$major'
9031     if test "X$HPUX_IA64_MODE" = X32; then
9032       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033     else
9034       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035     fi
9036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037     ;;
9038    hppa*64*)
9039      shrext_cmds='.sl'
9040      hardcode_into_libs=yes
9041      dynamic_linker="$host_os dld.sl"
9042      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9043      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9044      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045      soname_spec='${libname}${release}${shared_ext}$major'
9046      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9047      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9048      ;;
9049    *)
9050     shrext_cmds='.sl'
9051     dynamic_linker="$host_os dld.sl"
9052     shlibpath_var=SHLIB_PATH
9053     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055     soname_spec='${libname}${release}${shared_ext}$major'
9056     ;;
9057   esac
9058   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9059   postinstall_cmds='chmod 555 $lib'
9060   ;;
9061
9062 interix3*)
9063   version_type=linux
9064   need_lib_prefix=no
9065   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   shlibpath_overrides_runpath=no
9071   hardcode_into_libs=yes
9072   ;;
9073
9074 irix5* | irix6* | nonstopux*)
9075   case $host_os in
9076     nonstopux*) version_type=nonstopux ;;
9077     *)
9078         if test "$lt_cv_prog_gnu_ld" = yes; then
9079                 version_type=linux
9080         else
9081                 version_type=irix
9082         fi ;;
9083   esac
9084   need_lib_prefix=no
9085   need_version=no
9086   soname_spec='${libname}${release}${shared_ext}$major'
9087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9088   case $host_os in
9089   irix5* | nonstopux*)
9090     libsuff= shlibsuff=
9091     ;;
9092   *)
9093     case $LD in # libtool.m4 will add one of these switches to LD
9094     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9095       libsuff= shlibsuff= libmagic=32-bit;;
9096     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9097       libsuff=32 shlibsuff=N32 libmagic=N32;;
9098     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9099       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9100     *) libsuff= shlibsuff= libmagic=never-match;;
9101     esac
9102     ;;
9103   esac
9104   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9105   shlibpath_overrides_runpath=no
9106   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9107   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9108   hardcode_into_libs=yes
9109   ;;
9110
9111 # No shared lib support for Linux oldld, aout, or coff.
9112 linux*oldld* | linux*aout* | linux*coff*)
9113   dynamic_linker=no
9114   ;;
9115
9116 # This must be Linux ELF.
9117 linux*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   shlibpath_overrides_runpath=no
9126   # This implies no fast_install, which is unacceptable.
9127   # Some rework will be needed to allow for fast_install
9128   # before this can be enabled.
9129   hardcode_into_libs=yes
9130
9131   # Append ld.so.conf contents to the search path
9132   if test -f /etc/ld.so.conf; then
9133     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' ' '`
9134     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9135   fi
9136
9137   # We used to test for /lib/ld.so.1 and disable shared libraries on
9138   # powerpc, because MkLinux only supported shared libraries with the
9139   # GNU dynamic linker.  Since this was broken with cross compilers,
9140   # most powerpc-linux boxes support dynamic linking these days and
9141   # people can always --disable-shared, the test was removed, and we
9142   # assume the GNU/Linux dynamic linker is in use.
9143   dynamic_linker='GNU/Linux ld.so'
9144   ;;
9145
9146 knetbsd*-gnu)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   hardcode_into_libs=yes
9155   dynamic_linker='GNU ld.so'
9156   ;;
9157
9158 netbsd*)
9159   version_type=sunos
9160   need_lib_prefix=no
9161   need_version=no
9162   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9164     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9165     dynamic_linker='NetBSD (a.out) ld.so'
9166   else
9167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9168     soname_spec='${libname}${release}${shared_ext}$major'
9169     dynamic_linker='NetBSD ld.elf_so'
9170   fi
9171   shlibpath_var=LD_LIBRARY_PATH
9172   shlibpath_overrides_runpath=yes
9173   hardcode_into_libs=yes
9174   ;;
9175
9176 newsos6)
9177   version_type=linux
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   shlibpath_overrides_runpath=yes
9181   ;;
9182
9183 nto-qnx*)
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=yes
9191   ;;
9192
9193 openbsd* | bitrig*)
9194   version_type=sunos
9195   sys_lib_dlsearch_path_spec="/usr/lib"
9196   need_lib_prefix=no
9197   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198   case $host_os in
9199     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9200     *)                         need_version=no  ;;
9201   esac
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206     case $host_os in
9207       openbsd2.[89] | openbsd2.[89].*)
9208         shlibpath_overrides_runpath=no
9209         ;;
9210       *)
9211         shlibpath_overrides_runpath=yes
9212         ;;
9213       esac
9214   else
9215     shlibpath_overrides_runpath=yes
9216   fi
9217   ;;
9218
9219 os2*)
9220   libname_spec='$name'
9221   shrext_cmds=".dll"
9222   need_lib_prefix=no
9223   library_names_spec='$libname${shared_ext} $libname.a'
9224   dynamic_linker='OS/2 ld.exe'
9225   shlibpath_var=LIBPATH
9226   ;;
9227
9228 osf3* | osf4* | osf5*)
9229   version_type=osf
9230   need_lib_prefix=no
9231   need_version=no
9232   soname_spec='${libname}${release}${shared_ext}$major'
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9236   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9237   ;;
9238
9239 solaris*)
9240   version_type=linux
9241   need_lib_prefix=no
9242   need_version=no
9243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244   soname_spec='${libname}${release}${shared_ext}$major'
9245   shlibpath_var=LD_LIBRARY_PATH
9246   shlibpath_overrides_runpath=yes
9247   hardcode_into_libs=yes
9248   # ldd complains unless libraries are executable
9249   postinstall_cmds='chmod +x $lib'
9250   ;;
9251
9252 sunos4*)
9253   version_type=sunos
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   shlibpath_overrides_runpath=yes
9258   if test "$with_gnu_ld" = yes; then
9259     need_lib_prefix=no
9260   fi
9261   need_version=yes
9262   ;;
9263
9264 sysv4 | sysv4.3*)
9265   version_type=linux
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   case $host_vendor in
9270     sni)
9271       shlibpath_overrides_runpath=no
9272       need_lib_prefix=no
9273       export_dynamic_flag_spec='${wl}-Blargedynsym'
9274       runpath_var=LD_RUN_PATH
9275       ;;
9276     siemens)
9277       need_lib_prefix=no
9278       ;;
9279     motorola)
9280       need_lib_prefix=no
9281       need_version=no
9282       shlibpath_overrides_runpath=no
9283       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9284       ;;
9285   esac
9286   ;;
9287
9288 sysv4*MP*)
9289   if test -d /usr/nec ;then
9290     version_type=linux
9291     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9292     soname_spec='$libname${shared_ext}.$major'
9293     shlibpath_var=LD_LIBRARY_PATH
9294   fi
9295   ;;
9296
9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9298   version_type=freebsd-elf
9299   need_lib_prefix=no
9300   need_version=no
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9302   soname_spec='${libname}${release}${shared_ext}$major'
9303   shlibpath_var=LD_LIBRARY_PATH
9304   hardcode_into_libs=yes
9305   if test "$with_gnu_ld" = yes; then
9306     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9307     shlibpath_overrides_runpath=no
9308   else
9309     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9310     shlibpath_overrides_runpath=yes
9311     case $host_os in
9312       sco3.2v5*)
9313         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9314         ;;
9315     esac
9316   fi
9317   sys_lib_dlsearch_path_spec='/usr/lib'
9318   ;;
9319
9320 uts4*)
9321   version_type=linux
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323   soname_spec='${libname}${release}${shared_ext}$major'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   ;;
9326
9327 *)
9328   dynamic_linker=no
9329   ;;
9330 esac
9331 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9332 echo "${ECHO_T}$dynamic_linker" >&6; }
9333 test "$dynamic_linker" = no && can_build_shared=no
9334
9335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9336 if test "$GCC" = yes; then
9337   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9338 fi
9339
9340
9341 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9342 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9343 if test "${libltdl_cv_shlibext+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346
9347 module=yes
9348 eval libltdl_cv_shlibext=$shrext_cmds
9349
9350 fi
9351 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9352 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9353 if test -n "$libltdl_cv_shlibext"; then
9354
9355 cat >>confdefs.h <<_ACEOF
9356 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9357 _ACEOF
9358
9359 fi
9360
9361
9362 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9363 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9364 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   libltdl_cv_shlibpath_var="$shlibpath_var"
9368 fi
9369 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9370 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9371 if test -n "$libltdl_cv_shlibpath_var"; then
9372
9373 cat >>confdefs.h <<_ACEOF
9374 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9375 _ACEOF
9376
9377 fi
9378
9379
9380 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9381 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9382 if test "${libltdl_cv_sys_search_path+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9386 fi
9387 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9388 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9389 if test -n "$libltdl_cv_sys_search_path"; then
9390   sys_search_path=
9391   for dir in $libltdl_cv_sys_search_path; do
9392     if test -z "$sys_search_path"; then
9393       sys_search_path="$dir"
9394     else
9395       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9396     fi
9397   done
9398
9399 cat >>confdefs.h <<_ACEOF
9400 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9401 _ACEOF
9402
9403 fi
9404
9405 { echo "$as_me:$LINENO: checking for objdir" >&5
9406 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9407 if test "${libltdl_cv_objdir+set}" = set; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410   libltdl_cv_objdir="$objdir"
9411   if test -n "$objdir"; then
9412     :
9413   else
9414     rm -f .libs 2>/dev/null
9415     mkdir .libs 2>/dev/null
9416     if test -d .libs; then
9417       libltdl_cv_objdir=.libs
9418     else
9419       # MS-DOS does not allow filenames that begin with a dot.
9420       libltdl_cv_objdir=_libs
9421     fi
9422   rmdir .libs 2>/dev/null
9423   fi
9424
9425 fi
9426 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9427 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9428
9429 cat >>confdefs.h <<_ACEOF
9430 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9431 _ACEOF
9432
9433
9434
9435
9436
9437
9438 # Check for command to grab the raw symbol name followed by C symbol from nm.
9439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444
9445 # These are sane defaults that work on at least a few old systems.
9446 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9447
9448 # Character class describing NM global symbol codes.
9449 symcode='[BCDEGRST]'
9450
9451 # Regexp to match symbols that can be accessed directly from C.
9452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9453
9454 # Transform an extracted symbol line into a proper C declaration
9455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9456
9457 # Transform an extracted symbol line into symbol name and symbol address
9458 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'"
9459
9460 # Define system-specific variables.
9461 case $host_os in
9462 aix*)
9463   symcode='[BCDT]'
9464   ;;
9465 cygwin* | mingw* | pw32*)
9466   symcode='[ABCDGISTW]'
9467   ;;
9468 hpux*) # Its linker distinguishes data from code symbols
9469   if test "$host_cpu" = ia64; then
9470     symcode='[ABCDEGRST]'
9471   fi
9472   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9473   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'"
9474   ;;
9475 linux*)
9476   if test "$host_cpu" = ia64; then
9477     symcode='[ABCDGIRSTW]'
9478     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9479     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'"
9480   fi
9481   ;;
9482 irix* | nonstopux*)
9483   symcode='[BCDEGRST]'
9484   ;;
9485 osf*)
9486   symcode='[BCDEGQRST]'
9487   ;;
9488 solaris*)
9489   symcode='[BDRT]'
9490   ;;
9491 sco3.2v5*)
9492   symcode='[DT]'
9493   ;;
9494 sysv4.2uw2*)
9495   symcode='[DT]'
9496   ;;
9497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9498   symcode='[ABDT]'
9499   ;;
9500 sysv4)
9501   symcode='[DFNSTU]'
9502   ;;
9503 esac
9504
9505 # Handle CRLF in mingw tool chain
9506 opt_cr=
9507 case $build_os in
9508 mingw*)
9509   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9510   ;;
9511 esac
9512
9513 # If we're using GNU nm, then use its standard symbol codes.
9514 case `$NM -V 2>&1` in
9515 *GNU* | *'with BFD'*)
9516   symcode='[ABCDGIRSTW]' ;;
9517 esac
9518
9519 # Try without a prefix undercore, then with it.
9520 for ac_symprfx in "" "_"; do
9521
9522   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9523   symxfrm="\\1 $ac_symprfx\\2 \\2"
9524
9525   # Write the raw and C identifiers.
9526   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9527
9528   # Check to see that the pipe works correctly.
9529   pipe_works=no
9530
9531   rm -f conftest*
9532   cat > conftest.$ac_ext <<EOF
9533 #ifdef __cplusplus
9534 extern "C" {
9535 #endif
9536 char nm_test_var;
9537 void nm_test_func(){}
9538 #ifdef __cplusplus
9539 }
9540 #endif
9541 int main(){nm_test_var='a';nm_test_func();return(0);}
9542 EOF
9543
9544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545   (eval $ac_compile) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; then
9549     # Now try to grab the symbols.
9550     nlist=conftest.nm
9551     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9552   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } && test -s "$nlist"; then
9556       # Try sorting and uniquifying the output.
9557       if sort "$nlist" | uniq > "$nlist"T; then
9558         mv -f "$nlist"T "$nlist"
9559       else
9560         rm -f "$nlist"T
9561       fi
9562
9563       # Make sure that we snagged all the symbols we need.
9564       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9565         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9566           cat <<EOF > conftest.$ac_ext
9567 #ifdef __cplusplus
9568 extern "C" {
9569 #endif
9570
9571 EOF
9572           # Now generate the symbol file.
9573           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9574
9575           cat <<EOF >> conftest.$ac_ext
9576 #if defined (__STDC__) && __STDC__
9577 # define lt_ptr_t void *
9578 #else
9579 # define lt_ptr_t char *
9580 # define const
9581 #endif
9582
9583 /* The mapping between symbol names and symbols. */
9584 const struct {
9585   const char *name;
9586   lt_ptr_t address;
9587 }
9588 lt_preloaded_symbols[] =
9589 {
9590 EOF
9591           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9592           cat <<\EOF >> conftest.$ac_ext
9593   {0, (lt_ptr_t) 0}
9594 };
9595
9596 #ifdef __cplusplus
9597 }
9598 #endif
9599 EOF
9600           # Now try linking the two files.
9601           mv conftest.$ac_objext conftstm.$ac_objext
9602           lt_save_LIBS="$LIBS"
9603           lt_save_CFLAGS="$CFLAGS"
9604           LIBS="conftstm.$ac_objext"
9605           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9606           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607   (eval $ac_link) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9611             pipe_works=yes
9612           fi
9613           LIBS="$lt_save_LIBS"
9614           CFLAGS="$lt_save_CFLAGS"
9615         else
9616           echo "cannot find nm_test_func in $nlist" >&5
9617         fi
9618       else
9619         echo "cannot find nm_test_var in $nlist" >&5
9620       fi
9621     else
9622       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9623     fi
9624   else
9625     echo "$progname: failed program was:" >&5
9626     cat conftest.$ac_ext >&5
9627   fi
9628   rm -f conftest* conftst*
9629
9630   # Do not use the global_symbol_pipe unless it works.
9631   if test "$pipe_works" = yes; then
9632     break
9633   else
9634     lt_cv_sys_global_symbol_pipe=
9635   fi
9636 done
9637
9638 fi
9639
9640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9641   lt_cv_sys_global_symbol_to_cdecl=
9642 fi
9643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9644   { echo "$as_me:$LINENO: result: failed" >&5
9645 echo "${ECHO_T}failed" >&6; }
9646 else
9647   { echo "$as_me:$LINENO: result: ok" >&5
9648 echo "${ECHO_T}ok" >&6; }
9649 fi
9650
9651
9652 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9653 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9654 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9658     libltdl_cv_preloaded_symbols=yes
9659   else
9660     libltdl_cv_preloaded_symbols=no
9661   fi
9662
9663 fi
9664 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9665 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9666 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define HAVE_PRELOADED_SYMBOLS 1
9670 _ACEOF
9671
9672 fi
9673
9674 LIBADD_DL=
9675
9676 ac_ext=c
9677 ac_cpp='$CPP $CPPFLAGS'
9678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9681
9682
9683 { echo "$as_me:$LINENO: checking for shl_load" >&5
9684 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9685 if test "${ac_cv_func_shl_load+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9696 #define shl_load innocuous_shl_load
9697
9698 /* System header to define __stub macros and hopefully few prototypes,
9699     which can conflict with char shl_load (); below.
9700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701     <limits.h> exists even on freestanding compilers.  */
9702
9703 #ifdef __STDC__
9704 # include <limits.h>
9705 #else
9706 # include <assert.h>
9707 #endif
9708
9709 #undef shl_load
9710
9711 /* Override any GCC internal prototype to avoid an error.
9712    Use char because int might match the return type of a GCC
9713    builtin and then its argument prototype would still apply.  */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char shl_load ();
9718 /* The GNU C library defines this for functions which it implements
9719     to always fail with ENOSYS.  Some functions are actually named
9720     something starting with __ and the normal name is an alias.  */
9721 #if defined __stub_shl_load || defined __stub___shl_load
9722 choke me
9723 #endif
9724
9725 int
9726 main ()
9727 {
9728 return shl_load ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_link") 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748   { (case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_try") 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest$ac_exeext'
9758   { (case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_try") 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_cv_func_shl_load=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         ac_cv_func_shl_load=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9779 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9780 if test $ac_cv_func_shl_load = yes; then
9781
9782 cat >>confdefs.h <<\_ACEOF
9783 #define HAVE_SHL_LOAD 1
9784 _ACEOF
9785
9786 else
9787   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792   ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-ldld  $LIBS"
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800
9801 /* Override any GCC internal prototype to avoid an error.
9802    Use char because int might match the return type of a GCC
9803    builtin and then its argument prototype would still apply.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char shl_load ();
9808 int
9809 main ()
9810 {
9811 return shl_load ();
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_link") 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831   { (case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836   (eval "$ac_try") 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; } &&
9840          { ac_try='test -s conftest$ac_exeext'
9841   { (case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_try") 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   ac_cv_lib_dld_shl_load=yes
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855         ac_cv_lib_dld_shl_load=no
9856 fi
9857
9858 rm -f core conftest.err conftest.$ac_objext \
9859       conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9861 fi
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864 if test $ac_cv_lib_dld_shl_load = yes; then
9865
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_SHL_LOAD 1
9868 _ACEOF
9869
9870         LIBADD_DL="$LIBADD_DL -ldld"
9871 else
9872   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   ac_check_lib_save_LIBS=$LIBS
9878 LIBS="-ldl  $LIBS"
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887    Use char because int might match the return type of a GCC
9888    builtin and then its argument prototype would still apply.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char dlopen ();
9893 int
9894 main ()
9895 {
9896 return dlopen ();
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9903 case "(($ac_try" in
9904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905   *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908   (eval "$ac_link") 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916   { (case "(($ac_try" in
9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918   *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921   (eval "$ac_try") 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; } &&
9925          { ac_try='test -s conftest$ac_exeext'
9926   { (case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931   (eval "$ac_try") 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   ac_cv_lib_dl_dlopen=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940         ac_cv_lib_dl_dlopen=no
9941 fi
9942
9943 rm -f core conftest.err conftest.$ac_objext \
9944       conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9949 if test $ac_cv_lib_dl_dlopen = yes; then
9950
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_LIBDL 1
9953 _ACEOF
9954
9955                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9956 else
9957   cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963 #if HAVE_DLFCN_H
9964 #  include <dlfcn.h>
9965 #endif
9966
9967 int
9968 main ()
9969 {
9970 dlopen(0, 0);
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9977 case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_link") 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9990   { (case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_try") 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; } &&
9999          { ac_try='test -s conftest$ac_exeext'
10000   { (case "(($ac_try" in
10001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002   *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005   (eval "$ac_try") 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LIBDL 1
10012 _ACEOF
10013  libltdl_cv_func_dlopen="yes"
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lsvld  $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033    Use char because int might match the return type of a GCC
10034    builtin and then its argument prototype would still apply.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char dlopen ();
10039 int
10040 main ()
10041 {
10042 return dlopen ();
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_link") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062   { (case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_try") 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_lib_svld_dlopen=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         ac_cv_lib_svld_dlopen=no
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext \
10090       conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10092 fi
10093 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10095 if test $ac_cv_lib_svld_dlopen = yes; then
10096
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HAVE_LIBDL 1
10099 _ACEOF
10100
10101                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10102 else
10103   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-ldld  $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 /* Override any GCC internal prototype to avoid an error.
10118    Use char because int might match the return type of a GCC
10119    builtin and then its argument prototype would still apply.  */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 char dld_link ();
10124 int
10125 main ()
10126 {
10127 return dld_link ();
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_link") 2>conftest.er1
10140   ac_status=$?
10141   grep -v '^ *+' conftest.er1 >conftest.err
10142   rm -f conftest.er1
10143   cat conftest.err >&5
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } &&
10146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10147   { (case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_try") 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; } &&
10156          { ac_try='test -s conftest$ac_exeext'
10157   { (case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_try") 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; }; then
10166   ac_cv_lib_dld_dld_link=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171         ac_cv_lib_dld_dld_link=no
10172 fi
10173
10174 rm -f core conftest.err conftest.$ac_objext \
10175       conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10177 fi
10178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10179 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10180 if test $ac_cv_lib_dld_dld_link = yes; then
10181
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_DLD 1
10184 _ACEOF
10185
10186                 LIBADD_DL="$LIBADD_DL -ldld"
10187 else
10188   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10189 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10190 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h.  */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h.  */
10199 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10201 #define _dyld_func_lookup innocuous__dyld_func_lookup
10202
10203 /* System header to define __stub macros and hopefully few prototypes,
10204     which can conflict with char _dyld_func_lookup (); below.
10205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206     <limits.h> exists even on freestanding compilers.  */
10207
10208 #ifdef __STDC__
10209 # include <limits.h>
10210 #else
10211 # include <assert.h>
10212 #endif
10213
10214 #undef _dyld_func_lookup
10215
10216 /* Override any GCC internal prototype to avoid an error.
10217    Use char because int might match the return type of a GCC
10218    builtin and then its argument prototype would still apply.  */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 char _dyld_func_lookup ();
10223 /* The GNU C library defines this for functions which it implements
10224     to always fail with ENOSYS.  Some functions are actually named
10225     something starting with __ and the normal name is an alias.  */
10226 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10227 choke me
10228 #endif
10229
10230 int
10231 main ()
10232 {
10233 return _dyld_func_lookup ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_link") 2>conftest.er1
10246   ac_status=$?
10247   grep -v '^ *+' conftest.er1 >conftest.err
10248   rm -f conftest.er1
10249   cat conftest.err >&5
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } &&
10252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10253   { (case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_try") 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_try") 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_cv_func__dyld_func_lookup=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_cv_func__dyld_func_lookup=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext \
10281       conftest$ac_exeext conftest.$ac_ext
10282 fi
10283 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10284 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10285 if test $ac_cv_func__dyld_func_lookup = yes; then
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_DYLD 1
10289 _ACEOF
10290
10291 fi
10292
10293
10294 fi
10295
10296
10297 fi
10298
10299
10300 fi
10301
10302 rm -f core conftest.err conftest.$ac_objext \
10303       conftest$ac_exeext conftest.$ac_ext
10304
10305 fi
10306
10307
10308 fi
10309
10310
10311 fi
10312
10313
10314 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10315 then
10316   lt_save_LIBS="$LIBS"
10317   LIBS="$LIBS $LIBADD_DL"
10318
10319 for ac_func in dlerror
10320 do
10321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10335 #define $ac_func innocuous_$ac_func
10336
10337 /* System header to define __stub macros and hopefully few prototypes,
10338     which can conflict with char $ac_func (); below.
10339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340     <limits.h> exists even on freestanding compilers.  */
10341
10342 #ifdef __STDC__
10343 # include <limits.h>
10344 #else
10345 # include <assert.h>
10346 #endif
10347
10348 #undef $ac_func
10349
10350 /* Override any GCC internal prototype to avoid an error.
10351    Use char because int might match the return type of a GCC
10352    builtin and then its argument prototype would still apply.  */
10353 #ifdef __cplusplus
10354 extern "C"
10355 #endif
10356 char $ac_func ();
10357 /* The GNU C library defines this for functions which it implements
10358     to always fail with ENOSYS.  Some functions are actually named
10359     something starting with __ and the normal name is an alias.  */
10360 #if defined __stub_$ac_func || defined __stub___$ac_func
10361 choke me
10362 #endif
10363
10364 int
10365 main ()
10366 {
10367 return $ac_func ();
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_link") 2>conftest.er1
10380   ac_status=$?
10381   grep -v '^ *+' conftest.er1 >conftest.err
10382   rm -f conftest.er1
10383   cat conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } &&
10386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10387   { (case "(($ac_try" in
10388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389   *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392   (eval "$ac_try") 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; } &&
10396          { ac_try='test -s conftest$ac_exeext'
10397   { (case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_try") 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); }; }; then
10406   eval "$as_ac_var=yes"
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411         eval "$as_ac_var=no"
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext \
10415       conftest$ac_exeext conftest.$ac_ext
10416 fi
10417 ac_res=`eval echo '${'$as_ac_var'}'`
10418                { echo "$as_me:$LINENO: result: $ac_res" >&5
10419 echo "${ECHO_T}$ac_res" >&6; }
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421   cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 _ACEOF
10424
10425 fi
10426 done
10427
10428   LIBS="$lt_save_LIBS"
10429 fi
10430 ac_ext=c
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10435
10436
10437
10438 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10439 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10440 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10441   echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443   ac_cv_sys_symbol_underscore=no
10444   cat > conftest.$ac_ext <<EOF
10445 void nm_test_func(){}
10446 int main(){nm_test_func;return 0;}
10447 EOF
10448   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; then
10453     # Now try to grab the symbols.
10454     ac_nlist=conftest.nm
10455     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10456   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } && test -s "$ac_nlist"; then
10460       # See whether the symbols have a leading underscore.
10461       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10462         ac_cv_sys_symbol_underscore=yes
10463       else
10464         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10465           :
10466         else
10467           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10468         fi
10469       fi
10470     else
10471       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10472     fi
10473   else
10474     echo "configure: failed program was:" >&5
10475     cat conftest.c >&5
10476   fi
10477   rm -rf conftest*
10478
10479 fi
10480 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10481 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10482
10483
10484 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10485   if test x"$libltdl_cv_func_dlopen" = xyes ||
10486      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10487         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10488 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10489 if test "${libltdl_cv_need_uscore+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   libltdl_cv_need_uscore=unknown
10493           save_LIBS="$LIBS"
10494           LIBS="$LIBS $LIBADD_DL"
10495           if test "$cross_compiling" = yes; then :
10496   libltdl_cv_need_uscore=cross
10497 else
10498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499   lt_status=$lt_dlunknown
10500   cat > conftest.$ac_ext <<EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10503
10504 #if HAVE_DLFCN_H
10505 #include <dlfcn.h>
10506 #endif
10507
10508 #include <stdio.h>
10509
10510 #ifdef RTLD_GLOBAL
10511 #  define LT_DLGLOBAL           RTLD_GLOBAL
10512 #else
10513 #  ifdef DL_GLOBAL
10514 #    define LT_DLGLOBAL         DL_GLOBAL
10515 #  else
10516 #    define LT_DLGLOBAL         0
10517 #  endif
10518 #endif
10519
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521    find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10523 #  ifdef RTLD_LAZY
10524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10525 #  else
10526 #    ifdef DL_LAZY
10527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10528 #    else
10529 #      ifdef RTLD_NOW
10530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10531 #      else
10532 #        ifdef DL_NOW
10533 #          define LT_DLLAZY_OR_NOW      DL_NOW
10534 #        else
10535 #          define LT_DLLAZY_OR_NOW      0
10536 #        endif
10537 #      endif
10538 #    endif
10539 #  endif
10540 #endif
10541
10542 #ifdef __cplusplus
10543 extern "C" void exit (int);
10544 #endif
10545
10546 void fnord() { int i=42;}
10547 int main ()
10548 {
10549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10550   int status = $lt_dlunknown;
10551
10552   if (self)
10553     {
10554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556       /* dlclose (self); */
10557     }
10558   else
10559     puts (dlerror ());
10560
10561     exit (status);
10562 }
10563 EOF
10564   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565   (eval $ac_link) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10569     (./conftest; exit; ) >&5 2>/dev/null
10570     lt_status=$?
10571     case x$lt_status in
10572       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10573       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10574       x$lt_dlunknown|x*)  ;;
10575     esac
10576   else :
10577     # compilation failed
10578
10579   fi
10580 fi
10581 rm -fr conftest*
10582
10583           LIBS="$save_LIBS"
10584
10585 fi
10586 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10587 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10588   fi
10589 fi
10590
10591 if test x"$libltdl_cv_need_uscore" = xyes; then
10592
10593 cat >>confdefs.h <<\_ACEOF
10594 #define NEED_USCORE 1
10595 _ACEOF
10596
10597 fi
10598
10599
10600 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10601 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10602 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   # PORTME does your system automatically load deplibs for dlopen?
10606   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10607   # For now, we just catch OSes we know something about -- in the
10608   # future, we'll try test this programmatically.
10609   libltdl_cv_sys_dlopen_deplibs=unknown
10610   case "$host_os" in
10611   aix3*|aix4.1.*|aix4.2.*)
10612     # Unknown whether this is true for these versions of AIX, but
10613     # we want this `case' here to explicitly catch those versions.
10614     libltdl_cv_sys_dlopen_deplibs=unknown
10615     ;;
10616   aix[45]*)
10617     libltdl_cv_sys_dlopen_deplibs=yes
10618     ;;
10619   darwin*)
10620     # Assuming the user has installed a libdl from somewhere, this is true
10621     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10622     libltdl_cv_sys_dlopen_deplibs=yes
10623     ;;
10624   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10625     # GNU and its variants, using gnu ld.so (Glibc)
10626     libltdl_cv_sys_dlopen_deplibs=yes
10627     ;;
10628   hpux10*|hpux11*)
10629     libltdl_cv_sys_dlopen_deplibs=yes
10630     ;;
10631   interix*)
10632     libltdl_cv_sys_dlopen_deplibs=yes
10633     ;;
10634   irix[12345]*|irix6.[01]*)
10635     # Catch all versions of IRIX before 6.2, and indicate that we don't
10636     # know how it worked for any of those versions.
10637     libltdl_cv_sys_dlopen_deplibs=unknown
10638     ;;
10639   irix*)
10640     # The case above catches anything before 6.2, and it's known that
10641     # at 6.2 and later dlopen does load deplibs.
10642     libltdl_cv_sys_dlopen_deplibs=yes
10643     ;;
10644   netbsd*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   openbsd*)
10648     libltdl_cv_sys_dlopen_deplibs=yes
10649     ;;
10650   osf[1234]*)
10651     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10652     # it did *not* use an RPATH in a shared library to find objects the
10653     # library depends on, so we explicitly say `no'.
10654     libltdl_cv_sys_dlopen_deplibs=no
10655     ;;
10656   osf5.0|osf5.0a|osf5.1)
10657     # dlopen *does* load deplibs and with the right loader patch applied
10658     # it even uses RPATH in a shared library to search for shared objects
10659     # that the library depends on, but there's no easy way to know if that
10660     # patch is installed.  Since this is the case, all we can really
10661     # say is unknown -- it depends on the patch being installed.  If
10662     # it is, this changes to `yes'.  Without it, it would be `no'.
10663     libltdl_cv_sys_dlopen_deplibs=unknown
10664     ;;
10665   osf*)
10666     # the two cases above should catch all versions of osf <= 5.1.  Read
10667     # the comments above for what we know about them.
10668     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10669     # is used to find them so we can finally say `yes'.
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   solaris*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   esac
10679
10680 fi
10681 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10682 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10683 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10684
10685 cat >>confdefs.h <<\_ACEOF
10686 #define LTDL_DLOPEN_DEPLIBS 1
10687 _ACEOF
10688
10689 fi
10690
10691
10692 for ac_header in argz.h
10693 do
10694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 fi
10701 ac_res=`eval echo '${'$as_ac_Header'}'`
10702                { echo "$as_me:$LINENO: result: $ac_res" >&5
10703 echo "${ECHO_T}$ac_res" >&6; }
10704 else
10705   # Is the header compilable?
10706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h.  */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h.  */
10714 $ac_includes_default
10715 #include <$ac_header>
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_compile") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } &&
10731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732   { (case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_try") 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747   (eval "$ac_try") 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; }; then
10751   ac_header_compiler=yes
10752 else
10753   echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756         ac_header_compiler=no
10757 fi
10758
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10761 echo "${ECHO_T}$ac_header_compiler" >&6; }
10762
10763 # Is the header present?
10764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 #include <$ac_header>
10773 _ACEOF
10774 if { (ac_try="$ac_cpp conftest.$ac_ext"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } >/dev/null; then
10787   if test -s conftest.err; then
10788     ac_cpp_err=$ac_c_preproc_warn_flag
10789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10790   else
10791     ac_cpp_err=
10792   fi
10793 else
10794   ac_cpp_err=yes
10795 fi
10796 if test -z "$ac_cpp_err"; then
10797   ac_header_preproc=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802   ac_header_preproc=no
10803 fi
10804
10805 rm -f conftest.err conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10807 echo "${ECHO_T}$ac_header_preproc" >&6; }
10808
10809 # So?  What about this header?
10810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10811   yes:no: )
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10816     ac_header_preproc=yes
10817     ;;
10818   no:yes:* )
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831     ( cat <<\_ASBOX
10832 ## ------------------------------------ ##
10833 ## Report this to http://llvm.org/bugs/ ##
10834 ## ------------------------------------ ##
10835 _ASBOX
10836      ) | sed "s/^/$as_me: WARNING:     /" >&2
10837     ;;
10838 esac
10839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   eval "$as_ac_Header=\$ac_header_preproc"
10845 fi
10846 ac_res=`eval echo '${'$as_ac_Header'}'`
10847                { echo "$as_me:$LINENO: result: $ac_res" >&5
10848 echo "${ECHO_T}$ac_res" >&6; }
10849
10850 fi
10851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 fi
10857
10858 done
10859
10860
10861 { echo "$as_me:$LINENO: checking for error_t" >&5
10862 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10863 if test "${ac_cv_type_error_t+set}" = set; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866   cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872 #if HAVE_ARGZ_H
10873 #  include <argz.h>
10874 #endif
10875
10876 typedef error_t ac__type_new_;
10877 int
10878 main ()
10879 {
10880 if ((ac__type_new_ *) 0)
10881   return 0;
10882 if (sizeof (ac__type_new_))
10883   return 0;
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_compile") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903   { (case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908   (eval "$ac_try") 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest.$ac_objext'
10913   { (case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_try") 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   ac_cv_type_error_t=yes
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927         ac_cv_type_error_t=no
10928 fi
10929
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 fi
10932 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10933 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10934 if test $ac_cv_type_error_t = yes; then
10935
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_ERROR_T 1
10938 _ACEOF
10939
10940
10941 else
10942
10943 cat >>confdefs.h <<\_ACEOF
10944 #define error_t int
10945 _ACEOF
10946
10947 fi
10948
10949
10950
10951
10952
10953
10954
10955 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10956 do
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10971 #define $ac_func innocuous_$ac_func
10972
10973 /* System header to define __stub macros and hopefully few prototypes,
10974     which can conflict with char $ac_func (); below.
10975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976     <limits.h> exists even on freestanding compilers.  */
10977
10978 #ifdef __STDC__
10979 # include <limits.h>
10980 #else
10981 # include <assert.h>
10982 #endif
10983
10984 #undef $ac_func
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987    Use char because int might match the return type of a GCC
10988    builtin and then its argument prototype would still apply.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char $ac_func ();
10993 /* The GNU C library defines this for functions which it implements
10994     to always fail with ENOSYS.  Some functions are actually named
10995     something starting with __ and the normal name is an alias.  */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
10997 choke me
10998 #endif
10999
11000 int
11001 main ()
11002 {
11003 return $ac_func ();
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_link") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11023   { (case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_try") 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest$ac_exeext'
11033   { (case "(($ac_try" in
11034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035   *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038   (eval "$ac_try") 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; }; then
11042   eval "$as_ac_var=yes"
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         eval "$as_ac_var=no"
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext \
11051       conftest$ac_exeext conftest.$ac_ext
11052 fi
11053 ac_res=`eval echo '${'$as_ac_var'}'`
11054                { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11056 if test `eval echo '${'$as_ac_var'}'` = yes; then
11057   cat >>confdefs.h <<_ACEOF
11058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 _ACEOF
11060
11061 fi
11062 done
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11092                   stdio.h unistd.h
11093 do
11094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 fi
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102                { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11104 else
11105   # Is the header compilable?
11106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 $ac_includes_default
11115 #include <$ac_header>
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_compile") 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } &&
11131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132   { (case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_try") 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; } &&
11141          { ac_try='test -s conftest.$ac_objext'
11142   { (case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_try") 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_header_compiler=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156         ac_header_compiler=no
11157 fi
11158
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162
11163 # Is the header present?
11164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 #include <$ac_header>
11173 _ACEOF
11174 if { (ac_try="$ac_cpp conftest.$ac_ext"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } >/dev/null; then
11187   if test -s conftest.err; then
11188     ac_cpp_err=$ac_c_preproc_warn_flag
11189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190   else
11191     ac_cpp_err=
11192   fi
11193 else
11194   ac_cpp_err=yes
11195 fi
11196 if test -z "$ac_cpp_err"; then
11197   ac_header_preproc=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202   ac_header_preproc=no
11203 fi
11204
11205 rm -f conftest.err conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208
11209 # So?  What about this header?
11210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211   yes:no: )
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216     ac_header_preproc=yes
11217     ;;
11218   no:yes:* )
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231     ( cat <<\_ASBOX
11232 ## ------------------------------------ ##
11233 ## Report this to http://llvm.org/bugs/ ##
11234 ## ------------------------------------ ##
11235 _ASBOX
11236      ) | sed "s/^/$as_me: WARNING:     /" >&2
11237     ;;
11238 esac
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   eval "$as_ac_Header=\$ac_header_preproc"
11245 fi
11246 ac_res=`eval echo '${'$as_ac_Header'}'`
11247                { echo "$as_me:$LINENO: result: $ac_res" >&5
11248 echo "${ECHO_T}$ac_res" >&6; }
11249
11250 fi
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252   cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257
11258 done
11259
11260
11261
11262
11263
11264 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11265 do
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 fi
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274                { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276 else
11277   # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 $ac_includes_default
11287 #include <$ac_header>
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_compile") 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } &&
11303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304   { (case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_try") 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; } &&
11313          { ac_try='test -s conftest.$ac_objext'
11314   { (case "(($ac_try" in
11315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316   *) ac_try_echo=$ac_try;;
11317 esac
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319   (eval "$ac_try") 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   ac_header_compiler=yes
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328         ac_header_compiler=no
11329 fi
11330
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333 echo "${ECHO_T}$ac_header_compiler" >&6; }
11334
11335 # Is the header present?
11336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 #include <$ac_header>
11345 _ACEOF
11346 if { (ac_try="$ac_cpp conftest.$ac_ext"
11347 case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } >/dev/null; then
11359   if test -s conftest.err; then
11360     ac_cpp_err=$ac_c_preproc_warn_flag
11361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11362   else
11363     ac_cpp_err=
11364   fi
11365 else
11366   ac_cpp_err=yes
11367 fi
11368 if test -z "$ac_cpp_err"; then
11369   ac_header_preproc=yes
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374   ac_header_preproc=no
11375 fi
11376
11377 rm -f conftest.err conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11379 echo "${ECHO_T}$ac_header_preproc" >&6; }
11380
11381 # So?  What about this header?
11382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383   yes:no: )
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11388     ac_header_preproc=yes
11389     ;;
11390   no:yes:* )
11391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403     ( cat <<\_ASBOX
11404 ## ------------------------------------ ##
11405 ## Report this to http://llvm.org/bugs/ ##
11406 ## ------------------------------------ ##
11407 _ASBOX
11408      ) | sed "s/^/$as_me: WARNING:     /" >&2
11409     ;;
11410 esac
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   eval "$as_ac_Header=\$ac_header_preproc"
11417 fi
11418 ac_res=`eval echo '${'$as_ac_Header'}'`
11419                { echo "$as_me:$LINENO: result: $ac_res" >&5
11420 echo "${ECHO_T}$ac_res" >&6; }
11421
11422 fi
11423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424   cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 _ACEOF
11427
11428 fi
11429
11430 done
11431
11432
11433
11434 for ac_header in string.h strings.h
11435 do
11436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 fi
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444                { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 else
11447   # Is the header compilable?
11448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 $ac_includes_default
11457 #include <$ac_header>
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_compile") 2>conftest.er1
11467   ac_status=$?
11468   grep -v '^ *+' conftest.er1 >conftest.err
11469   rm -f conftest.er1
11470   cat conftest.err >&5
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474   { (case "(($ac_try" in
11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476   *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479   (eval "$ac_try") 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; } &&
11483          { ac_try='test -s conftest.$ac_objext'
11484   { (case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_try") 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   ac_header_compiler=yes
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498         ac_header_compiler=no
11499 fi
11500
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } >/dev/null; then
11529   if test -s conftest.err; then
11530     ac_cpp_err=$ac_c_preproc_warn_flag
11531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532   else
11533     ac_cpp_err=
11534   fi
11535 else
11536   ac_cpp_err=yes
11537 fi
11538 if test -z "$ac_cpp_err"; then
11539   ac_header_preproc=yes
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544   ac_header_preproc=no
11545 fi
11546
11547 rm -f conftest.err conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550
11551 # So?  What about this header?
11552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553   yes:no: )
11554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558     ac_header_preproc=yes
11559     ;;
11560   no:yes:* )
11561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573     ( cat <<\_ASBOX
11574 ## ------------------------------------ ##
11575 ## Report this to http://llvm.org/bugs/ ##
11576 ## ------------------------------------ ##
11577 _ASBOX
11578      ) | sed "s/^/$as_me: WARNING:     /" >&2
11579     ;;
11580 esac
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   eval "$as_ac_Header=\$ac_header_preproc"
11587 fi
11588 ac_res=`eval echo '${'$as_ac_Header'}'`
11589                { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591
11592 fi
11593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11594   cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 _ACEOF
11597  break
11598 fi
11599
11600 done
11601
11602
11603
11604
11605 for ac_func in strchr index
11606 do
11607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11611   echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613   cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11621 #define $ac_func innocuous_$ac_func
11622
11623 /* System header to define __stub macros and hopefully few prototypes,
11624     which can conflict with char $ac_func (); below.
11625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11626     <limits.h> exists even on freestanding compilers.  */
11627
11628 #ifdef __STDC__
11629 # include <limits.h>
11630 #else
11631 # include <assert.h>
11632 #endif
11633
11634 #undef $ac_func
11635
11636 /* Override any GCC internal prototype to avoid an error.
11637    Use char because int might match the return type of a GCC
11638    builtin and then its argument prototype would still apply.  */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char $ac_func ();
11643 /* The GNU C library defines this for functions which it implements
11644     to always fail with ENOSYS.  Some functions are actually named
11645     something starting with __ and the normal name is an alias.  */
11646 #if defined __stub_$ac_func || defined __stub___$ac_func
11647 choke me
11648 #endif
11649
11650 int
11651 main ()
11652 {
11653 return $ac_func ();
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (ac_try="$ac_link"
11660 case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_link") 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673   { (case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_try") 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_try") 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   eval "$as_ac_var=yes"
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697         eval "$as_ac_var=no"
11698 fi
11699
11700 rm -f core conftest.err conftest.$ac_objext \
11701       conftest$ac_exeext conftest.$ac_ext
11702 fi
11703 ac_res=`eval echo '${'$as_ac_var'}'`
11704                { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11706 if test `eval echo '${'$as_ac_var'}'` = yes; then
11707   cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 _ACEOF
11710  break
11711 fi
11712 done
11713
11714
11715
11716 for ac_func in strrchr rindex
11717 do
11718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11732 #define $ac_func innocuous_$ac_func
11733
11734 /* System header to define __stub macros and hopefully few prototypes,
11735     which can conflict with char $ac_func (); below.
11736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737     <limits.h> exists even on freestanding compilers.  */
11738
11739 #ifdef __STDC__
11740 # include <limits.h>
11741 #else
11742 # include <assert.h>
11743 #endif
11744
11745 #undef $ac_func
11746
11747 /* Override any GCC internal prototype to avoid an error.
11748    Use char because int might match the return type of a GCC
11749    builtin and then its argument prototype would still apply.  */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char $ac_func ();
11754 /* The GNU C library defines this for functions which it implements
11755     to always fail with ENOSYS.  Some functions are actually named
11756     something starting with __ and the normal name is an alias.  */
11757 #if defined __stub_$ac_func || defined __stub___$ac_func
11758 choke me
11759 #endif
11760
11761 int
11762 main ()
11763 {
11764 return $ac_func ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_link") 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784   { (case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_try") 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (case "(($ac_try" in
11795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796   *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799   (eval "$ac_try") 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; }; then
11803   eval "$as_ac_var=yes"
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808         eval "$as_ac_var=no"
11809 fi
11810
11811 rm -f core conftest.err conftest.$ac_objext \
11812       conftest$ac_exeext conftest.$ac_ext
11813 fi
11814 ac_res=`eval echo '${'$as_ac_var'}'`
11815                { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818   cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821  break
11822 fi
11823 done
11824
11825
11826
11827 for ac_func in memcpy bcopy
11828 do
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11843 #define $ac_func innocuous_$ac_func
11844
11845 /* System header to define __stub macros and hopefully few prototypes,
11846     which can conflict with char $ac_func (); below.
11847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848     <limits.h> exists even on freestanding compilers.  */
11849
11850 #ifdef __STDC__
11851 # include <limits.h>
11852 #else
11853 # include <assert.h>
11854 #endif
11855
11856 #undef $ac_func
11857
11858 /* Override any GCC internal prototype to avoid an error.
11859    Use char because int might match the return type of a GCC
11860    builtin and then its argument prototype would still apply.  */
11861 #ifdef __cplusplus
11862 extern "C"
11863 #endif
11864 char $ac_func ();
11865 /* The GNU C library defines this for functions which it implements
11866     to always fail with ENOSYS.  Some functions are actually named
11867     something starting with __ and the normal name is an alias.  */
11868 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 choke me
11870 #endif
11871
11872 int
11873 main ()
11874 {
11875 return $ac_func ();
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_link") 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } &&
11894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895   { (case "(($ac_try" in
11896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897   *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900   (eval "$ac_try") 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; } &&
11904          { ac_try='test -s conftest$ac_exeext'
11905   { (case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_try") 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   eval "$as_ac_var=yes"
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919         eval "$as_ac_var=no"
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 fi
11925 ac_res=`eval echo '${'$as_ac_var'}'`
11926                { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929   cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931 _ACEOF
11932  break
11933 fi
11934 done
11935
11936
11937
11938 for ac_func in memmove strcmp
11939 do
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define $ac_func innocuous_$ac_func
11955
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char $ac_func (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11960
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966
11967 #undef $ac_func
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970    Use char because int might match the return type of a GCC
11971    builtin and then its argument prototype would still apply.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char $ac_func ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11980 choke me
11981 #endif
11982
11983 int
11984 main ()
11985 {
11986 return $ac_func ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_link") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006   { (case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_try") 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         eval "$as_ac_var=no"
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext \
12034       conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037                { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045 done
12046
12047
12048
12049
12050 for ac_func in closedir opendir readdir
12051 do
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h.  */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h.  */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12066 #define $ac_func innocuous_$ac_func
12067
12068 /* System header to define __stub macros and hopefully few prototypes,
12069     which can conflict with char $ac_func (); below.
12070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071     <limits.h> exists even on freestanding compilers.  */
12072
12073 #ifdef __STDC__
12074 # include <limits.h>
12075 #else
12076 # include <assert.h>
12077 #endif
12078
12079 #undef $ac_func
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082    Use char because int might match the return type of a GCC
12083    builtin and then its argument prototype would still apply.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char $ac_func ();
12088 /* The GNU C library defines this for functions which it implements
12089     to always fail with ENOSYS.  Some functions are actually named
12090     something starting with __ and the normal name is an alias.  */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12092 choke me
12093 #endif
12094
12095 int
12096 main ()
12097 {
12098 return $ac_func ();
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107   *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110   (eval "$ac_link") 2>conftest.er1
12111   ac_status=$?
12112   grep -v '^ *+' conftest.er1 >conftest.err
12113   rm -f conftest.er1
12114   cat conftest.err >&5
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } &&
12117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118   { (case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123   (eval "$ac_try") 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; } &&
12127          { ac_try='test -s conftest$ac_exeext'
12128   { (case "(($ac_try" in
12129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130   *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133   (eval "$ac_try") 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   eval "$as_ac_var=yes"
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142         eval "$as_ac_var=no"
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext \
12146       conftest$ac_exeext conftest.$ac_ext
12147 fi
12148 ac_res=`eval echo '${'$as_ac_var'}'`
12149                { echo "$as_me:$LINENO: result: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152   cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154 _ACEOF
12155
12156 fi
12157 done
12158
12159
12160
12161 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12162 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12163
12164 ICC=no
12165 IXX=no
12166 case $CC in
12167   icc*|icpc*)
12168     ICC=yes
12169     IXX=yes
12170     ;;
12171    *)
12172     ;;
12173 esac
12174
12175 if test "$GCC" != "yes" && test "$ICC" != "yes"
12176 then
12177   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12178 echo "$as_me: error: gcc|icc required but not found" >&2;}
12179    { (exit 1); exit 1; }; }
12180 fi
12181
12182 if test "$GXX" != "yes" && test "$IXX" != "yes"
12183 then
12184   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12185 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12186    { (exit 1); exit 1; }; }
12187 fi
12188
12189 if test "$GCC" = "yes"
12190 then
12191   cat >conftest.$ac_ext <<_ACEOF
12192
12193   /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198
12199     #if !defined(__GNUC__) || __GNUC__ < 3
12200     #error Unsupported GCC version
12201     #endif
12202
12203
12204 _ACEOF
12205 rm -f conftest.$ac_objext
12206 if { (ac_try="$ac_compile"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_compile") 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } &&
12219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220   { (case "(($ac_try" in
12221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222   *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225   (eval "$ac_try") 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; } &&
12229          { ac_try='test -s conftest.$ac_objext'
12230   { (case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_try") 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   :
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12245 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12246    { (exit 1); exit 1; }; }
12247 fi
12248
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 fi
12251
12252 if test -z "$llvm_cv_gnu_make_command"
12253 then
12254   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12255 echo "$as_me: error: GNU Make required but not found" >&2;}
12256    { (exit 1); exit 1; }; }
12257 fi
12258
12259 { echo "$as_me:$LINENO: result: ok" >&5
12260 echo "${ECHO_T}ok" >&6; }
12261
12262 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12263 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12264 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12265
12266 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12267
12268 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12269
12270
12271 NO_UNINITIALIZED=
12272 NO_MAYBE_UNINITIALIZED=
12273 if test "$GXX" = "yes"
12274 then
12275   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12276
12277         if test -z "$NO_MAYBE_UNINITIALIZED"
12278   then
12279     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12280
12281   fi
12282 fi
12283 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12284 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12285
12286
12287 # Check whether --with-python was given.
12288 if test "${with_python+set}" = set; then
12289   withval=$with_python; PYTHON="$withval"
12290 fi
12291
12292
12293 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12294   { echo "$as_me:$LINENO: checking for python" >&5
12295 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12296   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12297 echo "${ECHO_T}user defined: $with_python" >&6; }
12298 else
12299   if test -n "$PYTHON" ; then
12300     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12301 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12302   fi
12303
12304   # Extract the first word of "python python2 python26", so it can be a program name with args.
12305 set dummy python python2 python26; ac_word=$2
12306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12308 if test "${ac_cv_path_PYTHON+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   case $PYTHON in
12312   [\\/]* | ?:[\\/]*)
12313   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12314   ;;
12315   *)
12316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321   for ac_exec_ext in '' $ac_executable_extensions; do
12322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12323     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328 done
12329 IFS=$as_save_IFS
12330
12331   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12332 echo "${ECHO_T}not found" >&6; }
12333                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12334 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12335    { (exit 1); exit 1; }; }"
12336   ;;
12337 esac
12338 fi
12339 PYTHON=$ac_cv_path_PYTHON
12340 if test -n "$PYTHON"; then
12341   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12342 echo "${ECHO_T}$PYTHON" >&6; }
12343 else
12344   { echo "$as_me:$LINENO: result: no" >&5
12345 echo "${ECHO_T}no" >&6; }
12346 fi
12347
12348
12349 fi
12350
12351 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12352 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12353 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12354 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12355 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12356 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12357 if   test "$ac_python_version_major" -eq "2" \
12358    && test "$ac_python_version_minor" -ge "5" ; then
12359   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12360 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12361 else
12362   { echo "$as_me:$LINENO: result: not found" >&5
12363 echo "${ECHO_T}not found" >&6; }
12364   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12365 See \`config.log' for more details." >&5
12366 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12367 See \`config.log' for more details." >&2;}
12368    { (exit 1); exit 1; }; }
12369 fi
12370
12371
12372
12373 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12374 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12375 if test "${ac_cv_lib_m_sin+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lm  $LIBS"
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386
12387 /* Override any GCC internal prototype to avoid an error.
12388    Use char because int might match the return type of a GCC
12389    builtin and then its argument prototype would still apply.  */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char sin ();
12394 int
12395 main ()
12396 {
12397 return sin ();
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (ac_try="$ac_link"
12404 case "(($ac_try" in
12405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406   *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409   (eval "$ac_link") 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12417   { (case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_try") 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_try") 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436   ac_cv_lib_m_sin=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441         ac_cv_lib_m_sin=no
12442 fi
12443
12444 rm -f core conftest.err conftest.$ac_objext \
12445       conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12449 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12450 if test $ac_cv_lib_m_sin = yes; then
12451   cat >>confdefs.h <<_ACEOF
12452 #define HAVE_LIBM 1
12453 _ACEOF
12454
12455   LIBS="-lm $LIBS"
12456
12457 fi
12458
12459 if test "$llvm_cv_os_type" = "MingW" ; then
12460
12461 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12462 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-limagehlp  $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475
12476 int
12477 main ()
12478 {
12479 return main ();
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_link") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12499   { (case "(($ac_try" in
12500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501   *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504   (eval "$ac_try") 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; } &&
12508          { ac_try='test -s conftest$ac_exeext'
12509   { (case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_try") 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_cv_lib_imagehlp_main=yes
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         ac_cv_lib_imagehlp_main=no
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext \
12527       conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12531 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12532 if test $ac_cv_lib_imagehlp_main = yes; then
12533   cat >>confdefs.h <<_ACEOF
12534 #define HAVE_LIBIMAGEHLP 1
12535 _ACEOF
12536
12537   LIBS="-limagehlp $LIBS"
12538
12539 fi
12540
12541
12542 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12543 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12544 if test "${ac_cv_lib_psapi_main+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   ac_check_lib_save_LIBS=$LIBS
12548 LIBS="-lpsapi  $LIBS"
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555
12556
12557 int
12558 main ()
12559 {
12560 return main ();
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572   (eval "$ac_link") 2>conftest.er1
12573   ac_status=$?
12574   grep -v '^ *+' conftest.er1 >conftest.err
12575   rm -f conftest.er1
12576   cat conftest.err >&5
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); } &&
12579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580   { (case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585   (eval "$ac_try") 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; } &&
12589          { ac_try='test -s conftest$ac_exeext'
12590   { (case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_try") 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   ac_cv_lib_psapi_main=yes
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604         ac_cv_lib_psapi_main=no
12605 fi
12606
12607 rm -f core conftest.err conftest.$ac_objext \
12608       conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12612 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12613 if test $ac_cv_lib_psapi_main = yes; then
12614   cat >>confdefs.h <<_ACEOF
12615 #define HAVE_LIBPSAPI 1
12616 _ACEOF
12617
12618   LIBS="-lpsapi $LIBS"
12619
12620 fi
12621
12622 fi
12623
12624 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12625 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12626 if test "${ac_cv_search_dlopen+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   ac_func_search_save_LIBS=$LIBS
12630 cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636
12637 /* Override any GCC internal prototype to avoid an error.
12638    Use char because int might match the return type of a GCC
12639    builtin and then its argument prototype would still apply.  */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 char dlopen ();
12644 int
12645 main ()
12646 {
12647 return dlopen ();
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 for ac_lib in '' dl; do
12653   if test -z "$ac_lib"; then
12654     ac_res="none required"
12655   else
12656     ac_res=-l$ac_lib
12657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12658   fi
12659   rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (ac_try="$ac_link"
12661 case "(($ac_try" in
12662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663   *) ac_try_echo=$ac_try;;
12664 esac
12665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666   (eval "$ac_link") 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12674   { (case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679   (eval "$ac_try") 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; } &&
12683          { ac_try='test -s conftest$ac_exeext'
12684   { (case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689   (eval "$ac_try") 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; }; then
12693   ac_cv_search_dlopen=$ac_res
12694 else
12695   echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698
12699 fi
12700
12701 rm -f core conftest.err conftest.$ac_objext \
12702       conftest$ac_exeext
12703   if test "${ac_cv_search_dlopen+set}" = set; then
12704   break
12705 fi
12706 done
12707 if test "${ac_cv_search_dlopen+set}" = set; then
12708   :
12709 else
12710   ac_cv_search_dlopen=no
12711 fi
12712 rm conftest.$ac_ext
12713 LIBS=$ac_func_search_save_LIBS
12714 fi
12715 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12716 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12717 ac_res=$ac_cv_search_dlopen
12718 if test "$ac_res" != no; then
12719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12720
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_DLOPEN 1
12723 _ACEOF
12724
12725 else
12726   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12727 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12728 fi
12729
12730
12731 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12732 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12733 if test "${ac_cv_search_clock_gettime+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   ac_func_search_save_LIBS=$LIBS
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 /* Override any GCC internal prototype to avoid an error.
12745    Use char because int might match the return type of a GCC
12746    builtin and then its argument prototype would still apply.  */
12747 #ifdef __cplusplus
12748 extern "C"
12749 #endif
12750 char clock_gettime ();
12751 int
12752 main ()
12753 {
12754 return clock_gettime ();
12755   ;
12756   return 0;
12757 }
12758 _ACEOF
12759 for ac_lib in '' rt; do
12760   if test -z "$ac_lib"; then
12761     ac_res="none required"
12762   else
12763     ac_res=-l$ac_lib
12764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12765   fi
12766   rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770   *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773   (eval "$ac_link") 2>conftest.er1
12774   ac_status=$?
12775   grep -v '^ *+' conftest.er1 >conftest.err
12776   rm -f conftest.er1
12777   cat conftest.err >&5
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); } &&
12780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12781   { (case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_try") 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; } &&
12790          { ac_try='test -s conftest$ac_exeext'
12791   { (case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_try") 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   ac_cv_search_clock_gettime=$ac_res
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805
12806 fi
12807
12808 rm -f core conftest.err conftest.$ac_objext \
12809       conftest$ac_exeext
12810   if test "${ac_cv_search_clock_gettime+set}" = set; then
12811   break
12812 fi
12813 done
12814 if test "${ac_cv_search_clock_gettime+set}" = set; then
12815   :
12816 else
12817   ac_cv_search_clock_gettime=no
12818 fi
12819 rm conftest.$ac_ext
12820 LIBS=$ac_func_search_save_LIBS
12821 fi
12822 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12823 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12824 ac_res=$ac_cv_search_clock_gettime
12825 if test "$ac_res" != no; then
12826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12827
12828 fi
12829
12830
12831 if test "$llvm_cv_enable_libffi" = "yes" ; then
12832   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12833 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12834 if test "${ac_cv_search_ffi_call+set}" = set; then
12835   echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837   ac_func_search_save_LIBS=$LIBS
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 /* Override any GCC internal prototype to avoid an error.
12846    Use char because int might match the return type of a GCC
12847    builtin and then its argument prototype would still apply.  */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char ffi_call ();
12852 int
12853 main ()
12854 {
12855 return ffi_call ();
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 for ac_lib in '' ffi; do
12861   if test -z "$ac_lib"; then
12862     ac_res="none required"
12863   else
12864     ac_res=-l$ac_lib
12865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12866   fi
12867   rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_link") 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest$ac_exeext'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_cv_search_ffi_call=$ac_res
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906
12907 fi
12908
12909 rm -f core conftest.err conftest.$ac_objext \
12910       conftest$ac_exeext
12911   if test "${ac_cv_search_ffi_call+set}" = set; then
12912   break
12913 fi
12914 done
12915 if test "${ac_cv_search_ffi_call+set}" = set; then
12916   :
12917 else
12918   ac_cv_search_ffi_call=no
12919 fi
12920 rm conftest.$ac_ext
12921 LIBS=$ac_func_search_save_LIBS
12922 fi
12923 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12924 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12925 ac_res=$ac_cv_search_ffi_call
12926 if test "$ac_res" != no; then
12927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_FFI_CALL 1
12931 _ACEOF
12932
12933 else
12934   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12935 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12936    { (exit 1); exit 1; }; }
12937 fi
12938
12939 fi
12940
12941 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12942 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12943 if test "${ac_cv_search_mallinfo+set}" = set; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   ac_func_search_save_LIBS=$LIBS
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953
12954 /* Override any GCC internal prototype to avoid an error.
12955    Use char because int might match the return type of a GCC
12956    builtin and then its argument prototype would still apply.  */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char mallinfo ();
12961 int
12962 main ()
12963 {
12964 return mallinfo ();
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 for ac_lib in '' malloc; do
12970   if test -z "$ac_lib"; then
12971     ac_res="none required"
12972   else
12973     ac_res=-l$ac_lib
12974     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12975   fi
12976   rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (ac_try="$ac_link"
12978 case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_link") 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } &&
12990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12991   { (case "(($ac_try" in
12992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993   *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996   (eval "$ac_try") 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; } &&
13000          { ac_try='test -s conftest$ac_exeext'
13001   { (case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_try") 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   ac_cv_search_mallinfo=$ac_res
13011 else
13012   echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13014
13015
13016 fi
13017
13018 rm -f core conftest.err conftest.$ac_objext \
13019       conftest$ac_exeext
13020   if test "${ac_cv_search_mallinfo+set}" = set; then
13021   break
13022 fi
13023 done
13024 if test "${ac_cv_search_mallinfo+set}" = set; then
13025   :
13026 else
13027   ac_cv_search_mallinfo=no
13028 fi
13029 rm conftest.$ac_ext
13030 LIBS=$ac_func_search_save_LIBS
13031 fi
13032 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13033 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13034 ac_res=$ac_cv_search_mallinfo
13035 if test "$ac_res" != no; then
13036   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13037
13038 cat >>confdefs.h <<\_ACEOF
13039 #define HAVE_MALLINFO 1
13040 _ACEOF
13041
13042 fi
13043
13044
13045 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13046
13047 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13048 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13049 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13050   echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052   ac_check_lib_save_LIBS=$LIBS
13053 LIBS="-lpthread  $LIBS"
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062    Use char because int might match the return type of a GCC
13063    builtin and then its argument prototype would still apply.  */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char pthread_mutex_init ();
13068 int
13069 main ()
13070 {
13071 return pthread_mutex_init ();
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_link") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091   { (case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_try") 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; } &&
13100          { ac_try='test -s conftest$ac_exeext'
13101   { (case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_try") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_cv_lib_pthread_pthread_mutex_init=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115         ac_cv_lib_pthread_pthread_mutex_init=no
13116 fi
13117
13118 rm -f core conftest.err conftest.$ac_objext \
13119       conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13121 fi
13122 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13123 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13124 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13125   cat >>confdefs.h <<_ACEOF
13126 #define HAVE_LIBPTHREAD 1
13127 _ACEOF
13128
13129   LIBS="-lpthread $LIBS"
13130
13131 fi
13132
13133   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13134 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13135 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138   ac_func_search_save_LIBS=$LIBS
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147    Use char because int might match the return type of a GCC
13148    builtin and then its argument prototype would still apply.  */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char pthread_mutex_lock ();
13153 int
13154 main ()
13155 {
13156 return pthread_mutex_lock ();
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 for ac_lib in '' pthread; do
13162   if test -z "$ac_lib"; then
13163     ac_res="none required"
13164   else
13165     ac_res=-l$ac_lib
13166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13167   fi
13168   rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_link") 2>conftest.er1
13176   ac_status=$?
13177   grep -v '^ *+' conftest.er1 >conftest.err
13178   rm -f conftest.er1
13179   cat conftest.err >&5
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); } &&
13182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13183   { (case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_try") 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); }; } &&
13192          { ac_try='test -s conftest$ac_exeext'
13193   { (case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198   (eval "$ac_try") 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_cv_search_pthread_mutex_lock=$ac_res
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext \
13211       conftest$ac_exeext
13212   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13213   break
13214 fi
13215 done
13216 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13217   :
13218 else
13219   ac_cv_search_pthread_mutex_lock=no
13220 fi
13221 rm conftest.$ac_ext
13222 LIBS=$ac_func_search_save_LIBS
13223 fi
13224 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13225 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13226 ac_res=$ac_cv_search_pthread_mutex_lock
13227 if test "$ac_res" != no; then
13228   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13229
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_PTHREAD_MUTEX_LOCK 1
13232 _ACEOF
13233
13234 fi
13235
13236   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13237 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13238 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   ac_func_search_save_LIBS=$LIBS
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250    Use char because int might match the return type of a GCC
13251    builtin and then its argument prototype would still apply.  */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char pthread_rwlock_init ();
13256 int
13257 main ()
13258 {
13259 return pthread_rwlock_init ();
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 for ac_lib in '' pthread; do
13265   if test -z "$ac_lib"; then
13266     ac_res="none required"
13267   else
13268     ac_res=-l$ac_lib
13269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13270   fi
13271   rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_link") 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } &&
13285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286   { (case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291   (eval "$ac_try") 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest$ac_exeext'
13296   { (case "(($ac_try" in
13297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298   *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301   (eval "$ac_try") 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }; }; then
13305   ac_cv_search_pthread_rwlock_init=$ac_res
13306 else
13307   echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13309
13310
13311 fi
13312
13313 rm -f core conftest.err conftest.$ac_objext \
13314       conftest$ac_exeext
13315   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13316   break
13317 fi
13318 done
13319 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13320   :
13321 else
13322   ac_cv_search_pthread_rwlock_init=no
13323 fi
13324 rm conftest.$ac_ext
13325 LIBS=$ac_func_search_save_LIBS
13326 fi
13327 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13328 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13329 ac_res=$ac_cv_search_pthread_rwlock_init
13330 if test "$ac_res" != no; then
13331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_PTHREAD_RWLOCK_INIT 1
13335 _ACEOF
13336
13337 fi
13338
13339   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13340 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13341 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344   ac_func_search_save_LIBS=$LIBS
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351
13352 /* Override any GCC internal prototype to avoid an error.
13353    Use char because int might match the return type of a GCC
13354    builtin and then its argument prototype would still apply.  */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char pthread_getspecific ();
13359 int
13360 main ()
13361 {
13362 return pthread_getspecific ();
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 for ac_lib in '' pthread; do
13368   if test -z "$ac_lib"; then
13369     ac_res="none required"
13370   else
13371     ac_res=-l$ac_lib
13372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13373   fi
13374   rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_link") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; } &&
13398          { ac_try='test -s conftest$ac_exeext'
13399   { (case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404   (eval "$ac_try") 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_search_pthread_getspecific=$ac_res
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413
13414 fi
13415
13416 rm -f core conftest.err conftest.$ac_objext \
13417       conftest$ac_exeext
13418   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13419   break
13420 fi
13421 done
13422 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13423   :
13424 else
13425   ac_cv_search_pthread_getspecific=no
13426 fi
13427 rm conftest.$ac_ext
13428 LIBS=$ac_func_search_save_LIBS
13429 fi
13430 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13431 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13432 ac_res=$ac_cv_search_pthread_getspecific
13433 if test "$ac_res" != no; then
13434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435
13436 cat >>confdefs.h <<\_ACEOF
13437 #define HAVE_PTHREAD_GETSPECIFIC 1
13438 _ACEOF
13439
13440 fi
13441
13442 fi
13443
13444
13445 # Check whether --with-udis86 was given.
13446 if test "${with_udis86+set}" = set; then
13447   withval=$with_udis86;
13448       USE_UDIS86=1
13449
13450       case "$withval" in
13451         /usr/lib|yes) ;;
13452         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13453       esac
13454
13455 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13456 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13457 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13458   echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460   ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-ludis86  $LIBS"
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468
13469 /* Override any GCC internal prototype to avoid an error.
13470    Use char because int might match the return type of a GCC
13471    builtin and then its argument prototype would still apply.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char ud_init ();
13476 int
13477 main ()
13478 {
13479 return ud_init ();
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (ac_try="$ac_link"
13486 case "(($ac_try" in
13487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488   *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491   (eval "$ac_link") 2>conftest.er1
13492   ac_status=$?
13493   grep -v '^ *+' conftest.er1 >conftest.err
13494   rm -f conftest.er1
13495   cat conftest.err >&5
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } &&
13498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13499   { (case "(($ac_try" in
13500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501   *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504   (eval "$ac_try") 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; } &&
13508          { ac_try='test -s conftest$ac_exeext'
13509   { (case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_try") 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_lib_udis86_ud_init=yes
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523         ac_cv_lib_udis86_ud_init=no
13524 fi
13525
13526 rm -f core conftest.err conftest.$ac_objext \
13527       conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13529 fi
13530 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13531 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13532 if test $ac_cv_lib_udis86_ud_init = yes; then
13533   cat >>confdefs.h <<_ACEOF
13534 #define HAVE_LIBUDIS86 1
13535 _ACEOF
13536
13537   LIBS="-ludis86 $LIBS"
13538
13539 else
13540
13541         echo "Error! You need to have libudis86 around."
13542         exit -1
13543
13544 fi
13545
13546
13547 else
13548   USE_UDIS86=0
13549
13550 fi
13551
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define USE_UDIS86 $USE_UDIS86
13555 _ACEOF
13556
13557
13558
13559 # Check whether --with-oprofile was given.
13560 if test "${with_oprofile+set}" = set; then
13561   withval=$with_oprofile;
13562       USE_OPROFILE=1
13563
13564       case "$withval" in
13565         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13566         no) llvm_cv_oppath=
13567             USE_OPROFILE=0
13568  ;;
13569         *) llvm_cv_oppath="${withval}/lib/oprofile"
13570            CPPFLAGS="-I${withval}/include";;
13571       esac
13572       case $llvm_cv_os_type in
13573         Linux)
13574           if test -n "$llvm_cv_oppath" ; then
13575             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13576                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13577 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13578 if test "${ac_cv_search_bfd_init+set}" = set; then
13579   echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581   ac_func_search_save_LIBS=$LIBS
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588
13589 /* Override any GCC internal prototype to avoid an error.
13590    Use char because int might match the return type of a GCC
13591    builtin and then its argument prototype would still apply.  */
13592 #ifdef __cplusplus
13593 extern "C"
13594 #endif
13595 char bfd_init ();
13596 int
13597 main ()
13598 {
13599 return bfd_init ();
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 for ac_lib in '' bfd; do
13605   if test -z "$ac_lib"; then
13606     ac_res="none required"
13607   else
13608     ac_res=-l$ac_lib
13609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13610   fi
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_search_bfd_init=$ac_res
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext \
13654       conftest$ac_exeext
13655   if test "${ac_cv_search_bfd_init+set}" = set; then
13656   break
13657 fi
13658 done
13659 if test "${ac_cv_search_bfd_init+set}" = set; then
13660   :
13661 else
13662   ac_cv_search_bfd_init=no
13663 fi
13664 rm conftest.$ac_ext
13665 LIBS=$ac_func_search_save_LIBS
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13668 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13669 ac_res=$ac_cv_search_bfd_init
13670 if test "$ac_res" != no; then
13671   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13672
13673 fi
13674
13675             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13676 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13677 if test "${ac_cv_search_op_open_agent+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   ac_func_search_save_LIBS=$LIBS
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687
13688 /* Override any GCC internal prototype to avoid an error.
13689    Use char because int might match the return type of a GCC
13690    builtin and then its argument prototype would still apply.  */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 char op_open_agent ();
13695 int
13696 main ()
13697 {
13698 return op_open_agent ();
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 for ac_lib in '' opagent; do
13704   if test -z "$ac_lib"; then
13705     ac_res="none required"
13706   else
13707     ac_res=-l$ac_lib
13708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13709   fi
13710   rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (ac_try="$ac_link"
13712 case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_link") 2>conftest.er1
13718   ac_status=$?
13719   grep -v '^ *+' conftest.er1 >conftest.err
13720   rm -f conftest.er1
13721   cat conftest.err >&5
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13725   { (case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730   (eval "$ac_try") 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; } &&
13734          { ac_try='test -s conftest$ac_exeext'
13735   { (case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_try") 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_cv_search_op_open_agent=$ac_res
13745 else
13746   echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749
13750 fi
13751
13752 rm -f core conftest.err conftest.$ac_objext \
13753       conftest$ac_exeext
13754   if test "${ac_cv_search_op_open_agent+set}" = set; then
13755   break
13756 fi
13757 done
13758 if test "${ac_cv_search_op_open_agent+set}" = set; then
13759   :
13760 else
13761   ac_cv_search_op_open_agent=no
13762 fi
13763 rm conftest.$ac_ext
13764 LIBS=$ac_func_search_save_LIBS
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13767 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13768 ac_res=$ac_cv_search_op_open_agent
13769 if test "$ac_res" != no; then
13770   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13771
13772 else
13773
13774               echo "Error! You need to have libopagent around."
13775               exit -1
13776
13777 fi
13778
13779             if test "${ac_cv_header_opagent_h+set}" = set; then
13780   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13781 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13782 if test "${ac_cv_header_opagent_h+set}" = set; then
13783   echo $ECHO_N "(cached) $ECHO_C" >&6
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13786 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13787 else
13788   # Is the header compilable?
13789 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13790 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h.  */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h.  */
13797 $ac_includes_default
13798 #include <opagent.h>
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_compile") 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13815   { (case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820   (eval "$ac_try") 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest.$ac_objext'
13825   { (case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_try") 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; }; then
13834   ac_header_compiler=yes
13835 else
13836   echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13838
13839         ac_header_compiler=no
13840 fi
13841
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13844 echo "${ECHO_T}$ac_header_compiler" >&6; }
13845
13846 # Is the header present?
13847 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13848 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 #include <opagent.h>
13856 _ACEOF
13857 if { (ac_try="$ac_cpp conftest.$ac_ext"
13858 case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } >/dev/null; then
13870   if test -s conftest.err; then
13871     ac_cpp_err=$ac_c_preproc_warn_flag
13872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13873   else
13874     ac_cpp_err=
13875   fi
13876 else
13877   ac_cpp_err=yes
13878 fi
13879 if test -z "$ac_cpp_err"; then
13880   ac_header_preproc=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885   ac_header_preproc=no
13886 fi
13887
13888 rm -f conftest.err conftest.$ac_ext
13889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13890 echo "${ECHO_T}$ac_header_preproc" >&6; }
13891
13892 # So?  What about this header?
13893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894   yes:no: )
13895     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13896 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13897     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13898 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13899     ac_header_preproc=yes
13900     ;;
13901   no:yes:* )
13902     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13903 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13904     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13905 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13907 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13908     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13909 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13910     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13911 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13912     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13913 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13914     ( cat <<\_ASBOX
13915 ## ------------------------------------ ##
13916 ## Report this to http://llvm.org/bugs/ ##
13917 ## ------------------------------------ ##
13918 _ASBOX
13919      ) | sed "s/^/$as_me: WARNING:     /" >&2
13920     ;;
13921 esac
13922 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13923 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_opagent_h+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927   ac_cv_header_opagent_h=$ac_header_preproc
13928 fi
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13931
13932 fi
13933 if test $ac_cv_header_opagent_h = yes; then
13934   :
13935 else
13936
13937               echo "Error! You need to have opagent.h around."
13938               exit -1
13939
13940 fi
13941
13942
13943           fi ;;
13944         *)
13945           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13946 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13947    { (exit 1); exit 1; }; } ;;
13948       esac
13949
13950 else
13951
13952       USE_OPROFILE=0
13953
13954
13955 fi
13956
13957
13958 cat >>confdefs.h <<_ACEOF
13959 #define LLVM_USE_OPROFILE $USE_OPROFILE
13960 _ACEOF
13961
13962
13963
13964 # Check whether --with-intel-jitevents was given.
13965 if test "${with_intel_jitevents+set}" = set; then
13966   withval=$with_intel_jitevents;
13967        case "$withval" in
13968           yes) USE_INTEL_JITEVENTS=1
13969 ;;
13970           no)  USE_INTEL_JITEVENTS=0
13971 ;;
13972           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13973 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13974    { (exit 1); exit 1; }; };;
13975        esac
13976
13977       case $llvm_cv_os_type in
13978         Linux|Win32|Cygwin|MingW) ;;
13979         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13980 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13981    { (exit 1); exit 1; }; };;
13982       esac
13983
13984       case "$llvm_cv_target_arch" in
13985         x86|x86_64) ;;
13986         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13987 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13988    { (exit 1); exit 1; }; };;
13989       esac
13990
13991 else
13992
13993       USE_INTEL_JITEVENTS=0
13994
13995
13996 fi
13997
13998
13999 cat >>confdefs.h <<_ACEOF
14000 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14001 _ACEOF
14002
14003
14004 for ac_prog in xml2-config
14005 do
14006   # Extract the first word of "$ac_prog", so it can be a program name with args.
14007 set dummy $ac_prog; ac_word=$2
14008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14010 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   if test -n "$XML2CONFIG"; then
14014   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019   IFS=$as_save_IFS
14020   test -z "$as_dir" && as_dir=.
14021   for ac_exec_ext in '' $ac_executable_extensions; do
14022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14023     ac_cv_prog_XML2CONFIG="$ac_prog"
14024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14025     break 2
14026   fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14034 if test -n "$XML2CONFIG"; then
14035   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14036 echo "${ECHO_T}$XML2CONFIG" >&6; }
14037 else
14038   { echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6; }
14040 fi
14041
14042
14043   test -n "$XML2CONFIG" && break
14044 done
14045
14046
14047 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14048 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14049 if test "x$XML2CONFIG" = "x"; then
14050  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14051 echo "${ECHO_T}xml2-config not found" >&6; }
14052 else
14053  LIBXML2_INC=`$XML2CONFIG --cflags`
14054  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14055 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14056  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14057 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14058 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   ac_check_lib_save_LIBS=$LIBS
14062 LIBS="-lxml2  $LIBS"
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069
14070 /* Override any GCC internal prototype to avoid an error.
14071    Use char because int might match the return type of a GCC
14072    builtin and then its argument prototype would still apply.  */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char xmlReadFile ();
14077 int
14078 main ()
14079 {
14080 return xmlReadFile ();
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089   *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092   (eval "$ac_link") 2>conftest.er1
14093   ac_status=$?
14094   grep -v '^ *+' conftest.er1 >conftest.err
14095   rm -f conftest.er1
14096   cat conftest.err >&5
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); } &&
14099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14100   { (case "(($ac_try" in
14101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102   *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105   (eval "$ac_try") 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; } &&
14109          { ac_try='test -s conftest$ac_exeext'
14110   { (case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115   (eval "$ac_try") 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119   ac_cv_lib_xml2_xmlReadFile=yes
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124         ac_cv_lib_xml2_xmlReadFile=no
14125 fi
14126
14127 rm -f core conftest.err conftest.$ac_objext \
14128       conftest$ac_exeext conftest.$ac_ext
14129 LIBS=$ac_check_lib_save_LIBS
14130 fi
14131 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14132 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14133 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14134
14135 cat >>confdefs.h <<\_ACEOF
14136 #define CLANG_HAVE_LIBXML 1
14137 _ACEOF
14138
14139                                 LIBXML2_LIBS="-lxml2"
14140 fi
14141
14142 fi
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 ac_header_dirent=no
14153 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14154   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14155 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14156 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166 #include <sys/types.h>
14167 #include <$ac_hdr>
14168
14169 int
14170 main ()
14171 {
14172 if ((DIR *) 0)
14173 return 0;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_compile") 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } &&
14192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14193   { (case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_try") 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; } &&
14202          { ac_try='test -s conftest.$ac_objext'
14203   { (case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_try") 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   eval "$as_ac_Header=yes"
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217         eval "$as_ac_Header=no"
14218 fi
14219
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 fi
14222 ac_res=`eval echo '${'$as_ac_Header'}'`
14223                { echo "$as_me:$LINENO: result: $ac_res" >&5
14224 echo "${ECHO_T}$ac_res" >&6; }
14225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14226   cat >>confdefs.h <<_ACEOF
14227 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14228 _ACEOF
14229
14230 ac_header_dirent=$ac_hdr; break
14231 fi
14232
14233 done
14234 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14235 if test $ac_header_dirent = dirent.h; then
14236   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14237 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14238 if test "${ac_cv_search_opendir+set}" = set; then
14239   echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241   ac_func_search_save_LIBS=$LIBS
14242 cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h.  */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h.  */
14248
14249 /* Override any GCC internal prototype to avoid an error.
14250    Use char because int might match the return type of a GCC
14251    builtin and then its argument prototype would still apply.  */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 char opendir ();
14256 int
14257 main ()
14258 {
14259 return opendir ();
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 for ac_lib in '' dir; do
14265   if test -z "$ac_lib"; then
14266     ac_res="none required"
14267   else
14268     ac_res=-l$ac_lib
14269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14270   fi
14271   rm -f conftest.$ac_objext conftest$ac_exeext
14272 if { (ac_try="$ac_link"
14273 case "(($ac_try" in
14274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275   *) ac_try_echo=$ac_try;;
14276 esac
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278   (eval "$ac_link") 2>conftest.er1
14279   ac_status=$?
14280   grep -v '^ *+' conftest.er1 >conftest.err
14281   rm -f conftest.er1
14282   cat conftest.err >&5
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14286   { (case "(($ac_try" in
14287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288   *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291   (eval "$ac_try") 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; } &&
14295          { ac_try='test -s conftest$ac_exeext'
14296   { (case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_try") 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; }; then
14305   ac_cv_search_opendir=$ac_res
14306 else
14307   echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311 fi
14312
14313 rm -f core conftest.err conftest.$ac_objext \
14314       conftest$ac_exeext
14315   if test "${ac_cv_search_opendir+set}" = set; then
14316   break
14317 fi
14318 done
14319 if test "${ac_cv_search_opendir+set}" = set; then
14320   :
14321 else
14322   ac_cv_search_opendir=no
14323 fi
14324 rm conftest.$ac_ext
14325 LIBS=$ac_func_search_save_LIBS
14326 fi
14327 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14328 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14329 ac_res=$ac_cv_search_opendir
14330 if test "$ac_res" != no; then
14331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14332
14333 fi
14334
14335 else
14336   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14337 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14338 if test "${ac_cv_search_opendir+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   ac_func_search_save_LIBS=$LIBS
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348
14349 /* Override any GCC internal prototype to avoid an error.
14350    Use char because int might match the return type of a GCC
14351    builtin and then its argument prototype would still apply.  */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 char opendir ();
14356 int
14357 main ()
14358 {
14359 return opendir ();
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 for ac_lib in '' x; do
14365   if test -z "$ac_lib"; then
14366     ac_res="none required"
14367   else
14368     ac_res=-l$ac_lib
14369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14370   fi
14371   rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_link") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386   { (case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_try") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; } &&
14395          { ac_try='test -s conftest$ac_exeext'
14396   { (case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_try") 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_cv_search_opendir=$ac_res
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410
14411 fi
14412
14413 rm -f core conftest.err conftest.$ac_objext \
14414       conftest$ac_exeext
14415   if test "${ac_cv_search_opendir+set}" = set; then
14416   break
14417 fi
14418 done
14419 if test "${ac_cv_search_opendir+set}" = set; then
14420   :
14421 else
14422   ac_cv_search_opendir=no
14423 fi
14424 rm conftest.$ac_ext
14425 LIBS=$ac_func_search_save_LIBS
14426 fi
14427 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14428 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14429 ac_res=$ac_cv_search_opendir
14430 if test "$ac_res" != no; then
14431   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14432
14433 fi
14434
14435 fi
14436
14437 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14438 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14439 if test "${ac_cv_header_mmap_anon+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442    ac_ext=c
14443 ac_cpp='$CPP $CPPFLAGS'
14444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14447
14448   cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h.  */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h.  */
14454 #include <sys/mman.h>
14455 #include <unistd.h>
14456 #include <fcntl.h>
14457 int
14458 main ()
14459 {
14460 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_compile") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } &&
14479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480   { (case "(($ac_try" in
14481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482   *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485   (eval "$ac_try") 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; } &&
14489          { ac_try='test -s conftest.$ac_objext'
14490   { (case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_try") 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_cv_header_mmap_anon=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504         ac_cv_header_mmap_anon=no
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508   ac_ext=c
14509 ac_cpp='$CPP $CPPFLAGS'
14510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14513
14514
14515 fi
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14517 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14518 if test "$ac_cv_header_mmap_anon" = yes; then
14519
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_MMAP_ANONYMOUS 1
14522 _ACEOF
14523
14524 fi
14525
14526 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14527 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14528 if test "${ac_cv_header_stat_broken+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 #include <sys/types.h>
14538 #include <sys/stat.h>
14539
14540 #if defined S_ISBLK && defined S_IFDIR
14541 # if S_ISBLK (S_IFDIR)
14542 You lose.
14543 # endif
14544 #endif
14545
14546 #if defined S_ISBLK && defined S_IFCHR
14547 # if S_ISBLK (S_IFCHR)
14548 You lose.
14549 # endif
14550 #endif
14551
14552 #if defined S_ISLNK && defined S_IFREG
14553 # if S_ISLNK (S_IFREG)
14554 You lose.
14555 # endif
14556 #endif
14557
14558 #if defined S_ISSOCK && defined S_IFREG
14559 # if S_ISSOCK (S_IFREG)
14560 You lose.
14561 # endif
14562 #endif
14563
14564 _ACEOF
14565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14566   $EGREP "You lose" >/dev/null 2>&1; then
14567   ac_cv_header_stat_broken=yes
14568 else
14569   ac_cv_header_stat_broken=no
14570 fi
14571 rm -f conftest*
14572
14573 fi
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14575 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14576 if test $ac_cv_header_stat_broken = yes; then
14577
14578 cat >>confdefs.h <<\_ACEOF
14579 #define STAT_MACROS_BROKEN 1
14580 _ACEOF
14581
14582 fi
14583
14584 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14585 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14586 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589   cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 #include <sys/types.h>
14596 #include <sys/wait.h>
14597 #ifndef WEXITSTATUS
14598 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14599 #endif
14600 #ifndef WIFEXITED
14601 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14602 #endif
14603
14604 int
14605 main ()
14606 {
14607   int s;
14608   wait (&s);
14609   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (ac_try="$ac_compile"
14616 case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_compile") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14629   { (case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634   (eval "$ac_try") 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644   (eval "$ac_try") 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   ac_cv_header_sys_wait_h=yes
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653         ac_cv_header_sys_wait_h=no
14654 fi
14655
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14659 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14660 if test $ac_cv_header_sys_wait_h = yes; then
14661
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_SYS_WAIT_H 1
14664 _ACEOF
14665
14666 fi
14667
14668 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_time+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 #include <sys/types.h>
14680 #include <sys/time.h>
14681 #include <time.h>
14682
14683 int
14684 main ()
14685 {
14686 if ((struct tm *) 0)
14687 return 0;
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_compile") 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707   { (case "(($ac_try" in
14708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709   *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712   (eval "$ac_try") 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; } &&
14716          { ac_try='test -s conftest.$ac_objext'
14717   { (case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_try") 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_cv_header_time=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731         ac_cv_header_time=no
14732 fi
14733
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 fi
14736 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14737 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14738 if test $ac_cv_header_time = yes; then
14739
14740 cat >>confdefs.h <<\_ACEOF
14741 #define TIME_WITH_SYS_TIME 1
14742 _ACEOF
14743
14744 fi
14745
14746
14747
14748
14749
14750
14751
14752
14753 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14754 do
14755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14757   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 fi
14762 ac_res=`eval echo '${'$as_ac_Header'}'`
14763                { echo "$as_me:$LINENO: result: $ac_res" >&5
14764 echo "${ECHO_T}$ac_res" >&6; }
14765 else
14766   # Is the header compilable?
14767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775 $ac_includes_default
14776 #include <$ac_header>
14777 _ACEOF
14778 rm -f conftest.$ac_objext
14779 if { (ac_try="$ac_compile"
14780 case "(($ac_try" in
14781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782   *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785   (eval "$ac_compile") 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793   { (case "(($ac_try" in
14794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795   *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798   (eval "$ac_try") 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; } &&
14802          { ac_try='test -s conftest.$ac_objext'
14803   { (case "(($ac_try" in
14804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805   *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808   (eval "$ac_try") 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; }; then
14812   ac_header_compiler=yes
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817         ac_header_compiler=no
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14822 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823
14824 # Is the header present?
14825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h.  */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h.  */
14833 #include <$ac_header>
14834 _ACEOF
14835 if { (ac_try="$ac_cpp conftest.$ac_ext"
14836 case "(($ac_try" in
14837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838   *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } >/dev/null; then
14848   if test -s conftest.err; then
14849     ac_cpp_err=$ac_c_preproc_warn_flag
14850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14851   else
14852     ac_cpp_err=
14853   fi
14854 else
14855   ac_cpp_err=yes
14856 fi
14857 if test -z "$ac_cpp_err"; then
14858   ac_header_preproc=yes
14859 else
14860   echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863   ac_header_preproc=no
14864 fi
14865
14866 rm -f conftest.err conftest.$ac_ext
14867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14868 echo "${ECHO_T}$ac_header_preproc" >&6; }
14869
14870 # So?  What about this header?
14871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14872   yes:no: )
14873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14877     ac_header_preproc=yes
14878     ;;
14879   no:yes:* )
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14892     ( cat <<\_ASBOX
14893 ## ------------------------------------ ##
14894 ## Report this to http://llvm.org/bugs/ ##
14895 ## ------------------------------------ ##
14896 _ASBOX
14897      ) | sed "s/^/$as_me: WARNING:     /" >&2
14898     ;;
14899 esac
14900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   eval "$as_ac_Header=\$ac_header_preproc"
14906 fi
14907 ac_res=`eval echo '${'$as_ac_Header'}'`
14908                { echo "$as_me:$LINENO: result: $ac_res" >&5
14909 echo "${ECHO_T}$ac_res" >&6; }
14910
14911 fi
14912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14913   cat >>confdefs.h <<_ACEOF
14914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14915 _ACEOF
14916
14917 fi
14918
14919 done
14920
14921
14922
14923
14924
14925
14926
14927 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14928 do
14929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14931   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 fi
14936 ac_res=`eval echo '${'$as_ac_Header'}'`
14937                { echo "$as_me:$LINENO: result: $ac_res" >&5
14938 echo "${ECHO_T}$ac_res" >&6; }
14939 else
14940   # Is the header compilable?
14941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 $ac_includes_default
14950 #include <$ac_header>
14951 _ACEOF
14952 rm -f conftest.$ac_objext
14953 if { (ac_try="$ac_compile"
14954 case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_compile") 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } &&
14966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14967   { (case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972   (eval "$ac_try") 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; } &&
14976          { ac_try='test -s conftest.$ac_objext'
14977   { (case "(($ac_try" in
14978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979   *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982   (eval "$ac_try") 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; }; then
14986   ac_header_compiler=yes
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991         ac_header_compiler=no
14992 fi
14993
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14996 echo "${ECHO_T}$ac_header_compiler" >&6; }
14997
14998 # Is the header present?
14999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15001 cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 #include <$ac_header>
15008 _ACEOF
15009 if { (ac_try="$ac_cpp conftest.$ac_ext"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } >/dev/null; then
15022   if test -s conftest.err; then
15023     ac_cpp_err=$ac_c_preproc_warn_flag
15024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15025   else
15026     ac_cpp_err=
15027   fi
15028 else
15029   ac_cpp_err=yes
15030 fi
15031 if test -z "$ac_cpp_err"; then
15032   ac_header_preproc=yes
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037   ac_header_preproc=no
15038 fi
15039
15040 rm -f conftest.err conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043
15044 # So?  What about this header?
15045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046   yes:no: )
15047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15051     ac_header_preproc=yes
15052     ;;
15053   no:yes:* )
15054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066     ( cat <<\_ASBOX
15067 ## ------------------------------------ ##
15068 ## Report this to http://llvm.org/bugs/ ##
15069 ## ------------------------------------ ##
15070 _ASBOX
15071      ) | sed "s/^/$as_me: WARNING:     /" >&2
15072     ;;
15073 esac
15074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   eval "$as_ac_Header=\$ac_header_preproc"
15080 fi
15081 ac_res=`eval echo '${'$as_ac_Header'}'`
15082                { echo "$as_me:$LINENO: result: $ac_res" >&5
15083 echo "${ECHO_T}$ac_res" >&6; }
15084
15085 fi
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 fi
15092
15093 done
15094
15095
15096
15097 for ac_header in utime.h windows.h
15098 do
15099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 fi
15106 ac_res=`eval echo '${'$as_ac_Header'}'`
15107                { echo "$as_me:$LINENO: result: $ac_res" >&5
15108 echo "${ECHO_T}$ac_res" >&6; }
15109 else
15110   # Is the header compilable?
15111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 $ac_includes_default
15120 #include <$ac_header>
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (ac_try="$ac_compile"
15124 case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_compile") 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } &&
15136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137   { (case "(($ac_try" in
15138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139   *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142   (eval "$ac_try") 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; } &&
15146          { ac_try='test -s conftest.$ac_objext'
15147   { (case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_try") 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156   ac_header_compiler=yes
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161         ac_header_compiler=no
15162 fi
15163
15164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15166 echo "${ECHO_T}$ac_header_compiler" >&6; }
15167
15168 # Is the header present?
15169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177 #include <$ac_header>
15178 _ACEOF
15179 if { (ac_try="$ac_cpp conftest.$ac_ext"
15180 case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15186   ac_status=$?
15187   grep -v '^ *+' conftest.er1 >conftest.err
15188   rm -f conftest.er1
15189   cat conftest.err >&5
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); } >/dev/null; then
15192   if test -s conftest.err; then
15193     ac_cpp_err=$ac_c_preproc_warn_flag
15194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15195   else
15196     ac_cpp_err=
15197   fi
15198 else
15199   ac_cpp_err=yes
15200 fi
15201 if test -z "$ac_cpp_err"; then
15202   ac_header_preproc=yes
15203 else
15204   echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207   ac_header_preproc=no
15208 fi
15209
15210 rm -f conftest.err conftest.$ac_ext
15211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15212 echo "${ECHO_T}$ac_header_preproc" >&6; }
15213
15214 # So?  What about this header?
15215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15216   yes:no: )
15217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15221     ac_header_preproc=yes
15222     ;;
15223   no:yes:* )
15224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15236     ( cat <<\_ASBOX
15237 ## ------------------------------------ ##
15238 ## Report this to http://llvm.org/bugs/ ##
15239 ## ------------------------------------ ##
15240 _ASBOX
15241      ) | sed "s/^/$as_me: WARNING:     /" >&2
15242     ;;
15243 esac
15244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249   eval "$as_ac_Header=\$ac_header_preproc"
15250 fi
15251 ac_res=`eval echo '${'$as_ac_Header'}'`
15252                { echo "$as_me:$LINENO: result: $ac_res" >&5
15253 echo "${ECHO_T}$ac_res" >&6; }
15254
15255 fi
15256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15257   cat >>confdefs.h <<_ACEOF
15258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15259 _ACEOF
15260
15261 fi
15262
15263 done
15264
15265
15266
15267
15268
15269
15270 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15271 do
15272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 fi
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280                { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15282 else
15283   # Is the header compilable?
15284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 $ac_includes_default
15293 #include <$ac_header>
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (ac_try="$ac_compile"
15297 case "(($ac_try" in
15298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299   *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302   (eval "$ac_compile") 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15310   { (case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_try") 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest.$ac_objext'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_header_compiler=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334         ac_header_compiler=no
15335 fi
15336
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15339 echo "${ECHO_T}$ac_header_compiler" >&6; }
15340
15341 # Is the header present?
15342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 #include <$ac_header>
15351 _ACEOF
15352 if { (ac_try="$ac_cpp conftest.$ac_ext"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } >/dev/null; then
15365   if test -s conftest.err; then
15366     ac_cpp_err=$ac_c_preproc_warn_flag
15367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15368   else
15369     ac_cpp_err=
15370   fi
15371 else
15372   ac_cpp_err=yes
15373 fi
15374 if test -z "$ac_cpp_err"; then
15375   ac_header_preproc=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380   ac_header_preproc=no
15381 fi
15382
15383 rm -f conftest.err conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15385 echo "${ECHO_T}$ac_header_preproc" >&6; }
15386
15387 # So?  What about this header?
15388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15389   yes:no: )
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15394     ac_header_preproc=yes
15395     ;;
15396   no:yes:* )
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15409     ( cat <<\_ASBOX
15410 ## ------------------------------------ ##
15411 ## Report this to http://llvm.org/bugs/ ##
15412 ## ------------------------------------ ##
15413 _ASBOX
15414      ) | sed "s/^/$as_me: WARNING:     /" >&2
15415     ;;
15416 esac
15417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   eval "$as_ac_Header=\$ac_header_preproc"
15423 fi
15424 ac_res=`eval echo '${'$as_ac_Header'}'`
15425                { echo "$as_me:$LINENO: result: $ac_res" >&5
15426 echo "${ECHO_T}$ac_res" >&6; }
15427
15428 fi
15429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15430   cat >>confdefs.h <<_ACEOF
15431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15432 _ACEOF
15433
15434 fi
15435
15436 done
15437
15438
15439
15440
15441
15442 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15443 do
15444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15446   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 fi
15451 ac_res=`eval echo '${'$as_ac_Header'}'`
15452                { echo "$as_me:$LINENO: result: $ac_res" >&5
15453 echo "${ECHO_T}$ac_res" >&6; }
15454 else
15455   # Is the header compilable?
15456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h.  */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h.  */
15464 $ac_includes_default
15465 #include <$ac_header>
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (ac_try="$ac_compile"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_compile") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } &&
15481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15482   { (case "(($ac_try" in
15483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484   *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487   (eval "$ac_try") 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; } &&
15491          { ac_try='test -s conftest.$ac_objext'
15492   { (case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_try") 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_header_compiler=yes
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506         ac_header_compiler=no
15507 fi
15508
15509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15511 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512
15513 # Is the header present?
15514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522 #include <$ac_header>
15523 _ACEOF
15524 if { (ac_try="$ac_cpp conftest.$ac_ext"
15525 case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } >/dev/null; then
15537   if test -s conftest.err; then
15538     ac_cpp_err=$ac_c_preproc_warn_flag
15539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15540   else
15541     ac_cpp_err=
15542   fi
15543 else
15544   ac_cpp_err=yes
15545 fi
15546 if test -z "$ac_cpp_err"; then
15547   ac_header_preproc=yes
15548 else
15549   echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552   ac_header_preproc=no
15553 fi
15554
15555 rm -f conftest.err conftest.$ac_ext
15556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15557 echo "${ECHO_T}$ac_header_preproc" >&6; }
15558
15559 # So?  What about this header?
15560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561   yes:no: )
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15566     ac_header_preproc=yes
15567     ;;
15568   no:yes:* )
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15581     ( cat <<\_ASBOX
15582 ## ------------------------------------ ##
15583 ## Report this to http://llvm.org/bugs/ ##
15584 ## ------------------------------------ ##
15585 _ASBOX
15586      ) | sed "s/^/$as_me: WARNING:     /" >&2
15587     ;;
15588 esac
15589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15592   echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594   eval "$as_ac_Header=\$ac_header_preproc"
15595 fi
15596 ac_res=`eval echo '${'$as_ac_Header'}'`
15597                { echo "$as_me:$LINENO: result: $ac_res" >&5
15598 echo "${ECHO_T}$ac_res" >&6; }
15599
15600 fi
15601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15602   cat >>confdefs.h <<_ACEOF
15603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15604 _ACEOF
15605
15606 fi
15607
15608 done
15609
15610
15611 for ac_header in valgrind/valgrind.h
15612 do
15613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 fi
15620 ac_res=`eval echo '${'$as_ac_Header'}'`
15621                { echo "$as_me:$LINENO: result: $ac_res" >&5
15622 echo "${ECHO_T}$ac_res" >&6; }
15623 else
15624   # Is the header compilable?
15625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633 $ac_includes_default
15634 #include <$ac_header>
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_compile") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651   { (case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_try") 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; } &&
15660          { ac_try='test -s conftest.$ac_objext'
15661   { (case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_try") 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_header_compiler=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675         ac_header_compiler=no
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15680 echo "${ECHO_T}$ac_header_compiler" >&6; }
15681
15682 # Is the header present?
15683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691 #include <$ac_header>
15692 _ACEOF
15693 if { (ac_try="$ac_cpp conftest.$ac_ext"
15694 case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15700   ac_status=$?
15701   grep -v '^ *+' conftest.er1 >conftest.err
15702   rm -f conftest.er1
15703   cat conftest.err >&5
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } >/dev/null; then
15706   if test -s conftest.err; then
15707     ac_cpp_err=$ac_c_preproc_warn_flag
15708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15709   else
15710     ac_cpp_err=
15711   fi
15712 else
15713   ac_cpp_err=yes
15714 fi
15715 if test -z "$ac_cpp_err"; then
15716   ac_header_preproc=yes
15717 else
15718   echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721   ac_header_preproc=no
15722 fi
15723
15724 rm -f conftest.err conftest.$ac_ext
15725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 echo "${ECHO_T}$ac_header_preproc" >&6; }
15727
15728 # So?  What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730   yes:no: )
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735     ac_header_preproc=yes
15736     ;;
15737   no:yes:* )
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750     ( cat <<\_ASBOX
15751 ## ------------------------------------ ##
15752 ## Report this to http://llvm.org/bugs/ ##
15753 ## ------------------------------------ ##
15754 _ASBOX
15755      ) | sed "s/^/$as_me: WARNING:     /" >&2
15756     ;;
15757 esac
15758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   eval "$as_ac_Header=\$ac_header_preproc"
15764 fi
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766                { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15768
15769 fi
15770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15771   cat >>confdefs.h <<_ACEOF
15772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773 _ACEOF
15774
15775 fi
15776
15777 done
15778
15779
15780 for ac_header in fenv.h
15781 do
15782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 fi
15789 ac_res=`eval echo '${'$as_ac_Header'}'`
15790                { echo "$as_me:$LINENO: result: $ac_res" >&5
15791 echo "${ECHO_T}$ac_res" >&6; }
15792 else
15793   # Is the header compilable?
15794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802 $ac_includes_default
15803 #include <$ac_header>
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (ac_try="$ac_compile"
15807 case "(($ac_try" in
15808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809   *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812   (eval "$ac_compile") 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15820   { (case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_try") 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; } &&
15829          { ac_try='test -s conftest.$ac_objext'
15830   { (case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_try") 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; }; then
15839   ac_header_compiler=yes
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844         ac_header_compiler=no
15845 fi
15846
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15849 echo "${ECHO_T}$ac_header_compiler" >&6; }
15850
15851 # Is the header present?
15852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15854 cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860 #include <$ac_header>
15861 _ACEOF
15862 if { (ac_try="$ac_cpp conftest.$ac_ext"
15863 case "(($ac_try" in
15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865   *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } >/dev/null; then
15875   if test -s conftest.err; then
15876     ac_cpp_err=$ac_c_preproc_warn_flag
15877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15878   else
15879     ac_cpp_err=
15880   fi
15881 else
15882   ac_cpp_err=yes
15883 fi
15884 if test -z "$ac_cpp_err"; then
15885   ac_header_preproc=yes
15886 else
15887   echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15889
15890   ac_header_preproc=no
15891 fi
15892
15893 rm -f conftest.err conftest.$ac_ext
15894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15895 echo "${ECHO_T}$ac_header_preproc" >&6; }
15896
15897 # So?  What about this header?
15898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15899   yes:no: )
15900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15904     ac_header_preproc=yes
15905     ;;
15906   no:yes:* )
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15919     ( cat <<\_ASBOX
15920 ## ------------------------------------ ##
15921 ## Report this to http://llvm.org/bugs/ ##
15922 ## ------------------------------------ ##
15923 _ASBOX
15924      ) | sed "s/^/$as_me: WARNING:     /" >&2
15925     ;;
15926 esac
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   eval "$as_ac_Header=\$ac_header_preproc"
15933 fi
15934 ac_res=`eval echo '${'$as_ac_Header'}'`
15935                { echo "$as_me:$LINENO: result: $ac_res" >&5
15936 echo "${ECHO_T}$ac_res" >&6; }
15937
15938 fi
15939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15940   cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15942 _ACEOF
15943
15944 fi
15945
15946 done
15947
15948 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15949 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15950 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953   cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h.  */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h.  */
15959 #include <fenv.h>
15960
15961 int
15962 main ()
15963 {
15964 #ifndef FE_ALL_EXCEPT
15965   char *p = (char *) FE_ALL_EXCEPT;
15966   return !p;
15967 #endif
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (ac_try="$ac_compile"
15975 case "(($ac_try" in
15976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977   *) ac_try_echo=$ac_try;;
15978 esac
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980   (eval "$ac_compile") 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15988   { (case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_try") 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; } &&
15997          { ac_try='test -s conftest.$ac_objext'
15998   { (case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_try") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012         ac_cv_have_decl_FE_ALL_EXCEPT=no
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 fi
16017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16018 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16019 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_DECL_FE_ALL_EXCEPT 1
16023 _ACEOF
16024
16025
16026 else
16027   cat >>confdefs.h <<_ACEOF
16028 #define HAVE_DECL_FE_ALL_EXCEPT 0
16029 _ACEOF
16030
16031
16032 fi
16033 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16034 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16035 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044 #include <fenv.h>
16045
16046 int
16047 main ()
16048 {
16049 #ifndef FE_INEXACT
16050   char *p = (char *) FE_INEXACT;
16051   return !p;
16052 #endif
16053
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_compile") 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } &&
16072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073   { (case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_try") 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; } &&
16082          { ac_try='test -s conftest.$ac_objext'
16083   { (case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_try") 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_cv_have_decl_FE_INEXACT=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097         ac_cv_have_decl_FE_INEXACT=no
16098 fi
16099
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 fi
16102 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16103 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16104 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16105
16106 cat >>confdefs.h <<_ACEOF
16107 #define HAVE_DECL_FE_INEXACT 1
16108 _ACEOF
16109
16110
16111 else
16112   cat >>confdefs.h <<_ACEOF
16113 #define HAVE_DECL_FE_INEXACT 0
16114 _ACEOF
16115
16116
16117 fi
16118
16119
16120 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16121
16122 for ac_header in pthread.h
16123 do
16124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129   echo $ECHO_N "(cached) $ECHO_C" >&6
16130 fi
16131 ac_res=`eval echo '${'$as_ac_Header'}'`
16132                { echo "$as_me:$LINENO: result: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134 else
16135   # Is the header compilable?
16136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144 $ac_includes_default
16145 #include <$ac_header>
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (ac_try="$ac_compile"
16149 case "(($ac_try" in
16150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151   *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154   (eval "$ac_compile") 2>conftest.er1
16155   ac_status=$?
16156   grep -v '^ *+' conftest.er1 >conftest.err
16157   rm -f conftest.er1
16158   cat conftest.err >&5
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); } &&
16161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162   { (case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_try") 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; } &&
16171          { ac_try='test -s conftest.$ac_objext'
16172   { (case "(($ac_try" in
16173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174   *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177   (eval "$ac_try") 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   ac_header_compiler=yes
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186         ac_header_compiler=no
16187 fi
16188
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16191 echo "${ECHO_T}$ac_header_compiler" >&6; }
16192
16193 # Is the header present?
16194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202 #include <$ac_header>
16203 _ACEOF
16204 if { (ac_try="$ac_cpp conftest.$ac_ext"
16205 case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16211   ac_status=$?
16212   grep -v '^ *+' conftest.er1 >conftest.err
16213   rm -f conftest.er1
16214   cat conftest.err >&5
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } >/dev/null; then
16217   if test -s conftest.err; then
16218     ac_cpp_err=$ac_c_preproc_warn_flag
16219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16220   else
16221     ac_cpp_err=
16222   fi
16223 else
16224   ac_cpp_err=yes
16225 fi
16226 if test -z "$ac_cpp_err"; then
16227   ac_header_preproc=yes
16228 else
16229   echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232   ac_header_preproc=no
16233 fi
16234
16235 rm -f conftest.err conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237 echo "${ECHO_T}$ac_header_preproc" >&6; }
16238
16239 # So?  What about this header?
16240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16241   yes:no: )
16242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246     ac_header_preproc=yes
16247     ;;
16248   no:yes:* )
16249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16261     ( cat <<\_ASBOX
16262 ## ------------------------------------ ##
16263 ## Report this to http://llvm.org/bugs/ ##
16264 ## ------------------------------------ ##
16265 _ASBOX
16266      ) | sed "s/^/$as_me: WARNING:     /" >&2
16267     ;;
16268 esac
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272   echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274   eval "$as_ac_Header=\$ac_header_preproc"
16275 fi
16276 ac_res=`eval echo '${'$as_ac_Header'}'`
16277                { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16279
16280 fi
16281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16282   cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16284 _ACEOF
16285  HAVE_PTHREAD=1
16286
16287 else
16288   HAVE_PTHREAD=0
16289
16290 fi
16291
16292 done
16293
16294 else
16295   HAVE_PTHREAD=0
16296
16297 fi
16298
16299 if test "$llvm_cv_enable_libffi" = "yes" ; then
16300
16301
16302 for ac_header in ffi.h ffi/ffi.h
16303 do
16304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 fi
16311 ac_res=`eval echo '${'$as_ac_Header'}'`
16312                { echo "$as_me:$LINENO: result: $ac_res" >&5
16313 echo "${ECHO_T}$ac_res" >&6; }
16314 else
16315   # Is the header compilable?
16316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 $ac_includes_default
16325 #include <$ac_header>
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (ac_try="$ac_compile"
16329 case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_compile") 2>conftest.er1
16335   ac_status=$?
16336   grep -v '^ *+' conftest.er1 >conftest.err
16337   rm -f conftest.er1
16338   cat conftest.err >&5
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16342   { (case "(($ac_try" in
16343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344   *) ac_try_echo=$ac_try;;
16345 esac
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347   (eval "$ac_try") 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; } &&
16351          { ac_try='test -s conftest.$ac_objext'
16352   { (case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_try") 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; }; then
16361   ac_header_compiler=yes
16362 else
16363   echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366         ac_header_compiler=no
16367 fi
16368
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16371 echo "${ECHO_T}$ac_header_compiler" >&6; }
16372
16373 # Is the header present?
16374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382 #include <$ac_header>
16383 _ACEOF
16384 if { (ac_try="$ac_cpp conftest.$ac_ext"
16385 case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16391   ac_status=$?
16392   grep -v '^ *+' conftest.er1 >conftest.err
16393   rm -f conftest.er1
16394   cat conftest.err >&5
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } >/dev/null; then
16397   if test -s conftest.err; then
16398     ac_cpp_err=$ac_c_preproc_warn_flag
16399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16400   else
16401     ac_cpp_err=
16402   fi
16403 else
16404   ac_cpp_err=yes
16405 fi
16406 if test -z "$ac_cpp_err"; then
16407   ac_header_preproc=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16411
16412   ac_header_preproc=no
16413 fi
16414
16415 rm -f conftest.err conftest.$ac_ext
16416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417 echo "${ECHO_T}$ac_header_preproc" >&6; }
16418
16419 # So?  What about this header?
16420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421   yes:no: )
16422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16426     ac_header_preproc=yes
16427     ;;
16428   no:yes:* )
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441     ( cat <<\_ASBOX
16442 ## ------------------------------------ ##
16443 ## Report this to http://llvm.org/bugs/ ##
16444 ## ------------------------------------ ##
16445 _ASBOX
16446      ) | sed "s/^/$as_me: WARNING:     /" >&2
16447     ;;
16448 esac
16449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16452   echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454   eval "$as_ac_Header=\$ac_header_preproc"
16455 fi
16456 ac_res=`eval echo '${'$as_ac_Header'}'`
16457                { echo "$as_me:$LINENO: result: $ac_res" >&5
16458 echo "${ECHO_T}$ac_res" >&6; }
16459
16460 fi
16461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16462   cat >>confdefs.h <<_ACEOF
16463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16464 _ACEOF
16465
16466 fi
16467
16468 done
16469
16470 fi
16471
16472
16473 for ac_header in CrashReporterClient.h
16474 do
16475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 fi
16482 ac_res=`eval echo '${'$as_ac_Header'}'`
16483                { echo "$as_me:$LINENO: result: $ac_res" >&5
16484 echo "${ECHO_T}$ac_res" >&6; }
16485 else
16486   # Is the header compilable?
16487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495 $ac_includes_default
16496 #include <$ac_header>
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_compile") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_header_compiler=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537         ac_header_compiler=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16542 echo "${ECHO_T}$ac_header_compiler" >&6; }
16543
16544 # Is the header present?
16545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 #include <$ac_header>
16554 _ACEOF
16555 if { (ac_try="$ac_cpp conftest.$ac_ext"
16556 case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } >/dev/null; then
16568   if test -s conftest.err; then
16569     ac_cpp_err=$ac_c_preproc_warn_flag
16570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16571   else
16572     ac_cpp_err=
16573   fi
16574 else
16575   ac_cpp_err=yes
16576 fi
16577 if test -z "$ac_cpp_err"; then
16578   ac_header_preproc=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583   ac_header_preproc=no
16584 fi
16585
16586 rm -f conftest.err conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588 echo "${ECHO_T}$ac_header_preproc" >&6; }
16589
16590 # So?  What about this header?
16591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592   yes:no: )
16593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16597     ac_header_preproc=yes
16598     ;;
16599   no:yes:* )
16600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16612     ( cat <<\_ASBOX
16613 ## ------------------------------------ ##
16614 ## Report this to http://llvm.org/bugs/ ##
16615 ## ------------------------------------ ##
16616 _ASBOX
16617      ) | sed "s/^/$as_me: WARNING:     /" >&2
16618     ;;
16619 esac
16620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   eval "$as_ac_Header=\$ac_header_preproc"
16626 fi
16627 ac_res=`eval echo '${'$as_ac_Header'}'`
16628                { echo "$as_me:$LINENO: result: $ac_res" >&5
16629 echo "${ECHO_T}$ac_res" >&6; }
16630
16631 fi
16632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633   cat >>confdefs.h <<_ACEOF
16634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16635 _ACEOF
16636
16637 fi
16638
16639 done
16640
16641
16642 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16643 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16644 cat >conftest.$ac_ext <<_ACEOF
16645
16646   /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651
16652     extern const char *__crashreporter_info__;
16653     int main() {
16654       __crashreporter_info__ = "test";
16655       return 0;
16656     }
16657
16658
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (ac_try="$ac_link"
16662 case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_link") 2>conftest.er1
16668   ac_status=$?
16669   grep -v '^ *+' conftest.er1 >conftest.err
16670   rm -f conftest.er1
16671   cat conftest.err >&5
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } &&
16674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; } &&
16684          { ac_try='test -s conftest$ac_exeext'
16685   { (case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690   (eval "$ac_try") 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; }; then
16694
16695   { echo "$as_me:$LINENO: result: yes" >&5
16696 echo "${ECHO_T}yes" >&6; }
16697
16698 cat >>confdefs.h <<\_ACEOF
16699 #define HAVE_CRASHREPORTER_INFO 1
16700 _ACEOF
16701
16702
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707
16708   { echo "$as_me:$LINENO: result: no" >&5
16709 echo "${ECHO_T}no" >&6; }
16710
16711 cat >>confdefs.h <<\_ACEOF
16712 #define HAVE_CRASHREPORTER_INFO 0
16713 _ACEOF
16714
16715
16716 fi
16717
16718 rm -f core conftest.err conftest.$ac_objext \
16719       conftest$ac_exeext conftest.$ac_ext
16720
16721
16722
16723   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16724 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16725 if test "${ac_cv_huge_val_sanity+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728
16729     ac_ext=cpp
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
16735     ac_save_CXXFLAGS=$CXXFLAGS
16736     CXXFLAGS="$CXXFLAGS -pedantic"
16737     if test "$cross_compiling" = yes; then
16738   ac_cv_huge_val_sanity=yes
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 #include <math.h>
16747 int
16748 main ()
16749 {
16750 double x = HUGE_VAL; return x != x;
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_link") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16766   { (case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_try") 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   ac_cv_huge_val_sanity=yes
16776 else
16777   echo "$as_me: program exited with status $ac_status" >&5
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 ( exit $ac_status )
16782 ac_cv_huge_val_sanity=no
16783 fi
16784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16785 fi
16786
16787
16788     CXXFLAGS=$ac_save_CXXFLAGS
16789     ac_ext=c
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16794
16795
16796 fi
16797 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16798 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16799   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16800
16801
16802 { echo "$as_me:$LINENO: checking for pid_t" >&5
16803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16804 if test "${ac_cv_type_pid_t+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 $ac_includes_default
16814 typedef pid_t ac__type_new_;
16815 int
16816 main ()
16817 {
16818 if ((ac__type_new_ *) 0)
16819   return 0;
16820 if (sizeof (ac__type_new_))
16821   return 0;
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest.$ac_objext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_type_pid_t=yes
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_cv_type_pid_t=no
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 fi
16870 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16871 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16872 if test $ac_cv_type_pid_t = yes; then
16873   :
16874 else
16875
16876 cat >>confdefs.h <<_ACEOF
16877 #define pid_t int
16878 _ACEOF
16879
16880 fi
16881
16882 { echo "$as_me:$LINENO: checking for size_t" >&5
16883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16884 if test "${ac_cv_type_size_t+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893 $ac_includes_default
16894 typedef size_t ac__type_new_;
16895 int
16896 main ()
16897 {
16898 if ((ac__type_new_ *) 0)
16899   return 0;
16900 if (sizeof (ac__type_new_))
16901   return 0;
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913   (eval "$ac_compile") 2>conftest.er1
16914   ac_status=$?
16915   grep -v '^ *+' conftest.er1 >conftest.err
16916   rm -f conftest.er1
16917   cat conftest.err >&5
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); } &&
16920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921   { (case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_try") 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; } &&
16930          { ac_try='test -s conftest.$ac_objext'
16931   { (case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_try") 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; }; then
16940   ac_cv_type_size_t=yes
16941 else
16942   echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945         ac_cv_type_size_t=no
16946 fi
16947
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949 fi
16950 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16951 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16952 if test $ac_cv_type_size_t = yes; then
16953   :
16954 else
16955
16956 cat >>confdefs.h <<_ACEOF
16957 #define size_t unsigned int
16958 _ACEOF
16959
16960 fi
16961
16962
16963 cat >>confdefs.h <<_ACEOF
16964 #define RETSIGTYPE void
16965 _ACEOF
16966
16967 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16968 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16969 if test "${ac_cv_struct_tm+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972   cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h.  */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h.  */
16978 #include <sys/types.h>
16979 #include <time.h>
16980
16981 int
16982 main ()
16983 {
16984 struct tm *tp; tp->tm_sec;
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext
16990 if { (ac_try="$ac_compile"
16991 case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996   (eval "$ac_compile") 2>conftest.er1
16997   ac_status=$?
16998   grep -v '^ *+' conftest.er1 >conftest.err
16999   rm -f conftest.er1
17000   cat conftest.err >&5
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } &&
17003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17004   { (case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_try") 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; } &&
17013          { ac_try='test -s conftest.$ac_objext'
17014   { (case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_try") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; }; then
17023   ac_cv_struct_tm=time.h
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028         ac_cv_struct_tm=sys/time.h
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 fi
17033 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17034 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17035 if test $ac_cv_struct_tm = sys/time.h; then
17036
17037 cat >>confdefs.h <<\_ACEOF
17038 #define TM_IN_SYS_TIME 1
17039 _ACEOF
17040
17041 fi
17042
17043 { echo "$as_me:$LINENO: checking for int64_t" >&5
17044 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17045 if test "${ac_cv_type_int64_t+set}" = set; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054 $ac_includes_default
17055 typedef int64_t ac__type_new_;
17056 int
17057 main ()
17058 {
17059 if ((ac__type_new_ *) 0)
17060   return 0;
17061 if (sizeof (ac__type_new_))
17062   return 0;
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext
17068 if { (ac_try="$ac_compile"
17069 case "(($ac_try" in
17070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071   *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074   (eval "$ac_compile") 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082   { (case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_try") 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; } &&
17091          { ac_try='test -s conftest.$ac_objext'
17092   { (case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_try") 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; }; then
17101   ac_cv_type_int64_t=yes
17102 else
17103   echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17105
17106         ac_cv_type_int64_t=no
17107 fi
17108
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 fi
17111 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17112 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17113 if test $ac_cv_type_int64_t = yes; then
17114
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_INT64_T 1
17117 _ACEOF
17118
17119
17120 else
17121   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17122 echo "$as_me: error: Type int64_t required but not found" >&2;}
17123    { (exit 1); exit 1; }; }
17124 fi
17125
17126 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17127 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17128 if test "${ac_cv_type_uint64_t+set}" = set; then
17129   echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131   cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 $ac_includes_default
17138 typedef uint64_t ac__type_new_;
17139 int
17140 main ()
17141 {
17142 if ((ac__type_new_ *) 0)
17143   return 0;
17144 if (sizeof (ac__type_new_))
17145   return 0;
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_compile") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165   { (case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170   (eval "$ac_try") 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; } &&
17174          { ac_try='test -s conftest.$ac_objext'
17175   { (case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_try") 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_type_uint64_t=yes
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189         ac_cv_type_uint64_t=no
17190 fi
17191
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17195 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17196 if test $ac_cv_type_uint64_t = yes; then
17197
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_UINT64_T 1
17200 _ACEOF
17201
17202
17203 else
17204   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17205 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17206 if test "${ac_cv_type_u_int64_t+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 $ac_includes_default
17216 typedef u_int64_t ac__type_new_;
17217 int
17218 main ()
17219 {
17220 if ((ac__type_new_ *) 0)
17221   return 0;
17222 if (sizeof (ac__type_new_))
17223   return 0;
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228 rm -f conftest.$ac_objext
17229 if { (ac_try="$ac_compile"
17230 case "(($ac_try" in
17231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232   *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235   (eval "$ac_compile") 2>conftest.er1
17236   ac_status=$?
17237   grep -v '^ *+' conftest.er1 >conftest.err
17238   rm -f conftest.er1
17239   cat conftest.err >&5
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); } &&
17242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; } &&
17252          { ac_try='test -s conftest.$ac_objext'
17253   { (case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_try") 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; }; then
17262   ac_cv_type_u_int64_t=yes
17263 else
17264   echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267         ac_cv_type_u_int64_t=no
17268 fi
17269
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 fi
17272 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17273 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17274 if test $ac_cv_type_u_int64_t = yes; then
17275
17276 cat >>confdefs.h <<_ACEOF
17277 #define HAVE_U_INT64_T 1
17278 _ACEOF
17279
17280
17281 else
17282   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17283 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17284    { (exit 1); exit 1; }; }
17285 fi
17286
17287 fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17299 do
17300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17314 #define $ac_func innocuous_$ac_func
17315
17316 /* System header to define __stub macros and hopefully few prototypes,
17317     which can conflict with char $ac_func (); below.
17318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319     <limits.h> exists even on freestanding compilers.  */
17320
17321 #ifdef __STDC__
17322 # include <limits.h>
17323 #else
17324 # include <assert.h>
17325 #endif
17326
17327 #undef $ac_func
17328
17329 /* Override any GCC internal prototype to avoid an error.
17330    Use char because int might match the return type of a GCC
17331    builtin and then its argument prototype would still apply.  */
17332 #ifdef __cplusplus
17333 extern "C"
17334 #endif
17335 char $ac_func ();
17336 /* The GNU C library defines this for functions which it implements
17337     to always fail with ENOSYS.  Some functions are actually named
17338     something starting with __ and the normal name is an alias.  */
17339 #if defined __stub_$ac_func || defined __stub___$ac_func
17340 choke me
17341 #endif
17342
17343 int
17344 main ()
17345 {
17346 return $ac_func ();
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_link") 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366   { (case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_try") 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; } &&
17375          { ac_try='test -s conftest$ac_exeext'
17376   { (case "(($ac_try" in
17377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378   *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381   (eval "$ac_try") 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; }; then
17385   eval "$as_ac_var=yes"
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390         eval "$as_ac_var=no"
17391 fi
17392
17393 rm -f core conftest.err conftest.$ac_objext \
17394       conftest$ac_exeext conftest.$ac_ext
17395 fi
17396 ac_res=`eval echo '${'$as_ac_var'}'`
17397                { echo "$as_me:$LINENO: result: $ac_res" >&5
17398 echo "${ECHO_T}$ac_res" >&6; }
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400   cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 _ACEOF
17403
17404 fi
17405 done
17406
17407
17408
17409
17410
17411 for ac_func in powf fmodf strtof round
17412 do
17413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17427 #define $ac_func innocuous_$ac_func
17428
17429 /* System header to define __stub macros and hopefully few prototypes,
17430     which can conflict with char $ac_func (); below.
17431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432     <limits.h> exists even on freestanding compilers.  */
17433
17434 #ifdef __STDC__
17435 # include <limits.h>
17436 #else
17437 # include <assert.h>
17438 #endif
17439
17440 #undef $ac_func
17441
17442 /* Override any GCC internal prototype to avoid an error.
17443    Use char because int might match the return type of a GCC
17444    builtin and then its argument prototype would still apply.  */
17445 #ifdef __cplusplus
17446 extern "C"
17447 #endif
17448 char $ac_func ();
17449 /* The GNU C library defines this for functions which it implements
17450     to always fail with ENOSYS.  Some functions are actually named
17451     something starting with __ and the normal name is an alias.  */
17452 #if defined __stub_$ac_func || defined __stub___$ac_func
17453 choke me
17454 #endif
17455
17456 int
17457 main ()
17458 {
17459 return $ac_func ();
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 rm -f conftest.$ac_objext conftest$ac_exeext
17465 if { (ac_try="$ac_link"
17466 case "(($ac_try" in
17467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468   *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471   (eval "$ac_link") 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479   { (case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_try") 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; } &&
17488          { ac_try='test -s conftest$ac_exeext'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498   eval "$as_ac_var=yes"
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503         eval "$as_ac_var=no"
17504 fi
17505
17506 rm -f core conftest.err conftest.$ac_objext \
17507       conftest$ac_exeext conftest.$ac_ext
17508 fi
17509 ac_res=`eval echo '${'$as_ac_var'}'`
17510                { echo "$as_me:$LINENO: result: $ac_res" >&5
17511 echo "${ECHO_T}$ac_res" >&6; }
17512 if test `eval echo '${'$as_ac_var'}'` = yes; then
17513   cat >>confdefs.h <<_ACEOF
17514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 _ACEOF
17516
17517 fi
17518 done
17519
17520
17521
17522
17523
17524
17525 for ac_func in log log2 log10 exp exp2
17526 do
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17541 #define $ac_func innocuous_$ac_func
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char $ac_func (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef $ac_func
17555
17556 /* Override any GCC internal prototype to avoid an error.
17557    Use char because int might match the return type of a GCC
17558    builtin and then its argument prototype would still apply.  */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 char $ac_func ();
17563 /* The GNU C library defines this for functions which it implements
17564     to always fail with ENOSYS.  Some functions are actually named
17565     something starting with __ and the normal name is an alias.  */
17566 #if defined __stub_$ac_func || defined __stub___$ac_func
17567 choke me
17568 #endif
17569
17570 int
17571 main ()
17572 {
17573 return $ac_func ();
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (ac_try="$ac_link"
17580 case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_link") 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest$ac_exeext'
17603   { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_try") 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   eval "$as_ac_var=yes"
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         eval "$as_ac_var=no"
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext \
17621       conftest$ac_exeext conftest.$ac_ext
17622 fi
17623 ac_res=`eval echo '${'$as_ac_var'}'`
17624                { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627   cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 _ACEOF
17630
17631 fi
17632 done
17633
17634
17635
17636
17637
17638
17639 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17640 do
17641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17655 #define $ac_func innocuous_$ac_func
17656
17657 /* System header to define __stub macros and hopefully few prototypes,
17658     which can conflict with char $ac_func (); below.
17659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660     <limits.h> exists even on freestanding compilers.  */
17661
17662 #ifdef __STDC__
17663 # include <limits.h>
17664 #else
17665 # include <assert.h>
17666 #endif
17667
17668 #undef $ac_func
17669
17670 /* Override any GCC internal prototype to avoid an error.
17671    Use char because int might match the return type of a GCC
17672    builtin and then its argument prototype would still apply.  */
17673 #ifdef __cplusplus
17674 extern "C"
17675 #endif
17676 char $ac_func ();
17677 /* The GNU C library defines this for functions which it implements
17678     to always fail with ENOSYS.  Some functions are actually named
17679     something starting with __ and the normal name is an alias.  */
17680 #if defined __stub_$ac_func || defined __stub___$ac_func
17681 choke me
17682 #endif
17683
17684 int
17685 main ()
17686 {
17687 return $ac_func ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (ac_try="$ac_link"
17694 case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_link") 2>conftest.er1
17700   ac_status=$?
17701   grep -v '^ *+' conftest.er1 >conftest.err
17702   rm -f conftest.er1
17703   cat conftest.err >&5
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } &&
17706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707   { (case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712   (eval "$ac_try") 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; } &&
17716          { ac_try='test -s conftest$ac_exeext'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; }; then
17726   eval "$as_ac_var=yes"
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731         eval "$as_ac_var=no"
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext \
17735       conftest$ac_exeext conftest.$ac_ext
17736 fi
17737 ac_res=`eval echo '${'$as_ac_var'}'`
17738                { echo "$as_me:$LINENO: result: $ac_res" >&5
17739 echo "${ECHO_T}$ac_res" >&6; }
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741   cat >>confdefs.h <<_ACEOF
17742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17743 _ACEOF
17744
17745 fi
17746 done
17747
17748
17749
17750
17751 for ac_func in isatty mkdtemp mkstemp
17752 do
17753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17757   echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759   cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17767 #define $ac_func innocuous_$ac_func
17768
17769 /* System header to define __stub macros and hopefully few prototypes,
17770     which can conflict with char $ac_func (); below.
17771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17772     <limits.h> exists even on freestanding compilers.  */
17773
17774 #ifdef __STDC__
17775 # include <limits.h>
17776 #else
17777 # include <assert.h>
17778 #endif
17779
17780 #undef $ac_func
17781
17782 /* Override any GCC internal prototype to avoid an error.
17783    Use char because int might match the return type of a GCC
17784    builtin and then its argument prototype would still apply.  */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 char $ac_func ();
17789 /* The GNU C library defines this for functions which it implements
17790     to always fail with ENOSYS.  Some functions are actually named
17791     something starting with __ and the normal name is an alias.  */
17792 #if defined __stub_$ac_func || defined __stub___$ac_func
17793 choke me
17794 #endif
17795
17796 int
17797 main ()
17798 {
17799 return $ac_func ();
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (ac_try="$ac_link"
17806 case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_link") 2>conftest.er1
17812   ac_status=$?
17813   grep -v '^ *+' conftest.er1 >conftest.err
17814   rm -f conftest.er1
17815   cat conftest.err >&5
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); } &&
17818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17819   { (case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_try") 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; } &&
17828          { ac_try='test -s conftest$ac_exeext'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; }; then
17838   eval "$as_ac_var=yes"
17839 else
17840   echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843         eval "$as_ac_var=no"
17844 fi
17845
17846 rm -f core conftest.err conftest.$ac_objext \
17847       conftest$ac_exeext conftest.$ac_ext
17848 fi
17849 ac_res=`eval echo '${'$as_ac_var'}'`
17850                { echo "$as_me:$LINENO: result: $ac_res" >&5
17851 echo "${ECHO_T}$ac_res" >&6; }
17852 if test `eval echo '${'$as_ac_var'}'` = yes; then
17853   cat >>confdefs.h <<_ACEOF
17854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17855 _ACEOF
17856
17857 fi
17858 done
17859
17860
17861
17862
17863
17864
17865
17866
17867 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17868 do
17869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17883 #define $ac_func innocuous_$ac_func
17884
17885 /* System header to define __stub macros and hopefully few prototypes,
17886     which can conflict with char $ac_func (); below.
17887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17888     <limits.h> exists even on freestanding compilers.  */
17889
17890 #ifdef __STDC__
17891 # include <limits.h>
17892 #else
17893 # include <assert.h>
17894 #endif
17895
17896 #undef $ac_func
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899    Use char because int might match the return type of a GCC
17900    builtin and then its argument prototype would still apply.  */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char $ac_func ();
17905 /* The GNU C library defines this for functions which it implements
17906     to always fail with ENOSYS.  Some functions are actually named
17907     something starting with __ and the normal name is an alias.  */
17908 #if defined __stub_$ac_func || defined __stub___$ac_func
17909 choke me
17910 #endif
17911
17912 int
17913 main ()
17914 {
17915 return $ac_func ();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_link") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest$ac_exeext'
17945   { (case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_try") 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   eval "$as_ac_var=yes"
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         eval "$as_ac_var=no"
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext \
17963       conftest$ac_exeext conftest.$ac_ext
17964 fi
17965 ac_res=`eval echo '${'$as_ac_var'}'`
17966                { echo "$as_me:$LINENO: result: $ac_res" >&5
17967 echo "${ECHO_T}$ac_res" >&6; }
17968 if test `eval echo '${'$as_ac_var'}'` = yes; then
17969   cat >>confdefs.h <<_ACEOF
17970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17971 _ACEOF
17972
17973 fi
17974 done
17975
17976
17977
17978
17979
17980 for ac_func in strerror strerror_r setenv arc4random
17981 do
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17996 #define $ac_func innocuous_$ac_func
17997
17998 /* System header to define __stub macros and hopefully few prototypes,
17999     which can conflict with char $ac_func (); below.
18000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001     <limits.h> exists even on freestanding compilers.  */
18002
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18008
18009 #undef $ac_func
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012    Use char because int might match the return type of a GCC
18013    builtin and then its argument prototype would still apply.  */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char $ac_func ();
18018 /* The GNU C library defines this for functions which it implements
18019     to always fail with ENOSYS.  Some functions are actually named
18020     something starting with __ and the normal name is an alias.  */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18022 choke me
18023 #endif
18024
18025 int
18026 main ()
18027 {
18028 return $ac_func ();
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_link") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048   { (case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_try") 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; } &&
18057          { ac_try='test -s conftest$ac_exeext'
18058   { (case "(($ac_try" in
18059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060   *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063   (eval "$ac_try") 2>&5
18064   ac_status=$?
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); }; }; then
18067   eval "$as_ac_var=yes"
18068 else
18069   echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072         eval "$as_ac_var=no"
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext \
18076       conftest$ac_exeext conftest.$ac_ext
18077 fi
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079                { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082   cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087 done
18088
18089
18090
18091
18092
18093 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18094 do
18095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099   echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101   cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18109 #define $ac_func innocuous_$ac_func
18110
18111 /* System header to define __stub macros and hopefully few prototypes,
18112     which can conflict with char $ac_func (); below.
18113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114     <limits.h> exists even on freestanding compilers.  */
18115
18116 #ifdef __STDC__
18117 # include <limits.h>
18118 #else
18119 # include <assert.h>
18120 #endif
18121
18122 #undef $ac_func
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125    Use char because int might match the return type of a GCC
18126    builtin and then its argument prototype would still apply.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char $ac_func ();
18131 /* The GNU C library defines this for functions which it implements
18132     to always fail with ENOSYS.  Some functions are actually named
18133     something starting with __ and the normal name is an alias.  */
18134 #if defined __stub_$ac_func || defined __stub___$ac_func
18135 choke me
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 return $ac_func ();
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_link") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; } &&
18170          { ac_try='test -s conftest$ac_exeext'
18171   { (case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_try") 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180   eval "$as_ac_var=yes"
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185         eval "$as_ac_var=no"
18186 fi
18187
18188 rm -f core conftest.err conftest.$ac_objext \
18189       conftest$ac_exeext conftest.$ac_ext
18190 fi
18191 ac_res=`eval echo '${'$as_ac_var'}'`
18192                { echo "$as_me:$LINENO: result: $ac_res" >&5
18193 echo "${ECHO_T}$ac_res" >&6; }
18194 if test `eval echo '${'$as_ac_var'}'` = yes; then
18195   cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18197 _ACEOF
18198
18199 fi
18200 done
18201
18202
18203
18204
18205
18206
18207 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18208 do
18209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215   cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18223 #define $ac_func innocuous_$ac_func
18224
18225 /* System header to define __stub macros and hopefully few prototypes,
18226     which can conflict with char $ac_func (); below.
18227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228     <limits.h> exists even on freestanding compilers.  */
18229
18230 #ifdef __STDC__
18231 # include <limits.h>
18232 #else
18233 # include <assert.h>
18234 #endif
18235
18236 #undef $ac_func
18237
18238 /* Override any GCC internal prototype to avoid an error.
18239    Use char because int might match the return type of a GCC
18240    builtin and then its argument prototype would still apply.  */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char $ac_func ();
18245 /* The GNU C library defines this for functions which it implements
18246     to always fail with ENOSYS.  Some functions are actually named
18247     something starting with __ and the normal name is an alias.  */
18248 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 choke me
18250 #endif
18251
18252 int
18253 main ()
18254 {
18255 return $ac_func ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (ac_try="$ac_link"
18262 case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_link") 2>conftest.er1
18268   ac_status=$?
18269   grep -v '^ *+' conftest.er1 >conftest.err
18270   rm -f conftest.er1
18271   cat conftest.err >&5
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); } &&
18274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; } &&
18284          { ac_try='test -s conftest$ac_exeext'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; }; then
18294   eval "$as_ac_var=yes"
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         eval "$as_ac_var=no"
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext \
18303       conftest$ac_exeext conftest.$ac_ext
18304 fi
18305 ac_res=`eval echo '${'$as_ac_var'}'`
18306                { echo "$as_me:$LINENO: result: $ac_res" >&5
18307 echo "${ECHO_T}$ac_res" >&6; }
18308 if test `eval echo '${'$as_ac_var'}'` = yes; then
18309   cat >>confdefs.h <<_ACEOF
18310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 _ACEOF
18312
18313 fi
18314 done
18315
18316 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18317 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18318 if test "${llvm_cv_c_printf_a+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   ac_ext=c
18322 ac_cpp='$CPP $CPPFLAGS'
18323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326
18327  if test "$cross_compiling" = yes; then
18328   llvmac_cv_c_printf_a=no
18329 else
18330   cat >conftest.$ac_ext <<_ACEOF
18331
18332   /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337
18338 #include <stdio.h>
18339 #include <stdlib.h>
18340
18341 int
18342 main ()
18343 {
18344
18345 volatile double A, B;
18346 char Buffer[100];
18347 A = 1;
18348 A /= 10.0;
18349 sprintf(Buffer, "%a", A);
18350 B = atof(Buffer);
18351 if (A != B)
18352   return (1);
18353 if (A != 0x1.999999999999ap-4)
18354   return (1);
18355 return (0);
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_link") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   llvm_cv_c_printf_a=yes
18381 else
18382   echo "$as_me: program exited with status $ac_status" >&5
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ( exit $ac_status )
18387 llvmac_cv_c_printf_a=no
18388 fi
18389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18390 fi
18391
18392
18393  ac_ext=c
18394 ac_cpp='$CPP $CPPFLAGS'
18395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398
18399 fi
18400 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18401 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18402  if test "$llvm_cv_c_printf_a" = "yes"; then
18403
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE_PRINTF_A 1
18406 _ACEOF
18407
18408  fi
18409
18410
18411
18412   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18413 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18414 if test "${ac_cv_func_rand48+set}" = set; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417
18418     ac_ext=cpp
18419 ac_cpp='$CXXCPP $CPPFLAGS'
18420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18423
18424     cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430 #include <stdlib.h>
18431 int
18432 main ()
18433 {
18434 srand48(0);lrand48();drand48();
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_compile") 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18454   { (case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_try") 2>&5
18460   ac_status=$?
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); }; } &&
18463          { ac_try='test -s conftest.$ac_objext'
18464   { (case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_try") 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   ac_cv_func_rand48=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         ac_cv_func_rand48=no
18479 fi
18480
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482     ac_ext=c
18483 ac_cpp='$CPP $CPPFLAGS'
18484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487
18488
18489 fi
18490 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18491 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18492
18493 if test "$ac_cv_func_rand48" = "yes" ; then
18494
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_RAND48 1
18497 _ACEOF
18498
18499 fi
18500
18501
18502 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18503 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18504 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 $ac_includes_default
18514 int
18515 main ()
18516 {
18517 #ifndef strerror_s
18518   char *p = (char *) strerror_s;
18519   return !p;
18520 #endif
18521
18522   ;
18523   return 0;
18524 }
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533   (eval "$ac_compile") 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } &&
18540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18541   { (case "(($ac_try" in
18542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543   *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546   (eval "$ac_try") 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; } &&
18550          { ac_try='test -s conftest.$ac_objext'
18551   { (case "(($ac_try" in
18552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553   *) ac_try_echo=$ac_try;;
18554 esac
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556   (eval "$ac_try") 2>&5
18557   ac_status=$?
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); }; }; then
18560   ac_cv_have_decl_strerror_s=yes
18561 else
18562   echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565         ac_cv_have_decl_strerror_s=no
18566 fi
18567
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 fi
18570 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18571 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18572 if test $ac_cv_have_decl_strerror_s = yes; then
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_DECL_STRERROR_S 1
18576 _ACEOF
18577
18578
18579 else
18580   cat >>confdefs.h <<_ACEOF
18581 #define HAVE_DECL_STRERROR_S 0
18582 _ACEOF
18583
18584
18585 fi
18586
18587
18588
18589 if test "$llvm_cv_os_type" = "MingW" ; then
18590   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18591 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18592 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lgcc  $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603
18604 /* Override any GCC internal prototype to avoid an error.
18605    Use char because int might match the return type of a GCC
18606    builtin and then its argument prototype would still apply.  */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 char _alloca ();
18611 int
18612 main ()
18613 {
18614 return _alloca ();
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626   (eval "$ac_link") 2>conftest.er1
18627   ac_status=$?
18628   grep -v '^ *+' conftest.er1 >conftest.err
18629   rm -f conftest.er1
18630   cat conftest.err >&5
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); } &&
18633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18634   { (case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_try") 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; } &&
18643          { ac_try='test -s conftest$ac_exeext'
18644   { (case "(($ac_try" in
18645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646   *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649   (eval "$ac_try") 2>&5
18650   ac_status=$?
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); }; }; then
18653   ac_cv_lib_gcc__alloca=yes
18654 else
18655   echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18657
18658         ac_cv_lib_gcc__alloca=no
18659 fi
18660
18661 rm -f core conftest.err conftest.$ac_objext \
18662       conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18664 fi
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18666 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18667 if test $ac_cv_lib_gcc__alloca = yes; then
18668
18669 cat >>confdefs.h <<\_ACEOF
18670 #define HAVE__ALLOCA 1
18671 _ACEOF
18672
18673 fi
18674
18675   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18676 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18677 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   ac_check_lib_save_LIBS=$LIBS
18681 LIBS="-lgcc  $LIBS"
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 /* Override any GCC internal prototype to avoid an error.
18690    Use char because int might match the return type of a GCC
18691    builtin and then its argument prototype would still apply.  */
18692 #ifdef __cplusplus
18693 extern "C"
18694 #endif
18695 char __alloca ();
18696 int
18697 main ()
18698 {
18699 return __alloca ();
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext conftest$ac_exeext
18705 if { (ac_try="$ac_link"
18706 case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_link") 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } &&
18718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719   { (case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_try") 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; } &&
18728          { ac_try='test -s conftest$ac_exeext'
18729   { (case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734   (eval "$ac_try") 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   ac_cv_lib_gcc___alloca=yes
18739 else
18740   echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743         ac_cv_lib_gcc___alloca=no
18744 fi
18745
18746 rm -f core conftest.err conftest.$ac_objext \
18747       conftest$ac_exeext conftest.$ac_ext
18748 LIBS=$ac_check_lib_save_LIBS
18749 fi
18750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18751 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18752 if test $ac_cv_lib_gcc___alloca = yes; then
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE___ALLOCA 1
18756 _ACEOF
18757
18758 fi
18759
18760   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18761 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18762 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   ac_check_lib_save_LIBS=$LIBS
18766 LIBS="-lgcc  $LIBS"
18767 cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773
18774 /* Override any GCC internal prototype to avoid an error.
18775    Use char because int might match the return type of a GCC
18776    builtin and then its argument prototype would still apply.  */
18777 #ifdef __cplusplus
18778 extern "C"
18779 #endif
18780 char __chkstk ();
18781 int
18782 main ()
18783 {
18784 return __chkstk ();
18785   ;
18786   return 0;
18787 }
18788 _ACEOF
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793   *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796   (eval "$ac_link") 2>conftest.er1
18797   ac_status=$?
18798   grep -v '^ *+' conftest.er1 >conftest.err
18799   rm -f conftest.er1
18800   cat conftest.err >&5
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); } &&
18803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18804   { (case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_try") 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; } &&
18813          { ac_try='test -s conftest$ac_exeext'
18814   { (case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_try") 2>&5
18820   ac_status=$?
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); }; }; then
18823   ac_cv_lib_gcc___chkstk=yes
18824 else
18825   echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18827
18828         ac_cv_lib_gcc___chkstk=no
18829 fi
18830
18831 rm -f core conftest.err conftest.$ac_objext \
18832       conftest$ac_exeext conftest.$ac_ext
18833 LIBS=$ac_check_lib_save_LIBS
18834 fi
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18836 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18837 if test $ac_cv_lib_gcc___chkstk = yes; then
18838
18839 cat >>confdefs.h <<\_ACEOF
18840 #define HAVE___CHKSTK 1
18841 _ACEOF
18842
18843 fi
18844
18845   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18846 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18847 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18848   echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850   ac_check_lib_save_LIBS=$LIBS
18851 LIBS="-lgcc  $LIBS"
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858
18859 /* Override any GCC internal prototype to avoid an error.
18860    Use char because int might match the return type of a GCC
18861    builtin and then its argument prototype would still apply.  */
18862 #ifdef __cplusplus
18863 extern "C"
18864 #endif
18865 char ___chkstk ();
18866 int
18867 main ()
18868 {
18869 return ___chkstk ();
18870   ;
18871   return 0;
18872 }
18873 _ACEOF
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (ac_try="$ac_link"
18876 case "(($ac_try" in
18877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878   *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881   (eval "$ac_link") 2>conftest.er1
18882   ac_status=$?
18883   grep -v '^ *+' conftest.er1 >conftest.err
18884   rm -f conftest.er1
18885   cat conftest.err >&5
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; } &&
18898          { ac_try='test -s conftest$ac_exeext'
18899   { (case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_try") 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; }; then
18908   ac_cv_lib_gcc____chkstk=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913         ac_cv_lib_gcc____chkstk=no
18914 fi
18915
18916 rm -f core conftest.err conftest.$ac_objext \
18917       conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18921 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18922 if test $ac_cv_lib_gcc____chkstk = yes; then
18923
18924 cat >>confdefs.h <<\_ACEOF
18925 #define HAVE____CHKSTK 1
18926 _ACEOF
18927
18928 fi
18929
18930
18931   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18932 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lgcc  $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char __ashldi3 ();
18952 int
18953 main ()
18954 {
18955 return __ashldi3 ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } &&
18974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_try") 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   ac_cv_lib_gcc___ashldi3=yes
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999         ac_cv_lib_gcc___ashldi3=no
19000 fi
19001
19002 rm -f core conftest.err conftest.$ac_objext \
19003       conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_check_lib_save_LIBS
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19007 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19008 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE___ASHLDI3 1
19012 _ACEOF
19013
19014 fi
19015
19016   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19017 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lgcc  $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029
19030 /* Override any GCC internal prototype to avoid an error.
19031    Use char because int might match the return type of a GCC
19032    builtin and then its argument prototype would still apply.  */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 char __ashrdi3 ();
19037 int
19038 main ()
19039 {
19040 return __ashrdi3 ();
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_link") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060   { (case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_try") 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; } &&
19069          { ac_try='test -s conftest$ac_exeext'
19070   { (case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_try") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_lib_gcc___ashrdi3=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         ac_cv_lib_gcc___ashrdi3=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext \
19088       conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19090 fi
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19092 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19093 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19094
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE___ASHRDI3 1
19097 _ACEOF
19098
19099 fi
19100
19101   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19102 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19103 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   ac_check_lib_save_LIBS=$LIBS
19107 LIBS="-lgcc  $LIBS"
19108 cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114
19115 /* Override any GCC internal prototype to avoid an error.
19116    Use char because int might match the return type of a GCC
19117    builtin and then its argument prototype would still apply.  */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char __divdi3 ();
19122 int
19123 main ()
19124 {
19125 return __divdi3 ();
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137   (eval "$ac_link") 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145   { (case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_try") 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; } &&
19154          { ac_try='test -s conftest$ac_exeext'
19155   { (case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_try") 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; }; then
19164   ac_cv_lib_gcc___divdi3=yes
19165 else
19166   echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169         ac_cv_lib_gcc___divdi3=no
19170 fi
19171
19172 rm -f core conftest.err conftest.$ac_objext \
19173       conftest$ac_exeext conftest.$ac_ext
19174 LIBS=$ac_check_lib_save_LIBS
19175 fi
19176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19177 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19178 if test $ac_cv_lib_gcc___divdi3 = yes; then
19179
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE___DIVDI3 1
19182 _ACEOF
19183
19184 fi
19185
19186   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19187 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19188 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19189   echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191   ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-lgcc  $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any GCC internal prototype to avoid an error.
19201    Use char because int might match the return type of a GCC
19202    builtin and then its argument prototype would still apply.  */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 char __fixdfdi ();
19207 int
19208 main ()
19209 {
19210 return __fixdfdi ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_link") 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest$ac_exeext'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   ac_cv_lib_gcc___fixdfdi=yes
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         ac_cv_lib_gcc___fixdfdi=no
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext \
19258       conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19260 fi
19261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19263 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19264
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE___FIXDFDI 1
19267 _ACEOF
19268
19269 fi
19270
19271   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19272 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-lgcc  $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286    Use char because int might match the return type of a GCC
19287    builtin and then its argument prototype would still apply.  */
19288 #ifdef __cplusplus
19289 extern "C"
19290 #endif
19291 char __fixsfdi ();
19292 int
19293 main ()
19294 {
19295 return __fixsfdi ();
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } &&
19314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19315   { (case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320   (eval "$ac_try") 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; } &&
19324          { ac_try='test -s conftest$ac_exeext'
19325   { (case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_try") 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; }; then
19334   ac_cv_lib_gcc___fixsfdi=yes
19335 else
19336   echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339         ac_cv_lib_gcc___fixsfdi=no
19340 fi
19341
19342 rm -f core conftest.err conftest.$ac_objext \
19343       conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19345 fi
19346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19347 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19348 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19349
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE___FIXSFDI 1
19352 _ACEOF
19353
19354 fi
19355
19356   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19357 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19358 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   ac_check_lib_save_LIBS=$LIBS
19362 LIBS="-lgcc  $LIBS"
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 /* Override any GCC internal prototype to avoid an error.
19371    Use char because int might match the return type of a GCC
19372    builtin and then its argument prototype would still apply.  */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char __floatdidf ();
19377 int
19378 main ()
19379 {
19380 return __floatdidf ();
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_link") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; } &&
19409          { ac_try='test -s conftest$ac_exeext'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; }; then
19419   ac_cv_lib_gcc___floatdidf=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_lib_gcc___floatdidf=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext \
19428       conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19432 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19433 if test $ac_cv_lib_gcc___floatdidf = yes; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE___FLOATDIDF 1
19437 _ACEOF
19438
19439 fi
19440
19441   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19442 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19443 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19444   echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446   ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lgcc  $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 /* Override any GCC internal prototype to avoid an error.
19456    Use char because int might match the return type of a GCC
19457    builtin and then its argument prototype would still apply.  */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char __lshrdi3 ();
19462 int
19463 main ()
19464 {
19465 return __lshrdi3 ();
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_link") 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } &&
19484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485   { (case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_try") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; } &&
19494          { ac_try='test -s conftest$ac_exeext'
19495   { (case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_try") 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_cv_lib_gcc___lshrdi3=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         ac_cv_lib_gcc___lshrdi3=no
19510 fi
19511
19512 rm -f core conftest.err conftest.$ac_objext \
19513       conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19515 fi
19516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19517 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19518 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19519
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE___LSHRDI3 1
19522 _ACEOF
19523
19524 fi
19525
19526   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19527 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19528 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lgcc  $LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539
19540 /* Override any GCC internal prototype to avoid an error.
19541    Use char because int might match the return type of a GCC
19542    builtin and then its argument prototype would still apply.  */
19543 #ifdef __cplusplus
19544 extern "C"
19545 #endif
19546 char __moddi3 ();
19547 int
19548 main ()
19549 {
19550 return __moddi3 ();
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (ac_try="$ac_link"
19557 case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_link") 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19570   { (case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_try") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest$ac_exeext'
19580   { (case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_try") 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_lib_gcc___moddi3=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         ac_cv_lib_gcc___moddi3=no
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext \
19598       conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19600 fi
19601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19602 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19603 if test $ac_cv_lib_gcc___moddi3 = yes; then
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE___MODDI3 1
19607 _ACEOF
19608
19609 fi
19610
19611   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19612 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19613 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616   ac_check_lib_save_LIBS=$LIBS
19617 LIBS="-lgcc  $LIBS"
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624
19625 /* Override any GCC internal prototype to avoid an error.
19626    Use char because int might match the return type of a GCC
19627    builtin and then its argument prototype would still apply.  */
19628 #ifdef __cplusplus
19629 extern "C"
19630 #endif
19631 char __udivdi3 ();
19632 int
19633 main ()
19634 {
19635 return __udivdi3 ();
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext conftest$ac_exeext
19641 if { (ac_try="$ac_link"
19642 case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_link") 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } &&
19654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19655   { (case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_try") 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; } &&
19664          { ac_try='test -s conftest$ac_exeext'
19665   { (case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_try") 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   ac_cv_lib_gcc___udivdi3=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679         ac_cv_lib_gcc___udivdi3=no
19680 fi
19681
19682 rm -f core conftest.err conftest.$ac_objext \
19683       conftest$ac_exeext conftest.$ac_ext
19684 LIBS=$ac_check_lib_save_LIBS
19685 fi
19686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19687 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19688 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19689
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE___UDIVDI3 1
19692 _ACEOF
19693
19694 fi
19695
19696   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19697 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19698 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701   ac_check_lib_save_LIBS=$LIBS
19702 LIBS="-lgcc  $LIBS"
19703 cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709
19710 /* Override any GCC internal prototype to avoid an error.
19711    Use char because int might match the return type of a GCC
19712    builtin and then its argument prototype would still apply.  */
19713 #ifdef __cplusplus
19714 extern "C"
19715 #endif
19716 char __umoddi3 ();
19717 int
19718 main ()
19719 {
19720 return __umoddi3 ();
19721   ;
19722   return 0;
19723 }
19724 _ACEOF
19725 rm -f conftest.$ac_objext conftest$ac_exeext
19726 if { (ac_try="$ac_link"
19727 case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_link") 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19740   { (case "(($ac_try" in
19741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742   *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745   (eval "$ac_try") 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; } &&
19749          { ac_try='test -s conftest$ac_exeext'
19750   { (case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_try") 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   ac_cv_lib_gcc___umoddi3=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         ac_cv_lib_gcc___umoddi3=no
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext \
19768       conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19770 fi
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19772 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19773 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE___UMODDI3 1
19777 _ACEOF
19778
19779 fi
19780
19781
19782   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19783 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19784 if test "${ac_cv_lib_gcc___main+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lgcc  $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 /* Override any GCC internal prototype to avoid an error.
19797    Use char because int might match the return type of a GCC
19798    builtin and then its argument prototype would still apply.  */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 char __main ();
19803 int
19804 main ()
19805 {
19806 return __main ();
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_link") 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } &&
19825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19826   { (case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_try") 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; } &&
19835          { ac_try='test -s conftest$ac_exeext'
19836   { (case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841   (eval "$ac_try") 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; }; then
19845   ac_cv_lib_gcc___main=yes
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850         ac_cv_lib_gcc___main=no
19851 fi
19852
19853 rm -f core conftest.err conftest.$ac_objext \
19854       conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19856 fi
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19858 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19859 if test $ac_cv_lib_gcc___main = yes; then
19860
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE___MAIN 1
19863 _ACEOF
19864
19865 fi
19866
19867   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19868 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19869 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   ac_check_lib_save_LIBS=$LIBS
19873 LIBS="-lgcc  $LIBS"
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880
19881 /* Override any GCC internal prototype to avoid an error.
19882    Use char because int might match the return type of a GCC
19883    builtin and then its argument prototype would still apply.  */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 char __cmpdi2 ();
19888 int
19889 main ()
19890 {
19891 return __cmpdi2 ();
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_link") 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } &&
19910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19911   { (case "(($ac_try" in
19912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913   *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916   (eval "$ac_try") 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; } &&
19920          { ac_try='test -s conftest$ac_exeext'
19921   { (case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_try") 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_lib_gcc___cmpdi2=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935         ac_cv_lib_gcc___cmpdi2=no
19936 fi
19937
19938 rm -f core conftest.err conftest.$ac_objext \
19939       conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19941 fi
19942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19943 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19944 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19945
19946 cat >>confdefs.h <<\_ACEOF
19947 #define HAVE___CMPDI2 1
19948 _ACEOF
19949
19950 fi
19951
19952 fi
19953
19954 if test "$llvm_cv_os_type" = "MingW" ; then
19955   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19956 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19957   cat >conftest.$ac_ext <<_ACEOF
19958
19959   /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964
19965     #include <windows.h>
19966     #include <imagehlp.h>
19967     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19968     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19969
19970
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (ac_try="$ac_compile"
19974 case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_compile") 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } &&
19986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19987   { (case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992   (eval "$ac_try") 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; } &&
19996          { ac_try='test -s conftest.$ac_objext'
19997   { (case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_try") 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; }; then
20006
20007   { echo "$as_me:$LINENO: result: yes" >&5
20008 echo "${ECHO_T}yes" >&6; }
20009   llvm_cv_win32_elmcb_pcstr="PCSTR"
20010
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015
20016   { echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6; }
20018   llvm_cv_win32_elmcb_pcstr="PSTR"
20019
20020 fi
20021
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023
20024 cat >>confdefs.h <<_ACEOF
20025 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20026 _ACEOF
20027
20028 fi
20029
20030
20031
20032   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20033 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20034 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037
20038     ac_ext=cpp
20039 ac_cpp='$CXXCPP $CPPFLAGS'
20040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043
20044     cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050 #include <math.h>
20051 int
20052 main ()
20053 {
20054 float f; isnan(f);
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (ac_try="$ac_compile"
20061 case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_compile") 2>conftest.er1
20067   ac_status=$?
20068   grep -v '^ *+' conftest.er1 >conftest.err
20069   rm -f conftest.er1
20070   cat conftest.err >&5
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); } &&
20073          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20074   { (case "(($ac_try" in
20075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076   *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079   (eval "$ac_try") 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; } &&
20083          { ac_try='test -s conftest.$ac_objext'
20084   { (case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_try") 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   ac_cv_func_isnan_in_math_h=yes
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098         ac_cv_func_isnan_in_math_h=no
20099 fi
20100
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102     ac_ext=c
20103 ac_cpp='$CPP $CPPFLAGS'
20104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107
20108
20109 fi
20110 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20111 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20112
20113
20114 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_ISNAN_IN_MATH_H 1
20118 _ACEOF
20119
20120 fi
20121
20122
20123   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20124 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20125 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128
20129     ac_ext=cpp
20130 ac_cpp='$CXXCPP $CPPFLAGS'
20131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134
20135     cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #include <cmath>
20142 int
20143 main ()
20144 {
20145 float f; isnan(f);
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } &&
20164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; } &&
20174          { ac_try='test -s conftest.$ac_objext'
20175   { (case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_try") 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   ac_cv_func_isnan_in_cmath=yes
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189         ac_cv_func_isnan_in_cmath=no
20190 fi
20191
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193     ac_ext=c
20194 ac_cpp='$CPP $CPPFLAGS'
20195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20198
20199
20200 fi
20201 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20202 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20203
20204 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20205
20206 cat >>confdefs.h <<\_ACEOF
20207 #define HAVE_ISNAN_IN_CMATH 1
20208 _ACEOF
20209
20210 fi
20211
20212
20213   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20214 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20215 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218
20219     ac_ext=cpp
20220 ac_cpp='$CXXCPP $CPPFLAGS'
20221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20224
20225     cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 #include <cmath>
20232 int
20233 main ()
20234 {
20235 float f; std::isnan(f);
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext
20241 if { (ac_try="$ac_compile"
20242 case "(($ac_try" in
20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244   *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247   (eval "$ac_compile") 2>conftest.er1
20248   ac_status=$?
20249   grep -v '^ *+' conftest.er1 >conftest.err
20250   rm -f conftest.er1
20251   cat conftest.err >&5
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); } &&
20254          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20255   { (case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_try") 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); }; } &&
20264          { ac_try='test -s conftest.$ac_objext'
20265   { (case "(($ac_try" in
20266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267   *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270   (eval "$ac_try") 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); }; }; then
20274   ac_cv_func_std_isnan_in_cmath=yes
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279         ac_cv_func_std_isnan_in_cmath=no
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283     ac_ext=c
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289
20290 fi
20291 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20292 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20293
20294 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20295
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE_STD_ISNAN_IN_CMATH 1
20298 _ACEOF
20299
20300 fi
20301
20302
20303
20304
20305   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20306 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20307 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310
20311     ac_ext=cpp
20312 ac_cpp='$CXXCPP $CPPFLAGS'
20313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20316
20317     cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323 #include <math.h>
20324 int
20325 main ()
20326 {
20327 float f; isinf(f);
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_compile") 2>conftest.er1
20340   ac_status=$?
20341   grep -v '^ *+' conftest.er1 >conftest.err
20342   rm -f conftest.er1
20343   cat conftest.err >&5
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } &&
20346          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20347   { (case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; } &&
20356          { ac_try='test -s conftest.$ac_objext'
20357   { (case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_try") 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   ac_cv_func_isinf_in_math_h=yes
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371         ac_cv_func_isinf_in_math_h=no
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375     ac_ext=c
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380
20381
20382 fi
20383 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20384 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20385
20386 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20387
20388 cat >>confdefs.h <<\_ACEOF
20389 #define HAVE_ISINF_IN_MATH_H 1
20390 _ACEOF
20391
20392 fi
20393
20394
20395   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20396 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20397 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400
20401     ac_ext=cpp
20402 ac_cpp='$CXXCPP $CPPFLAGS'
20403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20406
20407     cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <cmath>
20414 int
20415 main ()
20416 {
20417 float f; isinf(f);
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_compile") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20437   { (case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_try") 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; } &&
20446          { ac_try='test -s conftest.$ac_objext'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_cv_func_isinf_in_cmath=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461         ac_cv_func_isinf_in_cmath=no
20462 fi
20463
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465     ac_ext=c
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471
20472 fi
20473 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20474 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20475
20476 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_ISINF_IN_CMATH 1
20480 _ACEOF
20481
20482 fi
20483
20484
20485   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20486 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20487 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20488   echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490
20491     ac_ext=cpp
20492 ac_cpp='$CXXCPP $CPPFLAGS'
20493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20496
20497     cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503 #include <cmath>
20504 int
20505 main ()
20506 {
20507 float f; std::isinf(f);
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext
20513 if { (ac_try="$ac_compile"
20514 case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_compile") 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } &&
20526          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20527   { (case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_try") 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest.$ac_objext'
20537   { (case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_try") 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546   ac_cv_func_std_isinf_in_cmath=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551         ac_cv_func_std_isinf_in_cmath=no
20552 fi
20553
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555     ac_ext=c
20556 ac_cpp='$CPP $CPPFLAGS'
20557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20560
20561
20562 fi
20563 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20564 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20565
20566 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20567
20568 cat >>confdefs.h <<\_ACEOF
20569 #define HAVE_STD_ISINF_IN_CMATH 1
20570 _ACEOF
20571
20572 fi
20573
20574
20575   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20576 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20577 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580
20581     ac_ext=cpp
20582 ac_cpp='$CXXCPP $CPPFLAGS'
20583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586
20587     cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 #include <ieeefp.h>
20594 int
20595 main ()
20596 {
20597 float f; finite(f);
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_compile") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20617   { (case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_try") 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; } &&
20626          { ac_try='test -s conftest.$ac_objext'
20627   { (case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_try") 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; }; then
20636   ac_cv_func_finite_in_ieeefp_h=yes
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641         ac_cv_func_finite_in_ieeefp_h=no
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645     ac_ext=c
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650
20651
20652 fi
20653 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20654 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20655
20656 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20657
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_FINITE_IN_IEEEFP_H 1
20660 _ACEOF
20661
20662 fi
20663
20664
20665
20666 if test "$llvm_cv_platform_type" = "Unix" ; then
20667
20668
20669 for ac_header in stdlib.h unistd.h
20670 do
20671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 fi
20678 ac_res=`eval echo '${'$as_ac_Header'}'`
20679                { echo "$as_me:$LINENO: result: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20681 else
20682   # Is the header compilable?
20683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691 $ac_includes_default
20692 #include <$ac_header>
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698   *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701   (eval "$ac_compile") 2>conftest.er1
20702   ac_status=$?
20703   grep -v '^ *+' conftest.er1 >conftest.err
20704   rm -f conftest.er1
20705   cat conftest.err >&5
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); } &&
20708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20709   { (case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; } &&
20718          { ac_try='test -s conftest.$ac_objext'
20719   { (case "(($ac_try" in
20720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721   *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724   (eval "$ac_try") 2>&5
20725   ac_status=$?
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); }; }; then
20728   ac_header_compiler=yes
20729 else
20730   echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733         ac_header_compiler=no
20734 fi
20735
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738 echo "${ECHO_T}$ac_header_compiler" >&6; }
20739
20740 # Is the header present?
20741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 #include <$ac_header>
20750 _ACEOF
20751 if { (ac_try="$ac_cpp conftest.$ac_ext"
20752 case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20758   ac_status=$?
20759   grep -v '^ *+' conftest.er1 >conftest.err
20760   rm -f conftest.er1
20761   cat conftest.err >&5
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } >/dev/null; then
20764   if test -s conftest.err; then
20765     ac_cpp_err=$ac_c_preproc_warn_flag
20766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20767   else
20768     ac_cpp_err=
20769   fi
20770 else
20771   ac_cpp_err=yes
20772 fi
20773 if test -z "$ac_cpp_err"; then
20774   ac_header_preproc=yes
20775 else
20776   echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20778
20779   ac_header_preproc=no
20780 fi
20781
20782 rm -f conftest.err conftest.$ac_ext
20783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20784 echo "${ECHO_T}$ac_header_preproc" >&6; }
20785
20786 # So?  What about this header?
20787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20788   yes:no: )
20789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20793     ac_header_preproc=yes
20794     ;;
20795   no:yes:* )
20796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20808     ( cat <<\_ASBOX
20809 ## ------------------------------------ ##
20810 ## Report this to http://llvm.org/bugs/ ##
20811 ## ------------------------------------ ##
20812 _ASBOX
20813      ) | sed "s/^/$as_me: WARNING:     /" >&2
20814     ;;
20815 esac
20816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   eval "$as_ac_Header=\$ac_header_preproc"
20822 fi
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824                { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826
20827 fi
20828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829   cat >>confdefs.h <<_ACEOF
20830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20831 _ACEOF
20832
20833 fi
20834
20835 done
20836
20837
20838 for ac_func in getpagesize
20839 do
20840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846   cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20854 #define $ac_func innocuous_$ac_func
20855
20856 /* System header to define __stub macros and hopefully few prototypes,
20857     which can conflict with char $ac_func (); below.
20858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20859     <limits.h> exists even on freestanding compilers.  */
20860
20861 #ifdef __STDC__
20862 # include <limits.h>
20863 #else
20864 # include <assert.h>
20865 #endif
20866
20867 #undef $ac_func
20868
20869 /* Override any GCC internal prototype to avoid an error.
20870    Use char because int might match the return type of a GCC
20871    builtin and then its argument prototype would still apply.  */
20872 #ifdef __cplusplus
20873 extern "C"
20874 #endif
20875 char $ac_func ();
20876 /* The GNU C library defines this for functions which it implements
20877     to always fail with ENOSYS.  Some functions are actually named
20878     something starting with __ and the normal name is an alias.  */
20879 #if defined __stub_$ac_func || defined __stub___$ac_func
20880 choke me
20881 #endif
20882
20883 int
20884 main ()
20885 {
20886 return $ac_func ();
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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   eval "$as_ac_var=yes"
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         eval "$as_ac_var=no"
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext \
20934       conftest$ac_exeext conftest.$ac_ext
20935 fi
20936 ac_res=`eval echo '${'$as_ac_var'}'`
20937                { echo "$as_me:$LINENO: result: $ac_res" >&5
20938 echo "${ECHO_T}$ac_res" >&6; }
20939 if test `eval echo '${'$as_ac_var'}'` = yes; then
20940   cat >>confdefs.h <<_ACEOF
20941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20942 _ACEOF
20943
20944 fi
20945 done
20946
20947 { echo "$as_me:$LINENO: checking for working mmap" >&5
20948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20950   echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952   if test "$cross_compiling" = yes; then
20953   ac_cv_func_mmap_fixed_mapped=no
20954 else
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 $ac_includes_default
20962 /* malloc might have been renamed as rpl_malloc. */
20963 #undef malloc
20964
20965 /* Thanks to Mike Haertel and Jim Avera for this test.
20966    Here is a matrix of mmap possibilities:
20967         mmap private not fixed
20968         mmap private fixed at somewhere currently unmapped
20969         mmap private fixed at somewhere already mapped
20970         mmap shared not fixed
20971         mmap shared fixed at somewhere currently unmapped
20972         mmap shared fixed at somewhere already mapped
20973    For private mappings, we should verify that changes cannot be read()
20974    back from the file, nor mmap's back from the file at a different
20975    address.  (There have been systems where private was not correctly
20976    implemented like the infamous i386 svr4.0, and systems where the
20977    VM page cache was not coherent with the file system buffer cache
20978    like early versions of FreeBSD and possibly contemporary NetBSD.)
20979    For shared mappings, we should conversely verify that changes get
20980    propagated back to all the places they're supposed to be.
20981
20982    Grep wants private fixed already mapped.
20983    The main things grep needs to know about mmap are:
20984    * does it exist and is it safe to write into the mmap'd area
20985    * how to use it (BSD variants)  */
20986
20987 #include <fcntl.h>
20988 #include <sys/mman.h>
20989
20990 #if !STDC_HEADERS && !HAVE_STDLIB_H
20991 char *malloc ();
20992 #endif
20993
20994 /* This mess was copied from the GNU getpagesize.h.  */
20995 #if !HAVE_GETPAGESIZE
20996 /* Assume that all systems that can run configure have sys/param.h.  */
20997 # if !HAVE_SYS_PARAM_H
20998 #  define HAVE_SYS_PARAM_H 1
20999 # endif
21000
21001 # ifdef _SC_PAGESIZE
21002 #  define getpagesize() sysconf(_SC_PAGESIZE)
21003 # else /* no _SC_PAGESIZE */
21004 #  if HAVE_SYS_PARAM_H
21005 #   include <sys/param.h>
21006 #   ifdef EXEC_PAGESIZE
21007 #    define getpagesize() EXEC_PAGESIZE
21008 #   else /* no EXEC_PAGESIZE */
21009 #    ifdef NBPG
21010 #     define getpagesize() NBPG * CLSIZE
21011 #     ifndef CLSIZE
21012 #      define CLSIZE 1
21013 #     endif /* no CLSIZE */
21014 #    else /* no NBPG */
21015 #     ifdef NBPC
21016 #      define getpagesize() NBPC
21017 #     else /* no NBPC */
21018 #      ifdef PAGESIZE
21019 #       define getpagesize() PAGESIZE
21020 #      endif /* PAGESIZE */
21021 #     endif /* no NBPC */
21022 #    endif /* no NBPG */
21023 #   endif /* no EXEC_PAGESIZE */
21024 #  else /* no HAVE_SYS_PARAM_H */
21025 #   define getpagesize() 8192   /* punt totally */
21026 #  endif /* no HAVE_SYS_PARAM_H */
21027 # endif /* no _SC_PAGESIZE */
21028
21029 #endif /* no HAVE_GETPAGESIZE */
21030
21031 int
21032 main ()
21033 {
21034   char *data, *data2, *data3;
21035   int i, pagesize;
21036   int fd;
21037
21038   pagesize = getpagesize ();
21039
21040   /* First, make a file with some known garbage in it. */
21041   data = (char *) malloc (pagesize);
21042   if (!data)
21043     return 1;
21044   for (i = 0; i < pagesize; ++i)
21045     *(data + i) = rand ();
21046   umask (0);
21047   fd = creat ("conftest.mmap", 0600);
21048   if (fd < 0)
21049     return 1;
21050   if (write (fd, data, pagesize) != pagesize)
21051     return 1;
21052   close (fd);
21053
21054   /* Next, try to mmap the file at a fixed address which already has
21055      something else allocated at it.  If we can, also make sure that
21056      we see the same garbage.  */
21057   fd = open ("conftest.mmap", O_RDWR);
21058   if (fd < 0)
21059     return 1;
21060   data2 = (char *) malloc (2 * pagesize);
21061   if (!data2)
21062     return 1;
21063   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21064   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21065                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21066     return 1;
21067   for (i = 0; i < pagesize; ++i)
21068     if (*(data + i) != *(data2 + i))
21069       return 1;
21070
21071   /* Finally, make sure that changes to the mapped area do not
21072      percolate back to the file as seen by read().  (This is a bug on
21073      some variants of i386 svr4.0.)  */
21074   for (i = 0; i < pagesize; ++i)
21075     *(data2 + i) = *(data2 + i) + 1;
21076   data3 = (char *) malloc (pagesize);
21077   if (!data3)
21078     return 1;
21079   if (read (fd, data3, pagesize) != pagesize)
21080     return 1;
21081   for (i = 0; i < pagesize; ++i)
21082     if (*(data + i) != *(data3 + i))
21083       return 1;
21084   close (fd);
21085   return 0;
21086 }
21087 _ACEOF
21088 rm -f conftest$ac_exeext
21089 if { (ac_try="$ac_link"
21090 case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_link") 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21099   { (case "(($ac_try" in
21100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101   *) ac_try_echo=$ac_try;;
21102 esac
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104   (eval "$ac_try") 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_func_mmap_fixed_mapped=yes
21109 else
21110   echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ( exit $ac_status )
21115 ac_cv_func_mmap_fixed_mapped=no
21116 fi
21117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21118 fi
21119
21120
21121 fi
21122 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21123 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21124 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21125
21126 cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_MMAP 1
21128 _ACEOF
21129
21130 fi
21131 rm -f conftest.mmap
21132
21133   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21134 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21135 if test "${ac_cv_func_mmap_file+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138    ac_ext=c
21139 ac_cpp='$CPP $CPPFLAGS'
21140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143
21144   if test "$cross_compiling" = yes; then
21145   ac_cv_func_mmap_file=no
21146 else
21147   cat >conftest.$ac_ext <<_ACEOF
21148
21149     /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154
21155 #include <sys/types.h>
21156 #include <sys/mman.h>
21157 #include <fcntl.h>
21158
21159 int
21160 main ()
21161 {
21162
21163   int fd;
21164   fd = creat ("foo",0777);
21165   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21166   unlink ("foo");
21167   return (fd != (int) MAP_FAILED);
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_link") 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21183   { (case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_try") 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; }; then
21192   ac_cv_func_mmap_file=yes
21193 else
21194   echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ( exit $ac_status )
21199 ac_cv_func_mmap_file=no
21200 fi
21201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21202 fi
21203
21204
21205   ac_ext=c
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211
21212 fi
21213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21214 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21215 if test "$ac_cv_func_mmap_file" = yes; then
21216
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_MMAP_FILE
21219 _ACEOF
21220
21221    MMAP_FILE=yes
21222
21223 fi
21224
21225   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21226 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21227 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230   if test "$llvm_cv_os_type" = "Interix" ; then
21231    ac_cv_need_dev_zero_for_mmap=yes
21232  else
21233    ac_cv_need_dev_zero_for_mmap=no
21234  fi
21235
21236 fi
21237 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21238 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21239 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21240
21241 cat >>confdefs.h <<\_ACEOF
21242 #define NEED_DEV_ZERO_FOR_MMAP 1
21243 _ACEOF
21244
21245 fi
21246
21247   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21248   then
21249     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21250 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21251   fi
21252   if test "$ac_cv_func_mmap_file" = "no"
21253   then
21254     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21255 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21256   fi
21257 fi
21258
21259 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21260 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21261 ac_ext=cpp
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266
21267 cat >conftest.$ac_ext <<_ACEOF
21268
21269   /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274
21275     int main() {
21276       volatile unsigned long val = 1;
21277       __sync_synchronize();
21278       __sync_val_compare_and_swap(&val, 1, 0);
21279       __sync_add_and_fetch(&val, 1);
21280       __sync_sub_and_fetch(&val, 1);
21281       return 0;
21282     }
21283
21284
21285 _ACEOF
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (ac_try="$ac_link"
21288 case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293   (eval "$ac_link") 2>conftest.er1
21294   ac_status=$?
21295   grep -v '^ *+' conftest.er1 >conftest.err
21296   rm -f conftest.er1
21297   cat conftest.err >&5
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21301   { (case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306   (eval "$ac_try") 2>&5
21307   ac_status=$?
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); }; } &&
21310          { ac_try='test -s conftest$ac_exeext'
21311   { (case "(($ac_try" in
21312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313   *) ac_try_echo=$ac_try;;
21314 esac
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316   (eval "$ac_try") 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; }; then
21320
21321   { echo "$as_me:$LINENO: result: yes" >&5
21322 echo "${ECHO_T}yes" >&6; }
21323
21324 cat >>confdefs.h <<\_ACEOF
21325 #define LLVM_HAS_ATOMICS 1
21326 _ACEOF
21327
21328
21329 else
21330   echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333
21334   { echo "$as_me:$LINENO: result: no" >&5
21335 echo "${ECHO_T}no" >&6; }
21336
21337 cat >>confdefs.h <<\_ACEOF
21338 #define LLVM_HAS_ATOMICS 0
21339 _ACEOF
21340
21341   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21342 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21343
21344 fi
21345
21346 rm -f core conftest.err conftest.$ac_objext \
21347       conftest$ac_exeext conftest.$ac_ext
21348 ac_ext=c
21349 ac_cpp='$CPP $CPPFLAGS'
21350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21353
21354
21355
21356 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21357   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21358 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21359 if test "${llvm_cv_linux_mixed+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362    ac_ext=c
21363 ac_cpp='$CPP $CPPFLAGS'
21364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21367
21368   cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 #ifndef __x86_64__
21375        error: Not x86-64 even if uname says so!
21376       #endif
21377
21378 int
21379 main ()
21380 {
21381
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390   *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393   (eval "$ac_compile") 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } &&
21400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21401   { (case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_try") 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; } &&
21410          { ac_try='test -s conftest.$ac_objext'
21411   { (case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_try") 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; }; then
21420   llvm_cv_linux_mixed=no
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425         llvm_cv_linux_mixed=yes
21426 fi
21427
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429   ac_ext=c
21430 ac_cpp='$CPP $CPPFLAGS'
21431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21434
21435
21436 fi
21437 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21438 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21439
21440   if test "$llvm_cv_linux_mixed" = "yes"; then
21441     llvm_cv_target_arch="x86"
21442     ARCH="x86"
21443   fi
21444 fi
21445
21446
21447 for ac_func in __dso_handle
21448 do
21449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21453   echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455   cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21463 #define $ac_func innocuous_$ac_func
21464
21465 /* System header to define __stub macros and hopefully few prototypes,
21466     which can conflict with char $ac_func (); below.
21467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21468     <limits.h> exists even on freestanding compilers.  */
21469
21470 #ifdef __STDC__
21471 # include <limits.h>
21472 #else
21473 # include <assert.h>
21474 #endif
21475
21476 #undef $ac_func
21477
21478 /* Override any GCC internal prototype to avoid an error.
21479    Use char because int might match the return type of a GCC
21480    builtin and then its argument prototype would still apply.  */
21481 #ifdef __cplusplus
21482 extern "C"
21483 #endif
21484 char $ac_func ();
21485 /* The GNU C library defines this for functions which it implements
21486     to always fail with ENOSYS.  Some functions are actually named
21487     something starting with __ and the normal name is an alias.  */
21488 #if defined __stub_$ac_func || defined __stub___$ac_func
21489 choke me
21490 #endif
21491
21492 int
21493 main ()
21494 {
21495 return $ac_func ();
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext conftest$ac_exeext
21501 if { (ac_try="$ac_link"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_link") 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } &&
21514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21515   { (case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520   (eval "$ac_try") 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest$ac_exeext'
21525   { (case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530   (eval "$ac_try") 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); }; }; then
21534   eval "$as_ac_var=yes"
21535 else
21536   echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539         eval "$as_ac_var=no"
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext \
21543       conftest$ac_exeext conftest.$ac_ext
21544 fi
21545 ac_res=`eval echo '${'$as_ac_var'}'`
21546                { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21548 if test `eval echo '${'$as_ac_var'}'` = yes; then
21549   cat >>confdefs.h <<_ACEOF
21550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21551 _ACEOF
21552
21553 fi
21554 done
21555
21556
21557 SHLIBEXT=$libltdl_cv_shlibext
21558
21559
21560 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21561
21562
21563 if test "${prefix}" = "NONE" ; then
21564   prefix="/usr/local"
21565 fi
21566 eval LLVM_PREFIX="${prefix}";
21567 eval LLVM_BINDIR="${prefix}/bin";
21568 eval LLVM_LIBDIR="${prefix}/lib";
21569 eval LLVM_DATADIR="${prefix}/share/llvm";
21570 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21571 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21572 eval LLVM_INCLUDEDIR="${prefix}/include";
21573 eval LLVM_INFODIR="${prefix}/info";
21574 eval LLVM_MANDIR="${prefix}/man";
21575 LLVM_CONFIGTIME=`date`
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21588   LLVM_CONFIGTIME="(timestamp not enabled)"
21589 fi
21590
21591
21592 cat >>confdefs.h <<_ACEOF
21593 #define LLVM_PREFIX "$LLVM_PREFIX"
21594 _ACEOF
21595
21596
21597 cat >>confdefs.h <<_ACEOF
21598 #define LLVM_BINDIR "$LLVM_BINDIR"
21599 _ACEOF
21600
21601
21602 cat >>confdefs.h <<_ACEOF
21603 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21604 _ACEOF
21605
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define LLVM_DATADIR "$LLVM_DATADIR"
21609 _ACEOF
21610
21611
21612 cat >>confdefs.h <<_ACEOF
21613 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21614 _ACEOF
21615
21616
21617 cat >>confdefs.h <<_ACEOF
21618 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21619 _ACEOF
21620
21621
21622 cat >>confdefs.h <<_ACEOF
21623 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21624 _ACEOF
21625
21626
21627 cat >>confdefs.h <<_ACEOF
21628 #define LLVM_INFODIR "$LLVM_INFODIR"
21629 _ACEOF
21630
21631
21632 cat >>confdefs.h <<_ACEOF
21633 #define LLVM_MANDIR "$LLVM_MANDIR"
21634 _ACEOF
21635
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21639 _ACEOF
21640
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define LLVM_HOSTTRIPLE "$host"
21644 _ACEOF
21645
21646
21647 cat >>confdefs.h <<_ACEOF
21648 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21649 _ACEOF
21650
21651
21652 if test "$BINDINGS_TO_BUILD" = auto ; then
21653   BINDINGS_TO_BUILD=""
21654   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21655     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21656   fi
21657 fi
21658 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21659
21660
21661 ALL_BINDINGS=ocaml
21662
21663
21664 binding_prereqs_failed=0
21665 for a_binding in $BINDINGS_TO_BUILD ; do
21666   case "$a_binding" in
21667   ocaml)
21668     if test "x$OCAMLC" = x ; then
21669       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21670 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21671       binding_prereqs_failed=1
21672     fi
21673     if test "x$OCAMLDEP" = x ; then
21674       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21675 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21676       binding_prereqs_failed=1
21677     fi
21678     if test "x$OCAMLOPT" = x ; then
21679       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21680 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21681           fi
21682     if test "x$with_ocaml_libdir" != xauto ; then
21683       OCAML_LIBDIR=$with_ocaml_libdir
21684
21685     else
21686       ocaml_stdlib="`"$OCAMLC" -where`"
21687       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21688       then
21689         # ocaml stdlib is beneath our prefix; use stdlib
21690         OCAML_LIBDIR=$ocaml_stdlib
21691
21692       else
21693         # ocaml stdlib is outside our prefix; use libdir/ocaml
21694         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21695
21696       fi
21697     fi
21698     ;;
21699   esac
21700 done
21701 if test "$binding_prereqs_failed" = 1 ; then
21702   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21703 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21704    { (exit 1); exit 1; }; }
21705 fi
21706
21707 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21708 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21709 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712    ac_ext=cpp
21713 ac_cpp='$CXXCPP $CPPFLAGS'
21714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21717
21718   oldcxxflags="$CXXFLAGS"
21719   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21720   cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21727 int
21728 main ()
21729 {
21730 X<int>().f();
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext
21736 if { (ac_try="$ac_compile"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_compile") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21750   { (case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_try") 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest.$ac_objext'
21760   { (case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_try") 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; }; then
21769   llvm_cv_cxx_visibility_inlines_hidden=yes
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774         llvm_cv_cxx_visibility_inlines_hidden=no
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778   CXXFLAGS="$oldcxxflags"
21779   ac_ext=c
21780 ac_cpp='$CPP $CPPFLAGS'
21781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21784
21785
21786 fi
21787 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21788 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21789 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21790   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21791
21792 else
21793   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21794
21795 fi
21796
21797
21798 if test "$llvm_cv_link_use_r" = "yes" ; then
21799   RPATH="-Wl,-R"
21800 else
21801   RPATH="-Wl,-rpath"
21802 fi
21803
21804
21805 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21806   RDYNAMIC="-Wl,-export-dynamic"
21807 else
21808   RDYNAMIC=""
21809 fi
21810
21811
21812
21813 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21814
21815
21816
21817
21818
21819
21820 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21821
21822 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21823
21824 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21825
21826 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21827
21828 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21829
21830
21831 ac_config_files="$ac_config_files Makefile.config"
21832
21833
21834 ac_config_files="$ac_config_files llvm.spec"
21835
21836
21837 ac_config_files="$ac_config_files docs/doxygen.cfg"
21838
21839
21840 if test "${clang_src_root}" = ""; then
21841   clang_src_root="$srcdir/tools/clang"
21842 fi
21843 if test -f ${clang_src_root}/README.txt; then
21844     configh="include/clang/Config/config.h"
21845   doxy="docs/doxygen.cfg"
21846   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21847
21848   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21849
21850 fi
21851
21852 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21853
21854
21855 test "x$program_prefix" = "xNONE" && program_prefix=""
21856
21857
21858
21859 ac_config_commands="$ac_config_commands setup"
21860
21861 ac_config_commands="$ac_config_commands Makefile"
21862
21863
21864 ac_config_commands="$ac_config_commands Makefile.common"
21865
21866
21867 ac_config_commands="$ac_config_commands examples/Makefile"
21868
21869
21870 ac_config_commands="$ac_config_commands lib/Makefile"
21871
21872
21873 ac_config_commands="$ac_config_commands runtime/Makefile"
21874
21875
21876 ac_config_commands="$ac_config_commands test/Makefile"
21877
21878
21879 ac_config_commands="$ac_config_commands test/Makefile.tests"
21880
21881
21882 ac_config_commands="$ac_config_commands unittests/Makefile"
21883
21884
21885 ac_config_commands="$ac_config_commands tools/Makefile"
21886
21887
21888 ac_config_commands="$ac_config_commands utils/Makefile"
21889
21890
21891 ac_config_commands="$ac_config_commands projects/Makefile"
21892
21893
21894 ac_config_commands="$ac_config_commands bindings/Makefile"
21895
21896
21897 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21898
21899
21900
21901 cat >confcache <<\_ACEOF
21902 # This file is a shell script that caches the results of configure
21903 # tests run on this system so they can be shared between configure
21904 # scripts and configure runs, see configure's option --config-cache.
21905 # It is not useful on other systems.  If it contains results you don't
21906 # want to keep, you may remove or edit it.
21907 #
21908 # config.status only pays attention to the cache file if you give it
21909 # the --recheck option to rerun configure.
21910 #
21911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21913 # following values.
21914
21915 _ACEOF
21916
21917 # The following way of writing the cache mishandles newlines in values,
21918 # but we know of no workaround that is simple, portable, and efficient.
21919 # So, we kill variables containing newlines.
21920 # Ultrix sh set writes to stderr and can't be redirected directly,
21921 # and sets the high bit in the cache file unless we assign to the vars.
21922 (
21923   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21924     eval ac_val=\$$ac_var
21925     case $ac_val in #(
21926     *${as_nl}*)
21927       case $ac_var in #(
21928       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21929 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21930       esac
21931       case $ac_var in #(
21932       _ | IFS | as_nl) ;; #(
21933       *) $as_unset $ac_var ;;
21934       esac ;;
21935     esac
21936   done
21937
21938   (set) 2>&1 |
21939     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21940     *${as_nl}ac_space=\ *)
21941       # `set' does not quote correctly, so add quotes (double-quote
21942       # substitution turns \\\\ into \\, and sed turns \\ into \).
21943       sed -n \
21944         "s/'/'\\\\''/g;
21945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21946       ;; #(
21947     *)
21948       # `set' quotes correctly as required by POSIX, so do not add quotes.
21949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21950       ;;
21951     esac |
21952     sort
21953 ) |
21954   sed '
21955      /^ac_cv_env_/b end
21956      t clear
21957      :clear
21958      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21959      t end
21960      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21961      :end' >>confcache
21962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21963   if test -w "$cache_file"; then
21964     test "x$cache_file" != "x/dev/null" &&
21965       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21966 echo "$as_me: updating cache $cache_file" >&6;}
21967     cat confcache >$cache_file
21968   else
21969     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21970 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21971   fi
21972 fi
21973 rm -f confcache
21974
21975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21976 # Let make expand exec_prefix.
21977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21978
21979 DEFS=-DHAVE_CONFIG_H
21980
21981 ac_libobjs=
21982 ac_ltlibobjs=
21983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21984   # 1. Remove the extension, and $U if already installed.
21985   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21986   ac_i=`echo "$ac_i" | sed "$ac_script"`
21987   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21988   #    will be set to the directory where LIBOBJS objects are built.
21989   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21990   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21991 done
21992 LIBOBJS=$ac_libobjs
21993
21994 LTLIBOBJS=$ac_ltlibobjs
21995
21996
21997 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21998   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21999 Usually this means the macro was only invoked conditionally." >&5
22000 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22001 Usually this means the macro was only invoked conditionally." >&2;}
22002    { (exit 1); exit 1; }; }
22003 fi
22004 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22005   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22006 Usually this means the macro was only invoked conditionally." >&5
22007 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22008 Usually this means the macro was only invoked conditionally." >&2;}
22009    { (exit 1); exit 1; }; }
22010 fi
22011
22012 : ${CONFIG_STATUS=./config.status}
22013 ac_clean_files_save=$ac_clean_files
22014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22015 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22016 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22017 cat >$CONFIG_STATUS <<_ACEOF
22018 #! $SHELL
22019 # Generated by $as_me.
22020 # Run this file to recreate the current configuration.
22021 # Compiler output produced by configure, useful for debugging
22022 # configure, is in config.log if it exists.
22023
22024 debug=false
22025 ac_cs_recheck=false
22026 ac_cs_silent=false
22027 SHELL=\${CONFIG_SHELL-$SHELL}
22028 _ACEOF
22029
22030 cat >>$CONFIG_STATUS <<\_ACEOF
22031 ## --------------------- ##
22032 ## M4sh Initialization.  ##
22033 ## --------------------- ##
22034
22035 # Be Bourne compatible
22036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22037   emulate sh
22038   NULLCMD=:
22039   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22040   # is contrary to our usage.  Disable this feature.
22041   alias -g '${1+"$@"}'='"$@"'
22042   setopt NO_GLOB_SUBST
22043 else
22044   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22045 fi
22046 BIN_SH=xpg4; export BIN_SH # for Tru64
22047 DUALCASE=1; export DUALCASE # for MKS sh
22048
22049
22050 # PATH needs CR
22051 # Avoid depending upon Character Ranges.
22052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22055 as_cr_digits='0123456789'
22056 as_cr_alnum=$as_cr_Letters$as_cr_digits
22057
22058 # The user is always right.
22059 if test "${PATH_SEPARATOR+set}" != set; then
22060   echo "#! /bin/sh" >conf$$.sh
22061   echo  "exit 0"   >>conf$$.sh
22062   chmod +x conf$$.sh
22063   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22064     PATH_SEPARATOR=';'
22065   else
22066     PATH_SEPARATOR=:
22067   fi
22068   rm -f conf$$.sh
22069 fi
22070
22071 # Support unset when possible.
22072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22073   as_unset=unset
22074 else
22075   as_unset=false
22076 fi
22077
22078
22079 # IFS
22080 # We need space, tab and new line, in precisely that order.  Quoting is
22081 # there to prevent editors from complaining about space-tab.
22082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22083 # splitting by setting IFS to empty value.)
22084 as_nl='
22085 '
22086 IFS=" ""        $as_nl"
22087
22088 # Find who we are.  Look in the path if we contain no directory separator.
22089 case $0 in
22090   *[\\/]* ) as_myself=$0 ;;
22091   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22092 for as_dir in $PATH
22093 do
22094   IFS=$as_save_IFS
22095   test -z "$as_dir" && as_dir=.
22096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22097 done
22098 IFS=$as_save_IFS
22099
22100      ;;
22101 esac
22102 # We did not find ourselves, most probably we were run as `sh COMMAND'
22103 # in which case we are not to be found in the path.
22104 if test "x$as_myself" = x; then
22105   as_myself=$0
22106 fi
22107 if test ! -f "$as_myself"; then
22108   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22109   { (exit 1); exit 1; }
22110 fi
22111
22112 # Work around bugs in pre-3.0 UWIN ksh.
22113 for as_var in ENV MAIL MAILPATH
22114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22115 done
22116 PS1='$ '
22117 PS2='> '
22118 PS4='+ '
22119
22120 # NLS nuisances.
22121 for as_var in \
22122   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22123   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22124   LC_TELEPHONE LC_TIME
22125 do
22126   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22127     eval $as_var=C; export $as_var
22128   else
22129     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22130   fi
22131 done
22132
22133 # Required to use basename.
22134 if expr a : '\(a\)' >/dev/null 2>&1 &&
22135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22136   as_expr=expr
22137 else
22138   as_expr=false
22139 fi
22140
22141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22142   as_basename=basename
22143 else
22144   as_basename=false
22145 fi
22146
22147
22148 # Name of the executable.
22149 as_me=`$as_basename -- "$0" ||
22150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22151          X"$0" : 'X\(//\)$' \| \
22152          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22153 echo X/"$0" |
22154     sed '/^.*\/\([^/][^/]*\)\/*$/{
22155             s//\1/
22156             q
22157           }
22158           /^X\/\(\/\/\)$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\/\(\/\).*/{
22163             s//\1/
22164             q
22165           }
22166           s/.*/./; q'`
22167
22168 # CDPATH.
22169 $as_unset CDPATH
22170
22171
22172
22173   as_lineno_1=$LINENO
22174   as_lineno_2=$LINENO
22175   test "x$as_lineno_1" != "x$as_lineno_2" &&
22176   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22177
22178   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22179   # uniformly replaced by the line number.  The first 'sed' inserts a
22180   # line-number line after each line using $LINENO; the second 'sed'
22181   # does the real work.  The second script uses 'N' to pair each
22182   # line-number line with the line containing $LINENO, and appends
22183   # trailing '-' during substitution so that $LINENO is not a special
22184   # case at line end.
22185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22186   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22187   # E. McMahon (1931-1989) for sed's syntax.  :-)
22188   sed -n '
22189     p
22190     /[$]LINENO/=
22191   ' <$as_myself |
22192     sed '
22193       s/[$]LINENO.*/&-/
22194       t lineno
22195       b
22196       :lineno
22197       N
22198       :loop
22199       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22200       t loop
22201       s/-\n.*//
22202     ' >$as_me.lineno &&
22203   chmod +x "$as_me.lineno" ||
22204     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22205    { (exit 1); exit 1; }; }
22206
22207   # Don't try to exec as it changes $[0], causing all sort of problems
22208   # (the dirname of $[0] is not the place where we might find the
22209   # original and so on.  Autoconf is especially sensitive to this).
22210   . "./$as_me.lineno"
22211   # Exit status is that of the last command.
22212   exit
22213 }
22214
22215
22216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22217   as_dirname=dirname
22218 else
22219   as_dirname=false
22220 fi
22221
22222 ECHO_C= ECHO_N= ECHO_T=
22223 case `echo -n x` in
22224 -n*)
22225   case `echo 'x\c'` in
22226   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22227   *)   ECHO_C='\c';;
22228   esac;;
22229 *)
22230   ECHO_N='-n';;
22231 esac
22232
22233 if expr a : '\(a\)' >/dev/null 2>&1 &&
22234    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22235   as_expr=expr
22236 else
22237   as_expr=false
22238 fi
22239
22240 rm -f conf$$ conf$$.exe conf$$.file
22241 if test -d conf$$.dir; then
22242   rm -f conf$$.dir/conf$$.file
22243 else
22244   rm -f conf$$.dir
22245   mkdir conf$$.dir
22246 fi
22247 echo >conf$$.file
22248 if ln -s conf$$.file conf$$ 2>/dev/null; then
22249   as_ln_s='ln -s'
22250   # ... but there are two gotchas:
22251   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22252   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22253   # In both cases, we have to default to `cp -p'.
22254   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22255     as_ln_s='cp -p'
22256 elif ln conf$$.file conf$$ 2>/dev/null; then
22257   as_ln_s=ln
22258 else
22259   as_ln_s='cp -p'
22260 fi
22261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22262 rmdir conf$$.dir 2>/dev/null
22263
22264 if mkdir -p . 2>/dev/null; then
22265   as_mkdir_p=:
22266 else
22267   test -d ./-p && rmdir ./-p
22268   as_mkdir_p=false
22269 fi
22270
22271 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22272 # systems may use methods other than mode bits to determine executability.
22273 cat >conf$$.file <<_ASEOF
22274 #! /bin/sh
22275 exit 0
22276 _ASEOF
22277 chmod +x conf$$.file
22278 if test -x conf$$.file >/dev/null 2>&1; then
22279   as_executable_p="test -x"
22280 else
22281   as_executable_p=:
22282 fi
22283 rm -f conf$$.file
22284
22285 # Sed expression to map a string onto a valid CPP name.
22286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22287
22288 # Sed expression to map a string onto a valid variable name.
22289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22290
22291
22292 exec 6>&1
22293
22294 # Save the log message, to keep $[0] and so on meaningful, and to
22295 # report actual input values of CONFIG_FILES etc. instead of their
22296 # values after options handling.
22297 ac_log="
22298 This file was extended by LLVM $as_me 3.3svn, which was
22299 generated by GNU Autoconf 2.60.  Invocation command line was
22300
22301   CONFIG_FILES    = $CONFIG_FILES
22302   CONFIG_HEADERS  = $CONFIG_HEADERS
22303   CONFIG_LINKS    = $CONFIG_LINKS
22304   CONFIG_COMMANDS = $CONFIG_COMMANDS
22305   $ $0 $@
22306
22307 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22308 "
22309
22310 _ACEOF
22311
22312 cat >>$CONFIG_STATUS <<_ACEOF
22313 # Files that config.status was made for.
22314 config_files="$ac_config_files"
22315 config_headers="$ac_config_headers"
22316 config_commands="$ac_config_commands"
22317
22318 _ACEOF
22319
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22321 ac_cs_usage="\
22322 \`$as_me' instantiates files from templates according to the
22323 current configuration.
22324
22325 Usage: $0 [OPTIONS] [FILE]...
22326
22327   -h, --help       print this help, then exit
22328   -V, --version    print version number, then exit
22329   -q, --quiet      do not print progress messages
22330   -d, --debug      don't remove temporary files
22331       --recheck    update $as_me by reconfiguring in the same conditions
22332   --file=FILE[:TEMPLATE]
22333                    instantiate the configuration file FILE
22334   --header=FILE[:TEMPLATE]
22335                    instantiate the configuration header FILE
22336
22337 Configuration files:
22338 $config_files
22339
22340 Configuration headers:
22341 $config_headers
22342
22343 Configuration commands:
22344 $config_commands
22345
22346 Report bugs to <bug-autoconf@gnu.org>."
22347
22348 _ACEOF
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350 ac_cs_version="\\
22351 LLVM config.status 3.3svn
22352 configured by $0, generated by GNU Autoconf 2.60,
22353   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22354
22355 Copyright (C) 2006 Free Software Foundation, Inc.
22356 This config.status script is free software; the Free Software Foundation
22357 gives unlimited permission to copy, distribute and modify it."
22358
22359 ac_pwd='$ac_pwd'
22360 srcdir='$srcdir'
22361 INSTALL='$INSTALL'
22362 _ACEOF
22363
22364 cat >>$CONFIG_STATUS <<\_ACEOF
22365 # If no file are specified by the user, then we need to provide default
22366 # value.  By we need to know if files were specified by the user.
22367 ac_need_defaults=:
22368 while test $# != 0
22369 do
22370   case $1 in
22371   --*=*)
22372     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22373     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22374     ac_shift=:
22375     ;;
22376   *)
22377     ac_option=$1
22378     ac_optarg=$2
22379     ac_shift=shift
22380     ;;
22381   esac
22382
22383   case $ac_option in
22384   # Handling of the options.
22385   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22386     ac_cs_recheck=: ;;
22387   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22388     echo "$ac_cs_version"; exit ;;
22389   --debug | --debu | --deb | --de | --d | -d )
22390     debug=: ;;
22391   --file | --fil | --fi | --f )
22392     $ac_shift
22393     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22394     ac_need_defaults=false;;
22395   --header | --heade | --head | --hea )
22396     $ac_shift
22397     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22398     ac_need_defaults=false;;
22399   --he | --h)
22400     # Conflict between --help and --header
22401     { echo "$as_me: error: ambiguous option: $1
22402 Try \`$0 --help' for more information." >&2
22403    { (exit 1); exit 1; }; };;
22404   --help | --hel | -h )
22405     echo "$ac_cs_usage"; exit ;;
22406   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22407   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22408     ac_cs_silent=: ;;
22409
22410   # This is an error.
22411   -*) { echo "$as_me: error: unrecognized option: $1
22412 Try \`$0 --help' for more information." >&2
22413    { (exit 1); exit 1; }; } ;;
22414
22415   *) ac_config_targets="$ac_config_targets $1"
22416      ac_need_defaults=false ;;
22417
22418   esac
22419   shift
22420 done
22421
22422 ac_configure_extra_args=
22423
22424 if $ac_cs_silent; then
22425   exec 6>/dev/null
22426   ac_configure_extra_args="$ac_configure_extra_args --silent"
22427 fi
22428
22429 _ACEOF
22430 cat >>$CONFIG_STATUS <<_ACEOF
22431 if \$ac_cs_recheck; then
22432   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22433   CONFIG_SHELL=$SHELL
22434   export CONFIG_SHELL
22435   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22436 fi
22437
22438 _ACEOF
22439 cat >>$CONFIG_STATUS <<\_ACEOF
22440 exec 5>>config.log
22441 {
22442   echo
22443   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22444 ## Running $as_me. ##
22445 _ASBOX
22446   echo "$ac_log"
22447 } >&5
22448
22449 _ACEOF
22450 cat >>$CONFIG_STATUS <<_ACEOF
22451 #
22452 # INIT-COMMANDS
22453 #
22454 llvm_src="${srcdir}"
22455
22456 _ACEOF
22457
22458 cat >>$CONFIG_STATUS <<\_ACEOF
22459
22460 # Handling of arguments.
22461 for ac_config_target in $ac_config_targets
22462 do
22463   case $ac_config_target in
22464     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22465     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22466     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22467     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22468     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22469     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22470     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22471     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22472     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22473     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22474     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22475     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22476     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22477     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22478     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22479     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22480     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22481     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22482     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22483     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22484     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22485     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22486     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22487     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22488     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22489     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22490     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22491
22492   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22493 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22494    { (exit 1); exit 1; }; };;
22495   esac
22496 done
22497
22498
22499 # If the user did not use the arguments to specify the items to instantiate,
22500 # then the envvar interface is used.  Set only those that are not.
22501 # We use the long form for the default assignment because of an extremely
22502 # bizarre bug on SunOS 4.1.3.
22503 if $ac_need_defaults; then
22504   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22505   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22506   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22507 fi
22508
22509 # Have a temporary directory for convenience.  Make it in the build tree
22510 # simply because there is no reason against having it here, and in addition,
22511 # creating and moving files from /tmp can sometimes cause problems.
22512 # Hook for its removal unless debugging.
22513 # Note that there is a small window in which the directory will not be cleaned:
22514 # after its creation but before its name has been assigned to `$tmp'.
22515 $debug ||
22516 {
22517   tmp=
22518   trap 'exit_status=$?
22519   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22520 ' 0
22521   trap '{ (exit 1); exit 1; }' 1 2 13 15
22522 }
22523 # Create a (secure) tmp directory for tmp files.
22524
22525 {
22526   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22527   test -n "$tmp" && test -d "$tmp"
22528 }  ||
22529 {
22530   tmp=./conf$$-$RANDOM
22531   (umask 077 && mkdir "$tmp")
22532 } ||
22533 {
22534    echo "$me: cannot create a temporary directory in ." >&2
22535    { (exit 1); exit 1; }
22536 }
22537
22538 #
22539 # Set up the sed scripts for CONFIG_FILES section.
22540 #
22541
22542 # No need to generate the scripts if there are no CONFIG_FILES.
22543 # This happens for instance when ./config.status config.h
22544 if test -n "$CONFIG_FILES"; then
22545
22546 _ACEOF
22547
22548
22549
22550 ac_delim='%!_!# '
22551 for ac_last_try in false false false false false :; do
22552   cat >conf$$subs.sed <<_ACEOF
22553 SHELL!$SHELL$ac_delim
22554 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22555 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22556 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22557 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22558 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22559 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22560 exec_prefix!$exec_prefix$ac_delim
22561 prefix!$prefix$ac_delim
22562 program_transform_name!$program_transform_name$ac_delim
22563 bindir!$bindir$ac_delim
22564 sbindir!$sbindir$ac_delim
22565 libexecdir!$libexecdir$ac_delim
22566 datarootdir!$datarootdir$ac_delim
22567 datadir!$datadir$ac_delim
22568 sysconfdir!$sysconfdir$ac_delim
22569 sharedstatedir!$sharedstatedir$ac_delim
22570 localstatedir!$localstatedir$ac_delim
22571 includedir!$includedir$ac_delim
22572 oldincludedir!$oldincludedir$ac_delim
22573 docdir!$docdir$ac_delim
22574 infodir!$infodir$ac_delim
22575 htmldir!$htmldir$ac_delim
22576 dvidir!$dvidir$ac_delim
22577 pdfdir!$pdfdir$ac_delim
22578 psdir!$psdir$ac_delim
22579 libdir!$libdir$ac_delim
22580 localedir!$localedir$ac_delim
22581 mandir!$mandir$ac_delim
22582 DEFS!$DEFS$ac_delim
22583 ECHO_C!$ECHO_C$ac_delim
22584 ECHO_N!$ECHO_N$ac_delim
22585 ECHO_T!$ECHO_T$ac_delim
22586 LIBS!$LIBS$ac_delim
22587 build_alias!$build_alias$ac_delim
22588 host_alias!$host_alias$ac_delim
22589 target_alias!$target_alias$ac_delim
22590 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22591 CC!$CC$ac_delim
22592 CFLAGS!$CFLAGS$ac_delim
22593 LDFLAGS!$LDFLAGS$ac_delim
22594 CPPFLAGS!$CPPFLAGS$ac_delim
22595 ac_ct_CC!$ac_ct_CC$ac_delim
22596 EXEEXT!$EXEEXT$ac_delim
22597 OBJEXT!$OBJEXT$ac_delim
22598 CXX!$CXX$ac_delim
22599 CXXFLAGS!$CXXFLAGS$ac_delim
22600 ac_ct_CXX!$ac_ct_CXX$ac_delim
22601 CPP!$CPP$ac_delim
22602 subdirs!$subdirs$ac_delim
22603 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22604 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22605 build!$build$ac_delim
22606 build_cpu!$build_cpu$ac_delim
22607 build_vendor!$build_vendor$ac_delim
22608 build_os!$build_os$ac_delim
22609 host!$host$ac_delim
22610 host_cpu!$host_cpu$ac_delim
22611 host_vendor!$host_vendor$ac_delim
22612 host_os!$host_os$ac_delim
22613 target!$target$ac_delim
22614 target_cpu!$target_cpu$ac_delim
22615 target_vendor!$target_vendor$ac_delim
22616 target_os!$target_os$ac_delim
22617 OS!$OS$ac_delim
22618 HOST_OS!$HOST_OS$ac_delim
22619 TARGET_OS!$TARGET_OS$ac_delim
22620 LINKALL!$LINKALL$ac_delim
22621 NOLINKALL!$NOLINKALL$ac_delim
22622 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22623 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22624 ARCH!$ARCH$ac_delim
22625 HOST_ARCH!$HOST_ARCH$ac_delim
22626 ENDIAN!$ENDIAN$ac_delim
22627 GREP!$GREP$ac_delim
22628 EGREP!$EGREP$ac_delim
22629 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22630 BUILD_CC!$BUILD_CC$ac_delim
22631 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22632 BUILD_CXX!$BUILD_CXX$ac_delim
22633 CVSBUILD!$CVSBUILD$ac_delim
22634 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22635 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22636 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22637 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22638 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22639 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22640 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22641 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22642 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22643 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22644 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22645 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22646 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22647 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22648 JIT!$JIT$ac_delim
22649 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22650 _ACEOF
22651
22652   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22653     break
22654   elif $ac_last_try; then
22655     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22656 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22657    { (exit 1); exit 1; }; }
22658   else
22659     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22660   fi
22661 done
22662
22663 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22664 if test -n "$ac_eof"; then
22665   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22666   ac_eof=`expr $ac_eof + 1`
22667 fi
22668
22669 cat >>$CONFIG_STATUS <<_ACEOF
22670 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22672 _ACEOF
22673 sed '
22674 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22675 s/^/s,@/; s/!/@,|#_!!_#|/
22676 :n
22677 t n
22678 s/'"$ac_delim"'$/,g/; t
22679 s/$/\\/; p
22680 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22681 ' >>$CONFIG_STATUS <conf$$subs.sed
22682 rm -f conf$$subs.sed
22683 cat >>$CONFIG_STATUS <<_ACEOF
22684 CEOF$ac_eof
22685 _ACEOF
22686
22687
22688 ac_delim='%!_!# '
22689 for ac_last_try in false false false false false :; do
22690   cat >conf$$subs.sed <<_ACEOF
22691 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22692 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22693 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22694 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22695 ENABLE_PIC!$ENABLE_PIC$ac_delim
22696 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22697 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22698 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22699 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22700 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22701 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22702 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22703 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22704 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22705 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22706 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22707 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22708 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22709 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22710 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22711 NM!$NM$ac_delim
22712 ifGNUmake!$ifGNUmake$ac_delim
22713 LN_S!$LN_S$ac_delim
22714 CMP!$CMP$ac_delim
22715 CP!$CP$ac_delim
22716 DATE!$DATE$ac_delim
22717 FIND!$FIND$ac_delim
22718 MKDIR!$MKDIR$ac_delim
22719 MV!$MV$ac_delim
22720 RANLIB!$RANLIB$ac_delim
22721 AR!$AR$ac_delim
22722 RM!$RM$ac_delim
22723 SED!$SED$ac_delim
22724 TAR!$TAR$ac_delim
22725 BINPWD!$BINPWD$ac_delim
22726 GRAPHVIZ!$GRAPHVIZ$ac_delim
22727 DOT!$DOT$ac_delim
22728 FDP!$FDP$ac_delim
22729 NEATO!$NEATO$ac_delim
22730 TWOPI!$TWOPI$ac_delim
22731 CIRCO!$CIRCO$ac_delim
22732 GV!$GV$ac_delim
22733 DOTTY!$DOTTY$ac_delim
22734 XDOT_PY!$XDOT_PY$ac_delim
22735 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22736 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22737 INSTALL_DATA!$INSTALL_DATA$ac_delim
22738 BZIP2!$BZIP2$ac_delim
22739 CAT!$CAT$ac_delim
22740 DOXYGEN!$DOXYGEN$ac_delim
22741 GROFF!$GROFF$ac_delim
22742 GZIPBIN!$GZIPBIN$ac_delim
22743 PDFROFF!$PDFROFF$ac_delim
22744 ZIP!$ZIP$ac_delim
22745 OCAMLC!$OCAMLC$ac_delim
22746 OCAMLOPT!$OCAMLOPT$ac_delim
22747 OCAMLDEP!$OCAMLDEP$ac_delim
22748 OCAMLDOC!$OCAMLDOC$ac_delim
22749 GAS!$GAS$ac_delim
22750 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22751 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22752 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22753 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22754 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22755 LIBADD_DL!$LIBADD_DL$ac_delim
22756 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22757 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22758 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22759 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22760 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22761 PYTHON!$PYTHON$ac_delim
22762 USE_UDIS86!$USE_UDIS86$ac_delim
22763 USE_OPROFILE!$USE_OPROFILE$ac_delim
22764 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22765 XML2CONFIG!$XML2CONFIG$ac_delim
22766 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22767 LIBXML2_INC!$LIBXML2_INC$ac_delim
22768 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22769 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22770 MMAP_FILE!$MMAP_FILE$ac_delim
22771 SHLIBEXT!$SHLIBEXT$ac_delim
22772 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22773 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22774 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22775 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22776 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22777 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22778 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22779 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22780 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22781 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22782 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22783 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22784 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22785 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22786 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22787 RPATH!$RPATH$ac_delim
22788 _ACEOF
22789
22790   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22791     break
22792   elif $ac_last_try; then
22793     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22794 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22795    { (exit 1); exit 1; }; }
22796   else
22797     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22798   fi
22799 done
22800
22801 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22802 if test -n "$ac_eof"; then
22803   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22804   ac_eof=`expr $ac_eof + 1`
22805 fi
22806
22807 cat >>$CONFIG_STATUS <<_ACEOF
22808 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22810 _ACEOF
22811 sed '
22812 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22813 s/^/s,@/; s/!/@,|#_!!_#|/
22814 :n
22815 t n
22816 s/'"$ac_delim"'$/,g/; t
22817 s/$/\\/; p
22818 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22819 ' >>$CONFIG_STATUS <conf$$subs.sed
22820 rm -f conf$$subs.sed
22821 cat >>$CONFIG_STATUS <<_ACEOF
22822 CEOF$ac_eof
22823 _ACEOF
22824
22825
22826 ac_delim='%!_!# '
22827 for ac_last_try in false false false false false :; do
22828   cat >conf$$subs.sed <<_ACEOF
22829 RDYNAMIC!$RDYNAMIC$ac_delim
22830 program_prefix!$program_prefix$ac_delim
22831 LIBOBJS!$LIBOBJS$ac_delim
22832 LTLIBOBJS!$LTLIBOBJS$ac_delim
22833 _ACEOF
22834
22835   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22836     break
22837   elif $ac_last_try; then
22838     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840    { (exit 1); exit 1; }; }
22841   else
22842     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22843   fi
22844 done
22845
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849   ac_eof=`expr $ac_eof + 1`
22850 fi
22851
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22855 _ACEOF
22856 sed '
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22859 :n
22860 t n
22861 s/'"$ac_delim"'$/,g/; t
22862 s/$/\\/; p
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22867 :end
22868 s/|#_!!_#|//g
22869 CEOF$ac_eof
22870 _ACEOF
22871
22872
22873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875 # trailing colons and then remove the whole line if VPATH becomes empty
22876 # (actually we leave an empty line to preserve line numbers).
22877 if test "x$srcdir" = x.; then
22878   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22879 s/:*\$(srcdir):*/:/
22880 s/:*\${srcdir}:*/:/
22881 s/:*@srcdir@:*/:/
22882 s/^\([^=]*=[     ]*\):*/\1/
22883 s/:*$//
22884 s/^[^=]*=[       ]*$//
22885 }'
22886 fi
22887
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 fi # test -n "$CONFIG_FILES"
22890
22891
22892 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22893 do
22894   case $ac_tag in
22895   :[FHLC]) ac_mode=$ac_tag; continue;;
22896   esac
22897   case $ac_mode$ac_tag in
22898   :[FHL]*:*);;
22899   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22900 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22901    { (exit 1); exit 1; }; };;
22902   :[FH]-) ac_tag=-:-;;
22903   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22904   esac
22905   ac_save_IFS=$IFS
22906   IFS=:
22907   set x $ac_tag
22908   IFS=$ac_save_IFS
22909   shift
22910   ac_file=$1
22911   shift
22912
22913   case $ac_mode in
22914   :L) ac_source=$1;;
22915   :[FH])
22916     ac_file_inputs=
22917     for ac_f
22918     do
22919       case $ac_f in
22920       -) ac_f="$tmp/stdin";;
22921       *) # Look for the file first in the build tree, then in the source tree
22922          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22923          # because $ac_f cannot contain `:'.
22924          test -f "$ac_f" ||
22925            case $ac_f in
22926            [\\/$]*) false;;
22927            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22928            esac ||
22929            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22930 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22931    { (exit 1); exit 1; }; };;
22932       esac
22933       ac_file_inputs="$ac_file_inputs $ac_f"
22934     done
22935
22936     # Let's still pretend it is `configure' which instantiates (i.e., don't
22937     # use $as_me), people would be surprised to read:
22938     #    /* config.h.  Generated by config.status.  */
22939     configure_input="Generated from "`IFS=:
22940           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22941     if test x"$ac_file" != x-; then
22942       configure_input="$ac_file.  $configure_input"
22943       { echo "$as_me:$LINENO: creating $ac_file" >&5
22944 echo "$as_me: creating $ac_file" >&6;}
22945     fi
22946
22947     case $ac_tag in
22948     *:-:* | *:-) cat >"$tmp/stdin";;
22949     esac
22950     ;;
22951   esac
22952
22953   ac_dir=`$as_dirname -- "$ac_file" ||
22954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955          X"$ac_file" : 'X\(//\)[^/]' \| \
22956          X"$ac_file" : 'X\(//\)$' \| \
22957          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958 echo X"$ac_file" |
22959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960             s//\1/
22961             q
22962           }
22963           /^X\(\/\/\)[^/].*/{
22964             s//\1/
22965             q
22966           }
22967           /^X\(\/\/\)$/{
22968             s//\1/
22969             q
22970           }
22971           /^X\(\/\).*/{
22972             s//\1/
22973             q
22974           }
22975           s/.*/./; q'`
22976   { as_dir="$ac_dir"
22977   case $as_dir in #(
22978   -*) as_dir=./$as_dir;;
22979   esac
22980   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22981     as_dirs=
22982     while :; do
22983       case $as_dir in #(
22984       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22985       *) as_qdir=$as_dir;;
22986       esac
22987       as_dirs="'$as_qdir' $as_dirs"
22988       as_dir=`$as_dirname -- "$as_dir" ||
22989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990          X"$as_dir" : 'X\(//\)[^/]' \| \
22991          X"$as_dir" : 'X\(//\)$' \| \
22992          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993 echo X"$as_dir" |
22994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22995             s//\1/
22996             q
22997           }
22998           /^X\(\/\/\)[^/].*/{
22999             s//\1/
23000             q
23001           }
23002           /^X\(\/\/\)$/{
23003             s//\1/
23004             q
23005           }
23006           /^X\(\/\).*/{
23007             s//\1/
23008             q
23009           }
23010           s/.*/./; q'`
23011       test -d "$as_dir" && break
23012     done
23013     test -z "$as_dirs" || eval "mkdir $as_dirs"
23014   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23015 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23016    { (exit 1); exit 1; }; }; }
23017   ac_builddir=.
23018
23019 case "$ac_dir" in
23020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23021 *)
23022   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23023   # A ".." for each directory in $ac_dir_suffix.
23024   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23025   case $ac_top_builddir_sub in
23026   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23027   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23028   esac ;;
23029 esac
23030 ac_abs_top_builddir=$ac_pwd
23031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23032 # for backward compatibility:
23033 ac_top_builddir=$ac_top_build_prefix
23034
23035 case $srcdir in
23036   .)  # We are building in place.
23037     ac_srcdir=.
23038     ac_top_srcdir=$ac_top_builddir_sub
23039     ac_abs_top_srcdir=$ac_pwd ;;
23040   [\\/]* | ?:[\\/]* )  # Absolute name.
23041     ac_srcdir=$srcdir$ac_dir_suffix;
23042     ac_top_srcdir=$srcdir
23043     ac_abs_top_srcdir=$srcdir ;;
23044   *) # Relative name.
23045     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23046     ac_top_srcdir=$ac_top_build_prefix$srcdir
23047     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23048 esac
23049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23050
23051
23052   case $ac_mode in
23053   :F)
23054   #
23055   # CONFIG_FILE
23056   #
23057
23058   case $INSTALL in
23059   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23060   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23061   esac
23062 _ACEOF
23063
23064 cat >>$CONFIG_STATUS <<\_ACEOF
23065 # If the template does not know about datarootdir, expand it.
23066 # FIXME: This hack should be removed a few years after 2.60.
23067 ac_datarootdir_hack=; ac_datarootdir_seen=
23068
23069 case `sed -n '/datarootdir/ {
23070   p
23071   q
23072 }
23073 /@datadir@/p
23074 /@docdir@/p
23075 /@infodir@/p
23076 /@localedir@/p
23077 /@mandir@/p
23078 ' $ac_file_inputs` in
23079 *datarootdir*) ac_datarootdir_seen=yes;;
23080 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23081   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23082 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23083 _ACEOF
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085   ac_datarootdir_hack='
23086   s&@datadir@&$datadir&g
23087   s&@docdir@&$docdir&g
23088   s&@infodir@&$infodir&g
23089   s&@localedir@&$localedir&g
23090   s&@mandir@&$mandir&g
23091     s&\\\${datarootdir}&$datarootdir&g' ;;
23092 esac
23093 _ACEOF
23094
23095 # Neutralize VPATH when `$srcdir' = `.'.
23096 # Shell code in configure.ac might set extrasub.
23097 # FIXME: do we really want to maintain this feature?
23098 cat >>$CONFIG_STATUS <<_ACEOF
23099   sed "$ac_vpsub
23100 $extrasub
23101 _ACEOF
23102 cat >>$CONFIG_STATUS <<\_ACEOF
23103 :t
23104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23105 s&@configure_input@&$configure_input&;t t
23106 s&@top_builddir@&$ac_top_builddir_sub&;t t
23107 s&@srcdir@&$ac_srcdir&;t t
23108 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23109 s&@top_srcdir@&$ac_top_srcdir&;t t
23110 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23111 s&@builddir@&$ac_builddir&;t t
23112 s&@abs_builddir@&$ac_abs_builddir&;t t
23113 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23114 s&@INSTALL@&$ac_INSTALL&;t t
23115 $ac_datarootdir_hack
23116 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23117
23118 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23119   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23120   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23121   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23122 which seems to be undefined.  Please make sure it is defined." >&5
23123 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23124 which seems to be undefined.  Please make sure it is defined." >&2;}
23125
23126   rm -f "$tmp/stdin"
23127   case $ac_file in
23128   -) cat "$tmp/out"; rm -f "$tmp/out";;
23129   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23130   esac
23131  ;;
23132   :H)
23133   #
23134   # CONFIG_HEADER
23135   #
23136 _ACEOF
23137
23138 # Transform confdefs.h into a sed script `conftest.defines', that
23139 # substitutes the proper values into config.h.in to produce config.h.
23140 rm -f conftest.defines conftest.tail
23141 # First, append a space to every undef/define line, to ease matching.
23142 echo 's/$/ /' >conftest.defines
23143 # Then, protect against being on the right side of a sed subst, or in
23144 # an unquoted here document, in config.status.  If some macros were
23145 # called several times there might be several #defines for the same
23146 # symbol, which is useless.  But do not sort them, since the last
23147 # AC_DEFINE must be honored.
23148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23149 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23150 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23151 # PARAMS is the parameter list in the macro definition--in most cases, it's
23152 # just an empty string.
23153 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23154 ac_dB='\\)[      (].*,\\1define\\2'
23155 ac_dC=' '
23156 ac_dD=' ,'
23157
23158 uniq confdefs.h |
23159   sed -n '
23160         t rset
23161         :rset
23162         s/^[     ]*#[    ]*define[       ][      ]*//
23163         t ok
23164         d
23165         :ok
23166         s/[\\&,]/\\&/g
23167         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23168         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23169   ' >>conftest.defines
23170
23171 # Remove the space that was appended to ease matching.
23172 # Then replace #undef with comments.  This is necessary, for
23173 # example, in the case of _POSIX_SOURCE, which is predefined and required
23174 # on some systems where configure will not decide to define it.
23175 # (The regexp can be short, since the line contains either #define or #undef.)
23176 echo 's/ $//
23177 s,^[     #]*u.*,/* & */,' >>conftest.defines
23178
23179 # Break up conftest.defines:
23180 ac_max_sed_lines=50
23181
23182 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23183 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23184 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23185 # et cetera.
23186 ac_in='$ac_file_inputs'
23187 ac_out='"$tmp/out1"'
23188 ac_nxt='"$tmp/out2"'
23189
23190 while :
23191 do
23192   # Write a here document:
23193     cat >>$CONFIG_STATUS <<_ACEOF
23194     # First, check the format of the line:
23195     cat >"\$tmp/defines.sed" <<\\CEOF
23196 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23197 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23198 b
23199 :def
23200 _ACEOF
23201   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23202   echo 'CEOF
23203     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23204   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23205   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23206   grep . conftest.tail >/dev/null || break
23207   rm -f conftest.defines
23208   mv conftest.tail conftest.defines
23209 done
23210 rm -f conftest.defines conftest.tail
23211
23212 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23214   if test x"$ac_file" != x-; then
23215     echo "/* $configure_input  */" >"$tmp/config.h"
23216     cat "$ac_result" >>"$tmp/config.h"
23217     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23218       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23219 echo "$as_me: $ac_file is unchanged" >&6;}
23220     else
23221       rm -f $ac_file
23222       mv "$tmp/config.h" $ac_file
23223     fi
23224   else
23225     echo "/* $configure_input  */"
23226     cat "$ac_result"
23227   fi
23228   rm -f "$tmp/out12"
23229  ;;
23230
23231   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23232 echo "$as_me: executing $ac_file commands" >&6;}
23233  ;;
23234   esac
23235
23236
23237   case $ac_file$ac_mode in
23238     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23239    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23240     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23241    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23242     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23243    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23244     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23245    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23246     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23247    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23248     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23249    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23250     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23251    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23252     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23253    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23254     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23255    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23256     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23257    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23258     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23259    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23260     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23261    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23262     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23263    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23264
23265   esac
23266 done # for ac_tag
23267
23268
23269 { (exit 0); exit 0; }
23270 _ACEOF
23271 chmod +x $CONFIG_STATUS
23272 ac_clean_files=$ac_clean_files_save
23273
23274
23275 # configure is writing to config.log, and then calls config.status.
23276 # config.status does its own redirection, appending to config.log.
23277 # Unfortunately, on DOS this fails, as config.log is still kept open
23278 # by configure, so config.status won't be able to write to it; its
23279 # output is simply discarded.  So we exec the FD to /dev/null,
23280 # effectively closing config.log, so it can be properly (re)opened and
23281 # appended to by config.status.  When coming back to configure, we
23282 # need to make the FD available again.
23283 if test "$no_create" != yes; then
23284   ac_cs_success=:
23285   ac_config_status_args=
23286   test "$silent" = yes &&
23287     ac_config_status_args="$ac_config_status_args --quiet"
23288   exec 5>/dev/null
23289   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23290   exec 5>>config.log
23291   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23292   # would make configure fail if this is the last instruction.
23293   $ac_cs_success || { (exit 1); exit 1; }
23294 fi
23295
23296 #
23297 # CONFIG_SUBDIRS section.
23298 #
23299 if test "$no_recursion" != yes; then
23300
23301   # Remove --cache-file and --srcdir arguments so they do not pile up.
23302   ac_sub_configure_args=
23303   ac_prev=
23304   eval "set x $ac_configure_args"
23305   shift
23306   for ac_arg
23307   do
23308     if test -n "$ac_prev"; then
23309       ac_prev=
23310       continue
23311     fi
23312     case $ac_arg in
23313     -cache-file | --cache-file | --cache-fil | --cache-fi \
23314     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23315       ac_prev=cache_file ;;
23316     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23317     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23318     | --c=*)
23319       ;;
23320     --config-cache | -C)
23321       ;;
23322     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23323       ac_prev=srcdir ;;
23324     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23325       ;;
23326     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23327       ac_prev=prefix ;;
23328     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23329       ;;
23330     *)
23331       case $ac_arg in
23332       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23333       esac
23334       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23335     esac
23336   done
23337
23338   # Always prepend --prefix to ensure using the same prefix
23339   # in subdir configurations.
23340   ac_arg="--prefix=$prefix"
23341   case $ac_arg in
23342   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23343   esac
23344   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23345
23346   ac_popdir=`pwd`
23347   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23348
23349     # Do not complain, so a configure script can configure whichever
23350     # parts of a large source tree are present.
23351     test -d "$srcdir/$ac_dir" || continue
23352
23353     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23354     echo "$as_me:$LINENO: $ac_msg" >&5
23355     echo "$ac_msg" >&6
23356     { as_dir="$ac_dir"
23357   case $as_dir in #(
23358   -*) as_dir=./$as_dir;;
23359   esac
23360   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23361     as_dirs=
23362     while :; do
23363       case $as_dir in #(
23364       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23365       *) as_qdir=$as_dir;;
23366       esac
23367       as_dirs="'$as_qdir' $as_dirs"
23368       as_dir=`$as_dirname -- "$as_dir" ||
23369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23370          X"$as_dir" : 'X\(//\)[^/]' \| \
23371          X"$as_dir" : 'X\(//\)$' \| \
23372          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23373 echo X"$as_dir" |
23374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23375             s//\1/
23376             q
23377           }
23378           /^X\(\/\/\)[^/].*/{
23379             s//\1/
23380             q
23381           }
23382           /^X\(\/\/\)$/{
23383             s//\1/
23384             q
23385           }
23386           /^X\(\/\).*/{
23387             s//\1/
23388             q
23389           }
23390           s/.*/./; q'`
23391       test -d "$as_dir" && break
23392     done
23393     test -z "$as_dirs" || eval "mkdir $as_dirs"
23394   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23395 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23396    { (exit 1); exit 1; }; }; }
23397     ac_builddir=.
23398
23399 case "$ac_dir" in
23400 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23401 *)
23402   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23403   # A ".." for each directory in $ac_dir_suffix.
23404   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23405   case $ac_top_builddir_sub in
23406   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23407   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23408   esac ;;
23409 esac
23410 ac_abs_top_builddir=$ac_pwd
23411 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23412 # for backward compatibility:
23413 ac_top_builddir=$ac_top_build_prefix
23414
23415 case $srcdir in
23416   .)  # We are building in place.
23417     ac_srcdir=.
23418     ac_top_srcdir=$ac_top_builddir_sub
23419     ac_abs_top_srcdir=$ac_pwd ;;
23420   [\\/]* | ?:[\\/]* )  # Absolute name.
23421     ac_srcdir=$srcdir$ac_dir_suffix;
23422     ac_top_srcdir=$srcdir
23423     ac_abs_top_srcdir=$srcdir ;;
23424   *) # Relative name.
23425     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23426     ac_top_srcdir=$ac_top_build_prefix$srcdir
23427     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23428 esac
23429 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23430
23431
23432     cd "$ac_dir"
23433
23434     # Check for guested configure; otherwise get Cygnus style configure.
23435     if test -f "$ac_srcdir/configure.gnu"; then
23436       ac_sub_configure=$ac_srcdir/configure.gnu
23437     elif test -f "$ac_srcdir/configure"; then
23438       ac_sub_configure=$ac_srcdir/configure
23439     elif test -f "$ac_srcdir/configure.in"; then
23440       # This should be Cygnus configure.
23441       ac_sub_configure=$ac_aux_dir/configure
23442     else
23443       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23445       ac_sub_configure=
23446     fi
23447
23448     # The recursion is here.
23449     if test -n "$ac_sub_configure"; then
23450       # Make the cache file name correct relative to the subdirectory.
23451       case $cache_file in
23452       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23453       *) # Relative name.
23454         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23455       esac
23456
23457       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23458 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23459       # The eval makes quoting arguments work.
23460       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23461            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23462         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23463 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23464    { (exit 1); exit 1; }; }
23465     fi
23466
23467     cd "$ac_popdir"
23468   done
23469 fi
23470