]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - configure
Get rid of the Dis/EnableDebugLocations() API.
[opencl/llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
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
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
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
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
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"
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
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
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='+ '
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
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
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
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'`
150 # CDPATH.
151 $as_unset CDPATH
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
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
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
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
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
275 (as_func_return () {
276   (exit $1)
278 as_func_success () {
279   as_func_return 0
281 as_func_failure () {
282   as_func_return 1
284 as_func_ret_success () {
285   return 0
287 as_func_ret_failure () {
288   return 1
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
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
323 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
331 _ASEOF
332 }; then
333   break
334 fi
336 fi
338       done
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
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
358 fi
360 fi
364 (eval "as_func_return () {
365   (exit \$1)
367 as_func_success () {
368   as_func_return 0
370 as_func_failure () {
371   as_func_return 1
373 as_func_ret_success () {
374   return 0
376 as_func_ret_failure () {
377   return 1
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
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
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
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" || {
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; }; }
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
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
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
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
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
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
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
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'"
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'"
541 exec 7<&0 </dev/null 6>&1
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`
549 # Initializations.
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}
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
896   # Accept the important Cygnus configure options, so we can diagnose typos.
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
919   --config-cache | -C)
920     cache_file=config.cache ;;
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1208   esac
1209 done
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1389   cat <<\_ACEOF
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-libffi         Check for the presence of libffi (default is NO)
1457   --enable-ltdl-install   install libltdl
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-optimize-option  Select the compiler options to use for optimized
1463                           builds
1464   --with-extra-options    Specify additional options to compile LLVM with
1465   --with-extra-ld-options Specify additional options to link LLVM with
1466   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1467                           is stdlib)
1468   --with-clang-srcdir     Directory to the out-of-tree Clang source
1469   --with-clang-resource-dir
1470                           Relative directory from the Clang binary for
1471                           resource files
1472   --with-c-include-dirs   Colon separated list of directories clang will
1473                           search for headers
1474   --with-gcc-toolchain    Directory where gcc is installed.
1475   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1476   --with-binutils-include Specify path to binutils/include/ containing
1477                           plugin-api.h file for gold plugin.
1478   --with-bug-report-url   Specify the URL where bug reports should be
1479                           submitted (default=http://llvm.org/bugs/)
1480   --with-internal-prefix  Installation directory for internal files
1481   --with-python           path to python
1482   --with-udis86=<path>    Use udis86 external x86 disassembler library
1483   --with-oprofile=<prefix>
1484                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1485   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CPP         C preprocessor
1498   CXXCPP      C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574   exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60.  Invocation command line was
1583   $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1602 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1603 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1606 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1607 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1608 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644   for ac_arg
1645   do
1646     case $ac_arg in
1647     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649     | -silent | --silent | --silen | --sile | --sil)
1650       continue ;;
1651     *\'*)
1652       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653     esac
1654     case $ac_pass in
1655     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656     2)
1657       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658       if test $ac_must_keep_next = true; then
1659         ac_must_keep_next=false # Got value, back to normal.
1660       else
1661         case $ac_arg in
1662           *=* | --config-cache | -C | -disable-* | --disable-* \
1663           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665           | -with-* | --with-* | -without-* | --without-* | --x)
1666             case "$ac_configure_args0 " in
1667               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668             esac
1669             ;;
1670           -* ) ac_must_keep_next=true ;;
1671         esac
1672       fi
1673       ac_configure_args="$ac_configure_args '$ac_arg'"
1674       ;;
1675     esac
1676   done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log.  We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687   # Save into config.log some information that might help in debugging.
1688   {
1689     echo
1691     cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696     echo
1697     # The following way of writing the cache mishandles newlines in values,
1699   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700     eval ac_val=\$$ac_var
1701     case $ac_val in #(
1702     *${as_nl}*)
1703       case $ac_var in #(
1704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706       esac
1707       case $ac_var in #(
1708       _ | IFS | as_nl) ;; #(
1709       *) $as_unset $ac_var ;;
1710       esac ;;
1711     esac
1712   done
1713   (set) 2>&1 |
1714     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715     *${as_nl}ac_space=\ *)
1716       sed -n \
1717         "s/'\''/'\''\\\\'\'''\''/g;
1718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719       ;; #(
1720     *)
1721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722       ;;
1723     esac |
1724     sort
1726     echo
1728     cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1744     if test -n "$ac_subst_files"; then
1745       cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750       echo
1751       for ac_var in $ac_subst_files
1752       do
1753         eval ac_val=\$$ac_var
1754         case $ac_val in
1755         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756         esac
1757         echo "$ac_var='\''$ac_val'\''"
1758       done | sort
1759       echo
1760     fi
1762     if test -s confdefs.h; then
1763       cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768       echo
1769       cat confdefs.h
1770       echo
1771     fi
1772     test "$ac_signal" != 0 &&
1773       echo "$as_me: caught signal $ac_signal"
1774     echo "$as_me: exit $exit_status"
1775   } >&5
1776   rm -f core *.core core.conftest.* &&
1777     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778     exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818   set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822   set x "$ac_default_prefix/share/config.site" \
1823         "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828   if test -r "$ac_site_file"; then
1829     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831     sed 's/^/| /' "$ac_site_file" >&5
1832     . "$ac_site_file"
1833   fi
1834 done
1836 if test -r "$cache_file"; then
1837   # Some versions of bash will fail to source /dev/null (special
1838   # files actually), so we avoid doing that.
1839   if test -f "$cache_file"; then
1840     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842     case $cache_file in
1843       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844       *)                      . "./$cache_file";;
1845     esac
1846   fi
1847 else
1848   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850   >$cache_file
1851 fi
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858   eval ac_new_set=\$ac_env_${ac_var}_set
1859   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860   eval ac_new_val=\$ac_env_${ac_var}_value
1861   case $ac_old_set,$ac_new_set in
1862     set,)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,set)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,);;
1871     *)
1872       if test "x$ac_old_val" != "x$ac_new_val"; then
1873         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1876 echo "$as_me:   former value:  $ac_old_val" >&2;}
1877         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1878 echo "$as_me:   current value: $ac_new_val" >&2;}
1879         ac_cache_corrupted=:
1880       fi;;
1881   esac
1882   # Pass precious variables to config.status.
1883   if test "$ac_new_set" = set; then
1884     case $ac_new_val in
1885     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     *) ac_arg=$ac_var=$ac_new_val ;;
1887     esac
1888     case " $ac_configure_args " in
1889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891     esac
1892   fi
1893 done
1894 if $ac_cache_corrupted; then
1895   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1936 _ACEOF
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1941 _ACEOF
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1952 ac_aux_dir=
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984 if test ${srcdir} != "." ; then
1985   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988    { (exit 1); exit 1; }; }
1989   fi
1990 fi
1992 ${CFLAGS=}
1993 ${CXXFLAGS=}
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001   for ac_prog in clang llvm-gcc gcc
2002   do
2003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2040     test -n "$CC" && break
2041   done
2042 fi
2043 if test -z "$CC"; then
2044   ac_ct_CC=$CC
2045   for ac_prog in clang llvm-gcc gcc
2046 do
2047   # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_ac_ct_CC="$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2084   test -n "$ac_ct_CC" && break
2085 done
2087   if test "x$ac_ct_CC" = x; then
2088     CC=""
2089   else
2090     case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100     CC=$ac_ct_CC
2101   fi
2102 fi
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120   (eval "$ac_compiler --version >&5") 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130   (eval "$ac_compiler -v >&5") 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler -V >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2152 int
2153 main ()
2156   ;
2157   return 0;
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort.  b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions.  Remove them first so a
2176 # subsequent execution test works.
2177 ac_rmfiles=
2178 for ac_file in $ac_files
2179 do
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183   esac
2184 done
2185 rm -f $ac_rmfiles
2187 if { (ac_try="$ac_link_default"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193   (eval "$ac_link_default") 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2201 # Autoconf.
2202 for ac_file in $ac_files
2203 do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207         ;;
2208     [ab].out )
2209         # We found the default executable, but exeext='' is most
2210         # certainly right.
2211         break;;
2212     *.* )
2213         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214         then :; else
2215            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         fi
2217         # We set ac_cv_exeext here because the later test for it is not
2218         # safe: cross compilers may not add the suffix if given an `-o'
2219         # argument, so we may need to know it at that point already.
2220         # Even if this section looks crufty: it has the advantage of
2221         # actually working.
2222         break;;
2223     * )
2224         break;;
2225   esac
2226 done
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237    { (exit 77); exit 77; }; }
2238 fi
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2244 # Check that the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251   if { ac_try='./$ac_file'
2252   { (case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_try") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_link") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 # `rm'.
2304 for ac_file in conftest.exe conftest conftest.*; do
2305   test -f "$ac_file" || continue
2306   case $ac_file in
2307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309           break;;
2310     * ) break;;
2311   esac
2312 done
2313 else
2314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2340 int
2341 main ()
2344   ;
2345   return 0;
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355   (eval "$ac_compile") 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   for ac_file in conftest.o conftest.obj conftest.*; do
2360   test -f "$ac_file" || continue;
2361   case $ac_file in
2362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364        break;;
2365   esac
2366 done
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2396 int
2397 main ()
2399 #ifndef __GNUC__
2400        choke me
2401 #endif
2403   ;
2404   return 0;
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_compile") 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   ac_compiler_gnu=yes
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446         ac_compiler_gnu=no
2447 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 fi
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   ac_save_c_werror_flag=$ac_c_werror_flag
2464    ac_c_werror_flag=yes
2465    ac_cv_prog_cc_g=no
2466    CFLAGS="-g"
2467    cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2474 int
2475 main ()
2478   ;
2479   return 0;
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_compile") 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497   { (case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_try") 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_g=yes
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521         CFLAGS=""
2522       cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2529 int
2530 main ()
2533   ;
2534   return 0;
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compile") 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   :
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576         ac_c_werror_flag=$ac_save_c_werror_flag
2577          CFLAGS="-g"
2578          cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2585 int
2586 main ()
2589   ;
2590   return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_compile") 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613   (eval "$ac_try") 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_prog_cc_g=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2633 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642    ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647   CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649   if test "$GCC" = yes; then
2650     CFLAGS="-g -O2"
2651   else
2652     CFLAGS="-g"
2653   fi
2654 else
2655   if test "$GCC" = yes; then
2656     CFLAGS="-O2"
2657   else
2658     CFLAGS=
2659   fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2685   return p[i];
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2698    function prototypes and stuff, but not '\xHH' hex character constants.
2699    These don't provoke an error unfortunately, instead are silently treated
2700    as 'x'.  The following induces an error, until -std is added to get
2701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2702    array size at least.  It's necessary to write '\x00'==0 to get something
2703    that's true only with -std.  */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707    inside strings and character constants.  */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2721   ;
2722   return 0;
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744   { (case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_prog_cc_c89=$ac_arg
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2769 fi
2771 rm -f core conftest.err conftest.$ac_objext
2772   test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 done
2774 rm -f conftest.$ac_ext
2775 CC=$ac_save_CC
2777 fi
2778 # AC_CACHE_VAL
2779 case "x$ac_cv_prog_cc_c89" in
2780   x)
2781     { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2783   xno)
2784     { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2786   *)
2787     CC="$CC $ac_cv_prog_cc_c89"
2788     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 esac
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 ac_ext=cpp
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805   if test -n "$CCC"; then
2806     CXX=$CCC
2807   else
2808     if test -n "$ac_tool_prefix"; then
2809   for ac_prog in clang++ llvm-g++ g++
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$CXX"; then
2819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2836 fi
2837 fi
2838 CXX=$ac_cv_prog_CXX
2839 if test -n "$CXX"; then
2840   { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2848     test -n "$CXX" && break
2849   done
2850 fi
2851 if test -z "$CXX"; then
2852   ac_ct_CXX=$CXX
2853   for ac_prog in clang++ llvm-g++ g++
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CXX"; then
2863   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_ac_ct_CXX="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2880 fi
2881 fi
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2892   test -n "$ac_ct_CXX" && break
2893 done
2895   if test "x$ac_ct_CXX" = x; then
2896     CXX="g++"
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet.  If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet.  If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908     CXX=$ac_ct_CXX
2909   fi
2910 fi
2912   fi
2913 fi
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler --version >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler -v >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -V >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2960 int
2961 main ()
2963 #ifndef __GNUC__
2964        choke me
2965 #endif
2967   ;
2968   return 0;
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986   { (case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_try") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_try") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   ac_compiler_gnu=yes
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010         ac_compiler_gnu=no
3011 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028    ac_cxx_werror_flag=yes
3029    ac_cv_prog_cxx_g=no
3030    CXXFLAGS="-g"
3031    cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3038 int
3039 main ()
3042   ;
3043   return 0;
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_compile") 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_prog_cxx_g=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085         CXXFLAGS=""
3086       cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3093 int
3094 main ()
3097   ;
3098   return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141          CXXFLAGS="-g"
3142          cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3149 int
3150 main ()
3153   ;
3154   return 0;
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_try") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; } &&
3181          { ac_try='test -s conftest.$ac_objext'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3197 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269                      Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   :
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299   # Broken: fails on valid input.
3300 continue
3301 fi
3303 rm -f conftest.err conftest.$ac_ext
3305   # OK, works on sane cases.  Now check whether nonexistent headers
3306   # can be detected and how.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   # Broken: success on invalid input.
3339 continue
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344   # Passes both tests.
3345 ac_preproc_ok=:
3346 break
3347 fi
3349 rm -f conftest.err conftest.$ac_ext
3351 done
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3355   break
3356 fi
3358     done
3359     ac_cv_prog_CPP=$CPP
3361 fi
3362   CPP=$ac_cv_prog_CPP
3363 else
3364   ac_cv_prog_CPP=$CPP
3365 fi
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371   # Use a header file that comes with gcc, so configuring glibc
3372   # with a fresh cross-compiler works.
3373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374   # <limits.h> exists even on freestanding compilers.
3375   # On the NeXT, cc -E runs the code through the compiler's parser,
3376   # not just through cpp. "Syntax error" is here to catch this case.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388                      Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   :
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418   # Broken: fails on valid input.
3419 continue
3420 fi
3422 rm -f conftest.err conftest.$ac_ext
3424   # OK, works on sane cases.  Now check whether nonexistent headers
3425   # can be detected and how.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   # Broken: success on invalid input.
3458 continue
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463   # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3468 rm -f conftest.err conftest.$ac_ext
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3474   :
3475 else
3476   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test "$CXX" = "clang++" ; then
3491   { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493   ac_ext=cpp
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <limits>
3507 #if __has_include (<cxxabi.h>)
3508 #include <cxxabi.h>
3509 #endif
3510 #if __has_include (<unwind.h>)
3511 #include <unwind.h>
3512 #endif
3514 int
3515 main ()
3518   ;
3519   return 0;
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_try") 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3557   { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565   { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3568 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3569    { (exit 1); exit 1; }; }
3571 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574   ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 fi
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585   subdirs="$subdirs projects/llvm-gcc"
3587 fi
3589 if test -d ${srcdir}/projects/test-suite ; then
3590   subdirs="$subdirs projects/test-suite"
3592 fi
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595   subdirs="$subdirs projects/llvm-test"
3597 fi
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600   subdirs="$subdirs projects/poolalloc"
3602 fi
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605   subdirs="$subdirs projects/llvm-poolalloc"
3607 fi
3609 for i in `ls ${srcdir}/projects`
3610 do
3611   if test -d ${srcdir}/projects/${i} ; then
3612     case ${i} in
3613       sample)       subdirs="$subdirs projects/sample"
3614     ;;
3615       privbracket)  subdirs="$subdirs projects/privbracket"
3616  ;;
3617       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618  ;;
3619       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3620 ;;
3621       llvm-java)    subdirs="$subdirs projects/llvm-java"
3622  ;;
3623       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3624    ;;
3625       safecode)     subdirs="$subdirs projects/safecode"
3626  ;;
3627       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3628  ;;
3629       compiler-rt)       ;;
3630       llvm-gcc)       ;;
3631       test-suite)     ;;
3632       llvm-test)      ;;
3633       poolalloc)      ;;
3634       llvm-poolalloc) ;;
3635       *)
3636         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638         ;;
3639     esac
3640   fi
3641 done
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645   enableval=$enable_polly;
3646 else
3647   enableval=default
3648 fi
3650 case "$enableval" in
3651   yes) ENABLE_POLLY=1
3652  ;;
3653   no)  ENABLE_POLLY=0
3654  ;;
3655   default) ENABLE_POLLY=1
3656  ;;
3657   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659    { (exit 1); exit 1; }; } ;;
3660 esac
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664   LLVM_HAS_POLLY=1
3666   subdirs="$subdirs tools/polly"
3668 fi
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675    { (exit 1); exit 1; }; }
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688    { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692    { (exit 1); exit 1; }; }
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701    { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test "x$host_alias" = x; then
3723   ac_cv_host=$ac_cv_build
3724 else
3725   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738    { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test "x$target_alias" = x; then
3760   ac_cv_target=$ac_cv_host
3761 else
3762   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775    { (exit 1); exit 1; }; };;
3776 esac
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_target
3780 shift
3781 target_cpu=$1
3782 target_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 target_os=$*
3787 IFS=$ac_save_IFS
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794   test "$program_prefix$program_suffix$program_transform_name" = \
3795     NONENONEs,x,x, &&
3796   program_prefix=${target_alias}-
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   case $host in
3804   *-*-aix*)
3805     llvm_cv_link_all_option="-Wl,--whole-archive"
3806     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807     llvm_cv_os_type="AIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-irix*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="IRIX"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-cygwin*)
3815     llvm_cv_link_all_option="-Wl,--whole-archive"
3816     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817     llvm_cv_os_type="Cygwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-darwin*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Darwin"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-minix*)
3825     llvm_cv_link_all_option="-Wl,-all_load"
3826     llvm_cv_no_link_all_option="-Wl,-noall_load"
3827     llvm_cv_os_type="Minix"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-freebsd*)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="FreeBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-kfreebsd-gnu)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="GNU/kFreeBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-openbsd*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="OpenBSD"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-netbsd*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="NetBSD"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-dragonfly*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="DragonFly"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-hpux*)
3855     llvm_cv_link_all_option="-Wl,--whole-archive"
3856     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857     llvm_cv_os_type="HP-UX"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-interix*)
3860     llvm_cv_link_all_option="-Wl,--whole-archive"
3861     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862     llvm_cv_os_type="Interix"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-linux*)
3865     llvm_cv_link_all_option="-Wl,--whole-archive"
3866     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867     llvm_cv_os_type="Linux"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-gnu*)
3870     llvm_cv_link_all_option="-Wl,--whole-archive"
3871     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872     llvm_cv_os_type="GNU"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-solaris*)
3875     llvm_cv_link_all_option="-Wl,-z,allextract"
3876     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877     llvm_cv_os_type="SunOS"
3878     llvm_cv_platform_type="Unix" ;;
3879   *-*-auroraux*)
3880     llvm_cv_link_all_option="-Wl,-z,allextract"
3881     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882     llvm_cv_os_type="AuroraUX"
3883     llvm_cv_platform_type="Unix" ;;
3884   *-*-win32*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="Win32"
3888     llvm_cv_platform_type="Win32" ;;
3889   *-*-mingw*)
3890     llvm_cv_link_all_option="-Wl,--whole-archive"
3891     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892     llvm_cv_os_type="MingW"
3893     llvm_cv_platform_type="Win32" ;;
3894   *-*-haiku*)
3895     llvm_cv_link_all_option="-Wl,--whole-archive"
3896     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897     llvm_cv_os_type="Haiku"
3898     llvm_cv_platform_type="Unix" ;;
3899   *-unknown-eabi*)
3900     llvm_cv_link_all_option="-Wl,--whole-archive"
3901     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902     llvm_cv_os_type="Freestanding"
3903     llvm_cv_platform_type="Unix" ;;
3904   *-unknown-elf*)
3905     llvm_cv_link_all_option="-Wl,--whole-archive"
3906     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907     llvm_cv_os_type="Freestanding"
3908     llvm_cv_platform_type="Unix" ;;
3909   *)
3910     llvm_cv_link_all_option=""
3911     llvm_cv_no_link_all_option=""
3912     llvm_cv_os_type="Unknown"
3913     llvm_cv_platform_type="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $target in
3925   *-*-aix*)
3926     llvm_cv_target_os_type="AIX" ;;
3927   *-*-irix*)
3928     llvm_cv_target_os_type="IRIX" ;;
3929   *-*-cygwin*)
3930     llvm_cv_target_os_type="Cygwin" ;;
3931   *-*-darwin*)
3932     llvm_cv_target_os_type="Darwin" ;;
3933   *-*-minix*)
3934     llvm_cv_target_os_type="Minix" ;;
3935   *-*-freebsd*)
3936     llvm_cv_target_os_type="FreeBSD" ;;
3937   *-*-kfreebsd-gnu)
3938     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3939   *-*-openbsd*)
3940     llvm_cv_target_os_type="OpenBSD" ;;
3941   *-*-netbsd*)
3942     llvm_cv_target_os_type="NetBSD" ;;
3943   *-*-dragonfly*)
3944     llvm_cv_target_os_type="DragonFly" ;;
3945   *-*-hpux*)
3946     llvm_cv_target_os_type="HP-UX" ;;
3947   *-*-interix*)
3948     llvm_cv_target_os_type="Interix" ;;
3949   *-*-linux*)
3950     llvm_cv_target_os_type="Linux" ;;
3951   *-*-gnu*)
3952     llvm_cv_target_os_type="GNU" ;;
3953   *-*-solaris*)
3954     llvm_cv_target_os_type="SunOS" ;;
3955   *-*-auroraux*)
3956     llvm_cv_target_os_type="AuroraUX" ;;
3957   *-*-win32*)
3958     llvm_cv_target_os_type="Win32" ;;
3959   *-*-mingw*)
3960     llvm_cv_target_os_type="MingW" ;;
3961   *-*-haiku*)
3962     llvm_cv_target_os_type="Haiku" ;;
3963   *-*-rtems*)
3964     llvm_cv_target_os_type="RTEMS" ;;
3965   *-*-nacl*)
3966     llvm_cv_target_os_type="NativeClient" ;;
3967   *-unknown-eabi*)
3968     llvm_cv_target_os_type="Freestanding" ;;
3969   *)
3970     llvm_cv_target_os_type="Unknown" ;;
3971 esac
3972 fi
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979    { (exit 1); exit 1; }; }
3980 fi
3982 OS=$llvm_cv_os_type
3984 HOST_OS=$llvm_cv_os_type
3986 TARGET_OS=$llvm_cv_target_os_type
3989 LINKALL=$llvm_cv_link_all_option
3991 NOLINKALL=$llvm_cv_no_link_all_option
3994 case $llvm_cv_platform_type in
3995   Unix)
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
3999 _ACEOF
4001     LLVM_ON_UNIX=1
4003     LLVM_ON_WIN32=0
4005     ;;
4006   Win32)
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4010 _ACEOF
4012     LLVM_ON_UNIX=0
4014     LLVM_ON_WIN32=1
4016     ;;
4017 esac
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   case $target in
4025   i?86-*)                 llvm_cv_target_arch="x86" ;;
4026   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4027   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4028   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4029   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4030   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4031   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4032   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4033   xcore-*)                llvm_cv_target_arch="XCore" ;;
4034   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4035   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4036   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4037   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4038   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4039   *)                      llvm_cv_target_arch="Unknown" ;;
4040 esac
4041 fi
4042 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4043 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045 if test "$llvm_cv_target_arch" = "Unknown" ; then
4046   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4047 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4048 fi
4050 case "$llvm_cv_target_arch" in
4051     x86)     LLVM_NATIVE_ARCH="X86" ;;
4052     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4053     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4054 esac
4056 ARCH=$llvm_cv_target_arch
4059 case $host in
4060   i?86-*)                 host_arch="x86" ;;
4061   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4062   sparc*-*)               host_arch="Sparc" ;;
4063   powerpc*-*)             host_arch="PowerPC" ;;
4064   arm*-*)                 host_arch="ARM" ;;
4065   aarch64*-*)             host_arch="AArch64" ;;
4066   mips-* | mips64-*)      host_arch="Mips" ;;
4067   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4068   xcore-*)                host_arch="XCore" ;;
4069   msp430-*)               host_arch="MSP430" ;;
4070   hexagon-*)              host_arch="Hexagon" ;;
4071   mblaze-*)               host_arch="MBlaze" ;;
4072   s390x-*)                host_arch="SystemZ" ;;
4073   *)                      host_arch="Unknown" ;;
4074 esac
4076 if test "$host_arch" = "Unknown" ; then
4077   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 fi
4081 HOST_ARCH=$host_arch
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_prog in grep ggrep; do
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108     # Check for GNU ac_path_GREP and select it if it is found.
4109   # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 *)
4114   ac_count=0
4115   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116   while :
4117   do
4118     cat "conftest.in" "conftest.in" >"conftest.tmp"
4119     mv "conftest.tmp" "conftest.in"
4120     cp "conftest.in" "conftest.nl"
4121     echo 'GREP' >> "conftest.nl"
4122     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124     ac_count=`expr $ac_count + 1`
4125     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126       # Best one so far, save it but keep looking for a better one
4127       ac_cv_path_GREP="$ac_path_GREP"
4128       ac_path_GREP_max=$ac_count
4129     fi
4130     # 10*(2^10) chars as input seems more than enough
4131     test $ac_count -gt 10 && break
4132   done
4133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4137     $ac_path_GREP_found && break 3
4138   done
4139 done
4141 done
4142 IFS=$as_save_IFS
4145 fi
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151    { (exit 1); exit 1; }; }
4152 fi
4154 else
4155   ac_cv_path_GREP=$GREP
4156 fi
4159 fi
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162  GREP="$ac_cv_path_GREP"
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171    then ac_cv_path_EGREP="$GREP -E"
4172    else
4173      # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_prog in egrep; do
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190     # Check for GNU ac_path_EGREP and select it if it is found.
4191   # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196   ac_count=0
4197   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     echo 'EGREP' >> "conftest.nl"
4204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     ac_count=`expr $ac_count + 1`
4207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_EGREP="$ac_path_EGREP"
4210       ac_path_EGREP_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4219     $ac_path_EGREP_found && break 3
4220   done
4221 done
4223 done
4224 IFS=$as_save_IFS
4227 fi
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233    { (exit 1); exit 1; }; }
4234 fi
4236 else
4237   ac_cv_path_EGREP=$EGREP
4238 fi
4241    fi
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245  EGREP="$ac_cv_path_EGREP"
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <stdlib.h>
4260 #include <stdarg.h>
4261 #include <string.h>
4262 #include <float.h>
4264 int
4265 main ()
4268   ;
4269   return 0;
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_compile") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } &&
4286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_header_stdc=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311         ac_cv_header_stdc=no
4312 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 if test $ac_cv_header_stdc = yes; then
4317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <string.h>
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "memchr" >/dev/null 2>&1; then
4329   :
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4335 fi
4337 if test $ac_cv_header_stdc = yes; then
4338   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #include <stdlib.h>
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349   $EGREP "free" >/dev/null 2>&1; then
4350   :
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4356 fi
4358 if test $ac_cv_header_stdc = yes; then
4359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360   if test "$cross_compiling" = yes; then
4361   :
4362 else
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <ctype.h>
4370 #include <stdlib.h>
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374 #else
4375 # define ISLOWER(c) \
4376                    (('a' <= (c) && (c) <= 'i') \
4377                      || ('j' <= (c) && (c) <= 'r') \
4378                      || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #endif
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383 int
4384 main ()
4386   int i;
4387   for (i = 0; i < 256; i++)
4388     if (XOR (islower (i), ISLOWER (i))
4389         || toupper (i) != TOUPPER (i))
4390       return 2;
4391   return 0;
4393 _ACEOF
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_link") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405   { (case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   :
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 ( exit $ac_status )
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4427 fi
4428 fi
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4435 _ACEOF
4437 fi
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450                   inttypes.h stdint.h unistd.h
4451 do
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 $ac_includes_default
4466 #include <$ac_header>
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   eval "$as_ac_Header=yes"
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507         eval "$as_ac_Header=no"
4508 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513                { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4520 fi
4522 done
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4540 int
4541 main ()
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544  bogus endian macros
4545 #endif
4547   ;
4548   return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_compile") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4595 int
4596 main ()
4598 #if BYTE_ORDER != BIG_ENDIAN
4599  not big endian
4600 #endif
4602   ;
4603   return 0;
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } &&
4620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621   { (case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; } &&
4630          { ac_try='test -s conftest.$ac_objext'
4631   { (case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636   (eval "$ac_try") 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_cv_c_bigendian=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645         ac_cv_c_bigendian=no
4646 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653         # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655   # try to guess the endianness by grepping values into an object file
4656   ac_cv_c_bigendian=unknown
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4669 int
4670 main ()
4672  _ascii (); _ebcdic ();
4673   ;
4674   return 0;
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692   { (case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_try") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_try") 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712   ac_cv_c_bigendian=yes
4713 fi
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715   if test "$ac_cv_c_bigendian" = unknown; then
4716     ac_cv_c_bigendian=no
4717   else
4718     # finding both strings is unlikely to happen, but who knows?
4719     ac_cv_c_bigendian=unknown
4720   fi
4721 fi
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4727 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738 int
4739 main ()
4742   /* Are we little or big endian?  From Harbison&Steele.  */
4743   union
4744   {
4745     long int l;
4746     char c[sizeof (long int)];
4747   } u;
4748   u.l = 1;
4749   return u.c[sizeof (long int) - 1] == 1;
4751   ;
4752   return 0;
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_link") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766   { (case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_try") 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   ac_cv_c_bigendian=no
4776 else
4777   echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ( exit $ac_status )
4782 ac_cv_c_bigendian=yes
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 fi
4788 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4795   yes)
4796     ENDIAN=big
4797  ;;
4798   no)
4799     ENDIAN=little
4800  ;;
4801   *)
4802     { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4810 if test "$cross_compiling" = yes; then
4811   LLVM_CROSS_COMPILING=1
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820   ac_cv_build_exeext=.exe
4821 else
4822   ac_build_prefix=${build_alias}-
4824   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -n "$BUILD_CC"; then
4832   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4849 fi
4850 fi
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4861   if test -z "$BUILD_CC"; then
4862      # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CC"; then
4870   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CC="gcc"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4887 fi
4888 fi
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4899      if test -z "$BUILD_CC"; then
4900        # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CC"; then
4908   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909 else
4910   ac_prog_rejected=no
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919        ac_prog_rejected=yes
4920        continue
4921      fi
4922     ac_cv_prog_BUILD_CC="cc"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4930 if test $ac_prog_rejected = yes; then
4931   # We found a bogon in the path, so make sure we never use it.
4932   set dummy $ac_cv_prog_BUILD_CC
4933   shift
4934   if test $# != 0; then
4935     # We chose a different compiler from the bogus one.
4936     # However, it has the same basename, so the bogon will be chosen
4937     # first if we set BUILD_CC to just the basename; use the full file name.
4938     shift
4939     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4940   fi
4941 fi
4942 fi
4943 fi
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4954      fi
4955   fi
4956   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958    { (exit 1); exit 1; }; }
4959   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960   rm -f conftest*
4961   echo 'int main () { return 0; }' > conftest.$ac_ext
4962   ac_cv_build_exeext=
4963   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964   (eval $ac_build_link) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; then
4968     for file in conftest.*; do
4969       case $file in
4970       *.c | *.o | *.obj | *.dSYM) ;;
4971       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4972       esac
4973     done
4974   else
4975     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977    { (exit 1); exit 1; }; }
4978   fi
4979   rm -f conftest*
4980   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4981 fi
4982 fi
4984 BUILD_EXEEXT=""
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4990   ac_build_prefix=${build_alias}-
4991   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   if test -n "$BUILD_CXX"; then
4999   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5016 fi
5017 fi
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5028   if test -z "$BUILD_CXX"; then
5029      # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test -n "$BUILD_CXX"; then
5037   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_BUILD_CXX="g++"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5054 fi
5055 fi
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5066      if test -z "$BUILD_CXX"; then
5067        # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if test -n "$BUILD_CXX"; then
5075   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076 else
5077   ac_prog_rejected=no
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086        ac_prog_rejected=yes
5087        continue
5088      fi
5089     ac_cv_prog_BUILD_CXX="c++"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5097 if test $ac_prog_rejected = yes; then
5098   # We found a bogon in the path, so make sure we never use it.
5099   set dummy $ac_cv_prog_BUILD_CXX
5100   shift
5101   if test $# != 0; then
5102     # We chose a different compiler from the bogus one.
5103     # However, it has the same basename, so the bogon will be chosen
5104     # first if we set BUILD_CXX to just the basename; use the full file name.
5105     shift
5106     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5107   fi
5108 fi
5109 fi
5110 fi
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5115 else
5116   { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5121      fi
5122   fi
5123 else
5124   LLVM_CROSS_COMPILING=0
5126 fi
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5129   cvsbuild="yes"
5130   optimize="no"
5131   CVSBUILD=CVSBUILD=1
5133 else
5134   cvsbuild="no"
5135   optimize="yes"
5136 fi
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141   enableval=$enable_libcpp;
5142 else
5143   enableval=default
5144 fi
5146 case "$enableval" in
5147   yes) ENABLE_LIBCPP=1
5148  ;;
5149   no)  ENABLE_LIBCPP=0
5150  ;;
5151   default) ENABLE_LIBCPP=0
5152 ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160   enableval=$enable_cxx11;
5161 else
5162   enableval=default
5163 fi
5165 case "$enableval" in
5166   yes) ENABLE_CXX11=1
5167  ;;
5168   no)  ENABLE_CXX11=0
5169  ;;
5170   default) ENABLE_CXX11=0
5171 ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179   enableval=$enable_split_dwarf;
5180 else
5181   enableval=default
5182 fi
5184 case "$enableval" in
5185   yes) ENABLE_SPLIT_DWARF=1
5186  ;;
5187   no)  ENABLE_SPLIT_DWARF=0
5188  ;;
5189   default) ENABLE_SPLIT_DWARF=0
5190 ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5196 clang_arcmt="yes"
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5200 else
5201   enableval="yes"
5202 fi
5204 case "$enableval" in
5205   yes) ENABLE_CLANG_ARCMT=1
5206  ;;
5207   no)  ENABLE_CLANG_ARCMT=0
5208  ;;
5209   default) ENABLE_CLANG_ARCMT=1
5210 ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5220 else
5221   enableval="yes"
5222 fi
5224 case "$enableval" in
5225   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5226  ;;
5227   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5228  ;;
5229   default) ENABLE_CLANG_STATIC_ANALYZER=1
5230 ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238   enableval=$enable_clang_rewriter;
5239 else
5240   enableval="yes"
5241 fi
5243 case "$enableval" in
5244   yes) ENABLE_CLANG_REWRITER=1
5245  ;;
5246   no)
5247     if test ${clang_arcmt} != "no" ; then
5248       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250    { (exit 1); exit 1; }; }
5251     fi
5252     if test ${clang_static_analyzer} != "no" ; then
5253       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255    { (exit 1); exit 1; }; }
5256     fi
5257     ENABLE_CLANG_REWRITER=0
5259     ;;
5260   default) ENABLE_CLANG_REWRITER=1
5261 ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269   enableval=$enable_optimized;
5270 else
5271   enableval=$optimize
5272 fi
5274 if test ${enableval} = "no" ; then
5275   ENABLE_OPTIMIZED=
5277 else
5278   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5280 fi
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284   enableval=$enable_profiling;
5285 else
5286   enableval="no"
5287 fi
5289 if test ${enableval} = "no" ; then
5290   ENABLE_PROFILING=
5292 else
5293   ENABLE_PROFILING=ENABLE_PROFILING=1
5295 fi
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299   enableval=$enable_assertions;
5300 else
5301   enableval="yes"
5302 fi
5304 if test ${enableval} = "yes" ; then
5305   DISABLE_ASSERTIONS=
5307 else
5308   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5310 fi
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314   enableval=$enable_werror;
5315 else
5316   enableval="no"
5317 fi
5319 case "$enableval" in
5320   yes) ENABLE_WERROR=1
5321  ;;
5322   no)  ENABLE_WERROR=0
5323  ;;
5324   default) ENABLE_WERROR=0
5325 ;;
5326   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329 esac
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333   enableval=$enable_expensive_checks;
5334 else
5335   enableval="no"
5336 fi
5338 if test ${enableval} = "yes" ; then
5339   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5341   EXPENSIVE_CHECKS=yes
5343 else
5344   ENABLE_EXPENSIVE_CHECKS=
5346   EXPENSIVE_CHECKS=no
5348 fi
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352   enableval=$enable_debug_runtime;
5353 else
5354   enableval=no
5355 fi
5357 if test ${enableval} = "no" ; then
5358   DEBUG_RUNTIME=
5360 else
5361   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5363 fi
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367   enableval=$enable_debug_symbols;
5368 else
5369   enableval=no
5370 fi
5372 if test ${enableval} = "no" ; then
5373   DEBUG_SYMBOLS=
5375 else
5376   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5378 fi
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382   enableval=$enable_keep_symbols;
5383 else
5384   enableval=no
5385 fi
5387 if test ${enableval} = "no" ; then
5388   KEEP_SYMBOLS=
5390 else
5391   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5393 fi
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397   enableval=$enable_jit;
5398 else
5399   enableval=default
5400 fi
5402 if test ${enableval} = "no"
5403 then
5404   JIT=
5406 else
5407   case "$llvm_cv_target_arch" in
5408     x86)         TARGET_HAS_JIT=1
5409  ;;
5410     Sparc)       TARGET_HAS_JIT=0
5411  ;;
5412     PowerPC)     TARGET_HAS_JIT=1
5413  ;;
5414     x86_64)      TARGET_HAS_JIT=1
5415  ;;
5416     ARM)         TARGET_HAS_JIT=1
5417  ;;
5418     AArch64)     TARGET_HAS_JIT=0
5419  ;;
5420     Mips)        TARGET_HAS_JIT=1
5421  ;;
5422     XCore)       TARGET_HAS_JIT=0
5423  ;;
5424     MSP430)      TARGET_HAS_JIT=0
5425  ;;
5426     Hexagon)     TARGET_HAS_JIT=0
5427  ;;
5428     MBlaze)      TARGET_HAS_JIT=0
5429  ;;
5430     NVPTX)       TARGET_HAS_JIT=0
5431  ;;
5432     SystemZ)     TARGET_HAS_JIT=1
5433  ;;
5434     *)           TARGET_HAS_JIT=0
5435  ;;
5436   esac
5437 fi
5439 # Check whether --enable-docs was given.
5440 if test "${enable_docs+set}" = set; then
5441   enableval=$enable_docs;
5442 else
5443   enableval=default
5444 fi
5446 case "$enableval" in
5447   yes) ENABLE_DOCS=1
5448  ;;
5449   no)  ENABLE_DOCS=0
5450  ;;
5451   default) ENABLE_DOCS=1
5452  ;;
5453   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5454 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5455    { (exit 1); exit 1; }; } ;;
5456 esac
5458 # Check whether --enable-doxygen was given.
5459 if test "${enable_doxygen+set}" = set; then
5460   enableval=$enable_doxygen;
5461 else
5462   enableval=default
5463 fi
5465 case "$enableval" in
5466   yes) ENABLE_DOXYGEN=1
5467  ;;
5468   no)  ENABLE_DOXYGEN=0
5469  ;;
5470   default) ENABLE_DOXYGEN=0
5471  ;;
5472   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5474    { (exit 1); exit 1; }; } ;;
5475 esac
5477 # Check whether --enable-threads was given.
5478 if test "${enable_threads+set}" = set; then
5479   enableval=$enable_threads;
5480 else
5481   enableval=default
5482 fi
5484 case "$enableval" in
5485   yes) LLVM_ENABLE_THREADS=1
5486  ;;
5487   no)  LLVM_ENABLE_THREADS=0
5488  ;;
5489   default) LLVM_ENABLE_THREADS=1
5490  ;;
5491   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5493    { (exit 1); exit 1; }; } ;;
5494 esac
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5498 _ACEOF
5501 # Check whether --enable-pthreads was given.
5502 if test "${enable_pthreads+set}" = set; then
5503   enableval=$enable_pthreads;
5504 else
5505   enableval=default
5506 fi
5508 case "$enableval" in
5509   yes) ENABLE_PTHREADS=1
5510  ;;
5511   no)  ENABLE_PTHREADS=0
5512  ;;
5513   default) ENABLE_PTHREADS=1
5514  ;;
5515   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5517    { (exit 1); exit 1; }; } ;;
5518 esac
5520 # Check whether --enable-zlib was given.
5521 if test "${enable_zlib+set}" = set; then
5522   enableval=$enable_zlib;
5523 else
5524   enableval=default
5525 fi
5527 case "$enableval" in
5528   yes) LLVM_ENABLE_ZLIB=1
5529  ;;
5530   no)  LLVM_ENABLE_ZLIB=0
5531  ;;
5532   default) LLVM_ENABLE_ZLIB=1
5533  ;;
5534   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5536    { (exit 1); exit 1; }; } ;;
5537 esac
5539 cat >>confdefs.h <<_ACEOF
5540 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5541 _ACEOF
5544 # Check whether --enable-pic was given.
5545 if test "${enable_pic+set}" = set; then
5546   enableval=$enable_pic;
5547 else
5548   enableval=default
5549 fi
5551 case "$enableval" in
5552   yes) ENABLE_PIC=1
5553  ;;
5554   no)  ENABLE_PIC=0
5555  ;;
5556   default) ENABLE_PIC=1
5557  ;;
5558   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5563 cat >>confdefs.h <<_ACEOF
5564 #define ENABLE_PIC $ENABLE_PIC
5565 _ACEOF
5568 # Check whether --enable-shared was given.
5569 if test "${enable_shared+set}" = set; then
5570   enableval=$enable_shared;
5571 else
5572   enableval=default
5573 fi
5575 case "$enableval" in
5576   yes) ENABLE_SHARED=1
5577  ;;
5578   no)  ENABLE_SHARED=0
5579  ;;
5580   default) ENABLE_SHARED=0
5581  ;;
5582   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585 esac
5587 # Check whether --enable-embed-stdcxx was given.
5588 if test "${enable_embed_stdcxx+set}" = set; then
5589   enableval=$enable_embed_stdcxx;
5590 else
5591   enableval=default
5592 fi
5594 case "$enableval" in
5595   yes) ENABLE_EMBED_STDCXX=1
5596  ;;
5597   no)  ENABLE_EMBED_STDCXX=0
5598  ;;
5599   default) ENABLE_EMBED_STDCXX=0
5600  ;;
5601   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5602 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5606 # Check whether --enable-timestamps was given.
5607 if test "${enable_timestamps+set}" = set; then
5608   enableval=$enable_timestamps;
5609 else
5610   enableval=default
5611 fi
5613 case "$enableval" in
5614   yes) ENABLE_TIMESTAMPS=1
5615  ;;
5616   no)  ENABLE_TIMESTAMPS=0
5617  ;;
5618   default) ENABLE_TIMESTAMPS=1
5619  ;;
5620   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5621 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5622    { (exit 1); exit 1; }; } ;;
5623 esac
5625 cat >>confdefs.h <<_ACEOF
5626 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5627 _ACEOF
5631 # Check whether --enable-backtraces was given.
5632 if test "${enable_backtraces+set}" = set; then
5633   enableval=$enable_backtraces;
5634 else
5635   enableval=default
5636 fi
5638 case "$enableval" in
5639   yes) ENABLE_BACKTRACES=1
5640  ;;
5641   no)  ENABLE_BACKTRACES=0
5642  ;;
5643   default) ENABLE_BACKTRACES=1
5644  ;;
5645   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5646 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5647    { (exit 1); exit 1; }; } ;;
5648 esac
5650 cat >>confdefs.h <<_ACEOF
5651 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5652 _ACEOF
5655 TARGETS_TO_BUILD=""
5656 # Check whether --enable-targets was given.
5657 if test "${enable_targets+set}" = set; then
5658   enableval=$enable_targets;
5659 else
5660   enableval=all
5661 fi
5663 if test "$enableval" = host-only ; then
5664   enableval=host
5665 fi
5666 case "$enableval" in
5667   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5668   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5669       case "$a_target" in
5670         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5679         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5680         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5681         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5682         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5683         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5684         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5685         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5686         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5687         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5688         host) case "$llvm_cv_target_arch" in
5689             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5690             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5691             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5692             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5693             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5694             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5695             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5696             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5697             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5698             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5699             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5700             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5701             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5702             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5703 echo "$as_me: error: Can not set target to build" >&2;}
5704    { (exit 1); exit 1; }; } ;;
5705           esac ;;
5706         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5707 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5708    { (exit 1); exit 1; }; } ;;
5709       esac
5710   done
5711   ;;
5712 esac
5714 # Check whether --enable-experimental-targets was given.
5715 if test "${enable_experimental_targets+set}" = set; then
5716   enableval=$enable_experimental_targets;
5717 else
5718   enableval=disable
5719 fi
5722 if test ${enableval} != "disable"
5723 then
5724   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5725 fi
5727 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5730 for a_target in $TARGETS_TO_BUILD; do
5731   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5735 _ACEOF
5737     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5738     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5739     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5740     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5741     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5742       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5743     fi
5744     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5745       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5746     fi
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5750 _ACEOF
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5755 _ACEOF
5758 cat >>confdefs.h <<_ACEOF
5759 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5760 _ACEOF
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5765 _ACEOF
5767     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5771 _ACEOF
5773     fi
5774     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5778 _ACEOF
5780     fi
5781   fi
5782 done
5784 LLVM_ENUM_TARGETS=""
5785 LLVM_ENUM_ASM_PRINTERS=""
5786 LLVM_ENUM_ASM_PARSERS=""
5787 LLVM_ENUM_DISASSEMBLERS=""
5788 for target_to_build in $TARGETS_TO_BUILD; do
5789   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5790   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5791     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5792   fi
5793   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5794     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5795   fi
5796   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5797     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5798   fi
5799 done
5806 # Check whether --with-optimize-option was given.
5807 if test "${with_optimize_option+set}" = set; then
5808   withval=$with_optimize_option;
5809 else
5810   withval=default
5811 fi
5813 { echo "$as_me:$LINENO: checking optimization flags" >&5
5814 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5815 case "$withval" in
5816   default)
5817     case "$llvm_cv_os_type" in
5818     FreeBSD) optimize_option=-O2 ;;
5819     MingW) optimize_option=-O2 ;;
5820     *)     optimize_option=-O3 ;;
5821     esac ;;
5822   *) optimize_option="$withval" ;;
5823 esac
5824 OPTIMIZE_OPTION=$optimize_option
5826 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5827 echo "${ECHO_T}$optimize_option" >&6; }
5830 # Check whether --with-extra-options was given.
5831 if test "${with_extra_options+set}" = set; then
5832   withval=$with_extra_options;
5833 else
5834   withval=default
5835 fi
5837 case "$withval" in
5838   default) EXTRA_OPTIONS= ;;
5839   *) EXTRA_OPTIONS=$withval ;;
5840 esac
5841 EXTRA_OPTIONS=$EXTRA_OPTIONS
5845 # Check whether --with-extra-ld-options was given.
5846 if test "${with_extra_ld_options+set}" = set; then
5847   withval=$with_extra_ld_options;
5848 else
5849   withval=default
5850 fi
5852 case "$withval" in
5853   default) EXTRA_LD_OPTIONS= ;;
5854   *) EXTRA_LD_OPTIONS=$withval ;;
5855 esac
5856 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5859 # Check whether --enable-bindings was given.
5860 if test "${enable_bindings+set}" = set; then
5861   enableval=$enable_bindings;
5862 else
5863   enableval=default
5864 fi
5866 BINDINGS_TO_BUILD=""
5867 case "$enableval" in
5868   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5869   all ) BINDINGS_TO_BUILD="ocaml" ;;
5870   none | no) BINDINGS_TO_BUILD="" ;;
5871   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5872       case "$a_binding" in
5873         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5874         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5875 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5876    { (exit 1); exit 1; }; } ;;
5877       esac
5878   done
5879   ;;
5880 esac
5883 # Check whether --with-ocaml-libdir was given.
5884 if test "${with_ocaml_libdir+set}" = set; then
5885   withval=$with_ocaml_libdir;
5886 else
5887   withval=auto
5888 fi
5890 case "$withval" in
5891   auto) with_ocaml_libdir="$withval" ;;
5892   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5893   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5894 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5895    { (exit 1); exit 1; }; } ;;
5896 esac
5899 # Check whether --with-clang-srcdir was given.
5900 if test "${with_clang_srcdir+set}" = set; then
5901   withval=$with_clang_srcdir;
5902 else
5903   withval="-"
5904 fi
5906 case "$withval" in
5907   -) clang_src_root="" ;;
5908   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5909   *) clang_src_root="$ac_pwd/$withval" ;;
5910 esac
5911 CLANG_SRC_ROOT=$clang_src_root
5915 # Check whether --with-clang-resource-dir was given.
5916 if test "${with_clang_resource_dir+set}" = set; then
5917   withval=$with_clang_resource_dir;
5918 else
5919   withval=""
5920 fi
5923 cat >>confdefs.h <<_ACEOF
5924 #define CLANG_RESOURCE_DIR "$withval"
5925 _ACEOF
5929 # Check whether --with-c-include-dirs was given.
5930 if test "${with_c_include_dirs+set}" = set; then
5931   withval=$with_c_include_dirs;
5932 else
5933   withval=""
5934 fi
5937 cat >>confdefs.h <<_ACEOF
5938 #define C_INCLUDE_DIRS "$withval"
5939 _ACEOF
5942 # Clang normally uses the system c++ headers and libraries. With this option,
5943 # clang will use the ones provided by a gcc installation instead. This option should
5944 # be passed the same value that was used with --prefix when configuring gcc.
5946 # Check whether --with-gcc-toolchain was given.
5947 if test "${with_gcc_toolchain+set}" = set; then
5948   withval=$with_gcc_toolchain;
5949 else
5950   withval=""
5951 fi
5954 cat >>confdefs.h <<_ACEOF
5955 #define GCC_INSTALL_PREFIX "$withval"
5956 _ACEOF
5960 # Check whether --with-default-sysroot was given.
5961 if test "${with_default_sysroot+set}" = set; then
5962   withval=$with_default_sysroot;
5963 else
5964   withval=""
5965 fi
5968 cat >>confdefs.h <<_ACEOF
5969 #define DEFAULT_SYSROOT "$withval"
5970 _ACEOF
5974 # Check whether --with-binutils-include was given.
5975 if test "${with_binutils_include+set}" = set; then
5976   withval=$with_binutils_include;
5977 else
5978   withval=default
5979 fi
5981 case "$withval" in
5982   default) WITH_BINUTILS_INCDIR=default ;;
5983   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5984   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5985 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5986    { (exit 1); exit 1; }; } ;;
5987 esac
5988 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5989   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5991   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5992      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5993      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5994 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5995    { (exit 1); exit 1; }; };
5996   fi
5997 fi
6000 # Check whether --with-bug-report-url was given.
6001 if test "${with_bug_report_url+set}" = set; then
6002   withval=$with_bug_report_url;
6003 else
6004   withval="http://llvm.org/bugs/"
6005 fi
6008 cat >>confdefs.h <<_ACEOF
6009 #define BUG_REPORT_URL "$withval"
6010 _ACEOF
6013 # Check whether --enable-libffi was given.
6014 if test "${enable_libffi+set}" = set; then
6015   enableval=$enable_libffi; case "$enableval" in
6016     yes) llvm_cv_enable_libffi="yes" ;;
6017     no)  llvm_cv_enable_libffi="no"  ;;
6018     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6019 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6020    { (exit 1); exit 1; }; } ;;
6021   esac
6022 else
6023   llvm_cv_enable_libffi=no
6024 fi
6028 # Check whether --with-internal-prefix was given.
6029 if test "${with_internal_prefix+set}" = set; then
6030   withval=$with_internal_prefix;
6031 else
6032   withval=""
6033 fi
6035 INTERNAL_PREFIX=$withval
6039 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6041 if test "${lt_cv_path_NM+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if test -n "$NM"; then
6045   # Let the user override the test.
6046   lt_cv_path_NM="$NM"
6047 else
6048   lt_nm_to_check="${ac_tool_prefix}nm"
6049   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6050     lt_nm_to_check="$lt_nm_to_check nm"
6051   fi
6052   for lt_tmp_nm in $lt_nm_to_check; do
6053     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6054     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6055       IFS="$lt_save_ifs"
6056       test -z "$ac_dir" && ac_dir=.
6057       tmp_nm="$ac_dir/$lt_tmp_nm"
6058       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6059         # Check to see if the nm accepts a BSD-compat flag.
6060         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6061         #   nm: unknown option "B" ignored
6062         # Tru64's nm complains that /dev/null is an invalid object file
6063         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6064         */dev/null* | *'Invalid file or object type'*)
6065           lt_cv_path_NM="$tmp_nm -B"
6066           break
6067           ;;
6068         *)
6069           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6070           */dev/null*)
6071             lt_cv_path_NM="$tmp_nm -p"
6072             break
6073             ;;
6074           *)
6075             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6076             continue # so that we can try to find one that supports BSD flags
6077             ;;
6078           esac
6079           ;;
6080         esac
6081       fi
6082     done
6083     IFS="$lt_save_ifs"
6084   done
6085   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6086 fi
6087 fi
6088 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6089 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6090 NM="$lt_cv_path_NM"
6094 { echo "$as_me:$LINENO: checking for GNU make" >&5
6095 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6096 if test "${llvm_cv_gnu_make_command+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   llvm_cv_gnu_make_command=''
6100  for a in "$MAKE" make gmake gnumake ; do
6101   if test -z "$a" ; then continue ; fi ;
6102   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6103   then
6104    llvm_cv_gnu_make_command=$a ;
6105    break;
6106   fi
6107  done
6108 fi
6109 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6110 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6111  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6112    ifGNUmake='' ;
6113  else
6114    ifGNUmake='#' ;
6115    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6116 echo "${ECHO_T}\"Not found\"" >&6; };
6117  fi
6120 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6121 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6122 LN_S=$as_ln_s
6123 if test "$LN_S" = "ln -s"; then
6124   { echo "$as_me:$LINENO: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6; }
6126 else
6127   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6128 echo "${ECHO_T}no, using $LN_S" >&6; }
6129 fi
6131 # Extract the first word of "cmp", so it can be a program name with args.
6132 set dummy cmp; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_CMP+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $CMP in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6158   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6159   ;;
6160 esac
6161 fi
6162 CMP=$ac_cv_path_CMP
6163 if test -n "$CMP"; then
6164   { echo "$as_me:$LINENO: result: $CMP" >&5
6165 echo "${ECHO_T}$CMP" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6172 # Extract the first word of "cp", so it can be a program name with args.
6173 set dummy cp; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_path_CP+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   case $CP in
6180   [\\/]* | ?:[\\/]*)
6181   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6182   ;;
6183   *)
6184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6199   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6200   ;;
6201 esac
6202 fi
6203 CP=$ac_cv_path_CP
6204 if test -n "$CP"; then
6205   { echo "$as_me:$LINENO: result: $CP" >&5
6206 echo "${ECHO_T}$CP" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6213 # Extract the first word of "date", so it can be a program name with args.
6214 set dummy date; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_path_DATE+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   case $DATE in
6221   [\\/]* | ?:[\\/]*)
6222   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6223   ;;
6224   *)
6225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230   for ac_exec_ext in '' $ac_executable_extensions; do
6231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6232     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237 done
6238 IFS=$as_save_IFS
6240   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6241   ;;
6242 esac
6243 fi
6244 DATE=$ac_cv_path_DATE
6245 if test -n "$DATE"; then
6246   { echo "$as_me:$LINENO: result: $DATE" >&5
6247 echo "${ECHO_T}$DATE" >&6; }
6248 else
6249   { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6251 fi
6254 # Extract the first word of "find", so it can be a program name with args.
6255 set dummy find; ac_word=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_path_FIND+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   case $FIND in
6262   [\\/]* | ?:[\\/]*)
6263   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6264   ;;
6265   *)
6266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6281   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6282   ;;
6283 esac
6284 fi
6285 FIND=$ac_cv_path_FIND
6286 if test -n "$FIND"; then
6287   { echo "$as_me:$LINENO: result: $FIND" >&5
6288 echo "${ECHO_T}$FIND" >&6; }
6289 else
6290   { echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6; }
6292 fi
6295 # Extract the first word of "grep", so it can be a program name with args.
6296 set dummy grep; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_GREP+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $GREP in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6322   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6323   ;;
6324 esac
6325 fi
6326 GREP=$ac_cv_path_GREP
6327 if test -n "$GREP"; then
6328   { echo "$as_me:$LINENO: result: $GREP" >&5
6329 echo "${ECHO_T}$GREP" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6333 fi
6336 # Extract the first word of "mkdir", so it can be a program name with args.
6337 set dummy mkdir; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_MKDIR+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   case $MKDIR in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6363   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6364   ;;
6365 esac
6366 fi
6367 MKDIR=$ac_cv_path_MKDIR
6368 if test -n "$MKDIR"; then
6369   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6370 echo "${ECHO_T}$MKDIR" >&6; }
6371 else
6372   { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6377 # Extract the first word of "mv", so it can be a program name with args.
6378 set dummy mv; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_MV+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   case $MV in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6404   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6405   ;;
6406 esac
6407 fi
6408 MV=$ac_cv_path_MV
6409 if test -n "$MV"; then
6410   { echo "$as_me:$LINENO: result: $MV" >&5
6411 echo "${ECHO_T}$MV" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6418 if test -n "$ac_tool_prefix"; then
6419   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_RANLIB+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   if test -n "$RANLIB"; then
6427   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434   for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6444 fi
6445 fi
6446 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6449 echo "${ECHO_T}$RANLIB" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6456 fi
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458   ac_ct_RANLIB=$RANLIB
6459   # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   if test -n "$ac_ct_RANLIB"; then
6467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_ac_ct_RANLIB="ranlib"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6484 fi
6485 fi
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6489 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6490 else
6491   { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6493 fi
6495   if test "x$ac_ct_RANLIB" = x; then
6496     RANLIB=":"
6497   else
6498     case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet.  If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&5
6503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6504 whose name does not start with the host triplet.  If you think this
6505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508     RANLIB=$ac_ct_RANLIB
6509   fi
6510 else
6511   RANLIB="$ac_cv_prog_RANLIB"
6512 fi
6514 if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   if test -n "$AR"; then
6523   ac_cv_prog_AR="$AR" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_AR="${ac_tool_prefix}ar"
6533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6540 fi
6541 fi
6542 AR=$ac_cv_prog_AR
6543 if test -n "$AR"; then
6544   { echo "$as_me:$LINENO: result: $AR" >&5
6545 echo "${ECHO_T}$AR" >&6; }
6546 else
6547   { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6549 fi
6552 fi
6553 if test -z "$ac_cv_prog_AR"; then
6554   ac_ct_AR=$AR
6555   # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   if test -n "$ac_ct_AR"; then
6563   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_ac_ct_AR="ar"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6580 fi
6581 fi
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 echo "${ECHO_T}$ac_ct_AR" >&6; }
6586 else
6587   { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6589 fi
6591   if test "x$ac_ct_AR" = x; then
6592     AR="false"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet.  If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&5
6599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6600 whose name does not start with the host triplet.  If you think this
6601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6602 ac_tool_warned=yes ;;
6603 esac
6604     AR=$ac_ct_AR
6605   fi
6606 else
6607   AR="$ac_cv_prog_AR"
6608 fi
6610 # Extract the first word of "rm", so it can be a program name with args.
6611 set dummy rm; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_RM+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   case $RM in
6618   [\\/]* | ?:[\\/]*)
6619   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6620   ;;
6621   *)
6622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6637   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6638   ;;
6639 esac
6640 fi
6641 RM=$ac_cv_path_RM
6642 if test -n "$RM"; then
6643   { echo "$as_me:$LINENO: result: $RM" >&5
6644 echo "${ECHO_T}$RM" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6651 # Extract the first word of "sed", so it can be a program name with args.
6652 set dummy sed; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_SED+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   case $SED in
6659   [\\/]* | ?:[\\/]*)
6660   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6661   ;;
6662   *)
6663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6678   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6679   ;;
6680 esac
6681 fi
6682 SED=$ac_cv_path_SED
6683 if test -n "$SED"; then
6684   { echo "$as_me:$LINENO: result: $SED" >&5
6685 echo "${ECHO_T}$SED" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6692 # Extract the first word of "tar", so it can be a program name with args.
6693 set dummy tar; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_TAR+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $TAR in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6719   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6720   ;;
6721 esac
6722 fi
6723 TAR=$ac_cv_path_TAR
6724 if test -n "$TAR"; then
6725   { echo "$as_me:$LINENO: result: $TAR" >&5
6726 echo "${ECHO_T}$TAR" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6733 # Extract the first word of "pwd", so it can be a program name with args.
6734 set dummy pwd; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_BINPWD+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $BINPWD in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6760   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6761   ;;
6762 esac
6763 fi
6764 BINPWD=$ac_cv_path_BINPWD
6765 if test -n "$BINPWD"; then
6766   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6767 echo "${ECHO_T}$BINPWD" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6775 # Extract the first word of "Graphviz", so it can be a program name with args.
6776 set dummy Graphviz; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   case $GRAPHVIZ in
6783   [\\/]* | ?:[\\/]*)
6784   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6785   ;;
6786   *)
6787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6802   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6803   ;;
6804 esac
6805 fi
6806 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6807 if test -n "$GRAPHVIZ"; then
6808   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6809 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6816 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_GRAPHVIZ 1
6820 _ACEOF
6822     if test "$llvm_cv_os_type" = "MingW" ; then
6823     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6824   fi
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6828 _ACEOF
6830 fi
6831 # Extract the first word of "dot", so it can be a program name with args.
6832 set dummy dot; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOT+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $DOT in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6858   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6859   ;;
6860 esac
6861 fi
6862 DOT=$ac_cv_path_DOT
6863 if test -n "$DOT"; then
6864   { echo "$as_me:$LINENO: result: $DOT" >&5
6865 echo "${ECHO_T}$DOT" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6872 if test "$DOT" != "echo dot" ; then
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_DOT 1
6876 _ACEOF
6878     if test "$llvm_cv_os_type" = "MingW" ; then
6879     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6880   fi
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6884 _ACEOF
6886 fi
6887 # Extract the first word of "fdp", so it can be a program name with args.
6888 set dummy fdp; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_FDP+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   case $FDP in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6914   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6915   ;;
6916 esac
6917 fi
6918 FDP=$ac_cv_path_FDP
6919 if test -n "$FDP"; then
6920   { echo "$as_me:$LINENO: result: $FDP" >&5
6921 echo "${ECHO_T}$FDP" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6928 if test "$FDP" != "echo fdp" ; then
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_FDP 1
6932 _ACEOF
6934     if test "$llvm_cv_os_type" = "MingW" ; then
6935     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6936   fi
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6940 _ACEOF
6942 fi
6943 # Extract the first word of "neato", so it can be a program name with args.
6944 set dummy neato; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_NEATO+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $NEATO in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6970   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6971   ;;
6972 esac
6973 fi
6974 NEATO=$ac_cv_path_NEATO
6975 if test -n "$NEATO"; then
6976   { echo "$as_me:$LINENO: result: $NEATO" >&5
6977 echo "${ECHO_T}$NEATO" >&6; }
6978 else
6979   { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6981 fi
6984 if test "$NEATO" != "echo neato" ; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_NEATO 1
6988 _ACEOF
6990     if test "$llvm_cv_os_type" = "MingW" ; then
6991     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6992   fi
6994 cat >>confdefs.h <<_ACEOF
6995 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6996 _ACEOF
6998 fi
6999 # Extract the first word of "twopi", so it can be a program name with args.
7000 set dummy twopi; ac_word=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_path_TWOPI+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   case $TWOPI in
7007   [\\/]* | ?:[\\/]*)
7008   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7009   ;;
7010   *)
7011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016   for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7026   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7027   ;;
7028 esac
7029 fi
7030 TWOPI=$ac_cv_path_TWOPI
7031 if test -n "$TWOPI"; then
7032   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7033 echo "${ECHO_T}$TWOPI" >&6; }
7034 else
7035   { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7037 fi
7040 if test "$TWOPI" != "echo twopi" ; then
7042 cat >>confdefs.h <<\_ACEOF
7043 #define HAVE_TWOPI 1
7044 _ACEOF
7046     if test "$llvm_cv_os_type" = "MingW" ; then
7047     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7048   fi
7050 cat >>confdefs.h <<_ACEOF
7051 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7052 _ACEOF
7054 fi
7055 # Extract the first word of "circo", so it can be a program name with args.
7056 set dummy circo; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_CIRCO+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   case $CIRCO in
7063   [\\/]* | ?:[\\/]*)
7064   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7065   ;;
7066   *)
7067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7082   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7083   ;;
7084 esac
7085 fi
7086 CIRCO=$ac_cv_path_CIRCO
7087 if test -n "$CIRCO"; then
7088   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7089 echo "${ECHO_T}$CIRCO" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7096 if test "$CIRCO" != "echo circo" ; then
7098 cat >>confdefs.h <<\_ACEOF
7099 #define HAVE_CIRCO 1
7100 _ACEOF
7102     if test "$llvm_cv_os_type" = "MingW" ; then
7103     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7104   fi
7106 cat >>confdefs.h <<_ACEOF
7107 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7108 _ACEOF
7110 fi
7111 for ac_prog in gv gsview32
7112 do
7113   # Extract the first word of "$ac_prog", so it can be a program name with args.
7114 set dummy $ac_prog; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_GV+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   case $GV in
7121   [\\/]* | ?:[\\/]*)
7122   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7123   ;;
7124   *)
7125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7140   ;;
7141 esac
7142 fi
7143 GV=$ac_cv_path_GV
7144 if test -n "$GV"; then
7145   { echo "$as_me:$LINENO: result: $GV" >&5
7146 echo "${ECHO_T}$GV" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7153   test -n "$GV" && break
7154 done
7155 test -n "$GV" || GV="echo gv"
7157 if test "$GV" != "echo gv" ; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_GV 1
7161 _ACEOF
7163     if test "$llvm_cv_os_type" = "MingW" ; then
7164     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7165   fi
7167 cat >>confdefs.h <<_ACEOF
7168 #define LLVM_PATH_GV "$GV${EXEEXT}"
7169 _ACEOF
7171 fi
7172 # Extract the first word of "dotty", so it can be a program name with args.
7173 set dummy dotty; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOTTY+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $DOTTY in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7199   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7200   ;;
7201 esac
7202 fi
7203 DOTTY=$ac_cv_path_DOTTY
7204 if test -n "$DOTTY"; then
7205   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7206 echo "${ECHO_T}$DOTTY" >&6; }
7207 else
7208   { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7213 if test "$DOTTY" != "echo dotty" ; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_DOTTY 1
7217 _ACEOF
7219     if test "$llvm_cv_os_type" = "MingW" ; then
7220     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7221   fi
7223 cat >>confdefs.h <<_ACEOF
7224 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7225 _ACEOF
7227 fi
7228 for ac_prog in xdot xdot.py
7229 do
7230   # Extract the first word of "$ac_prog", so it can be a program name with args.
7231 set dummy $ac_prog; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_XDOT+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   case $XDOT in
7238   [\\/]* | ?:[\\/]*)
7239   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7240   ;;
7241   *)
7242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7257   ;;
7258 esac
7259 fi
7260 XDOT=$ac_cv_path_XDOT
7261 if test -n "$XDOT"; then
7262   { echo "$as_me:$LINENO: result: $XDOT" >&5
7263 echo "${ECHO_T}$XDOT" >&6; }
7264 else
7265   { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7267 fi
7270   test -n "$XDOT" && break
7271 done
7272 test -n "$XDOT" || XDOT="echo xdot"
7274 if test "$XDOT" != "echo xdot" ; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_XDOT 1
7278 _ACEOF
7280     if test "$llvm_cv_os_type" = "MingW" ; then
7281     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7282   fi
7284 cat >>confdefs.h <<_ACEOF
7285 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7286 _ACEOF
7288 fi
7290 # Find a good install program.  We prefer a C program (faster),
7291 # so one script is as good as another.  But avoid the broken or
7292 # incompatible versions:
7293 # SysV /etc/install, /usr/sbin/install
7294 # SunOS /usr/etc/install
7295 # IRIX /sbin/install
7296 # AIX /bin/install
7297 # AmigaOS /C/install, which installs bootblocks on floppy discs
7298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7301 # OS/2's system install, which has a completely different semantic
7302 # ./install, which can be erroneously created by make from ./install.sh.
7303 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7304 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7305 if test -z "$INSTALL"; then
7306 if test "${ac_cv_path_install+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   # Account for people who put trailing slashes in PATH elements.
7315 case $as_dir/ in
7316   ./ | .// | /cC/* | \
7317   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7318   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7319   /usr/ucb/* ) ;;
7320   *)
7321     # OSF1 and SCO ODT 3.0 have their own names for install.
7322     # Don't use installbsd from OSF since it installs stuff as root
7323     # by default.
7324     for ac_prog in ginstall scoinst install; do
7325       for ac_exec_ext in '' $ac_executable_extensions; do
7326         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7327           if test $ac_prog = install &&
7328             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7329             # AIX install.  It has an incompatible calling convention.
7330             :
7331           elif test $ac_prog = install &&
7332             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7333             # program-specific install script used by HP pwplus--don't use.
7334             :
7335           else
7336             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7337             break 3
7338           fi
7339         fi
7340       done
7341     done
7342     ;;
7343 esac
7344 done
7345 IFS=$as_save_IFS
7348 fi
7349   if test "${ac_cv_path_install+set}" = set; then
7350     INSTALL=$ac_cv_path_install
7351   else
7352     # As a last resort, use the slow shell script.  Don't cache a
7353     # value for INSTALL within a source directory, because that will
7354     # break other packages using the cache if that directory is
7355     # removed, or if the value is a relative name.
7356     INSTALL=$ac_install_sh
7357   fi
7358 fi
7359 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7360 echo "${ECHO_T}$INSTALL" >&6; }
7362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7363 # It thinks the first close brace ends the variable substitution.
7364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7370 case "$INSTALL" in
7371  [\\/$]* | ?:[\\/]* ) ;;
7372  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7373 esac
7375 # Extract the first word of "bzip2", so it can be a program name with args.
7376 set dummy bzip2; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_BZIP2+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $BZIP2 in
7383   [\\/]* | ?:[\\/]*)
7384   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7385   ;;
7386   *)
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7402   ;;
7403 esac
7404 fi
7405 BZIP2=$ac_cv_path_BZIP2
7406 if test -n "$BZIP2"; then
7407   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7408 echo "${ECHO_T}$BZIP2" >&6; }
7409 else
7410   { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7415 # Extract the first word of "cat", so it can be a program name with args.
7416 set dummy cat; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_CAT+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   case $CAT in
7423   [\\/]* | ?:[\\/]*)
7424   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7425   ;;
7426   *)
7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7442   ;;
7443 esac
7444 fi
7445 CAT=$ac_cv_path_CAT
7446 if test -n "$CAT"; then
7447   { echo "$as_me:$LINENO: result: $CAT" >&5
7448 echo "${ECHO_T}$CAT" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7455 # Extract the first word of "doxygen", so it can be a program name with args.
7456 set dummy doxygen; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   case $DOXYGEN in
7463   [\\/]* | ?:[\\/]*)
7464   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7465   ;;
7466   *)
7467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7482   ;;
7483 esac
7484 fi
7485 DOXYGEN=$ac_cv_path_DOXYGEN
7486 if test -n "$DOXYGEN"; then
7487   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7488 echo "${ECHO_T}$DOXYGEN" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7495 # Extract the first word of "groff", so it can be a program name with args.
7496 set dummy groff; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GROFF+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $GROFF in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7522   ;;
7523 esac
7524 fi
7525 GROFF=$ac_cv_path_GROFF
7526 if test -n "$GROFF"; then
7527   { echo "$as_me:$LINENO: result: $GROFF" >&5
7528 echo "${ECHO_T}$GROFF" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7535 # Extract the first word of "gzip", so it can be a program name with args.
7536 set dummy gzip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $GZIPBIN in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7562   ;;
7563 esac
7564 fi
7565 GZIPBIN=$ac_cv_path_GZIPBIN
7566 if test -n "$GZIPBIN"; then
7567   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7568 echo "${ECHO_T}$GZIPBIN" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7575 # Extract the first word of "pdfroff", so it can be a program name with args.
7576 set dummy pdfroff; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_PDFROFF+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   case $PDFROFF in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592   for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7602   ;;
7603 esac
7604 fi
7605 PDFROFF=$ac_cv_path_PDFROFF
7606 if test -n "$PDFROFF"; then
7607   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7608 echo "${ECHO_T}$PDFROFF" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7615 # Extract the first word of "zip", so it can be a program name with args.
7616 set dummy zip; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_path_ZIP+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   case $ZIP in
7623   [\\/]* | ?:[\\/]*)
7624   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7625   ;;
7626   *)
7627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632   for ac_exec_ext in '' $ac_executable_extensions; do
7633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7634     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7642   ;;
7643 esac
7644 fi
7645 ZIP=$ac_cv_path_ZIP
7646 if test -n "$ZIP"; then
7647   { echo "$as_me:$LINENO: result: $ZIP" >&5
7648 echo "${ECHO_T}$ZIP" >&6; }
7649 else
7650   { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7652 fi
7655 for ac_prog in ocamlc
7656 do
7657   # Extract the first word of "$ac_prog", so it can be a program name with args.
7658 set dummy $ac_prog; ac_word=$2
7659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661 if test "${ac_cv_path_OCAMLC+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   case $OCAMLC in
7665   [\\/]* | ?:[\\/]*)
7666   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7667   ;;
7668   *)
7669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672   IFS=$as_save_IFS
7673   test -z "$as_dir" && as_dir=.
7674   for ac_exec_ext in '' $ac_executable_extensions; do
7675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678     break 2
7679   fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7684   ;;
7685 esac
7686 fi
7687 OCAMLC=$ac_cv_path_OCAMLC
7688 if test -n "$OCAMLC"; then
7689   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7690 echo "${ECHO_T}$OCAMLC" >&6; }
7691 else
7692   { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7694 fi
7697   test -n "$OCAMLC" && break
7698 done
7700 for ac_prog in ocamlopt
7701 do
7702   # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   case $OCAMLOPT in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7729   ;;
7730 esac
7731 fi
7732 OCAMLOPT=$ac_cv_path_OCAMLOPT
7733 if test -n "$OCAMLOPT"; then
7734   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7735 echo "${ECHO_T}$OCAMLOPT" >&6; }
7736 else
7737   { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7739 fi
7742   test -n "$OCAMLOPT" && break
7743 done
7745 for ac_prog in ocamldep
7746 do
7747   # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy $ac_prog; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   case $OCAMLDEP in
7755   [\\/]* | ?:[\\/]*)
7756   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7757   ;;
7758   *)
7759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764   for ac_exec_ext in '' $ac_executable_extensions; do
7765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7766     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768     break 2
7769   fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7774   ;;
7775 esac
7776 fi
7777 OCAMLDEP=$ac_cv_path_OCAMLDEP
7778 if test -n "$OCAMLDEP"; then
7779   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7780 echo "${ECHO_T}$OCAMLDEP" >&6; }
7781 else
7782   { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7784 fi
7787   test -n "$OCAMLDEP" && break
7788 done
7790 for ac_prog in ocamldoc
7791 do
7792   # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   case $OCAMLDOC in
7800   [\\/]* | ?:[\\/]*)
7801   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7802   ;;
7803   *)
7804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7819   ;;
7820 esac
7821 fi
7822 OCAMLDOC=$ac_cv_path_OCAMLDOC
7823 if test -n "$OCAMLDOC"; then
7824   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7825 echo "${ECHO_T}$OCAMLDOC" >&6; }
7826 else
7827   { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7829 fi
7832   test -n "$OCAMLDOC" && break
7833 done
7835 for ac_prog in gas as
7836 do
7837   # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_path_GAS+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   case $GAS in
7845   [\\/]* | ?:[\\/]*)
7846   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7847   ;;
7848   *)
7849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854   for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7864   ;;
7865 esac
7866 fi
7867 GAS=$ac_cv_path_GAS
7868 if test -n "$GAS"; then
7869   { echo "$as_me:$LINENO: result: $GAS" >&5
7870 echo "${ECHO_T}$GAS" >&6; }
7871 else
7872   { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7874 fi
7877   test -n "$GAS" && break
7878 done
7881 { echo "$as_me:$LINENO: checking for linker version" >&5
7882 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7883 if test "${llvm_cv_link_version+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7887    version_string="$(ld -v 2>&1 | head -1)"
7889    # Check for ld64.
7890    if (echo "$version_string" | grep -q "ld64"); then
7891      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7892    else
7893      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7894    fi
7896 fi
7897 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7898 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7900 cat >>confdefs.h <<_ACEOF
7901 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7902 _ACEOF
7906 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7907 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7908 if test "${llvm_cv_link_use_r+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911    ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917   oldcflags="$CFLAGS"
7918   CFLAGS="$CFLAGS -Wl,-R."
7919   cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7926 int
7927 main ()
7930   ;
7931   return 0;
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_link") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } &&
7948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7949   { (case "(($ac_try" in
7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951   *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954   (eval "$ac_try") 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; } &&
7958          { ac_try='test -s conftest$ac_exeext'
7959   { (case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_try") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   llvm_cv_link_use_r=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973         llvm_cv_link_use_r=no
7974 fi
7976 rm -f core conftest.err conftest.$ac_objext \
7977       conftest$ac_exeext conftest.$ac_ext
7978   CFLAGS="$oldcflags"
7979   ac_ext=c
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986 fi
7987 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7988 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7989 if test "$llvm_cv_link_use_r" = yes ; then
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_LINK_R 1
7993 _ACEOF
7995   fi
7998 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7999 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8000 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003    ac_ext=c
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009   oldcflags="$CFLAGS"
8010   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8018 int
8019 main ()
8022   ;
8023   return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8028 case "(($ac_try" in
8029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030   *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033   (eval "$ac_link") 2>conftest.er1
8034   ac_status=$?
8035   grep -v '^ *+' conftest.er1 >conftest.err
8036   rm -f conftest.er1
8037   cat conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041   { (case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_try") 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; } &&
8050          { ac_try='test -s conftest$ac_exeext'
8051   { (case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   llvm_cv_link_use_export_dynamic=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065         llvm_cv_link_use_export_dynamic=no
8066 fi
8068 rm -f core conftest.err conftest.$ac_objext \
8069       conftest$ac_exeext conftest.$ac_ext
8070   CFLAGS="$oldcflags"
8071   ac_ext=c
8072 ac_cpp='$CPP $CPPFLAGS'
8073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078 fi
8079 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8080 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8081 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_LINK_EXPORT_DYNAMIC 1
8085 _ACEOF
8087   fi
8090 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8091 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8092 if test "${llvm_cv_link_use_version_script+set}" = set; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095    ac_ext=c
8096 ac_cpp='$CPP $CPPFLAGS'
8097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8101   oldcflags="$CFLAGS"
8103   # The following code is from the autoconf manual,
8104   # "11.13: Limitations of Usual Tools".
8105   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8106   # Use mktemp if possible; otherwise fall back on mkdir,
8107   # with $RANDOM to make collisions less likely.
8108   : ${TMPDIR=/tmp}
8109   {
8110     tmp=`
8111       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8112     ` &&
8113     test -n "$tmp" && test -d "$tmp"
8114   } || {
8115     tmp=$TMPDIR/foo$$-$RANDOM
8116     (umask 077 && mkdir "$tmp")
8117   } || exit $?
8119   echo "{" > "$tmp/export.map"
8120   echo "  global: main;" >> "$tmp/export.map"
8121   echo "  local: *;" >> "$tmp/export.map"
8122   echo "};" >> "$tmp/export.map"
8124   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8132 int
8133 main ()
8136   ;
8137   return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8142 case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_link") 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } &&
8154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155   { (case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_try") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; } &&
8164          { ac_try='test -s conftest$ac_exeext'
8165   { (case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_try") 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   llvm_cv_link_use_version_script=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179         llvm_cv_link_use_version_script=no
8180 fi
8182 rm -f core conftest.err conftest.$ac_objext \
8183       conftest$ac_exeext conftest.$ac_ext
8184   rm "$tmp/export.map"
8185   rmdir "$tmp"
8186   CFLAGS="$oldcflags"
8187   ac_ext=c
8188 ac_cpp='$CPP $CPPFLAGS'
8189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8194 fi
8195 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8196 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8197 if test "$llvm_cv_link_use_version_script" = yes ; then
8198   HAVE_LINK_VERSION_SCRIPT=1
8200   fi
8205 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8207 if test "${ac_cv_c_const+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8217 int
8218 main ()
8220 /* FIXME: Include the comments suggested by Paul. */
8221 #ifndef __cplusplus
8222   /* Ultrix mips cc rejects this.  */
8223   typedef int charset[2];
8224   const charset x;
8225   /* SunOS 4.1.1 cc rejects this.  */
8226   char const *const *ccp;
8227   char **p;
8228   /* NEC SVR4.0.2 mips cc rejects this.  */
8229   struct point {int x, y;};
8230   static struct point const zero = {0,0};
8231   /* AIX XL C 1.02.0.0 rejects this.
8232      It does not let you subtract one const X* pointer from another in
8233      an arm of an if-expression whose if-part is not a constant
8234      expression */
8235   const char *g = "string";
8236   ccp = &g + (g ? g-g : 0);
8237   /* HPUX 7.0 cc rejects these. */
8238   ++ccp;
8239   p = (char**) ccp;
8240   ccp = (char const *const *) p;
8241   { /* SCO 3.2v4 cc rejects this.  */
8242     char *t;
8243     char const *s = 0 ? (char *) 0 : (char const *) 0;
8245     *t++ = 0;
8246     if (s) return 0;
8247   }
8248   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8249     int x[] = {25, 17};
8250     const int *foo = &x[0];
8251     ++foo;
8252   }
8253   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254     typedef const int *iptr;
8255     iptr p = 0;
8256     ++p;
8257   }
8258   { /* AIX XL C 1.02.0.0 rejects this saying
8259        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260     struct s { int j; const int *ap[3]; };
8261     struct s *b; b->j = 5;
8262   }
8263   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8264     const int foo = 10;
8265     if (!foo) return 0;
8266   }
8267   return !x[0] && !zero.x;
8268 #endif
8270   ;
8271   return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278   *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281   (eval "$ac_compile") 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } &&
8288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289   { (case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_try") 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   ac_cv_c_const=yes
8309 else
8310   echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313         ac_cv_c_const=no
8314 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8319 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8320 if test $ac_cv_c_const = no; then
8322 cat >>confdefs.h <<\_ACEOF
8323 #define const
8324 _ACEOF
8326 fi
8333 ac_header_dirent=no
8334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8335   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8336 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 #include <sys/types.h>
8348 #include <$ac_hdr>
8350 int
8351 main ()
8353 if ((DIR *) 0)
8354 return 0;
8355   ;
8356   return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_compile") 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374   { (case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_try") 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; } &&
8383          { ac_try='test -s conftest.$ac_objext'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   eval "$as_ac_Header=yes"
8394 else
8395   echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398         eval "$as_ac_Header=no"
8399 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403 ac_res=`eval echo '${'$as_ac_Header'}'`
8404                { echo "$as_me:$LINENO: result: $ac_res" >&5
8405 echo "${ECHO_T}$ac_res" >&6; }
8406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407   cat >>confdefs.h <<_ACEOF
8408 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8409 _ACEOF
8411 ac_header_dirent=$ac_hdr; break
8412 fi
8414 done
8415 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8416 if test $ac_header_dirent = dirent.h; then
8417   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8418 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8419 if test "${ac_cv_search_opendir+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   ac_func_search_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8430 /* Override any GCC internal prototype to avoid an error.
8431    Use char because int might match the return type of a GCC
8432    builtin and then its argument prototype would still apply.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 char opendir ();
8437 int
8438 main ()
8440 return opendir ();
8441   ;
8442   return 0;
8444 _ACEOF
8445 for ac_lib in '' dir; do
8446   if test -z "$ac_lib"; then
8447     ac_res="none required"
8448   else
8449     ac_res=-l$ac_lib
8450     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8451   fi
8452   rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (ac_try="$ac_link"
8454 case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459   (eval "$ac_link") 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } &&
8466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8467   { (case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_try") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }; } &&
8476          { ac_try='test -s conftest$ac_exeext'
8477   { (case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_try") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_cv_search_opendir=$ac_res
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8492 fi
8494 rm -f core conftest.err conftest.$ac_objext \
8495       conftest$ac_exeext
8496   if test "${ac_cv_search_opendir+set}" = set; then
8497   break
8498 fi
8499 done
8500 if test "${ac_cv_search_opendir+set}" = set; then
8501   :
8502 else
8503   ac_cv_search_opendir=no
8504 fi
8505 rm conftest.$ac_ext
8506 LIBS=$ac_func_search_save_LIBS
8507 fi
8508 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8509 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8510 ac_res=$ac_cv_search_opendir
8511 if test "$ac_res" != no; then
8512   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514 fi
8516 else
8517   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8518 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8519 if test "${ac_cv_search_opendir+set}" = set; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   ac_func_search_save_LIBS=$LIBS
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8530 /* Override any GCC internal prototype to avoid an error.
8531    Use char because int might match the return type of a GCC
8532    builtin and then its argument prototype would still apply.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char opendir ();
8537 int
8538 main ()
8540 return opendir ();
8541   ;
8542   return 0;
8544 _ACEOF
8545 for ac_lib in '' x; do
8546   if test -z "$ac_lib"; then
8547     ac_res="none required"
8548   else
8549     ac_res=-l$ac_lib
8550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8551   fi
8552   rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (ac_try="$ac_link"
8554 case "(($ac_try" in
8555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556   *) ac_try_echo=$ac_try;;
8557 esac
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559   (eval "$ac_link") 2>conftest.er1
8560   ac_status=$?
8561   grep -v '^ *+' conftest.er1 >conftest.err
8562   rm -f conftest.er1
8563   cat conftest.err >&5
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8567   { (case "(($ac_try" in
8568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569   *) ac_try_echo=$ac_try;;
8570 esac
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572   (eval "$ac_try") 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_try") 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   ac_cv_search_opendir=$ac_res
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8592 fi
8594 rm -f core conftest.err conftest.$ac_objext \
8595       conftest$ac_exeext
8596   if test "${ac_cv_search_opendir+set}" = set; then
8597   break
8598 fi
8599 done
8600 if test "${ac_cv_search_opendir+set}" = set; then
8601   :
8602 else
8603   ac_cv_search_opendir=no
8604 fi
8605 rm conftest.$ac_ext
8606 LIBS=$ac_func_search_save_LIBS
8607 fi
8608 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8609 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8610 ac_res=$ac_cv_search_opendir
8611 if test "$ac_res" != no; then
8612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614 fi
8616 fi
8619 for ac_header in dlfcn.h
8620 do
8621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8623   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 fi
8628 ac_res=`eval echo '${'$as_ac_Header'}'`
8629                { echo "$as_me:$LINENO: result: $ac_res" >&5
8630 echo "${ECHO_T}$ac_res" >&6; }
8631 else
8632   # Is the header compilable?
8633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641 $ac_includes_default
8642 #include <$ac_header>
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8646 case "(($ac_try" in
8647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648   *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651   (eval "$ac_compile") 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } &&
8658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659   { (case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664   (eval "$ac_try") 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; } &&
8668          { ac_try='test -s conftest.$ac_objext'
8669   { (case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_try") 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   ac_header_compiler=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683         ac_header_compiler=no
8684 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8688 echo "${ECHO_T}$ac_header_compiler" >&6; }
8690 # Is the header present?
8691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699 #include <$ac_header>
8700 _ACEOF
8701 if { (ac_try="$ac_cpp conftest.$ac_ext"
8702 case "(($ac_try" in
8703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704   *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } >/dev/null; then
8714   if test -s conftest.err; then
8715     ac_cpp_err=$ac_c_preproc_warn_flag
8716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8717   else
8718     ac_cpp_err=
8719   fi
8720 else
8721   ac_cpp_err=yes
8722 fi
8723 if test -z "$ac_cpp_err"; then
8724   ac_header_preproc=yes
8725 else
8726   echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729   ac_header_preproc=no
8730 fi
8732 rm -f conftest.err conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8734 echo "${ECHO_T}$ac_header_preproc" >&6; }
8736 # So?  What about this header?
8737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8738   yes:no: )
8739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8743     ac_header_preproc=yes
8744     ;;
8745   no:yes:* )
8746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8758     ( cat <<\_ASBOX
8759 ## ------------------------------------ ##
8760 ## Report this to http://llvm.org/bugs/ ##
8761 ## ------------------------------------ ##
8762 _ASBOX
8763      ) | sed "s/^/$as_me: WARNING:     /" >&2
8764     ;;
8765 esac
8766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   eval "$as_ac_Header=\$ac_header_preproc"
8772 fi
8773 ac_res=`eval echo '${'$as_ac_Header'}'`
8774                { echo "$as_me:$LINENO: result: $ac_res" >&5
8775 echo "${ECHO_T}$ac_res" >&6; }
8777 fi
8778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779   cat >>confdefs.h <<_ACEOF
8780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781 _ACEOF
8783 fi
8785 done
8787 # Check whether --enable-ltdl-install was given.
8788 if test "${enable_ltdl_install+set}" = set; then
8789   enableval=$enable_ltdl_install;
8790 fi
8795 if test x"${enable_ltdl_install-no}" != xno; then
8796   INSTALL_LTDL_TRUE=
8797   INSTALL_LTDL_FALSE='#'
8798 else
8799   INSTALL_LTDL_TRUE='#'
8800   INSTALL_LTDL_FALSE=
8801 fi
8805 if test x"${enable_ltdl_convenience-no}" != xno; then
8806   CONVENIENCE_LTDL_TRUE=
8807   CONVENIENCE_LTDL_FALSE='#'
8808 else
8809   CONVENIENCE_LTDL_TRUE='#'
8810   CONVENIENCE_LTDL_FALSE=
8811 fi
8814 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8815 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8816 library_names_spec=
8817 libname_spec='lib$name'
8818 soname_spec=
8819 shrext_cmds=".so"
8820 postinstall_cmds=
8821 postuninstall_cmds=
8822 finish_cmds=
8823 finish_eval=
8824 shlibpath_var=
8825 shlibpath_overrides_runpath=unknown
8826 version_type=none
8827 dynamic_linker="$host_os ld.so"
8828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8829 if test "$GCC" = yes; then
8830   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8831   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8832     # if the path contains ";" then we assume it to be the separator
8833     # otherwise default to the standard path separator (i.e. ":") - it is
8834     # assumed that no part of a normal pathname contains ";" but that should
8835     # okay in the real world where ";" in dirpaths is itself problematic.
8836     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8837   else
8838     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8839   fi
8840 else
8841   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8842 fi
8843 need_lib_prefix=unknown
8844 hardcode_into_libs=no
8846 # when you set need_version to no, make sure it does not cause -set_version
8847 # flags to be left without arguments
8848 need_version=unknown
8850 case $host_os in
8851 aix3*)
8852   version_type=linux
8853   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8854   shlibpath_var=LIBPATH
8856   # AIX 3 has no versioning support, so we append a major version to the name.
8857   soname_spec='${libname}${release}${shared_ext}$major'
8858   ;;
8860 aix4* | aix5*)
8861   version_type=linux
8862   need_lib_prefix=no
8863   need_version=no
8864   hardcode_into_libs=yes
8865   if test "$host_cpu" = ia64; then
8866     # AIX 5 supports IA64
8867     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8868     shlibpath_var=LD_LIBRARY_PATH
8869   else
8870     # With GCC up to 2.95.x, collect2 would create an import file
8871     # for dependence libraries.  The import file would start with
8872     # the line `#! .'.  This would cause the generated library to
8873     # depend on `.', always an invalid library.  This was fixed in
8874     # development snapshots of GCC prior to 3.0.
8875     case $host_os in
8876       aix4 | aix4.[01] | aix4.[01].*)
8877       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8878            echo ' yes '
8879            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8880         :
8881       else
8882         can_build_shared=no
8883       fi
8884       ;;
8885     esac
8886     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8887     # soname into executable. Probably we can add versioning support to
8888     # collect2, so additional links can be useful in future.
8889     if test "$aix_use_runtimelinking" = yes; then
8890       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8891       # instead of lib<name>.a to let people know that these are not
8892       # typical AIX shared libraries.
8893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894     else
8895       # We preserve .a as extension for shared libraries through AIX4.2
8896       # and later when we are not doing run time linking.
8897       library_names_spec='${libname}${release}.a $libname.a'
8898       soname_spec='${libname}${release}${shared_ext}$major'
8899     fi
8900     shlibpath_var=LIBPATH
8901   fi
8902   ;;
8904 amigaos*)
8905   library_names_spec='$libname.ixlibrary $libname.a'
8906   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8907   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'
8908   ;;
8910 beos*)
8911   library_names_spec='${libname}${shared_ext}'
8912   dynamic_linker="$host_os ld.so"
8913   shlibpath_var=LIBRARY_PATH
8914   ;;
8916 bsdi[45]*)
8917   version_type=linux
8918   need_version=no
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8924   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8925   # the default ld.so.conf also contains /usr/contrib/lib and
8926   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8927   # libtool to hard-code these into programs
8928   ;;
8930 cygwin* | mingw* | pw32*)
8931   version_type=windows
8932   shrext_cmds=".dll"
8933   need_version=no
8934   need_lib_prefix=no
8936   case $GCC,$host_os in
8937   yes,cygwin* | yes,mingw* | yes,pw32*)
8938     library_names_spec='$libname.dll.a'
8939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8940     postinstall_cmds='base_file=`basename \${file}`~
8941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8942       dldir=$destdir/`dirname \$dlpath`~
8943       test -d \$dldir || mkdir -p \$dldir~
8944       $install_prog $dir/$dlname \$dldir/$dlname~
8945       chmod a+x \$dldir/$dlname'
8946     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8947       dlpath=$dir/\$dldll~
8948        $rm \$dlpath'
8949     shlibpath_overrides_runpath=yes
8951     case $host_os in
8952     cygwin*)
8953       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8954       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8956       ;;
8957     mingw*)
8958       # MinGW DLLs use traditional 'lib' prefix
8959       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8961       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8962         # It is most probably a Windows format PATH printed by
8963         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8964         # path with ; separators, and with drive letters. We can handle the
8965         # drive letters (cygwin fileutils understands them), so leave them,
8966         # especially as we might pass files found there to a mingw objdump,
8967         # which wouldn't understand a cygwinified path. Ahh.
8968         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8969       else
8970         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8971       fi
8972       ;;
8973     pw32*)
8974       # pw32 DLLs use 'pw' prefix rather than 'lib'
8975       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976       ;;
8977     esac
8978     ;;
8980   *)
8981     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8982     ;;
8983   esac
8984   dynamic_linker='Win32 ld.exe'
8985   # FIXME: first we should search . and the directory the executable is in
8986   shlibpath_var=PATH
8987   ;;
8989 darwin* | rhapsody*)
8990   dynamic_linker="$host_os dyld"
8991   version_type=darwin
8992   need_lib_prefix=no
8993   need_version=no
8994   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8995   soname_spec='${libname}${release}${major}$shared_ext'
8996   shlibpath_overrides_runpath=yes
8997   shlibpath_var=DYLD_LIBRARY_PATH
8998   shrext_cmds='.dylib'
8999   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9000   if test "$GCC" = yes; then
9001     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"`
9002   else
9003     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9004   fi
9005   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9006   ;;
9008 dgux*)
9009   version_type=linux
9010   need_lib_prefix=no
9011   need_version=no
9012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9013   soname_spec='${libname}${release}${shared_ext}$major'
9014   shlibpath_var=LD_LIBRARY_PATH
9015   ;;
9017 freebsd1.*)
9018   dynamic_linker=no
9019   ;;
9021 kfreebsd*-gnu)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=no
9029   hardcode_into_libs=yes
9030   dynamic_linker='GNU ld.so'
9031   ;;
9033 freebsd* | dragonfly*)
9034   # DragonFly does not have aout.  When/if they implement a new
9035   # versioning mechanism, adjust this.
9036   if test -x /usr/bin/objformat; then
9037     objformat=`/usr/bin/objformat`
9038   else
9039     case $host_os in
9040     freebsd[123].*) objformat=aout ;;
9041     *) objformat=elf ;;
9042     esac
9043   fi
9044   version_type=freebsd-$objformat
9045   case $version_type in
9046     freebsd-elf*)
9047       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9048       need_version=no
9049       need_lib_prefix=no
9050       ;;
9051     freebsd-*)
9052       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9053       need_version=yes
9054       ;;
9055   esac
9056   shlibpath_var=LD_LIBRARY_PATH
9057   case $host_os in
9058   freebsd2.*)
9059     shlibpath_overrides_runpath=yes
9060     ;;
9061   freebsd3.[01]* | freebsdelf3.[01]*)
9062     shlibpath_overrides_runpath=yes
9063     hardcode_into_libs=yes
9064     ;;
9065   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9067     shlibpath_overrides_runpath=no
9068     hardcode_into_libs=yes
9069     ;;
9070   freebsd*) # from 4.6 on
9071     shlibpath_overrides_runpath=yes
9072     hardcode_into_libs=yes
9073     ;;
9074   esac
9075   ;;
9077 gnu*)
9078   version_type=linux
9079   need_lib_prefix=no
9080   need_version=no
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   hardcode_into_libs=yes
9085   ;;
9087 hpux9* | hpux10* | hpux11*)
9088   # Give a soname corresponding to the major version so that dld.sl refuses to
9089   # link against other versions.
9090   version_type=sunos
9091   need_lib_prefix=no
9092   need_version=no
9093   case $host_cpu in
9094   ia64*)
9095     shrext_cmds='.so'
9096     hardcode_into_libs=yes
9097     dynamic_linker="$host_os dld.so"
9098     shlibpath_var=LD_LIBRARY_PATH
9099     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101     soname_spec='${libname}${release}${shared_ext}$major'
9102     if test "X$HPUX_IA64_MODE" = X32; then
9103       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9104     else
9105       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9106     fi
9107     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9108     ;;
9109    hppa*64*)
9110      shrext_cmds='.sl'
9111      hardcode_into_libs=yes
9112      dynamic_linker="$host_os dld.sl"
9113      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116      soname_spec='${libname}${release}${shared_ext}$major'
9117      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9119      ;;
9120    *)
9121     shrext_cmds='.sl'
9122     dynamic_linker="$host_os dld.sl"
9123     shlibpath_var=SHLIB_PATH
9124     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126     soname_spec='${libname}${release}${shared_ext}$major'
9127     ;;
9128   esac
9129   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130   postinstall_cmds='chmod 555 $lib'
9131   ;;
9133 interix3*)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140   shlibpath_var=LD_LIBRARY_PATH
9141   shlibpath_overrides_runpath=no
9142   hardcode_into_libs=yes
9143   ;;
9145 irix5* | irix6* | nonstopux*)
9146   case $host_os in
9147     nonstopux*) version_type=nonstopux ;;
9148     *)
9149         if test "$lt_cv_prog_gnu_ld" = yes; then
9150                 version_type=linux
9151         else
9152                 version_type=irix
9153         fi ;;
9154   esac
9155   need_lib_prefix=no
9156   need_version=no
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9159   case $host_os in
9160   irix5* | nonstopux*)
9161     libsuff= shlibsuff=
9162     ;;
9163   *)
9164     case $LD in # libtool.m4 will add one of these switches to LD
9165     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166       libsuff= shlibsuff= libmagic=32-bit;;
9167     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168       libsuff=32 shlibsuff=N32 libmagic=N32;;
9169     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171     *) libsuff= shlibsuff= libmagic=never-match;;
9172     esac
9173     ;;
9174   esac
9175   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176   shlibpath_overrides_runpath=no
9177   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179   hardcode_into_libs=yes
9180   ;;
9182 # No shared lib support for Linux oldld, aout, or coff.
9183 linux*oldld* | linux*aout* | linux*coff*)
9184   dynamic_linker=no
9185   ;;
9187 # This must be Linux ELF.
9188 linux*)
9189   version_type=linux
9190   need_lib_prefix=no
9191   need_version=no
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193   soname_spec='${libname}${release}${shared_ext}$major'
9194   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   shlibpath_overrides_runpath=no
9197   # This implies no fast_install, which is unacceptable.
9198   # Some rework will be needed to allow for fast_install
9199   # before this can be enabled.
9200   hardcode_into_libs=yes
9202   # Append ld.so.conf contents to the search path
9203   if test -f /etc/ld.so.conf; then
9204     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' ' '`
9205     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9206   fi
9208   # We used to test for /lib/ld.so.1 and disable shared libraries on
9209   # powerpc, because MkLinux only supported shared libraries with the
9210   # GNU dynamic linker.  Since this was broken with cross compilers,
9211   # most powerpc-linux boxes support dynamic linking these days and
9212   # people can always --disable-shared, the test was removed, and we
9213   # assume the GNU/Linux dynamic linker is in use.
9214   dynamic_linker='GNU/Linux ld.so'
9215   ;;
9217 knetbsd*-gnu)
9218   version_type=linux
9219   need_lib_prefix=no
9220   need_version=no
9221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222   soname_spec='${libname}${release}${shared_ext}$major'
9223   shlibpath_var=LD_LIBRARY_PATH
9224   shlibpath_overrides_runpath=no
9225   hardcode_into_libs=yes
9226   dynamic_linker='GNU ld.so'
9227   ;;
9229 netbsd*)
9230   version_type=sunos
9231   need_lib_prefix=no
9232   need_version=no
9233   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9235     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9236     dynamic_linker='NetBSD (a.out) ld.so'
9237   else
9238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239     soname_spec='${libname}${release}${shared_ext}$major'
9240     dynamic_linker='NetBSD ld.elf_so'
9241   fi
9242   shlibpath_var=LD_LIBRARY_PATH
9243   shlibpath_overrides_runpath=yes
9244   hardcode_into_libs=yes
9245   ;;
9247 newsos6)
9248   version_type=linux
9249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=yes
9252   ;;
9254 nto-qnx*)
9255   version_type=linux
9256   need_lib_prefix=no
9257   need_version=no
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   shlibpath_overrides_runpath=yes
9262   ;;
9264 openbsd* | bitrig*)
9265   version_type=sunos
9266   sys_lib_dlsearch_path_spec="/usr/lib"
9267   need_lib_prefix=no
9268   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9269   case $host_os in
9270     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9271     *)                         need_version=no  ;;
9272   esac
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9274   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9277     case $host_os in
9278       openbsd2.[89] | openbsd2.[89].*)
9279         shlibpath_overrides_runpath=no
9280         ;;
9281       *)
9282         shlibpath_overrides_runpath=yes
9283         ;;
9284       esac
9285   else
9286     shlibpath_overrides_runpath=yes
9287   fi
9288   ;;
9290 os2*)
9291   libname_spec='$name'
9292   shrext_cmds=".dll"
9293   need_lib_prefix=no
9294   library_names_spec='$libname${shared_ext} $libname.a'
9295   dynamic_linker='OS/2 ld.exe'
9296   shlibpath_var=LIBPATH
9297   ;;
9299 osf3* | osf4* | osf5*)
9300   version_type=osf
9301   need_lib_prefix=no
9302   need_version=no
9303   soname_spec='${libname}${release}${shared_ext}$major'
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9307   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9308   ;;
9310 solaris*)
9311   version_type=linux
9312   need_lib_prefix=no
9313   need_version=no
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   shlibpath_var=LD_LIBRARY_PATH
9317   shlibpath_overrides_runpath=yes
9318   hardcode_into_libs=yes
9319   # ldd complains unless libraries are executable
9320   postinstall_cmds='chmod +x $lib'
9321   ;;
9323 sunos4*)
9324   version_type=sunos
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9326   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   shlibpath_overrides_runpath=yes
9329   if test "$with_gnu_ld" = yes; then
9330     need_lib_prefix=no
9331   fi
9332   need_version=yes
9333   ;;
9335 sysv4 | sysv4.3*)
9336   version_type=linux
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   shlibpath_var=LD_LIBRARY_PATH
9340   case $host_vendor in
9341     sni)
9342       shlibpath_overrides_runpath=no
9343       need_lib_prefix=no
9344       export_dynamic_flag_spec='${wl}-Blargedynsym'
9345       runpath_var=LD_RUN_PATH
9346       ;;
9347     siemens)
9348       need_lib_prefix=no
9349       ;;
9350     motorola)
9351       need_lib_prefix=no
9352       need_version=no
9353       shlibpath_overrides_runpath=no
9354       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9355       ;;
9356   esac
9357   ;;
9359 sysv4*MP*)
9360   if test -d /usr/nec ;then
9361     version_type=linux
9362     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9363     soname_spec='$libname${shared_ext}.$major'
9364     shlibpath_var=LD_LIBRARY_PATH
9365   fi
9366   ;;
9368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9369   version_type=freebsd-elf
9370   need_lib_prefix=no
9371   need_version=no
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   hardcode_into_libs=yes
9376   if test "$with_gnu_ld" = yes; then
9377     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9378     shlibpath_overrides_runpath=no
9379   else
9380     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9381     shlibpath_overrides_runpath=yes
9382     case $host_os in
9383       sco3.2v5*)
9384         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9385         ;;
9386     esac
9387   fi
9388   sys_lib_dlsearch_path_spec='/usr/lib'
9389   ;;
9391 uts4*)
9392   version_type=linux
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394   soname_spec='${libname}${release}${shared_ext}$major'
9395   shlibpath_var=LD_LIBRARY_PATH
9396   ;;
9398 *)
9399   dynamic_linker=no
9400   ;;
9401 esac
9402 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9403 echo "${ECHO_T}$dynamic_linker" >&6; }
9404 test "$dynamic_linker" = no && can_build_shared=no
9406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9407 if test "$GCC" = yes; then
9408   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9409 fi
9412 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9413 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9414 if test "${libltdl_cv_shlibext+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9418 module=yes
9419 eval libltdl_cv_shlibext=$shrext_cmds
9421 fi
9422 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9423 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9424 if test -n "$libltdl_cv_shlibext"; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9428 _ACEOF
9430 fi
9433 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9434 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_sys_search_path+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9439 fi
9440 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9441 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9442 if test -n "$libltdl_cv_sys_search_path"; then
9443   sys_search_path=
9444   for dir in $libltdl_cv_sys_search_path; do
9445     if test -z "$sys_search_path"; then
9446       sys_search_path="$dir"
9447     else
9448       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9449     fi
9450   done
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9454 _ACEOF
9456 fi
9458 { echo "$as_me:$LINENO: checking for objdir" >&5
9459 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9460 if test "${libltdl_cv_objdir+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   libltdl_cv_objdir="$objdir"
9464   if test -n "$objdir"; then
9465     :
9466   else
9467     rm -f .libs 2>/dev/null
9468     mkdir .libs 2>/dev/null
9469     if test -d .libs; then
9470       libltdl_cv_objdir=.libs
9471     else
9472       # MS-DOS does not allow filenames that begin with a dot.
9473       libltdl_cv_objdir=_libs
9474     fi
9475   rmdir .libs 2>/dev/null
9476   fi
9478 fi
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9480 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9482 cat >>confdefs.h <<_ACEOF
9483 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9484 _ACEOF
9491 # Check for command to grab the raw symbol name followed by C symbol from nm.
9492 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9493 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9494 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9498 # These are sane defaults that work on at least a few old systems.
9499 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9501 # Character class describing NM global symbol codes.
9502 symcode='[BCDEGRST]'
9504 # Regexp to match symbols that can be accessed directly from C.
9505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9507 # Transform an extracted symbol line into a proper C declaration
9508 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9510 # Transform an extracted symbol line into symbol name and symbol address
9511 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'"
9513 # Define system-specific variables.
9514 case $host_os in
9515 aix*)
9516   symcode='[BCDT]'
9517   ;;
9518 cygwin* | mingw* | pw32*)
9519   symcode='[ABCDGISTW]'
9520   ;;
9521 hpux*) # Its linker distinguishes data from code symbols
9522   if test "$host_cpu" = ia64; then
9523     symcode='[ABCDEGRST]'
9524   fi
9525   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9527   ;;
9528 linux*)
9529   if test "$host_cpu" = ia64; then
9530     symcode='[ABCDGIRSTW]'
9531     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532     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'"
9533   fi
9534   ;;
9535 irix* | nonstopux*)
9536   symcode='[BCDEGRST]'
9537   ;;
9538 osf*)
9539   symcode='[BCDEGQRST]'
9540   ;;
9541 solaris*)
9542   symcode='[BDRT]'
9543   ;;
9544 sco3.2v5*)
9545   symcode='[DT]'
9546   ;;
9547 sysv4.2uw2*)
9548   symcode='[DT]'
9549   ;;
9550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9551   symcode='[ABDT]'
9552   ;;
9553 sysv4)
9554   symcode='[DFNSTU]'
9555   ;;
9556 esac
9558 # Handle CRLF in mingw tool chain
9559 opt_cr=
9560 case $build_os in
9561 mingw*)
9562   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9563   ;;
9564 esac
9566 # If we're using GNU nm, then use its standard symbol codes.
9567 case `$NM -V 2>&1` in
9568 *GNU* | *'with BFD'*)
9569   symcode='[ABCDGIRSTW]' ;;
9570 esac
9572 # Try without a prefix undercore, then with it.
9573 for ac_symprfx in "" "_"; do
9575   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9576   symxfrm="\\1 $ac_symprfx\\2 \\2"
9578   # Write the raw and C identifiers.
9579   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9581   # Check to see that the pipe works correctly.
9582   pipe_works=no
9584   rm -f conftest*
9585   cat > conftest.$ac_ext <<EOF
9586 #ifdef __cplusplus
9587 extern "C" {
9588 #endif
9589 char nm_test_var;
9590 void nm_test_func(){}
9591 #ifdef __cplusplus
9593 #endif
9594 int main(){nm_test_var='a';nm_test_func();return(0);}
9595 EOF
9597   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9598   (eval $ac_compile) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; then
9602     # Now try to grab the symbols.
9603     nlist=conftest.nm
9604     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9605   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } && test -s "$nlist"; then
9609       # Try sorting and uniquifying the output.
9610       if sort "$nlist" | uniq > "$nlist"T; then
9611         mv -f "$nlist"T "$nlist"
9612       else
9613         rm -f "$nlist"T
9614       fi
9616       # Make sure that we snagged all the symbols we need.
9617       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9618         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9619           cat <<EOF > conftest.$ac_ext
9620 #ifdef __cplusplus
9621 extern "C" {
9622 #endif
9624 EOF
9625           # Now generate the symbol file.
9626           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9628           cat <<EOF >> conftest.$ac_ext
9629 #if defined (__STDC__) && __STDC__
9630 # define lt_ptr_t void *
9631 #else
9632 # define lt_ptr_t char *
9633 # define const
9634 #endif
9636 /* The mapping between symbol names and symbols. */
9637 const struct {
9638   const char *name;
9639   lt_ptr_t address;
9641 lt_preloaded_symbols[] =
9643 EOF
9644           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9645           cat <<\EOF >> conftest.$ac_ext
9646   {0, (lt_ptr_t) 0}
9647 };
9649 #ifdef __cplusplus
9651 #endif
9652 EOF
9653           # Now try linking the two files.
9654           mv conftest.$ac_objext conftstm.$ac_objext
9655           lt_save_LIBS="$LIBS"
9656           lt_save_CFLAGS="$CFLAGS"
9657           LIBS="conftstm.$ac_objext"
9658           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9659           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660   (eval $ac_link) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9664             pipe_works=yes
9665           fi
9666           LIBS="$lt_save_LIBS"
9667           CFLAGS="$lt_save_CFLAGS"
9668         else
9669           echo "cannot find nm_test_func in $nlist" >&5
9670         fi
9671       else
9672         echo "cannot find nm_test_var in $nlist" >&5
9673       fi
9674     else
9675       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9676     fi
9677   else
9678     echo "$progname: failed program was:" >&5
9679     cat conftest.$ac_ext >&5
9680   fi
9681   rm -f conftest* conftst*
9683   # Do not use the global_symbol_pipe unless it works.
9684   if test "$pipe_works" = yes; then
9685     break
9686   else
9687     lt_cv_sys_global_symbol_pipe=
9688   fi
9689 done
9691 fi
9693 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9694   lt_cv_sys_global_symbol_to_cdecl=
9695 fi
9696 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9697   { echo "$as_me:$LINENO: result: failed" >&5
9698 echo "${ECHO_T}failed" >&6; }
9699 else
9700   { echo "$as_me:$LINENO: result: ok" >&5
9701 echo "${ECHO_T}ok" >&6; }
9702 fi
9705 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9706 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9707 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9711     libltdl_cv_preloaded_symbols=yes
9712   else
9713     libltdl_cv_preloaded_symbols=no
9714   fi
9716 fi
9717 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9718 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9719 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_PRELOADED_SYMBOLS 1
9723 _ACEOF
9725 fi
9727 LIBADD_DL=
9729 ac_ext=c
9730 ac_cpp='$CPP $CPPFLAGS'
9731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9736 { echo "$as_me:$LINENO: checking for shl_load" >&5
9737 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9738 if test "${ac_cv_func_shl_load+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h.  */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h.  */
9747 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9749 #define shl_load innocuous_shl_load
9751 /* System header to define __stub macros and hopefully few prototypes,
9752     which can conflict with char shl_load (); below.
9753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754     <limits.h> exists even on freestanding compilers.  */
9756 #ifdef __STDC__
9757 # include <limits.h>
9758 #else
9759 # include <assert.h>
9760 #endif
9762 #undef shl_load
9764 /* Override any GCC internal prototype to avoid an error.
9765    Use char because int might match the return type of a GCC
9766    builtin and then its argument prototype would still apply.  */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char shl_load ();
9771 /* The GNU C library defines this for functions which it implements
9772     to always fail with ENOSYS.  Some functions are actually named
9773     something starting with __ and the normal name is an alias.  */
9774 #if defined __stub_shl_load || defined __stub___shl_load
9775 choke me
9776 #endif
9778 int
9779 main ()
9781 return shl_load ();
9782   ;
9783   return 0;
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_link") 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; } &&
9810          { ac_try='test -s conftest$ac_exeext'
9811   { (case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_try") 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_func_shl_load=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825         ac_cv_func_shl_load=no
9826 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829       conftest$ac_exeext conftest.$ac_ext
9830 fi
9831 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9832 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9833 if test $ac_cv_func_shl_load = yes; then
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_SHL_LOAD 1
9837 _ACEOF
9839 else
9840   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9841 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-ldld  $LIBS"
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9854 /* Override any GCC internal prototype to avoid an error.
9855    Use char because int might match the return type of a GCC
9856    builtin and then its argument prototype would still apply.  */
9857 #ifdef __cplusplus
9858 extern "C"
9859 #endif
9860 char shl_load ();
9861 int
9862 main ()
9864 return shl_load ();
9865   ;
9866   return 0;
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9871 case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876   (eval "$ac_link") 2>conftest.er1
9877   ac_status=$?
9878   grep -v '^ *+' conftest.er1 >conftest.err
9879   rm -f conftest.er1
9880   cat conftest.err >&5
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } &&
9883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884   { (case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_try") 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; } &&
9893          { ac_try='test -s conftest$ac_exeext'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; }; then
9903   ac_cv_lib_dld_shl_load=yes
9904 else
9905   echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908         ac_cv_lib_dld_shl_load=no
9909 fi
9911 rm -f core conftest.err conftest.$ac_objext \
9912       conftest$ac_exeext conftest.$ac_ext
9913 LIBS=$ac_check_lib_save_LIBS
9914 fi
9915 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9916 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9917 if test $ac_cv_lib_dld_shl_load = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_SHL_LOAD 1
9921 _ACEOF
9923         LIBADD_DL="$LIBADD_DL -ldld"
9924 else
9925   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9926 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930   ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-ldl  $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9939 /* Override any GCC internal prototype to avoid an error.
9940    Use char because int might match the return type of a GCC
9941    builtin and then its argument prototype would still apply.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char dlopen ();
9946 int
9947 main ()
9949 return dlopen ();
9950   ;
9951   return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_link") 2>conftest.er1
9962   ac_status=$?
9963   grep -v '^ *+' conftest.er1 >conftest.err
9964   rm -f conftest.er1
9965   cat conftest.err >&5
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969   { (case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_try") 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; } &&
9978          { ac_try='test -s conftest$ac_exeext'
9979   { (case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_try") 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }; }; then
9988   ac_cv_lib_dl_dlopen=yes
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993         ac_cv_lib_dl_dlopen=no
9994 fi
9996 rm -f core conftest.err conftest.$ac_objext \
9997       conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
9999 fi
10000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10002 if test $ac_cv_lib_dl_dlopen = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_LIBDL 1
10006 _ACEOF
10008                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 #if HAVE_DLFCN_H
10017 #  include <dlfcn.h>
10018 #endif
10020 int
10021 main ()
10023 dlopen(0, 0);
10024   ;
10025   return 0;
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (ac_try="$ac_link"
10030 case "(($ac_try" in
10031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032   *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035   (eval "$ac_link") 2>conftest.er1
10036   ac_status=$?
10037   grep -v '^ *+' conftest.er1 >conftest.err
10038   rm -f conftest.er1
10039   cat conftest.err >&5
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } &&
10042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043   { (case "(($ac_try" in
10044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045   *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048   (eval "$ac_try") 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; } &&
10052          { ac_try='test -s conftest$ac_exeext'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_LIBDL 1
10065 _ACEOF
10066  libltdl_cv_func_dlopen="yes"
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10072 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lsvld  $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10085 /* Override any GCC internal prototype to avoid an error.
10086    Use char because int might match the return type of a GCC
10087    builtin and then its argument prototype would still apply.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char dlopen ();
10092 int
10093 main ()
10095 return dlopen ();
10096   ;
10097   return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_link") 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } &&
10114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10115   { (case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_try") 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; } &&
10124          { ac_try='test -s conftest$ac_exeext'
10125   { (case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_try") 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_cv_lib_svld_dlopen=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139         ac_cv_lib_svld_dlopen=no
10142 rm -f core conftest.err conftest.$ac_objext \
10143       conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10147 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10148 if test $ac_cv_lib_svld_dlopen = yes; then
10150 cat >>confdefs.h <<\_ACEOF
10151 #define HAVE_LIBDL 1
10152 _ACEOF
10154                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10155 else
10156   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161   ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-ldld  $LIBS"
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10170 /* Override any GCC internal prototype to avoid an error.
10171    Use char because int might match the return type of a GCC
10172    builtin and then its argument prototype would still apply.  */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char dld_link ();
10177 int
10178 main ()
10180 return dld_link ();
10181   ;
10182   return 0;
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_link") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200   { (case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_try") 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; } &&
10209          { ac_try='test -s conftest$ac_exeext'
10210   { (case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_try") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_lib_dld_dld_link=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224         ac_cv_lib_dld_dld_link=no
10227 rm -f core conftest.err conftest.$ac_objext \
10228       conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10233 if test $ac_cv_lib_dld_dld_link = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_DLD 1
10237 _ACEOF
10239                 LIBADD_DL="$LIBADD_DL -ldld"
10240 else
10241   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10242 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10243 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10254 #define _dyld_func_lookup innocuous__dyld_func_lookup
10256 /* System header to define __stub macros and hopefully few prototypes,
10257     which can conflict with char _dyld_func_lookup (); below.
10258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10259     <limits.h> exists even on freestanding compilers.  */
10261 #ifdef __STDC__
10262 # include <limits.h>
10263 #else
10264 # include <assert.h>
10265 #endif
10267 #undef _dyld_func_lookup
10269 /* Override any GCC internal prototype to avoid an error.
10270    Use char because int might match the return type of a GCC
10271    builtin and then its argument prototype would still apply.  */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char _dyld_func_lookup ();
10276 /* The GNU C library defines this for functions which it implements
10277     to always fail with ENOSYS.  Some functions are actually named
10278     something starting with __ and the normal name is an alias.  */
10279 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10280 choke me
10281 #endif
10283 int
10284 main ()
10286 return _dyld_func_lookup ();
10287   ;
10288   return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_link") 2>conftest.er1
10299   ac_status=$?
10300   grep -v '^ *+' conftest.er1 >conftest.err
10301   rm -f conftest.er1
10302   cat conftest.err >&5
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } &&
10305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10306   { (case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311   (eval "$ac_try") 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; } &&
10315          { ac_try='test -s conftest$ac_exeext'
10316   { (case "(($ac_try" in
10317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318   *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321   (eval "$ac_try") 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_cv_func__dyld_func_lookup=yes
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330         ac_cv_func__dyld_func_lookup=no
10333 rm -f core conftest.err conftest.$ac_objext \
10334       conftest$ac_exeext conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10337 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10338 if test $ac_cv_func__dyld_func_lookup = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_DYLD 1
10342 _ACEOF
10355 rm -f core conftest.err conftest.$ac_objext \
10356       conftest$ac_exeext conftest.$ac_ext
10367 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10368 then
10369   lt_save_LIBS="$LIBS"
10370   LIBS="$LIBS $LIBADD_DL"
10372 for ac_func in dlerror
10374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10388 #define $ac_func innocuous_$ac_func
10390 /* System header to define __stub macros and hopefully few prototypes,
10391     which can conflict with char $ac_func (); below.
10392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393     <limits.h> exists even on freestanding compilers.  */
10395 #ifdef __STDC__
10396 # include <limits.h>
10397 #else
10398 # include <assert.h>
10399 #endif
10401 #undef $ac_func
10403 /* Override any GCC internal prototype to avoid an error.
10404    Use char because int might match the return type of a GCC
10405    builtin and then its argument prototype would still apply.  */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 char $ac_func ();
10410 /* The GNU C library defines this for functions which it implements
10411     to always fail with ENOSYS.  Some functions are actually named
10412     something starting with __ and the normal name is an alias.  */
10413 #if defined __stub_$ac_func || defined __stub___$ac_func
10414 choke me
10415 #endif
10417 int
10418 main ()
10420 return $ac_func ();
10421   ;
10422   return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 if { (ac_try="$ac_link"
10427 case "(($ac_try" in
10428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429   *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432   (eval "$ac_link") 2>conftest.er1
10433   ac_status=$?
10434   grep -v '^ *+' conftest.er1 >conftest.err
10435   rm -f conftest.er1
10436   cat conftest.err >&5
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } &&
10439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10440   { (case "(($ac_try" in
10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442   *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445   (eval "$ac_try") 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; } &&
10449          { ac_try='test -s conftest$ac_exeext'
10450   { (case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_try") 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   eval "$as_ac_var=yes"
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464         eval "$as_ac_var=no"
10467 rm -f core conftest.err conftest.$ac_objext \
10468       conftest$ac_exeext conftest.$ac_ext
10470 ac_res=`eval echo '${'$as_ac_var'}'`
10471                { echo "$as_me:$LINENO: result: $ac_res" >&5
10472 echo "${ECHO_T}$ac_res" >&6; }
10473 if test `eval echo '${'$as_ac_var'}'` = yes; then
10474   cat >>confdefs.h <<_ACEOF
10475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10476 _ACEOF
10479 done
10481   LIBS="$lt_save_LIBS"
10483 ac_ext=c
10484 ac_cpp='$CPP $CPPFLAGS'
10485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10491 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10492 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10493 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   ac_cv_sys_symbol_underscore=no
10497   cat > conftest.$ac_ext <<EOF
10498 void nm_test_func(){}
10499 int main(){nm_test_func;return 0;}
10500 EOF
10501   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; then
10506     # Now try to grab the symbols.
10507     ac_nlist=conftest.nm
10508     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10509   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } && test -s "$ac_nlist"; then
10513       # See whether the symbols have a leading underscore.
10514       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10515         ac_cv_sys_symbol_underscore=yes
10516       else
10517         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10518           :
10519         else
10520           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10521         fi
10522       fi
10523     else
10524       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10525     fi
10526   else
10527     echo "configure: failed program was:" >&5
10528     cat conftest.c >&5
10529   fi
10530   rm -rf conftest*
10533 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10534 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10537 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10538   if test x"$libltdl_cv_func_dlopen" = xyes ||
10539      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10540         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10541 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10542 if test "${libltdl_cv_need_uscore+set}" = set; then
10543   echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545   libltdl_cv_need_uscore=unknown
10546           save_LIBS="$LIBS"
10547           LIBS="$LIBS $LIBADD_DL"
10548           if test "$cross_compiling" = yes; then :
10549   libltdl_cv_need_uscore=cross
10550 else
10551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552   lt_status=$lt_dlunknown
10553   cat > conftest.$ac_ext <<EOF
10554 #line 10554 "configure"
10555 #include "confdefs.h"
10557 #if HAVE_DLFCN_H
10558 #include <dlfcn.h>
10559 #endif
10561 #include <stdio.h>
10563 #ifdef RTLD_GLOBAL
10564 #  define LT_DLGLOBAL           RTLD_GLOBAL
10565 #else
10566 #  ifdef DL_GLOBAL
10567 #    define LT_DLGLOBAL         DL_GLOBAL
10568 #  else
10569 #    define LT_DLGLOBAL         0
10570 #  endif
10571 #endif
10573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574    find out it does not work in some platform. */
10575 #ifndef LT_DLLAZY_OR_NOW
10576 #  ifdef RTLD_LAZY
10577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10578 #  else
10579 #    ifdef DL_LAZY
10580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10581 #    else
10582 #      ifdef RTLD_NOW
10583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10584 #      else
10585 #        ifdef DL_NOW
10586 #          define LT_DLLAZY_OR_NOW      DL_NOW
10587 #        else
10588 #          define LT_DLLAZY_OR_NOW      0
10589 #        endif
10590 #      endif
10591 #    endif
10592 #  endif
10593 #endif
10595 #ifdef __cplusplus
10596 extern "C" void exit (int);
10597 #endif
10599 void fnord() { int i=42;}
10600 int main ()
10602   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603   int status = $lt_dlunknown;
10605   if (self)
10606     {
10607       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609       /* dlclose (self); */
10610     }
10611   else
10612     puts (dlerror ());
10614     exit (status);
10616 EOF
10617   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618   (eval $ac_link) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622     (./conftest; exit; ) >&5 2>/dev/null
10623     lt_status=$?
10624     case x$lt_status in
10625       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10626       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10627       x$lt_dlunknown|x*)  ;;
10628     esac
10629   else :
10630     # compilation failed
10632   fi
10634 rm -fr conftest*
10636           LIBS="$save_LIBS"
10639 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10640 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10641   fi
10644 if test x"$libltdl_cv_need_uscore" = xyes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define NEED_USCORE 1
10648 _ACEOF
10653 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10654 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10655 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   # PORTME does your system automatically load deplibs for dlopen?
10659   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10660   # For now, we just catch OSes we know something about -- in the
10661   # future, we'll try test this programmatically.
10662   libltdl_cv_sys_dlopen_deplibs=unknown
10663   case "$host_os" in
10664   aix3*|aix4.1.*|aix4.2.*)
10665     # Unknown whether this is true for these versions of AIX, but
10666     # we want this `case' here to explicitly catch those versions.
10667     libltdl_cv_sys_dlopen_deplibs=unknown
10668     ;;
10669   aix[45]*)
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   darwin*)
10673     # Assuming the user has installed a libdl from somewhere, this is true
10674     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10675     libltdl_cv_sys_dlopen_deplibs=yes
10676     ;;
10677   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10678     # GNU and its variants, using gnu ld.so (Glibc)
10679     libltdl_cv_sys_dlopen_deplibs=yes
10680     ;;
10681   hpux10*|hpux11*)
10682     libltdl_cv_sys_dlopen_deplibs=yes
10683     ;;
10684   interix*)
10685     libltdl_cv_sys_dlopen_deplibs=yes
10686     ;;
10687   irix[12345]*|irix6.[01]*)
10688     # Catch all versions of IRIX before 6.2, and indicate that we don't
10689     # know how it worked for any of those versions.
10690     libltdl_cv_sys_dlopen_deplibs=unknown
10691     ;;
10692   irix*)
10693     # The case above catches anything before 6.2, and it's known that
10694     # at 6.2 and later dlopen does load deplibs.
10695     libltdl_cv_sys_dlopen_deplibs=yes
10696     ;;
10697   netbsd*)
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   openbsd*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   osf[1234]*)
10704     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10705     # it did *not* use an RPATH in a shared library to find objects the
10706     # library depends on, so we explicitly say `no'.
10707     libltdl_cv_sys_dlopen_deplibs=no
10708     ;;
10709   osf5.0|osf5.0a|osf5.1)
10710     # dlopen *does* load deplibs and with the right loader patch applied
10711     # it even uses RPATH in a shared library to search for shared objects
10712     # that the library depends on, but there's no easy way to know if that
10713     # patch is installed.  Since this is the case, all we can really
10714     # say is unknown -- it depends on the patch being installed.  If
10715     # it is, this changes to `yes'.  Without it, it would be `no'.
10716     libltdl_cv_sys_dlopen_deplibs=unknown
10717     ;;
10718   osf*)
10719     # the two cases above should catch all versions of osf <= 5.1.  Read
10720     # the comments above for what we know about them.
10721     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10722     # is used to find them so we can finally say `yes'.
10723     libltdl_cv_sys_dlopen_deplibs=yes
10724     ;;
10725   solaris*)
10726     libltdl_cv_sys_dlopen_deplibs=yes
10727     ;;
10728   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10729     libltdl_cv_sys_dlopen_deplibs=yes
10730     ;;
10731   esac
10734 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10735 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10736 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10738 cat >>confdefs.h <<\_ACEOF
10739 #define LTDL_DLOPEN_DEPLIBS 1
10740 _ACEOF
10745 for ac_header in argz.h
10747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10749   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 ac_res=`eval echo '${'$as_ac_Header'}'`
10755                { echo "$as_me:$LINENO: result: $ac_res" >&5
10756 echo "${ECHO_T}$ac_res" >&6; }
10757 else
10758   # Is the header compilable?
10759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767 $ac_includes_default
10768 #include <$ac_header>
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_compile") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } &&
10784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785   { (case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790   (eval "$ac_try") 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; } &&
10794          { ac_try='test -s conftest.$ac_objext'
10795   { (case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800   (eval "$ac_try") 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_header_compiler=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809         ac_header_compiler=no
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10814 echo "${ECHO_T}$ac_header_compiler" >&6; }
10816 # Is the header present?
10817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 #include <$ac_header>
10826 _ACEOF
10827 if { (ac_try="$ac_cpp conftest.$ac_ext"
10828 case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } >/dev/null; then
10840   if test -s conftest.err; then
10841     ac_cpp_err=$ac_c_preproc_warn_flag
10842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843   else
10844     ac_cpp_err=
10845   fi
10846 else
10847   ac_cpp_err=yes
10849 if test -z "$ac_cpp_err"; then
10850   ac_header_preproc=yes
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855   ac_header_preproc=no
10858 rm -f conftest.err conftest.$ac_ext
10859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10860 echo "${ECHO_T}$ac_header_preproc" >&6; }
10862 # So?  What about this header?
10863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10864   yes:no: )
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10869     ac_header_preproc=yes
10870     ;;
10871   no:yes:* )
10872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10884     ( cat <<\_ASBOX
10885 ## ------------------------------------ ##
10886 ## Report this to http://llvm.org/bugs/ ##
10887 ## ------------------------------------ ##
10888 _ASBOX
10889      ) | sed "s/^/$as_me: WARNING:     /" >&2
10890     ;;
10891 esac
10892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   eval "$as_ac_Header=\$ac_header_preproc"
10899 ac_res=`eval echo '${'$as_ac_Header'}'`
10900                { echo "$as_me:$LINENO: result: $ac_res" >&5
10901 echo "${ECHO_T}$ac_res" >&6; }
10904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10905   cat >>confdefs.h <<_ACEOF
10906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10907 _ACEOF
10911 done
10914 { echo "$as_me:$LINENO: checking for error_t" >&5
10915 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10916 if test "${ac_cv_type_error_t+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925 #if HAVE_ARGZ_H
10926 #  include <argz.h>
10927 #endif
10929 typedef error_t ac__type_new_;
10930 int
10931 main ()
10933 if ((ac__type_new_ *) 0)
10934   return 0;
10935 if (sizeof (ac__type_new_))
10936   return 0;
10937   ;
10938   return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_compile") 2>conftest.er1
10949   ac_status=$?
10950   grep -v '^ *+' conftest.er1 >conftest.err
10951   rm -f conftest.er1
10952   cat conftest.err >&5
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); } &&
10955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10956   { (case "(($ac_try" in
10957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958   *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961   (eval "$ac_try") 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; } &&
10965          { ac_try='test -s conftest.$ac_objext'
10966   { (case "(($ac_try" in
10967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968   *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971   (eval "$ac_try") 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; }; then
10975   ac_cv_type_error_t=yes
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980         ac_cv_type_error_t=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10986 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10987 if test $ac_cv_type_error_t = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_ERROR_T 1
10991 _ACEOF
10994 else
10996 cat >>confdefs.h <<\_ACEOF
10997 #define error_t int
10998 _ACEOF
11008 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11014   echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016   cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11024 #define $ac_func innocuous_$ac_func
11026 /* System header to define __stub macros and hopefully few prototypes,
11027     which can conflict with char $ac_func (); below.
11028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029     <limits.h> exists even on freestanding compilers.  */
11031 #ifdef __STDC__
11032 # include <limits.h>
11033 #else
11034 # include <assert.h>
11035 #endif
11037 #undef $ac_func
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char $ac_func ();
11046 /* The GNU C library defines this for functions which it implements
11047     to always fail with ENOSYS.  Some functions are actually named
11048     something starting with __ and the normal name is an alias.  */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11050 choke me
11051 #endif
11053 int
11054 main ()
11056 return $ac_func ();
11057   ;
11058   return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065   *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068   (eval "$ac_link") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076   { (case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_try") 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest$ac_exeext'
11086   { (case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_try") 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   eval "$as_ac_var=yes"
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100         eval "$as_ac_var=no"
11103 rm -f core conftest.err conftest.$ac_objext \
11104       conftest$ac_exeext conftest.$ac_ext
11106 ac_res=`eval echo '${'$as_ac_var'}'`
11107                { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109 if test `eval echo '${'$as_ac_var'}'` = yes; then
11110   cat >>confdefs.h <<_ACEOF
11111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11112 _ACEOF
11115 done
11143 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11144                   stdio.h unistd.h
11146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 ac_res=`eval echo '${'$as_ac_Header'}'`
11154                { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11156 else
11157   # Is the header compilable?
11158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 $ac_includes_default
11167 #include <$ac_header>
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_compile") 2>conftest.er1
11177   ac_status=$?
11178   grep -v '^ *+' conftest.er1 >conftest.err
11179   rm -f conftest.er1
11180   cat conftest.err >&5
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11184   { (case "(($ac_try" in
11185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186   *) ac_try_echo=$ac_try;;
11187 esac
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189   (eval "$ac_try") 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); }; } &&
11193          { ac_try='test -s conftest.$ac_objext'
11194   { (case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199   (eval "$ac_try") 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; }; then
11203   ac_header_compiler=yes
11204 else
11205   echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208         ac_header_compiler=no
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11213 echo "${ECHO_T}$ac_header_compiler" >&6; }
11215 # Is the header present?
11216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h.  */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h.  */
11224 #include <$ac_header>
11225 _ACEOF
11226 if { (ac_try="$ac_cpp conftest.$ac_ext"
11227 case "(($ac_try" in
11228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229   *) ac_try_echo=$ac_try;;
11230 esac
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11233   ac_status=$?
11234   grep -v '^ *+' conftest.er1 >conftest.err
11235   rm -f conftest.er1
11236   cat conftest.err >&5
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); } >/dev/null; then
11239   if test -s conftest.err; then
11240     ac_cpp_err=$ac_c_preproc_warn_flag
11241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11242   else
11243     ac_cpp_err=
11244   fi
11245 else
11246   ac_cpp_err=yes
11248 if test -z "$ac_cpp_err"; then
11249   ac_header_preproc=yes
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254   ac_header_preproc=no
11257 rm -f conftest.err conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11259 echo "${ECHO_T}$ac_header_preproc" >&6; }
11261 # So?  What about this header?
11262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11263   yes:no: )
11264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11268     ac_header_preproc=yes
11269     ;;
11270   no:yes:* )
11271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11283     ( cat <<\_ASBOX
11284 ## ------------------------------------ ##
11285 ## Report this to http://llvm.org/bugs/ ##
11286 ## ------------------------------------ ##
11287 _ASBOX
11288      ) | sed "s/^/$as_me: WARNING:     /" >&2
11289     ;;
11290 esac
11291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294   echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296   eval "$as_ac_Header=\$ac_header_preproc"
11298 ac_res=`eval echo '${'$as_ac_Header'}'`
11299                { echo "$as_me:$LINENO: result: $ac_res" >&5
11300 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11304   cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11306 _ACEOF
11310 done
11316 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11323   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326                { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11328 else
11329   # Is the header compilable?
11330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h.  */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h.  */
11338 $ac_includes_default
11339 #include <$ac_header>
11340 _ACEOF
11341 rm -f conftest.$ac_objext
11342 if { (ac_try="$ac_compile"
11343 case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_compile") 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } &&
11355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11356   { (case "(($ac_try" in
11357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358   *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361   (eval "$ac_try") 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; } &&
11365          { ac_try='test -s conftest.$ac_objext'
11366   { (case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_try") 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   ac_header_compiler=yes
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380         ac_header_compiler=no
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11385 echo "${ECHO_T}$ac_header_compiler" >&6; }
11387 # Is the header present?
11388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 #include <$ac_header>
11397 _ACEOF
11398 if { (ac_try="$ac_cpp conftest.$ac_ext"
11399 case "(($ac_try" in
11400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401   *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11405   ac_status=$?
11406   grep -v '^ *+' conftest.er1 >conftest.err
11407   rm -f conftest.er1
11408   cat conftest.err >&5
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); } >/dev/null; then
11411   if test -s conftest.err; then
11412     ac_cpp_err=$ac_c_preproc_warn_flag
11413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414   else
11415     ac_cpp_err=
11416   fi
11417 else
11418   ac_cpp_err=yes
11420 if test -z "$ac_cpp_err"; then
11421   ac_header_preproc=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426   ac_header_preproc=no
11429 rm -f conftest.err conftest.$ac_ext
11430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11431 echo "${ECHO_T}$ac_header_preproc" >&6; }
11433 # So?  What about this header?
11434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11435   yes:no: )
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11440     ac_header_preproc=yes
11441     ;;
11442   no:yes:* )
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11455     ( cat <<\_ASBOX
11456 ## ------------------------------------ ##
11457 ## Report this to http://llvm.org/bugs/ ##
11458 ## ------------------------------------ ##
11459 _ASBOX
11460      ) | sed "s/^/$as_me: WARNING:     /" >&2
11461     ;;
11462 esac
11463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   eval "$as_ac_Header=\$ac_header_preproc"
11470 ac_res=`eval echo '${'$as_ac_Header'}'`
11471                { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11476   cat >>confdefs.h <<_ACEOF
11477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11478 _ACEOF
11482 done
11486 for ac_header in string.h strings.h
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496                { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11498 else
11499   # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_compile") 2>conftest.er1
11519   ac_status=$?
11520   grep -v '^ *+' conftest.er1 >conftest.err
11521   rm -f conftest.er1
11522   cat conftest.err >&5
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } &&
11525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526   { (case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_try") 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest.$ac_objext'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_header_compiler=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550         ac_header_compiler=no
11553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11555 echo "${ECHO_T}$ac_header_compiler" >&6; }
11557 # Is the header present?
11558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #include <$ac_header>
11567 _ACEOF
11568 if { (ac_try="$ac_cpp conftest.$ac_ext"
11569 case "(($ac_try" in
11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571   *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11575   ac_status=$?
11576   grep -v '^ *+' conftest.er1 >conftest.err
11577   rm -f conftest.er1
11578   cat conftest.err >&5
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } >/dev/null; then
11581   if test -s conftest.err; then
11582     ac_cpp_err=$ac_c_preproc_warn_flag
11583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11584   else
11585     ac_cpp_err=
11586   fi
11587 else
11588   ac_cpp_err=yes
11590 if test -z "$ac_cpp_err"; then
11591   ac_header_preproc=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596   ac_header_preproc=no
11599 rm -f conftest.err conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11601 echo "${ECHO_T}$ac_header_preproc" >&6; }
11603 # So?  What about this header?
11604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605   yes:no: )
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11610     ac_header_preproc=yes
11611     ;;
11612   no:yes:* )
11613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625     ( cat <<\_ASBOX
11626 ## ------------------------------------ ##
11627 ## Report this to http://llvm.org/bugs/ ##
11628 ## ------------------------------------ ##
11629 _ASBOX
11630      ) | sed "s/^/$as_me: WARNING:     /" >&2
11631     ;;
11632 esac
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   eval "$as_ac_Header=\$ac_header_preproc"
11640 ac_res=`eval echo '${'$as_ac_Header'}'`
11641                { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11646   cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11648 _ACEOF
11649  break
11652 done
11657 for ac_func in strchr index
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h.  */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h.  */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676     which can conflict with char $ac_func (); below.
11677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678     <limits.h> exists even on freestanding compilers.  */
11680 #ifdef __STDC__
11681 # include <limits.h>
11682 #else
11683 # include <assert.h>
11684 #endif
11686 #undef $ac_func
11688 /* Override any GCC internal prototype to avoid an error.
11689    Use char because int might match the return type of a GCC
11690    builtin and then its argument prototype would still apply.  */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char $ac_func ();
11695 /* The GNU C library defines this for functions which it implements
11696     to always fail with ENOSYS.  Some functions are actually named
11697     something starting with __ and the normal name is an alias.  */
11698 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 choke me
11700 #endif
11702 int
11703 main ()
11705 return $ac_func ();
11706   ;
11707   return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717   (eval "$ac_link") 2>conftest.er1
11718   ac_status=$?
11719   grep -v '^ *+' conftest.er1 >conftest.err
11720   rm -f conftest.er1
11721   cat conftest.err >&5
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11725   { (case "(($ac_try" in
11726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727   *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730   (eval "$ac_try") 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; } &&
11734          { ac_try='test -s conftest$ac_exeext'
11735   { (case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_try") 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; }; then
11744   eval "$as_ac_var=yes"
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749         eval "$as_ac_var=no"
11752 rm -f core conftest.err conftest.$ac_objext \
11753       conftest$ac_exeext conftest.$ac_ext
11755 ac_res=`eval echo '${'$as_ac_var'}'`
11756                { echo "$as_me:$LINENO: result: $ac_res" >&5
11757 echo "${ECHO_T}$ac_res" >&6; }
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759   cat >>confdefs.h <<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11761 _ACEOF
11762  break
11764 done
11768 for ac_func in strrchr rindex
11770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11774   echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776   cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11784 #define $ac_func innocuous_$ac_func
11786 /* System header to define __stub macros and hopefully few prototypes,
11787     which can conflict with char $ac_func (); below.
11788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11789     <limits.h> exists even on freestanding compilers.  */
11791 #ifdef __STDC__
11792 # include <limits.h>
11793 #else
11794 # include <assert.h>
11795 #endif
11797 #undef $ac_func
11799 /* Override any GCC internal prototype to avoid an error.
11800    Use char because int might match the return type of a GCC
11801    builtin and then its argument prototype would still apply.  */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char $ac_func ();
11806 /* The GNU C library defines this for functions which it implements
11807     to always fail with ENOSYS.  Some functions are actually named
11808     something starting with __ and the normal name is an alias.  */
11809 #if defined __stub_$ac_func || defined __stub___$ac_func
11810 choke me
11811 #endif
11813 int
11814 main ()
11816 return $ac_func ();
11817   ;
11818   return 0;
11820 _ACEOF
11821 rm -f conftest.$ac_objext conftest$ac_exeext
11822 if { (ac_try="$ac_link"
11823 case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_link") 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11836   { (case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_try") 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; } &&
11845          { ac_try='test -s conftest$ac_exeext'
11846   { (case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_try") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   eval "$as_ac_var=yes"
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860         eval "$as_ac_var=no"
11863 rm -f core conftest.err conftest.$ac_objext \
11864       conftest$ac_exeext conftest.$ac_ext
11866 ac_res=`eval echo '${'$as_ac_var'}'`
11867                { echo "$as_me:$LINENO: result: $ac_res" >&5
11868 echo "${ECHO_T}$ac_res" >&6; }
11869 if test `eval echo '${'$as_ac_var'}'` = yes; then
11870   cat >>confdefs.h <<_ACEOF
11871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11872 _ACEOF
11873  break
11875 done
11879 for ac_func in memcpy bcopy
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11895 #define $ac_func innocuous_$ac_func
11897 /* System header to define __stub macros and hopefully few prototypes,
11898     which can conflict with char $ac_func (); below.
11899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900     <limits.h> exists even on freestanding compilers.  */
11902 #ifdef __STDC__
11903 # include <limits.h>
11904 #else
11905 # include <assert.h>
11906 #endif
11908 #undef $ac_func
11910 /* Override any GCC internal prototype to avoid an error.
11911    Use char because int might match the return type of a GCC
11912    builtin and then its argument prototype would still apply.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 char $ac_func ();
11917 /* The GNU C library defines this for functions which it implements
11918     to always fail with ENOSYS.  Some functions are actually named
11919     something starting with __ and the normal name is an alias.  */
11920 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 choke me
11922 #endif
11924 int
11925 main ()
11927 return $ac_func ();
11928   ;
11929   return 0;
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_link") 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947   { (case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_try") 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; } &&
11956          { ac_try='test -s conftest$ac_exeext'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   eval "$as_ac_var=yes"
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971         eval "$as_ac_var=no"
11974 rm -f core conftest.err conftest.$ac_objext \
11975       conftest$ac_exeext conftest.$ac_ext
11977 ac_res=`eval echo '${'$as_ac_var'}'`
11978                { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981   cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11984  break
11986 done
11990 for ac_func in memmove strcmp
11992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12006 #define $ac_func innocuous_$ac_func
12008 /* System header to define __stub macros and hopefully few prototypes,
12009     which can conflict with char $ac_func (); below.
12010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12011     <limits.h> exists even on freestanding compilers.  */
12013 #ifdef __STDC__
12014 # include <limits.h>
12015 #else
12016 # include <assert.h>
12017 #endif
12019 #undef $ac_func
12021 /* Override any GCC internal prototype to avoid an error.
12022    Use char because int might match the return type of a GCC
12023    builtin and then its argument prototype would still apply.  */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char $ac_func ();
12028 /* The GNU C library defines this for functions which it implements
12029     to always fail with ENOSYS.  Some functions are actually named
12030     something starting with __ and the normal name is an alias.  */
12031 #if defined __stub_$ac_func || defined __stub___$ac_func
12032 choke me
12033 #endif
12035 int
12036 main ()
12038 return $ac_func ();
12039   ;
12040   return 0;
12042 _ACEOF
12043 rm -f conftest.$ac_objext conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_link") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } &&
12057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12058   { (case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063   (eval "$ac_try") 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest$ac_exeext'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; }; then
12077   eval "$as_ac_var=yes"
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082         eval "$as_ac_var=no"
12085 rm -f core conftest.err conftest.$ac_objext \
12086       conftest$ac_exeext conftest.$ac_ext
12088 ac_res=`eval echo '${'$as_ac_var'}'`
12089                { echo "$as_me:$LINENO: result: $ac_res" >&5
12090 echo "${ECHO_T}$ac_res" >&6; }
12091 if test `eval echo '${'$as_ac_var'}'` = yes; then
12092   cat >>confdefs.h <<_ACEOF
12093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12094 _ACEOF
12097 done
12102 for ac_func in closedir opendir readdir
12104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110   cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12118 #define $ac_func innocuous_$ac_func
12120 /* System header to define __stub macros and hopefully few prototypes,
12121     which can conflict with char $ac_func (); below.
12122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12123     <limits.h> exists even on freestanding compilers.  */
12125 #ifdef __STDC__
12126 # include <limits.h>
12127 #else
12128 # include <assert.h>
12129 #endif
12131 #undef $ac_func
12133 /* Override any GCC internal prototype to avoid an error.
12134    Use char because int might match the return type of a GCC
12135    builtin and then its argument prototype would still apply.  */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char $ac_func ();
12140 /* The GNU C library defines this for functions which it implements
12141     to always fail with ENOSYS.  Some functions are actually named
12142     something starting with __ and the normal name is an alias.  */
12143 #if defined __stub_$ac_func || defined __stub___$ac_func
12144 choke me
12145 #endif
12147 int
12148 main ()
12150 return $ac_func ();
12151   ;
12152   return 0;
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_link") 2>conftest.er1
12163   ac_status=$?
12164   grep -v '^ *+' conftest.er1 >conftest.err
12165   rm -f conftest.er1
12166   cat conftest.err >&5
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } &&
12169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12170   { (case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_try") 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; } &&
12179          { ac_try='test -s conftest$ac_exeext'
12180   { (case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185   (eval "$ac_try") 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   eval "$as_ac_var=yes"
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194         eval "$as_ac_var=no"
12197 rm -f core conftest.err conftest.$ac_objext \
12198       conftest$ac_exeext conftest.$ac_ext
12200 ac_res=`eval echo '${'$as_ac_var'}'`
12201                { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 echo "${ECHO_T}$ac_res" >&6; }
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204   cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 _ACEOF
12209 done
12213 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12214 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12216 ICC=no
12217 IXX=no
12218 case $CC in
12219   icc*|icpc*)
12220     ICC=yes
12221     IXX=yes
12222     ;;
12223    *)
12224     ;;
12225 esac
12227 if test "$GCC" != "yes" && test "$ICC" != "yes"
12228 then
12229   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12230 echo "$as_me: error: gcc|icc required but not found" >&2;}
12231    { (exit 1); exit 1; }; }
12234 if test "$GXX" != "yes" && test "$IXX" != "yes"
12235 then
12236   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12237 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12238    { (exit 1); exit 1; }; }
12241 if test "$GCC" = "yes"
12242 then
12243   cat >conftest.$ac_ext <<_ACEOF
12245   /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12251     #if !defined(__GNUC__) || __GNUC__ < 3
12252     #error Unsupported GCC version
12253     #endif
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (ac_try="$ac_compile"
12259 case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_compile") 2>conftest.er1
12265   ac_status=$?
12266   grep -v '^ *+' conftest.er1 >conftest.err
12267   rm -f conftest.er1
12268   cat conftest.err >&5
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); } &&
12271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272   { (case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_try") 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (case "(($ac_try" in
12283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284   *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287   (eval "$ac_try") 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291   :
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12297 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12298    { (exit 1); exit 1; }; }
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 if test -z "$llvm_cv_gnu_make_command"
12305 then
12306   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12307 echo "$as_me: error: GNU Make required but not found" >&2;}
12308    { (exit 1); exit 1; }; }
12311 { echo "$as_me:$LINENO: result: ok" >&5
12312 echo "${ECHO_T}ok" >&6; }
12314 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12315 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12316 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12318 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12320 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12323 NO_UNINITIALIZED=
12324 NO_MAYBE_UNINITIALIZED=
12325 if test "$GXX" = "yes"
12326 then
12327   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12329         if test -z "$NO_MAYBE_UNINITIALIZED"
12330   then
12331     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12333   fi
12335 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12336 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12339 # Check whether --with-python was given.
12340 if test "${with_python+set}" = set; then
12341   withval=$with_python; PYTHON="$withval"
12345 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12346   { echo "$as_me:$LINENO: checking for python" >&5
12347 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12348   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12349 echo "${ECHO_T}user defined: $with_python" >&6; }
12350 else
12351   if test -n "$PYTHON" ; then
12352     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12353 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12354   fi
12356   # Extract the first word of "python python2 python26", so it can be a program name with args.
12357 set dummy python python2 python26; ac_word=$2
12358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12360 if test "${ac_cv_path_PYTHON+set}" = set; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   case $PYTHON in
12364   [\\/]* | ?:[\\/]*)
12365   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12366   ;;
12367   *)
12368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373   for ac_exec_ext in '' $ac_executable_extensions; do
12374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12375     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380 done
12381 IFS=$as_save_IFS
12383   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12384 echo "${ECHO_T}not found" >&6; }
12385                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12386 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12387    { (exit 1); exit 1; }; }"
12388   ;;
12389 esac
12391 PYTHON=$ac_cv_path_PYTHON
12392 if test -n "$PYTHON"; then
12393   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12394 echo "${ECHO_T}$PYTHON" >&6; }
12395 else
12396   { echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6; }
12403 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12404 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12405 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12406 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12407 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12408 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12409 if   test "$ac_python_version_major" -eq "2" \
12410    && test "$ac_python_version_minor" -ge "5" ; then
12411   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12412 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12413 else
12414   { echo "$as_me:$LINENO: result: not found" >&5
12415 echo "${ECHO_T}not found" >&6; }
12416   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12417 See \`config.log' for more details." >&5
12418 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12419 See \`config.log' for more details." >&2;}
12420    { (exit 1); exit 1; }; }
12425 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12426 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12427 if test "${ac_cv_lib_m_sin+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lm  $LIBS"
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12439 /* Override any GCC internal prototype to avoid an error.
12440    Use char because int might match the return type of a GCC
12441    builtin and then its argument prototype would still apply.  */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char sin ();
12446 int
12447 main ()
12449 return sin ();
12450   ;
12451   return 0;
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_link") 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469   { (case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_try") 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; } &&
12478          { ac_try='test -s conftest$ac_exeext'
12479   { (case "(($ac_try" in
12480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481   *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484   (eval "$ac_try") 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   ac_cv_lib_m_sin=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493         ac_cv_lib_m_sin=no
12496 rm -f core conftest.err conftest.$ac_objext \
12497       conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12501 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12502 if test $ac_cv_lib_m_sin = yes; then
12503   cat >>confdefs.h <<_ACEOF
12504 #define HAVE_LIBM 1
12505 _ACEOF
12507   LIBS="-lm $LIBS"
12511 if test "$llvm_cv_os_type" = "MingW" ; then
12513 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12514 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-limagehlp  $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12528 int
12529 main ()
12531 return main ();
12532   ;
12533   return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext conftest$ac_exeext
12537 if { (ac_try="$ac_link"
12538 case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_link") 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12551   { (case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_try") 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; } &&
12560          { ac_try='test -s conftest$ac_exeext'
12561   { (case "(($ac_try" in
12562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563   *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566   (eval "$ac_try") 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; }; then
12570   ac_cv_lib_imagehlp_main=yes
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575         ac_cv_lib_imagehlp_main=no
12578 rm -f core conftest.err conftest.$ac_objext \
12579       conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12583 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12584 if test $ac_cv_lib_imagehlp_main = yes; then
12585   cat >>confdefs.h <<_ACEOF
12586 #define HAVE_LIBIMAGEHLP 1
12587 _ACEOF
12589   LIBS="-limagehlp $LIBS"
12594 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12595 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12596 if test "${ac_cv_lib_psapi_main+set}" = set; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lpsapi  $LIBS"
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12609 int
12610 main ()
12612 return main ();
12613   ;
12614   return 0;
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_link") 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } &&
12631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632   { (case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_try") 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest$ac_exeext'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_lib_psapi_main=yes
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656         ac_cv_lib_psapi_main=no
12659 rm -f core conftest.err conftest.$ac_objext \
12660       conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12663 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12664 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12665 if test $ac_cv_lib_psapi_main = yes; then
12666   cat >>confdefs.h <<_ACEOF
12667 #define HAVE_LIBPSAPI 1
12668 _ACEOF
12670   LIBS="-lpsapi $LIBS"
12676 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12677 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12678 if test "${ac_cv_search_dlopen+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   ac_func_search_save_LIBS=$LIBS
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12689 /* Override any GCC internal prototype to avoid an error.
12690    Use char because int might match the return type of a GCC
12691    builtin and then its argument prototype would still apply.  */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 char dlopen ();
12696 int
12697 main ()
12699 return dlopen ();
12700   ;
12701   return 0;
12703 _ACEOF
12704 for ac_lib in '' dl; do
12705   if test -z "$ac_lib"; then
12706     ac_res="none required"
12707   else
12708     ac_res=-l$ac_lib
12709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12710   fi
12711   rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (ac_try="$ac_link"
12713 case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_link") 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } &&
12725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12726   { (case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731   (eval "$ac_try") 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; } &&
12735          { ac_try='test -s conftest$ac_exeext'
12736   { (case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_try") 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; }; then
12745   ac_cv_search_dlopen=$ac_res
12746 else
12747   echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12753 rm -f core conftest.err conftest.$ac_objext \
12754       conftest$ac_exeext
12755   if test "${ac_cv_search_dlopen+set}" = set; then
12756   break
12758 done
12759 if test "${ac_cv_search_dlopen+set}" = set; then
12760   :
12761 else
12762   ac_cv_search_dlopen=no
12764 rm conftest.$ac_ext
12765 LIBS=$ac_func_search_save_LIBS
12767 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12768 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12769 ac_res=$ac_cv_search_dlopen
12770 if test "$ac_res" != no; then
12771   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_DLOPEN 1
12775 _ACEOF
12777 else
12778   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12779 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12783 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12784 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12785 if test "${ac_cv_search_clock_gettime+set}" = set; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788   ac_func_search_save_LIBS=$LIBS
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12796 /* Override any GCC internal prototype to avoid an error.
12797    Use char because int might match the return type of a GCC
12798    builtin and then its argument prototype would still apply.  */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char clock_gettime ();
12803 int
12804 main ()
12806 return clock_gettime ();
12807   ;
12808   return 0;
12810 _ACEOF
12811 for ac_lib in '' rt; do
12812   if test -z "$ac_lib"; then
12813     ac_res="none required"
12814   else
12815     ac_res=-l$ac_lib
12816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12817   fi
12818   rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822   *) ac_try_echo=$ac_try;;
12823 esac
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825   (eval "$ac_link") 2>conftest.er1
12826   ac_status=$?
12827   grep -v '^ *+' conftest.er1 >conftest.err
12828   rm -f conftest.er1
12829   cat conftest.err >&5
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); } &&
12832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12833   { (case "(($ac_try" in
12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835   *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838   (eval "$ac_try") 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_try") 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; }; then
12852   ac_cv_search_clock_gettime=$ac_res
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12860 rm -f core conftest.err conftest.$ac_objext \
12861       conftest$ac_exeext
12862   if test "${ac_cv_search_clock_gettime+set}" = set; then
12863   break
12865 done
12866 if test "${ac_cv_search_clock_gettime+set}" = set; then
12867   :
12868 else
12869   ac_cv_search_clock_gettime=no
12871 rm conftest.$ac_ext
12872 LIBS=$ac_func_search_save_LIBS
12874 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12875 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12876 ac_res=$ac_cv_search_clock_gettime
12877 if test "$ac_res" != no; then
12878   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883 if test "$llvm_cv_enable_libffi" = "yes" ; then
12884   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12885 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12886 if test "${ac_cv_search_ffi_call+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889   ac_func_search_save_LIBS=$LIBS
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12897 /* Override any GCC internal prototype to avoid an error.
12898    Use char because int might match the return type of a GCC
12899    builtin and then its argument prototype would still apply.  */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 char ffi_call ();
12904 int
12905 main ()
12907 return ffi_call ();
12908   ;
12909   return 0;
12911 _ACEOF
12912 for ac_lib in '' ffi; do
12913   if test -z "$ac_lib"; then
12914     ac_res="none required"
12915   else
12916     ac_res=-l$ac_lib
12917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12918   fi
12919   rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_link") 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934   { (case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939   (eval "$ac_try") 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; } &&
12943          { ac_try='test -s conftest$ac_exeext'
12944   { (case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_try") 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_search_ffi_call=$ac_res
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f core conftest.err conftest.$ac_objext \
12962       conftest$ac_exeext
12963   if test "${ac_cv_search_ffi_call+set}" = set; then
12964   break
12966 done
12967 if test "${ac_cv_search_ffi_call+set}" = set; then
12968   :
12969 else
12970   ac_cv_search_ffi_call=no
12972 rm conftest.$ac_ext
12973 LIBS=$ac_func_search_save_LIBS
12975 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12976 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12977 ac_res=$ac_cv_search_ffi_call
12978 if test "$ac_res" != no; then
12979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981 cat >>confdefs.h <<\_ACEOF
12982 #define HAVE_FFI_CALL 1
12983 _ACEOF
12985 else
12986   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12987 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12988    { (exit 1); exit 1; }; }
12993 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12994 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_mallinfo+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char mallinfo ();
13013 int
13014 main ()
13016 return mallinfo ();
13017   ;
13018   return 0;
13020 _ACEOF
13021 for ac_lib in '' malloc; do
13022   if test -z "$ac_lib"; then
13023     ac_res="none required"
13024   else
13025     ac_res=-l$ac_lib
13026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13027   fi
13028   rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_link") 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043   { (case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_try") 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; } &&
13052          { ac_try='test -s conftest$ac_exeext'
13053   { (case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_try") 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   ac_cv_search_mallinfo=$ac_res
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13070 rm -f core conftest.err conftest.$ac_objext \
13071       conftest$ac_exeext
13072   if test "${ac_cv_search_mallinfo+set}" = set; then
13073   break
13075 done
13076 if test "${ac_cv_search_mallinfo+set}" = set; then
13077   :
13078 else
13079   ac_cv_search_mallinfo=no
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13085 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13086 ac_res=$ac_cv_search_mallinfo
13087 if test "$ac_res" != no; then
13088   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_MALLINFO 1
13092 _ACEOF
13097 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13099 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13100 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13101 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13102   echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104   ac_check_lib_save_LIBS=$LIBS
13105 LIBS="-lpthread  $LIBS"
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h.  */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h.  */
13113 /* Override any GCC internal prototype to avoid an error.
13114    Use char because int might match the return type of a GCC
13115    builtin and then its argument prototype would still apply.  */
13116 #ifdef __cplusplus
13117 extern "C"
13118 #endif
13119 char pthread_mutex_init ();
13120 int
13121 main ()
13123 return pthread_mutex_init ();
13124   ;
13125   return 0;
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132   *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135   (eval "$ac_link") 2>conftest.er1
13136   ac_status=$?
13137   grep -v '^ *+' conftest.er1 >conftest.err
13138   rm -f conftest.er1
13139   cat conftest.err >&5
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143   { (case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_try") 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_try") 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   ac_cv_lib_pthread_pthread_mutex_init=yes
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167         ac_cv_lib_pthread_pthread_mutex_init=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171       conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13175 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13176 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13177   cat >>confdefs.h <<_ACEOF
13178 #define HAVE_LIBPTHREAD 1
13179 _ACEOF
13181   LIBS="-lpthread $LIBS"
13185   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13186 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13198 /* Override any GCC internal prototype to avoid an error.
13199    Use char because int might match the return type of a GCC
13200    builtin and then its argument prototype would still apply.  */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char pthread_mutex_lock ();
13205 int
13206 main ()
13208 return pthread_mutex_lock ();
13209   ;
13210   return 0;
13212 _ACEOF
13213 for ac_lib in '' pthread; do
13214   if test -z "$ac_lib"; then
13215     ac_res="none required"
13216   else
13217     ac_res=-l$ac_lib
13218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13219   fi
13220   rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_link") 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235   { (case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_try") 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest$ac_exeext'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_cv_search_pthread_mutex_lock=$ac_res
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f core conftest.err conftest.$ac_objext \
13263       conftest$ac_exeext
13264   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13265   break
13267 done
13268 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13269   :
13270 else
13271   ac_cv_search_pthread_mutex_lock=no
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13277 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13278 ac_res=$ac_cv_search_pthread_mutex_lock
13279 if test "$ac_res" != no; then
13280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_PTHREAD_MUTEX_LOCK 1
13284 _ACEOF
13288   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13289 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13290 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   ac_func_search_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13301 /* Override any GCC internal prototype to avoid an error.
13302    Use char because int might match the return type of a GCC
13303    builtin and then its argument prototype would still apply.  */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 char pthread_rwlock_init ();
13308 int
13309 main ()
13311 return pthread_rwlock_init ();
13312   ;
13313   return 0;
13315 _ACEOF
13316 for ac_lib in '' pthread; do
13317   if test -z "$ac_lib"; then
13318     ac_res="none required"
13319   else
13320     ac_res=-l$ac_lib
13321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13322   fi
13323   rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_link") 2>conftest.er1
13331   ac_status=$?
13332   grep -v '^ *+' conftest.er1 >conftest.err
13333   rm -f conftest.er1
13334   cat conftest.err >&5
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338   { (case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_try") 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; } &&
13347          { ac_try='test -s conftest$ac_exeext'
13348   { (case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_try") 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_cv_search_pthread_rwlock_init=$ac_res
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13365 rm -f core conftest.err conftest.$ac_objext \
13366       conftest$ac_exeext
13367   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13368   break
13370 done
13371 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13372   :
13373 else
13374   ac_cv_search_pthread_rwlock_init=no
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13380 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13381 ac_res=$ac_cv_search_pthread_rwlock_init
13382 if test "$ac_res" != no; then
13383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_PTHREAD_RWLOCK_INIT 1
13387 _ACEOF
13391   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13392 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13393 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13394   echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396   ac_func_search_save_LIBS=$LIBS
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13404 /* Override any GCC internal prototype to avoid an error.
13405    Use char because int might match the return type of a GCC
13406    builtin and then its argument prototype would still apply.  */
13407 #ifdef __cplusplus
13408 extern "C"
13409 #endif
13410 char pthread_getspecific ();
13411 int
13412 main ()
13414 return pthread_getspecific ();
13415   ;
13416   return 0;
13418 _ACEOF
13419 for ac_lib in '' pthread; do
13420   if test -z "$ac_lib"; then
13421     ac_res="none required"
13422   else
13423     ac_res=-l$ac_lib
13424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13425   fi
13426   rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_link") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441   { (case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_try") 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; } &&
13450          { ac_try='test -s conftest$ac_exeext'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   ac_cv_search_pthread_getspecific=$ac_res
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13468 rm -f core conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext
13470   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13471   break
13473 done
13474 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13475   :
13476 else
13477   ac_cv_search_pthread_getspecific=no
13479 rm conftest.$ac_ext
13480 LIBS=$ac_func_search_save_LIBS
13482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13483 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13484 ac_res=$ac_cv_search_pthread_getspecific
13485 if test "$ac_res" != no; then
13486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_PTHREAD_GETSPECIFIC 1
13490 _ACEOF
13496 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13498 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13499 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13500 if test "${ac_cv_lib_z_compress2+set}" = set; then
13501   echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503   ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-lz  $LIBS"
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13512 /* Override any GCC internal prototype to avoid an error.
13513    Use char because int might match the return type of a GCC
13514    builtin and then its argument prototype would still apply.  */
13515 #ifdef __cplusplus
13516 extern "C"
13517 #endif
13518 char compress2 ();
13519 int
13520 main ()
13522 return compress2 ();
13523   ;
13524   return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_link") 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13542   { (case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_try") 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; } &&
13551          { ac_try='test -s conftest$ac_exeext'
13552   { (case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_try") 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; }; then
13561   ac_cv_lib_z_compress2=yes
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566         ac_cv_lib_z_compress2=no
13569 rm -f core conftest.err conftest.$ac_objext \
13570       conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13573 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13574 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13575 if test $ac_cv_lib_z_compress2 = yes; then
13576   cat >>confdefs.h <<_ACEOF
13577 #define HAVE_LIBZ 1
13578 _ACEOF
13580   LIBS="-lz $LIBS"
13587 # Check whether --with-udis86 was given.
13588 if test "${with_udis86+set}" = set; then
13589   withval=$with_udis86;
13590       USE_UDIS86=1
13592       case "$withval" in
13593         /usr/lib|yes) ;;
13594         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13595       esac
13597 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13598 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13599 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   ac_check_lib_save_LIBS=$LIBS
13603 LIBS="-ludis86  $LIBS"
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13611 /* Override any GCC internal prototype to avoid an error.
13612    Use char because int might match the return type of a GCC
13613    builtin and then its argument prototype would still apply.  */
13614 #ifdef __cplusplus
13615 extern "C"
13616 #endif
13617 char ud_init ();
13618 int
13619 main ()
13621 return ud_init ();
13622   ;
13623   return 0;
13625 _ACEOF
13626 rm -f conftest.$ac_objext conftest$ac_exeext
13627 if { (ac_try="$ac_link"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_link") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641   { (case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_try") 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; } &&
13650          { ac_try='test -s conftest$ac_exeext'
13651   { (case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656   (eval "$ac_try") 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; }; then
13660   ac_cv_lib_udis86_ud_init=yes
13661 else
13662   echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665         ac_cv_lib_udis86_ud_init=no
13668 rm -f core conftest.err conftest.$ac_objext \
13669       conftest$ac_exeext conftest.$ac_ext
13670 LIBS=$ac_check_lib_save_LIBS
13672 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13673 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13674 if test $ac_cv_lib_udis86_ud_init = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define HAVE_LIBUDIS86 1
13677 _ACEOF
13679   LIBS="-ludis86 $LIBS"
13681 else
13683         echo "Error! You need to have libudis86 around."
13684         exit -1
13689 else
13690   USE_UDIS86=0
13695 cat >>confdefs.h <<_ACEOF
13696 #define USE_UDIS86 $USE_UDIS86
13697 _ACEOF
13701 # Check whether --with-oprofile was given.
13702 if test "${with_oprofile+set}" = set; then
13703   withval=$with_oprofile;
13704       USE_OPROFILE=1
13706       case "$withval" in
13707         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13708         no) llvm_cv_oppath=
13709             USE_OPROFILE=0
13710  ;;
13711         *) llvm_cv_oppath="${withval}/lib/oprofile"
13712            CPPFLAGS="-I${withval}/include";;
13713       esac
13714       case $llvm_cv_os_type in
13715         Linux)
13716           if test -n "$llvm_cv_oppath" ; then
13717             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13718                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13719 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13720 if test "${ac_cv_search_bfd_init+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   ac_func_search_save_LIBS=$LIBS
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13731 /* Override any GCC internal prototype to avoid an error.
13732    Use char because int might match the return type of a GCC
13733    builtin and then its argument prototype would still apply.  */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char bfd_init ();
13738 int
13739 main ()
13741 return bfd_init ();
13742   ;
13743   return 0;
13745 _ACEOF
13746 for ac_lib in '' bfd; do
13747   if test -z "$ac_lib"; then
13748     ac_res="none required"
13749   else
13750     ac_res=-l$ac_lib
13751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13752   fi
13753   rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_link") 2>conftest.er1
13761   ac_status=$?
13762   grep -v '^ *+' conftest.er1 >conftest.err
13763   rm -f conftest.er1
13764   cat conftest.err >&5
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); } &&
13767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768   { (case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_try") 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest$ac_exeext'
13778   { (case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_try") 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; }; then
13787   ac_cv_search_bfd_init=$ac_res
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13795 rm -f core conftest.err conftest.$ac_objext \
13796       conftest$ac_exeext
13797   if test "${ac_cv_search_bfd_init+set}" = set; then
13798   break
13800 done
13801 if test "${ac_cv_search_bfd_init+set}" = set; then
13802   :
13803 else
13804   ac_cv_search_bfd_init=no
13806 rm conftest.$ac_ext
13807 LIBS=$ac_func_search_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13810 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13811 ac_res=$ac_cv_search_bfd_init
13812 if test "$ac_res" != no; then
13813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13817             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13818 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13819 if test "${ac_cv_search_op_open_agent+set}" = set; then
13820   echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822   ac_func_search_save_LIBS=$LIBS
13823 cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13830 /* Override any GCC internal prototype to avoid an error.
13831    Use char because int might match the return type of a GCC
13832    builtin and then its argument prototype would still apply.  */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char op_open_agent ();
13837 int
13838 main ()
13840 return op_open_agent ();
13841   ;
13842   return 0;
13844 _ACEOF
13845 for ac_lib in '' opagent; do
13846   if test -z "$ac_lib"; then
13847     ac_res="none required"
13848   else
13849     ac_res=-l$ac_lib
13850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13851   fi
13852   rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (ac_try="$ac_link"
13854 case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_link") 2>conftest.er1
13860   ac_status=$?
13861   grep -v '^ *+' conftest.er1 >conftest.err
13862   rm -f conftest.er1
13863   cat conftest.err >&5
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } &&
13866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13867   { (case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_try") 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; } &&
13876          { ac_try='test -s conftest$ac_exeext'
13877   { (case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_try") 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; }; then
13886   ac_cv_search_op_open_agent=$ac_res
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13894 rm -f core conftest.err conftest.$ac_objext \
13895       conftest$ac_exeext
13896   if test "${ac_cv_search_op_open_agent+set}" = set; then
13897   break
13899 done
13900 if test "${ac_cv_search_op_open_agent+set}" = set; then
13901   :
13902 else
13903   ac_cv_search_op_open_agent=no
13905 rm conftest.$ac_ext
13906 LIBS=$ac_func_search_save_LIBS
13908 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13909 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13910 ac_res=$ac_cv_search_op_open_agent
13911 if test "$ac_res" != no; then
13912   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13914 else
13916               echo "Error! You need to have libopagent around."
13917               exit -1
13921             if test "${ac_cv_header_opagent_h+set}" = set; then
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
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13929 else
13930   # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13932 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 $ac_includes_default
13940 #include <opagent.h>
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_compile") 2>conftest.er1
13950   ac_status=$?
13951   grep -v '^ *+' conftest.er1 >conftest.err
13952   rm -f conftest.er1
13953   cat conftest.err >&5
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13957   { (case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_try") 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; } &&
13966          { ac_try='test -s conftest.$ac_objext'
13967   { (case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972   (eval "$ac_try") 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   ac_header_compiler=yes
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981         ac_header_compiler=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 echo "${ECHO_T}$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13990 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 #include <opagent.h>
13998 _ACEOF
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } >/dev/null; then
14012   if test -s conftest.err; then
14013     ac_cpp_err=$ac_c_preproc_warn_flag
14014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14015   else
14016     ac_cpp_err=
14017   fi
14018 else
14019   ac_cpp_err=yes
14021 if test -z "$ac_cpp_err"; then
14022   ac_header_preproc=yes
14023 else
14024   echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027   ac_header_preproc=no
14030 rm -f conftest.err conftest.$ac_ext
14031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14032 echo "${ECHO_T}$ac_header_preproc" >&6; }
14034 # So?  What about this header?
14035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14036   yes:no: )
14037     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14038 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14040 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14041     ac_header_preproc=yes
14042     ;;
14043   no:yes:* )
14044     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14045 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14046     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14047 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14048     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14049 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14050     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14051 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14052     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14053 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14054     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14055 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14056     ( cat <<\_ASBOX
14057 ## ------------------------------------ ##
14058 ## Report this to http://llvm.org/bugs/ ##
14059 ## ------------------------------------ ##
14060 _ASBOX
14061      ) | sed "s/^/$as_me: WARNING:     /" >&2
14062     ;;
14063 esac
14064 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14065 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_opagent_h+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_cv_header_opagent_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14075 if test $ac_cv_header_opagent_h = yes; then
14076   :
14077 else
14079               echo "Error! You need to have opagent.h around."
14080               exit -1
14085           fi ;;
14086         *)
14087           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14088 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14089    { (exit 1); exit 1; }; } ;;
14090       esac
14092 else
14094       USE_OPROFILE=0
14100 cat >>confdefs.h <<_ACEOF
14101 #define LLVM_USE_OPROFILE $USE_OPROFILE
14102 _ACEOF
14106 # Check whether --with-intel-jitevents was given.
14107 if test "${with_intel_jitevents+set}" = set; then
14108   withval=$with_intel_jitevents;
14109        case "$withval" in
14110           yes) USE_INTEL_JITEVENTS=1
14112           no)  USE_INTEL_JITEVENTS=0
14114           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14115 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14116    { (exit 1); exit 1; }; };;
14117        esac
14119       case $llvm_cv_os_type in
14120         Linux|Win32|Cygwin|MingW) ;;
14121         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14122 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14123    { (exit 1); exit 1; }; };;
14124       esac
14126       case "$llvm_cv_target_arch" in
14127         x86|x86_64) ;;
14128         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14129 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14130    { (exit 1); exit 1; }; };;
14131       esac
14133 else
14135       USE_INTEL_JITEVENTS=0
14141 cat >>confdefs.h <<_ACEOF
14142 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14143 _ACEOF
14146 for ac_prog in xml2-config
14148   # Extract the first word of "$ac_prog", so it can be a program name with args.
14149 set dummy $ac_prog; ac_word=$2
14150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14152 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155   if test -n "$XML2CONFIG"; then
14156   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14157 else
14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 for as_dir in $PATH
14161   IFS=$as_save_IFS
14162   test -z "$as_dir" && as_dir=.
14163   for ac_exec_ext in '' $ac_executable_extensions; do
14164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14165     ac_cv_prog_XML2CONFIG="$ac_prog"
14166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14167     break 2
14168   fi
14169 done
14170 done
14171 IFS=$as_save_IFS
14175 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14176 if test -n "$XML2CONFIG"; then
14177   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14178 echo "${ECHO_T}$XML2CONFIG" >&6; }
14179 else
14180   { echo "$as_me:$LINENO: result: no" >&5
14181 echo "${ECHO_T}no" >&6; }
14185   test -n "$XML2CONFIG" && break
14186 done
14189 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14190 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14191 if test "x$XML2CONFIG" = "x"; then
14192  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14193 echo "${ECHO_T}xml2-config not found" >&6; }
14194 else
14195  LIBXML2_INC=`$XML2CONFIG --cflags`
14196  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14197 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14198  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14199 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14200 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14201   echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203   ac_check_lib_save_LIBS=$LIBS
14204 LIBS="-lxml2  $LIBS"
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14212 /* Override any GCC internal prototype to avoid an error.
14213    Use char because int might match the return type of a GCC
14214    builtin and then its argument prototype would still apply.  */
14215 #ifdef __cplusplus
14216 extern "C"
14217 #endif
14218 char xmlReadFile ();
14219 int
14220 main ()
14222 return xmlReadFile ();
14223   ;
14224   return 0;
14226 _ACEOF
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (ac_try="$ac_link"
14229 case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_link") 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242   { (case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_try") 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest$ac_exeext'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_cv_lib_xml2_xmlReadFile=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266         ac_cv_lib_xml2_xmlReadFile=no
14269 rm -f core conftest.err conftest.$ac_objext \
14270       conftest$ac_exeext conftest.$ac_ext
14271 LIBS=$ac_check_lib_save_LIBS
14273 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14274 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14275 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14277 cat >>confdefs.h <<\_ACEOF
14278 #define CLANG_HAVE_LIBXML 1
14279 _ACEOF
14281                                 LIBXML2_LIBS="-lxml2"
14294 ac_header_dirent=no
14295 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14296   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14297 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14298 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 #include <sys/types.h>
14309 #include <$ac_hdr>
14311 int
14312 main ()
14314 if ((DIR *) 0)
14315 return 0;
14316   ;
14317   return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_compile") 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14335   { (case "(($ac_try" in
14336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337   *) ac_try_echo=$ac_try;;
14338 esac
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340   (eval "$ac_try") 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest.$ac_objext'
14345   { (case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_try") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   eval "$as_ac_Header=yes"
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359         eval "$as_ac_Header=no"
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 ac_res=`eval echo '${'$as_ac_Header'}'`
14365                { echo "$as_me:$LINENO: result: $ac_res" >&5
14366 echo "${ECHO_T}$ac_res" >&6; }
14367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368   cat >>confdefs.h <<_ACEOF
14369 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14370 _ACEOF
14372 ac_header_dirent=$ac_hdr; break
14375 done
14376 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14377 if test $ac_header_dirent = dirent.h; then
14378   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14379 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14380 if test "${ac_cv_search_opendir+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   ac_func_search_save_LIBS=$LIBS
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h.  */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h.  */
14391 /* Override any GCC internal prototype to avoid an error.
14392    Use char because int might match the return type of a GCC
14393    builtin and then its argument prototype would still apply.  */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char opendir ();
14398 int
14399 main ()
14401 return opendir ();
14402   ;
14403   return 0;
14405 _ACEOF
14406 for ac_lib in '' dir; do
14407   if test -z "$ac_lib"; then
14408     ac_res="none required"
14409   else
14410     ac_res=-l$ac_lib
14411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14412   fi
14413   rm -f conftest.$ac_objext conftest$ac_exeext
14414 if { (ac_try="$ac_link"
14415 case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_link") 2>conftest.er1
14421   ac_status=$?
14422   grep -v '^ *+' conftest.er1 >conftest.err
14423   rm -f conftest.er1
14424   cat conftest.err >&5
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } &&
14427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14428   { (case "(($ac_try" in
14429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430   *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433   (eval "$ac_try") 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; } &&
14437          { ac_try='test -s conftest$ac_exeext'
14438   { (case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_try") 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ac_cv_search_opendir=$ac_res
14448 else
14449   echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14455 rm -f core conftest.err conftest.$ac_objext \
14456       conftest$ac_exeext
14457   if test "${ac_cv_search_opendir+set}" = set; then
14458   break
14460 done
14461 if test "${ac_cv_search_opendir+set}" = set; then
14462   :
14463 else
14464   ac_cv_search_opendir=no
14466 rm conftest.$ac_ext
14467 LIBS=$ac_func_search_save_LIBS
14469 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14470 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14471 ac_res=$ac_cv_search_opendir
14472 if test "$ac_res" != no; then
14473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14477 else
14478   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14480 if test "${ac_cv_search_opendir+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483   ac_func_search_save_LIBS=$LIBS
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h.  */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h.  */
14491 /* Override any GCC internal prototype to avoid an error.
14492    Use char because int might match the return type of a GCC
14493    builtin and then its argument prototype would still apply.  */
14494 #ifdef __cplusplus
14495 extern "C"
14496 #endif
14497 char opendir ();
14498 int
14499 main ()
14501 return opendir ();
14502   ;
14503   return 0;
14505 _ACEOF
14506 for ac_lib in '' x; do
14507   if test -z "$ac_lib"; then
14508     ac_res="none required"
14509   else
14510     ac_res=-l$ac_lib
14511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14512   fi
14513   rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517   *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520   (eval "$ac_link") 2>conftest.er1
14521   ac_status=$?
14522   grep -v '^ *+' conftest.er1 >conftest.err
14523   rm -f conftest.er1
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } &&
14527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14528   { (case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_try") 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; } &&
14537          { ac_try='test -s conftest$ac_exeext'
14538   { (case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_try") 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547   ac_cv_search_opendir=$ac_res
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14555 rm -f core conftest.err conftest.$ac_objext \
14556       conftest$ac_exeext
14557   if test "${ac_cv_search_opendir+set}" = set; then
14558   break
14560 done
14561 if test "${ac_cv_search_opendir+set}" = set; then
14562   :
14563 else
14564   ac_cv_search_opendir=no
14566 rm conftest.$ac_ext
14567 LIBS=$ac_func_search_save_LIBS
14569 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14570 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14571 ac_res=$ac_cv_search_opendir
14572 if test "$ac_res" != no; then
14573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14579 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14580 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14581 if test "${ac_cv_header_mmap_anon+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584    ac_ext=c
14585 ac_cpp='$CPP $CPPFLAGS'
14586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14590   cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596 #include <sys/mman.h>
14597 #include <unistd.h>
14598 #include <fcntl.h>
14599 int
14600 main ()
14602 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14603   ;
14604   return 0;
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (ac_try="$ac_compile"
14609 case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_compile") 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } &&
14621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622   { (case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627   (eval "$ac_try") 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; } &&
14631          { ac_try='test -s conftest.$ac_objext'
14632   { (case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637   (eval "$ac_try") 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_cv_header_mmap_anon=yes
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646         ac_cv_header_mmap_anon=no
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650   ac_ext=c
14651 ac_cpp='$CPP $CPPFLAGS'
14652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14658 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14659 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14660 if test "$ac_cv_header_mmap_anon" = yes; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_MMAP_ANONYMOUS 1
14664 _ACEOF
14668 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14669 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_stat_broken+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/stat.h>
14682 #if defined S_ISBLK && defined S_IFDIR
14683 # if S_ISBLK (S_IFDIR)
14684 You lose.
14685 # endif
14686 #endif
14688 #if defined S_ISBLK && defined S_IFCHR
14689 # if S_ISBLK (S_IFCHR)
14690 You lose.
14691 # endif
14692 #endif
14694 #if defined S_ISLNK && defined S_IFREG
14695 # if S_ISLNK (S_IFREG)
14696 You lose.
14697 # endif
14698 #endif
14700 #if defined S_ISSOCK && defined S_IFREG
14701 # if S_ISSOCK (S_IFREG)
14702 You lose.
14703 # endif
14704 #endif
14706 _ACEOF
14707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708   $EGREP "You lose" >/dev/null 2>&1; then
14709   ac_cv_header_stat_broken=yes
14710 else
14711   ac_cv_header_stat_broken=no
14713 rm -f conftest*
14716 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14717 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14718 if test $ac_cv_header_stat_broken = yes; then
14720 cat >>confdefs.h <<\_ACEOF
14721 #define STAT_MACROS_BROKEN 1
14722 _ACEOF
14726 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14727 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737 #include <sys/types.h>
14738 #include <sys/wait.h>
14739 #ifndef WEXITSTATUS
14740 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14741 #endif
14742 #ifndef WIFEXITED
14743 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14744 #endif
14746 int
14747 main ()
14749   int s;
14750   wait (&s);
14751   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14752   ;
14753   return 0;
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_compile") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } &&
14770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14771   { (case "(($ac_try" in
14772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773   *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776   (eval "$ac_try") 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest.$ac_objext'
14781   { (case "(($ac_try" in
14782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783   *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786   (eval "$ac_try") 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   ac_cv_header_sys_wait_h=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795         ac_cv_header_sys_wait_h=no
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14801 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14802 if test $ac_cv_header_sys_wait_h = yes; then
14804 cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_SYS_WAIT_H 1
14806 _ACEOF
14810 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14811 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_time+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h.  */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h.  */
14821 #include <sys/types.h>
14822 #include <sys/time.h>
14823 #include <time.h>
14825 int
14826 main ()
14828 if ((struct tm *) 0)
14829 return 0;
14830   ;
14831   return 0;
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
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_compile") 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); } &&
14848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849   { (case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854   (eval "$ac_try") 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); }; } &&
14858          { ac_try='test -s conftest.$ac_objext'
14859   { (case "(($ac_try" in
14860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861   *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864   (eval "$ac_try") 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; }; then
14868   ac_cv_header_time=yes
14869 else
14870   echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873         ac_cv_header_time=no
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14879 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14880 if test $ac_cv_header_time = yes; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define TIME_WITH_SYS_TIME 1
14884 _ACEOF
14889 ac_ext=cpp
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14895 ac_ext=cpp
14896 ac_cpp='$CXXCPP $CPPFLAGS'
14897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14900 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14902 if test -z "$CXXCPP"; then
14903   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906       # Double quotes because CXXCPP needs to be expanded
14907     for CXXCPP in "$CXX -E" "/lib/cpp"
14908     do
14909       ac_preproc_ok=false
14910 for ac_cxx_preproc_warn_flag in '' yes
14912   # Use a header file that comes with gcc, so configuring glibc
14913   # with a fresh cross-compiler works.
14914   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14915   # <limits.h> exists even on freestanding compilers.
14916   # On the NeXT, cc -E runs the code through the compiler's parser,
14917   # not just through cpp. "Syntax error" is here to catch this case.
14918   cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h.  */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h.  */
14924 #ifdef __STDC__
14925 # include <limits.h>
14926 #else
14927 # include <assert.h>
14928 #endif
14929                      Syntax error
14930 _ACEOF
14931 if { (ac_try="$ac_cpp conftest.$ac_ext"
14932 case "(($ac_try" in
14933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934   *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14938   ac_status=$?
14939   grep -v '^ *+' conftest.er1 >conftest.err
14940   rm -f conftest.er1
14941   cat conftest.err >&5
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); } >/dev/null; then
14944   if test -s conftest.err; then
14945     ac_cpp_err=$ac_cxx_preproc_warn_flag
14946     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14947   else
14948     ac_cpp_err=
14949   fi
14950 else
14951   ac_cpp_err=yes
14953 if test -z "$ac_cpp_err"; then
14954   :
14955 else
14956   echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959   # Broken: fails on valid input.
14960 continue
14963 rm -f conftest.err conftest.$ac_ext
14965   # OK, works on sane cases.  Now check whether nonexistent headers
14966   # can be detected and how.
14967   cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 #include <ac_nonexistent.h>
14974 _ACEOF
14975 if { (ac_try="$ac_cpp conftest.$ac_ext"
14976 case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14982   ac_status=$?
14983   grep -v '^ *+' conftest.er1 >conftest.err
14984   rm -f conftest.er1
14985   cat conftest.err >&5
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); } >/dev/null; then
14988   if test -s conftest.err; then
14989     ac_cpp_err=$ac_cxx_preproc_warn_flag
14990     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14991   else
14992     ac_cpp_err=
14993   fi
14994 else
14995   ac_cpp_err=yes
14997 if test -z "$ac_cpp_err"; then
14998   # Broken: success on invalid input.
14999 continue
15000 else
15001   echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004   # Passes both tests.
15005 ac_preproc_ok=:
15006 break
15009 rm -f conftest.err conftest.$ac_ext
15011 done
15012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15013 rm -f conftest.err conftest.$ac_ext
15014 if $ac_preproc_ok; then
15015   break
15018     done
15019     ac_cv_prog_CXXCPP=$CXXCPP
15022   CXXCPP=$ac_cv_prog_CXXCPP
15023 else
15024   ac_cv_prog_CXXCPP=$CXXCPP
15026 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15027 echo "${ECHO_T}$CXXCPP" >&6; }
15028 ac_preproc_ok=false
15029 for ac_cxx_preproc_warn_flag in '' yes
15031   # Use a header file that comes with gcc, so configuring glibc
15032   # with a fresh cross-compiler works.
15033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15034   # <limits.h> exists even on freestanding compilers.
15035   # On the NeXT, cc -E runs the code through the compiler's parser,
15036   # not just through cpp. "Syntax error" is here to catch this case.
15037   cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043 #ifdef __STDC__
15044 # include <limits.h>
15045 #else
15046 # include <assert.h>
15047 #endif
15048                      Syntax error
15049 _ACEOF
15050 if { (ac_try="$ac_cpp conftest.$ac_ext"
15051 case "(($ac_try" in
15052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053   *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } >/dev/null; then
15063   if test -s conftest.err; then
15064     ac_cpp_err=$ac_cxx_preproc_warn_flag
15065     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15066   else
15067     ac_cpp_err=
15068   fi
15069 else
15070   ac_cpp_err=yes
15072 if test -z "$ac_cpp_err"; then
15073   :
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078   # Broken: fails on valid input.
15079 continue
15082 rm -f conftest.err conftest.$ac_ext
15084   # OK, works on sane cases.  Now check whether nonexistent headers
15085   # can be detected and how.
15086   cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 #include <ac_nonexistent.h>
15093 _ACEOF
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } >/dev/null; then
15107   if test -s conftest.err; then
15108     ac_cpp_err=$ac_cxx_preproc_warn_flag
15109     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15110   else
15111     ac_cpp_err=
15112   fi
15113 else
15114   ac_cpp_err=yes
15116 if test -z "$ac_cpp_err"; then
15117   # Broken: success on invalid input.
15118 continue
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15123   # Passes both tests.
15124 ac_preproc_ok=:
15125 break
15128 rm -f conftest.err conftest.$ac_ext
15130 done
15131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15132 rm -f conftest.err conftest.$ac_ext
15133 if $ac_preproc_ok; then
15134   :
15135 else
15136   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15137 See \`config.log' for more details." >&5
15138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15139 See \`config.log' for more details." >&2;}
15140    { (exit 1); exit 1; }; }
15143 ac_ext=cpp
15144 ac_cpp='$CXXCPP $CPPFLAGS'
15145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15151 for ac_header in cxxabi.h
15153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161                { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15163 else
15164   # Is the header compilable?
15165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 $ac_includes_default
15174 #include <$ac_header>
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_compile") 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15191   { (case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_try") 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_header_compiler=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215         ac_header_compiler=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6; }
15222 # Is the header present?
15223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 #include <$ac_header>
15232 _ACEOF
15233 if { (ac_try="$ac_cpp conftest.$ac_ext"
15234 case "(($ac_try" in
15235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236   *) ac_try_echo=$ac_try;;
15237 esac
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } >/dev/null; then
15246   if test -s conftest.err; then
15247     ac_cpp_err=$ac_cxx_preproc_warn_flag
15248     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15249   else
15250     ac_cpp_err=
15251   fi
15252 else
15253   ac_cpp_err=yes
15255 if test -z "$ac_cpp_err"; then
15256   ac_header_preproc=yes
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261   ac_header_preproc=no
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15268 # So?  What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15270   yes:no: )
15271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15275     ac_header_preproc=yes
15276     ;;
15277   no:yes:* )
15278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15290     ( cat <<\_ASBOX
15291 ## ------------------------------------ ##
15292 ## Report this to http://llvm.org/bugs/ ##
15293 ## ------------------------------------ ##
15294 _ASBOX
15295      ) | sed "s/^/$as_me: WARNING:     /" >&2
15296     ;;
15297 esac
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303   eval "$as_ac_Header=\$ac_header_preproc"
15305 ac_res=`eval echo '${'$as_ac_Header'}'`
15306                { echo "$as_me:$LINENO: result: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15311   cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15313 _ACEOF
15317 done
15319 ac_ext=c
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15331 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 ac_res=`eval echo '${'$as_ac_Header'}'`
15341                { echo "$as_me:$LINENO: result: $ac_res" >&5
15342 echo "${ECHO_T}$ac_res" >&6; }
15343 else
15344   # Is the header compilable?
15345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h.  */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h.  */
15353 $ac_includes_default
15354 #include <$ac_header>
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (ac_try="$ac_compile"
15358 case "(($ac_try" in
15359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360   *) ac_try_echo=$ac_try;;
15361 esac
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363   (eval "$ac_compile") 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } &&
15370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15371   { (case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_try") 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; } &&
15380          { ac_try='test -s conftest.$ac_objext'
15381   { (case "(($ac_try" in
15382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383   *) ac_try_echo=$ac_try;;
15384 esac
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386   (eval "$ac_try") 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); }; }; then
15390   ac_header_compiler=yes
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395         ac_header_compiler=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 #include <$ac_header>
15412 _ACEOF
15413 if { (ac_try="$ac_cpp conftest.$ac_ext"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15420   ac_status=$?
15421   grep -v '^ *+' conftest.er1 >conftest.err
15422   rm -f conftest.er1
15423   cat conftest.err >&5
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } >/dev/null; then
15426   if test -s conftest.err; then
15427     ac_cpp_err=$ac_c_preproc_warn_flag
15428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15429   else
15430     ac_cpp_err=
15431   fi
15432 else
15433   ac_cpp_err=yes
15435 if test -z "$ac_cpp_err"; then
15436   ac_header_preproc=yes
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441   ac_header_preproc=no
15444 rm -f conftest.err conftest.$ac_ext
15445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6; }
15448 # So?  What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450   yes:no: )
15451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455     ac_header_preproc=yes
15456     ;;
15457   no:yes:* )
15458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15470     ( cat <<\_ASBOX
15471 ## ------------------------------------ ##
15472 ## Report this to http://llvm.org/bugs/ ##
15473 ## ------------------------------------ ##
15474 _ASBOX
15475      ) | sed "s/^/$as_me: WARNING:     /" >&2
15476     ;;
15477 esac
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481   echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483   eval "$as_ac_Header=\$ac_header_preproc"
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486                { echo "$as_me:$LINENO: result: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15491   cat >>confdefs.h <<_ACEOF
15492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15493 _ACEOF
15497 done
15505 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515                { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15517 else
15518   # Is the header compilable?
15519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h.  */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h.  */
15527 $ac_includes_default
15528 #include <$ac_header>
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_compile") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } &&
15544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545   { (case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_try") 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; } &&
15554          { ac_try='test -s conftest.$ac_objext'
15555   { (case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_try") 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; }; then
15564   ac_header_compiler=yes
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569         ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585 #include <$ac_header>
15586 _ACEOF
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } >/dev/null; then
15600   if test -s conftest.err; then
15601     ac_cpp_err=$ac_c_preproc_warn_flag
15602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15603   else
15604     ac_cpp_err=
15605   fi
15606 else
15607   ac_cpp_err=yes
15609 if test -z "$ac_cpp_err"; then
15610   ac_header_preproc=yes
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615   ac_header_preproc=no
15618 rm -f conftest.err conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15620 echo "${ECHO_T}$ac_header_preproc" >&6; }
15622 # So?  What about this header?
15623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15624   yes:no: )
15625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15629     ac_header_preproc=yes
15630     ;;
15631   no:yes:* )
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15644     ( cat <<\_ASBOX
15645 ## ------------------------------------ ##
15646 ## Report this to http://llvm.org/bugs/ ##
15647 ## ------------------------------------ ##
15648 _ASBOX
15649      ) | sed "s/^/$as_me: WARNING:     /" >&2
15650     ;;
15651 esac
15652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657   eval "$as_ac_Header=\$ac_header_preproc"
15659 ac_res=`eval echo '${'$as_ac_Header'}'`
15660                { echo "$as_me:$LINENO: result: $ac_res" >&5
15661 echo "${ECHO_T}$ac_res" >&6; }
15664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15665   cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15667 _ACEOF
15671 done
15675 for ac_header in utime.h windows.h
15677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15679   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 ac_res=`eval echo '${'$as_ac_Header'}'`
15685                { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15687 else
15688   # Is the header compilable?
15689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697 $ac_includes_default
15698 #include <$ac_header>
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707   (eval "$ac_compile") 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } &&
15714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15715   { (case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720   (eval "$ac_try") 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; } &&
15724          { ac_try='test -s conftest.$ac_objext'
15725   { (case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_try") 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; }; then
15734   ac_header_compiler=yes
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739         ac_header_compiler=no
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15744 echo "${ECHO_T}$ac_header_compiler" >&6; }
15746 # Is the header present?
15747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755 #include <$ac_header>
15756 _ACEOF
15757 if { (ac_try="$ac_cpp conftest.$ac_ext"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } >/dev/null; then
15770   if test -s conftest.err; then
15771     ac_cpp_err=$ac_c_preproc_warn_flag
15772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15773   else
15774     ac_cpp_err=
15775   fi
15776 else
15777   ac_cpp_err=yes
15779 if test -z "$ac_cpp_err"; then
15780   ac_header_preproc=yes
15781 else
15782   echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785   ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792 # So?  What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794   yes:no: )
15795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799     ac_header_preproc=yes
15800     ;;
15801   no:yes:* )
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15814     ( cat <<\_ASBOX
15815 ## ------------------------------------ ##
15816 ## Report this to http://llvm.org/bugs/ ##
15817 ## ------------------------------------ ##
15818 _ASBOX
15819      ) | sed "s/^/$as_me: WARNING:     /" >&2
15820     ;;
15821 esac
15822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   eval "$as_ac_Header=\$ac_header_preproc"
15829 ac_res=`eval echo '${'$as_ac_Header'}'`
15830                { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15835   cat >>confdefs.h <<_ACEOF
15836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 _ACEOF
15841 done
15848 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15852   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 ac_res=`eval echo '${'$as_ac_Header'}'`
15858                { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15860 else
15861   # Is the header compilable?
15862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15864 cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 $ac_includes_default
15871 #include <$ac_header>
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_compile") 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } &&
15887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15888   { (case "(($ac_try" in
15889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890   *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893   (eval "$ac_try") 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; } &&
15897          { ac_try='test -s conftest.$ac_objext'
15898   { (case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_try") 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); }; }; then
15907   ac_header_compiler=yes
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912         ac_header_compiler=no
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15917 echo "${ECHO_T}$ac_header_compiler" >&6; }
15919 # Is the header present?
15920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928 #include <$ac_header>
15929 _ACEOF
15930 if { (ac_try="$ac_cpp conftest.$ac_ext"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } >/dev/null; then
15943   if test -s conftest.err; then
15944     ac_cpp_err=$ac_c_preproc_warn_flag
15945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15946   else
15947     ac_cpp_err=
15948   fi
15949 else
15950   ac_cpp_err=yes
15952 if test -z "$ac_cpp_err"; then
15953   ac_header_preproc=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958   ac_header_preproc=no
15961 rm -f conftest.err conftest.$ac_ext
15962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 echo "${ECHO_T}$ac_header_preproc" >&6; }
15965 # So?  What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15967   yes:no: )
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972     ac_header_preproc=yes
15973     ;;
15974   no:yes:* )
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15987     ( cat <<\_ASBOX
15988 ## ------------------------------------ ##
15989 ## Report this to http://llvm.org/bugs/ ##
15990 ## ------------------------------------ ##
15991 _ASBOX
15992      ) | sed "s/^/$as_me: WARNING:     /" >&2
15993     ;;
15994 esac
15995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15998   echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000   eval "$as_ac_Header=\$ac_header_preproc"
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003                { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16008   cat >>confdefs.h <<_ACEOF
16009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16010 _ACEOF
16014 done
16020 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_res=`eval echo '${'$as_ac_Header'}'`
16030                { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 else
16033   # Is the header compilable?
16034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 $ac_includes_default
16043 #include <$ac_header>
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_compile") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } &&
16059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest.$ac_objext'
16070   { (case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_try") 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   ac_header_compiler=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084         ac_header_compiler=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 echo "${ECHO_T}$ac_header_compiler" >&6; }
16091 # Is the header present?
16092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 #include <$ac_header>
16101 _ACEOF
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } >/dev/null; then
16115   if test -s conftest.err; then
16116     ac_cpp_err=$ac_c_preproc_warn_flag
16117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16118   else
16119     ac_cpp_err=
16120   fi
16121 else
16122   ac_cpp_err=yes
16124 if test -z "$ac_cpp_err"; then
16125   ac_header_preproc=yes
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130   ac_header_preproc=no
16133 rm -f conftest.err conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16135 echo "${ECHO_T}$ac_header_preproc" >&6; }
16137 # So?  What about this header?
16138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16139   yes:no: )
16140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16144     ac_header_preproc=yes
16145     ;;
16146   no:yes:* )
16147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16159     ( cat <<\_ASBOX
16160 ## ------------------------------------ ##
16161 ## Report this to http://llvm.org/bugs/ ##
16162 ## ------------------------------------ ##
16163 _ASBOX
16164      ) | sed "s/^/$as_me: WARNING:     /" >&2
16165     ;;
16166 esac
16167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   eval "$as_ac_Header=\$ac_header_preproc"
16174 ac_res=`eval echo '${'$as_ac_Header'}'`
16175                { echo "$as_me:$LINENO: result: $ac_res" >&5
16176 echo "${ECHO_T}$ac_res" >&6; }
16179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16180   cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16182 _ACEOF
16186 done
16189 for ac_header in valgrind/valgrind.h
16191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 ac_res=`eval echo '${'$as_ac_Header'}'`
16199                { echo "$as_me:$LINENO: result: $ac_res" >&5
16200 echo "${ECHO_T}$ac_res" >&6; }
16201 else
16202   # Is the header compilable?
16203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211 $ac_includes_default
16212 #include <$ac_header>
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_compile") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ac_header_compiler=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253         ac_header_compiler=no
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16258 echo "${ECHO_T}$ac_header_compiler" >&6; }
16260 # Is the header present?
16261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 #include <$ac_header>
16270 _ACEOF
16271 if { (ac_try="$ac_cpp conftest.$ac_ext"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } >/dev/null; then
16284   if test -s conftest.err; then
16285     ac_cpp_err=$ac_c_preproc_warn_flag
16286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16287   else
16288     ac_cpp_err=
16289   fi
16290 else
16291   ac_cpp_err=yes
16293 if test -z "$ac_cpp_err"; then
16294   ac_header_preproc=yes
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299   ac_header_preproc=no
16302 rm -f conftest.err conftest.$ac_ext
16303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16304 echo "${ECHO_T}$ac_header_preproc" >&6; }
16306 # So?  What about this header?
16307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16308   yes:no: )
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16313     ac_header_preproc=yes
16314     ;;
16315   no:yes:* )
16316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16328     ( cat <<\_ASBOX
16329 ## ------------------------------------ ##
16330 ## Report this to http://llvm.org/bugs/ ##
16331 ## ------------------------------------ ##
16332 _ASBOX
16333      ) | sed "s/^/$as_me: WARNING:     /" >&2
16334     ;;
16335 esac
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   eval "$as_ac_Header=\$ac_header_preproc"
16343 ac_res=`eval echo '${'$as_ac_Header'}'`
16344                { echo "$as_me:$LINENO: result: $ac_res" >&5
16345 echo "${ECHO_T}$ac_res" >&6; }
16348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16349   cat >>confdefs.h <<_ACEOF
16350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16351 _ACEOF
16355 done
16358 for ac_header in fenv.h
16360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 ac_res=`eval echo '${'$as_ac_Header'}'`
16368                { echo "$as_me:$LINENO: result: $ac_res" >&5
16369 echo "${ECHO_T}$ac_res" >&6; }
16370 else
16371   # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380 $ac_includes_default
16381 #include <$ac_header>
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398   { (case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_try") 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; } &&
16407          { ac_try='test -s conftest.$ac_objext'
16408   { (case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_try") 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); }; }; then
16417   ac_header_compiler=yes
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422         ac_header_compiler=no
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6; }
16429 # Is the header present?
16430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438 #include <$ac_header>
16439 _ACEOF
16440 if { (ac_try="$ac_cpp conftest.$ac_ext"
16441 case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } >/dev/null; then
16453   if test -s conftest.err; then
16454     ac_cpp_err=$ac_c_preproc_warn_flag
16455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16456   else
16457     ac_cpp_err=
16458   fi
16459 else
16460   ac_cpp_err=yes
16462 if test -z "$ac_cpp_err"; then
16463   ac_header_preproc=yes
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468   ac_header_preproc=no
16471 rm -f conftest.err conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473 echo "${ECHO_T}$ac_header_preproc" >&6; }
16475 # So?  What about this header?
16476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16477   yes:no: )
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16482     ac_header_preproc=yes
16483     ;;
16484   no:yes:* )
16485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16497     ( cat <<\_ASBOX
16498 ## ------------------------------------ ##
16499 ## Report this to http://llvm.org/bugs/ ##
16500 ## ------------------------------------ ##
16501 _ASBOX
16502      ) | sed "s/^/$as_me: WARNING:     /" >&2
16503     ;;
16504 esac
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   eval "$as_ac_Header=\$ac_header_preproc"
16512 ac_res=`eval echo '${'$as_ac_Header'}'`
16513                { echo "$as_me:$LINENO: result: $ac_res" >&5
16514 echo "${ECHO_T}$ac_res" >&6; }
16517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16518   cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 _ACEOF
16524 done
16526 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16527 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16528 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 #include <fenv.h>
16539 int
16540 main ()
16542 #ifndef FE_ALL_EXCEPT
16543   char *p = (char *) FE_ALL_EXCEPT;
16544   return !p;
16545 #endif
16547   ;
16548   return 0;
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (ac_try="$ac_compile"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_compile") 2>conftest.er1
16559   ac_status=$?
16560   grep -v '^ *+' conftest.er1 >conftest.err
16561   rm -f conftest.er1
16562   cat conftest.err >&5
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566   { (case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_try") 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }; } &&
16575          { ac_try='test -s conftest.$ac_objext'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590         ac_cv_have_decl_FE_ALL_EXCEPT=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16596 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16597 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_FE_ALL_EXCEPT 1
16601 _ACEOF
16604 else
16605   cat >>confdefs.h <<_ACEOF
16606 #define HAVE_DECL_FE_ALL_EXCEPT 0
16607 _ACEOF
16611 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16612 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 #include <fenv.h>
16624 int
16625 main ()
16627 #ifndef FE_INEXACT
16628   char *p = (char *) FE_INEXACT;
16629   return !p;
16630 #endif
16632   ;
16633   return 0;
16635 _ACEOF
16636 rm -f conftest.$ac_objext
16637 if { (ac_try="$ac_compile"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651   { (case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_try") 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; } &&
16660          { ac_try='test -s conftest.$ac_objext'
16661   { (case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_try") 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_have_decl_FE_INEXACT=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675         ac_cv_have_decl_FE_INEXACT=no
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16681 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16682 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_DECL_FE_INEXACT 1
16686 _ACEOF
16689 else
16690   cat >>confdefs.h <<_ACEOF
16691 #define HAVE_DECL_FE_INEXACT 0
16692 _ACEOF
16698 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16700 for ac_header in pthread.h
16702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710                { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16712 else
16713   # Is the header compilable?
16714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 $ac_includes_default
16723 #include <$ac_header>
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_compile") 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } &&
16739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16740   { (case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745   (eval "$ac_try") 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); }; } &&
16749          { ac_try='test -s conftest.$ac_objext'
16750   { (case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_try") 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759   ac_header_compiler=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764         ac_header_compiler=no
16767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16769 echo "${ECHO_T}$ac_header_compiler" >&6; }
16771 # Is the header present?
16772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 #include <$ac_header>
16781 _ACEOF
16782 if { (ac_try="$ac_cpp conftest.$ac_ext"
16783 case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } >/dev/null; then
16795   if test -s conftest.err; then
16796     ac_cpp_err=$ac_c_preproc_warn_flag
16797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16798   else
16799     ac_cpp_err=
16800   fi
16801 else
16802   ac_cpp_err=yes
16804 if test -z "$ac_cpp_err"; then
16805   ac_header_preproc=yes
16806 else
16807   echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810   ac_header_preproc=no
16813 rm -f conftest.err conftest.$ac_ext
16814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16815 echo "${ECHO_T}$ac_header_preproc" >&6; }
16817 # So?  What about this header?
16818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16819   yes:no: )
16820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16824     ac_header_preproc=yes
16825     ;;
16826   no:yes:* )
16827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16839     ( cat <<\_ASBOX
16840 ## ------------------------------------ ##
16841 ## Report this to http://llvm.org/bugs/ ##
16842 ## ------------------------------------ ##
16843 _ASBOX
16844      ) | sed "s/^/$as_me: WARNING:     /" >&2
16845     ;;
16846 esac
16847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   eval "$as_ac_Header=\$ac_header_preproc"
16854 ac_res=`eval echo '${'$as_ac_Header'}'`
16855                { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16860   cat >>confdefs.h <<_ACEOF
16861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16862 _ACEOF
16863  HAVE_PTHREAD=1
16865 else
16866   HAVE_PTHREAD=0
16870 done
16872 else
16873   HAVE_PTHREAD=0
16876 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16878 for ac_header in zlib.h
16880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 ac_res=`eval echo '${'$as_ac_Header'}'`
16888                { echo "$as_me:$LINENO: result: $ac_res" >&5
16889 echo "${ECHO_T}$ac_res" >&6; }
16890 else
16891   # Is the header compilable?
16892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16894 cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 $ac_includes_default
16901 #include <$ac_header>
16902 _ACEOF
16903 rm -f conftest.$ac_objext
16904 if { (ac_try="$ac_compile"
16905 case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_compile") 2>conftest.er1
16911   ac_status=$?
16912   grep -v '^ *+' conftest.er1 >conftest.err
16913   rm -f conftest.er1
16914   cat conftest.err >&5
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16918   { (case "(($ac_try" in
16919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920   *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923   (eval "$ac_try") 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest.$ac_objext'
16928   { (case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_try") 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; }; then
16937   ac_header_compiler=yes
16938 else
16939   echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942         ac_header_compiler=no
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16947 echo "${ECHO_T}$ac_header_compiler" >&6; }
16949 # Is the header present?
16950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958 #include <$ac_header>
16959 _ACEOF
16960 if { (ac_try="$ac_cpp conftest.$ac_ext"
16961 case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16967   ac_status=$?
16968   grep -v '^ *+' conftest.er1 >conftest.err
16969   rm -f conftest.er1
16970   cat conftest.err >&5
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); } >/dev/null; then
16973   if test -s conftest.err; then
16974     ac_cpp_err=$ac_c_preproc_warn_flag
16975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16976   else
16977     ac_cpp_err=
16978   fi
16979 else
16980   ac_cpp_err=yes
16982 if test -z "$ac_cpp_err"; then
16983   ac_header_preproc=yes
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988   ac_header_preproc=no
16991 rm -f conftest.err conftest.$ac_ext
16992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16993 echo "${ECHO_T}$ac_header_preproc" >&6; }
16995 # So?  What about this header?
16996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16997   yes:no: )
16998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17002     ac_header_preproc=yes
17003     ;;
17004   no:yes:* )
17005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17017     ( cat <<\_ASBOX
17018 ## ------------------------------------ ##
17019 ## Report this to http://llvm.org/bugs/ ##
17020 ## ------------------------------------ ##
17021 _ASBOX
17022      ) | sed "s/^/$as_me: WARNING:     /" >&2
17023     ;;
17024 esac
17025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028   echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030   eval "$as_ac_Header=\$ac_header_preproc"
17032 ac_res=`eval echo '${'$as_ac_Header'}'`
17033                { echo "$as_me:$LINENO: result: $ac_res" >&5
17034 echo "${ECHO_T}$ac_res" >&6; }
17037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17038   cat >>confdefs.h <<_ACEOF
17039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17040 _ACEOF
17041  HAVE_LIBZ=1
17043 else
17044   HAVE_LIBZ=0
17048 done
17050 else
17051   HAVE_LIBZ=0
17055 if test "$llvm_cv_enable_libffi" = "yes" ; then
17058 for ac_header in ffi.h ffi/ffi.h
17060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17062   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_res=`eval echo '${'$as_ac_Header'}'`
17068                { echo "$as_me:$LINENO: result: $ac_res" >&5
17069 echo "${ECHO_T}$ac_res" >&6; }
17070 else
17071   # Is the header compilable?
17072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 $ac_includes_default
17081 #include <$ac_header>
17082 _ACEOF
17083 rm -f conftest.$ac_objext
17084 if { (ac_try="$ac_compile"
17085 case "(($ac_try" in
17086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087   *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090   (eval "$ac_compile") 2>conftest.er1
17091   ac_status=$?
17092   grep -v '^ *+' conftest.er1 >conftest.err
17093   rm -f conftest.er1
17094   cat conftest.err >&5
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); } &&
17097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098   { (case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_try") 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); }; } &&
17107          { ac_try='test -s conftest.$ac_objext'
17108   { (case "(($ac_try" in
17109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110   *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113   (eval "$ac_try") 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_header_compiler=yes
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122         ac_header_compiler=no
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17127 echo "${ECHO_T}$ac_header_compiler" >&6; }
17129 # Is the header present?
17130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138 #include <$ac_header>
17139 _ACEOF
17140 if { (ac_try="$ac_cpp conftest.$ac_ext"
17141 case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } >/dev/null; then
17153   if test -s conftest.err; then
17154     ac_cpp_err=$ac_c_preproc_warn_flag
17155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17156   else
17157     ac_cpp_err=
17158   fi
17159 else
17160   ac_cpp_err=yes
17162 if test -z "$ac_cpp_err"; then
17163   ac_header_preproc=yes
17164 else
17165   echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168   ac_header_preproc=no
17171 rm -f conftest.err conftest.$ac_ext
17172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17173 echo "${ECHO_T}$ac_header_preproc" >&6; }
17175 # So?  What about this header?
17176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17177   yes:no: )
17178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17182     ac_header_preproc=yes
17183     ;;
17184   no:yes:* )
17185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17197     ( cat <<\_ASBOX
17198 ## ------------------------------------ ##
17199 ## Report this to http://llvm.org/bugs/ ##
17200 ## ------------------------------------ ##
17201 _ASBOX
17202      ) | sed "s/^/$as_me: WARNING:     /" >&2
17203     ;;
17204 esac
17205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   eval "$as_ac_Header=\$ac_header_preproc"
17212 ac_res=`eval echo '${'$as_ac_Header'}'`
17213                { echo "$as_me:$LINENO: result: $ac_res" >&5
17214 echo "${ECHO_T}$ac_res" >&6; }
17217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17218   cat >>confdefs.h <<_ACEOF
17219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17220 _ACEOF
17224 done
17229 for ac_header in CrashReporterClient.h
17231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17238 ac_res=`eval echo '${'$as_ac_Header'}'`
17239                { echo "$as_me:$LINENO: result: $ac_res" >&5
17240 echo "${ECHO_T}$ac_res" >&6; }
17241 else
17242   # Is the header compilable?
17243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 $ac_includes_default
17252 #include <$ac_header>
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_compile") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269   { (case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_try") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest.$ac_objext'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   ac_header_compiler=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293         ac_header_compiler=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17298 echo "${ECHO_T}$ac_header_compiler" >&6; }
17300 # Is the header present?
17301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309 #include <$ac_header>
17310 _ACEOF
17311 if { (ac_try="$ac_cpp conftest.$ac_ext"
17312 case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } >/dev/null; then
17324   if test -s conftest.err; then
17325     ac_cpp_err=$ac_c_preproc_warn_flag
17326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17327   else
17328     ac_cpp_err=
17329   fi
17330 else
17331   ac_cpp_err=yes
17333 if test -z "$ac_cpp_err"; then
17334   ac_header_preproc=yes
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339   ac_header_preproc=no
17342 rm -f conftest.err conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6; }
17346 # So?  What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17348   yes:no: )
17349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353     ac_header_preproc=yes
17354     ;;
17355   no:yes:* )
17356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17368     ( cat <<\_ASBOX
17369 ## ------------------------------------ ##
17370 ## Report this to http://llvm.org/bugs/ ##
17371 ## ------------------------------------ ##
17372 _ASBOX
17373      ) | sed "s/^/$as_me: WARNING:     /" >&2
17374     ;;
17375 esac
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   eval "$as_ac_Header=\$ac_header_preproc"
17383 ac_res=`eval echo '${'$as_ac_Header'}'`
17384                { echo "$as_me:$LINENO: result: $ac_res" >&5
17385 echo "${ECHO_T}$ac_res" >&6; }
17388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17389   cat >>confdefs.h <<_ACEOF
17390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17391 _ACEOF
17395 done
17398 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17399 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17400 cat >conftest.$ac_ext <<_ACEOF
17402   /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17408     extern const char *__crashreporter_info__;
17409     int main() {
17410       __crashreporter_info__ = "test";
17411       return 0;
17412     }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_link") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } &&
17430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431   { (case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_try") 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest$ac_exeext'
17441   { (case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_try") 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; }; then
17451   { echo "$as_me:$LINENO: result: yes" >&5
17452 echo "${ECHO_T}yes" >&6; }
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CRASHREPORTER_INFO 1
17456 _ACEOF
17459 else
17460   echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17464   { echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6; }
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_CRASHREPORTER_INFO 0
17469 _ACEOF
17474 rm -f core conftest.err conftest.$ac_objext \
17475       conftest$ac_exeext conftest.$ac_ext
17479   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17480 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17481 if test "${ac_cv_huge_val_sanity+set}" = set; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17485     ac_ext=cpp
17486 ac_cpp='$CXXCPP $CPPFLAGS'
17487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17491     ac_save_CXXFLAGS=$CXXFLAGS
17492     CXXFLAGS="$CXXFLAGS -pedantic"
17493     if test "$cross_compiling" = yes; then
17494   ac_cv_huge_val_sanity=yes
17495 else
17496   cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502 #include <math.h>
17503 int
17504 main ()
17506 double x = HUGE_VAL; return x != x;
17507   ;
17508   return 0;
17510 _ACEOF
17511 rm -f conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_link") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17522   { (case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_try") 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   ac_cv_huge_val_sanity=yes
17532 else
17533   echo "$as_me: program exited with status $ac_status" >&5
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ( exit $ac_status )
17538 ac_cv_huge_val_sanity=no
17540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17544     CXXFLAGS=$ac_save_CXXFLAGS
17545     ac_ext=c
17546 ac_cpp='$CPP $CPPFLAGS'
17547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17553 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17554 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17555   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17558 { echo "$as_me:$LINENO: checking for pid_t" >&5
17559 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17560 if test "${ac_cv_type_pid_t+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569 $ac_includes_default
17570 typedef pid_t ac__type_new_;
17571 int
17572 main ()
17574 if ((ac__type_new_ *) 0)
17575   return 0;
17576 if (sizeof (ac__type_new_))
17577   return 0;
17578   ;
17579   return 0;
17581 _ACEOF
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_compile") 2>conftest.er1
17590   ac_status=$?
17591   grep -v '^ *+' conftest.er1 >conftest.err
17592   rm -f conftest.er1
17593   cat conftest.err >&5
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); } &&
17596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17597   { (case "(($ac_try" in
17598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599   *) ac_try_echo=$ac_try;;
17600 esac
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602   (eval "$ac_try") 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; } &&
17606          { ac_try='test -s conftest.$ac_objext'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ac_cv_type_pid_t=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621         ac_cv_type_pid_t=no
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17627 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17628 if test $ac_cv_type_pid_t = yes; then
17629   :
17630 else
17632 cat >>confdefs.h <<_ACEOF
17633 #define pid_t int
17634 _ACEOF
17638 { echo "$as_me:$LINENO: checking for size_t" >&5
17639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17640 if test "${ac_cv_type_size_t+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649 $ac_includes_default
17650 typedef size_t ac__type_new_;
17651 int
17652 main ()
17654 if ((ac__type_new_ *) 0)
17655   return 0;
17656 if (sizeof (ac__type_new_))
17657   return 0;
17658   ;
17659   return 0;
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_compile") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } &&
17676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677   { (case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_try") 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest.$ac_objext'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   ac_cv_type_size_t=yes
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701         ac_cv_type_size_t=no
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17708 if test $ac_cv_type_size_t = yes; then
17709   :
17710 else
17712 cat >>confdefs.h <<_ACEOF
17713 #define size_t unsigned int
17714 _ACEOF
17719 cat >>confdefs.h <<_ACEOF
17720 #define RETSIGTYPE void
17721 _ACEOF
17723 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17724 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17725 if test "${ac_cv_struct_tm+set}" = set; then
17726   echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728   cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734 #include <sys/types.h>
17735 #include <time.h>
17737 int
17738 main ()
17740 struct tm *tp; tp->tm_sec;
17741   ;
17742   return 0;
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_compile") 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760   { (case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765   (eval "$ac_try") 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } &&
17769          { ac_try='test -s conftest.$ac_objext'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   ac_cv_struct_tm=time.h
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784         ac_cv_struct_tm=sys/time.h
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17790 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17791 if test $ac_cv_struct_tm = sys/time.h; then
17793 cat >>confdefs.h <<\_ACEOF
17794 #define TM_IN_SYS_TIME 1
17795 _ACEOF
17799 { echo "$as_me:$LINENO: checking for int64_t" >&5
17800 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17801 if test "${ac_cv_type_int64_t+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810 $ac_includes_default
17811 typedef int64_t ac__type_new_;
17812 int
17813 main ()
17815 if ((ac__type_new_ *) 0)
17816   return 0;
17817 if (sizeof (ac__type_new_))
17818   return 0;
17819   ;
17820   return 0;
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_compile") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838   { (case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_try") 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest.$ac_objext'
17848   { (case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_try") 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   ac_cv_type_int64_t=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862         ac_cv_type_int64_t=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17868 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17869 if test $ac_cv_type_int64_t = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_INT64_T 1
17873 _ACEOF
17876 else
17877   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17878 echo "$as_me: error: Type int64_t required but not found" >&2;}
17879    { (exit 1); exit 1; }; }
17882 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17883 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17884 if test "${ac_cv_type_uint64_t+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893 $ac_includes_default
17894 typedef uint64_t ac__type_new_;
17895 int
17896 main ()
17898 if ((ac__type_new_ *) 0)
17899   return 0;
17900 if (sizeof (ac__type_new_))
17901   return 0;
17902   ;
17903   return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_compile") 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } &&
17920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921   { (case "(($ac_try" in
17922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923   *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926   (eval "$ac_try") 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; } &&
17930          { ac_try='test -s conftest.$ac_objext'
17931   { (case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_try") 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   ac_cv_type_uint64_t=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945         ac_cv_type_uint64_t=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17951 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17952 if test $ac_cv_type_uint64_t = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define HAVE_UINT64_T 1
17956 _ACEOF
17959 else
17960   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17961 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17962 if test "${ac_cv_type_u_int64_t+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971 $ac_includes_default
17972 typedef u_int64_t ac__type_new_;
17973 int
17974 main ()
17976 if ((ac__type_new_ *) 0)
17977   return 0;
17978 if (sizeof (ac__type_new_))
17979   return 0;
17980   ;
17981   return 0;
17983 _ACEOF
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_compile") 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } &&
17998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999   { (case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_try") 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; } &&
18008          { ac_try='test -s conftest.$ac_objext'
18009   { (case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_try") 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; }; then
18018   ac_cv_type_u_int64_t=yes
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023         ac_cv_type_u_int64_t=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18029 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18030 if test $ac_cv_type_u_int64_t = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define HAVE_U_INT64_T 1
18034 _ACEOF
18037 else
18038   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18039 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18040    { (exit 1); exit 1; }; }
18054 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18070 #define $ac_func innocuous_$ac_func
18072 /* System header to define __stub macros and hopefully few prototypes,
18073     which can conflict with char $ac_func (); below.
18074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18075     <limits.h> exists even on freestanding compilers.  */
18077 #ifdef __STDC__
18078 # include <limits.h>
18079 #else
18080 # include <assert.h>
18081 #endif
18083 #undef $ac_func
18085 /* Override any GCC internal prototype to avoid an error.
18086    Use char because int might match the return type of a GCC
18087    builtin and then its argument prototype would still apply.  */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char $ac_func ();
18092 /* The GNU C library defines this for functions which it implements
18093     to always fail with ENOSYS.  Some functions are actually named
18094     something starting with __ and the normal name is an alias.  */
18095 #if defined __stub_$ac_func || defined __stub___$ac_func
18096 choke me
18097 #endif
18099 int
18100 main ()
18102 return $ac_func ();
18103   ;
18104   return 0;
18106 _ACEOF
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111   *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114   (eval "$ac_link") 2>conftest.er1
18115   ac_status=$?
18116   grep -v '^ *+' conftest.er1 >conftest.err
18117   rm -f conftest.er1
18118   cat conftest.err >&5
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); } &&
18121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18122   { (case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_try") 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; } &&
18131          { ac_try='test -s conftest$ac_exeext'
18132   { (case "(($ac_try" in
18133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134   *) ac_try_echo=$ac_try;;
18135 esac
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137   (eval "$ac_try") 2>&5
18138   ac_status=$?
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); }; }; then
18141   eval "$as_ac_var=yes"
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146         eval "$as_ac_var=no"
18149 rm -f core conftest.err conftest.$ac_objext \
18150       conftest$ac_exeext conftest.$ac_ext
18152 ac_res=`eval echo '${'$as_ac_var'}'`
18153                { echo "$as_me:$LINENO: result: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156   cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18158 _ACEOF
18161 done
18167 for ac_func in powf fmodf strtof round
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18173   echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175   cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18183 #define $ac_func innocuous_$ac_func
18185 /* System header to define __stub macros and hopefully few prototypes,
18186     which can conflict with char $ac_func (); below.
18187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188     <limits.h> exists even on freestanding compilers.  */
18190 #ifdef __STDC__
18191 # include <limits.h>
18192 #else
18193 # include <assert.h>
18194 #endif
18196 #undef $ac_func
18198 /* Override any GCC internal prototype to avoid an error.
18199    Use char because int might match the return type of a GCC
18200    builtin and then its argument prototype would still apply.  */
18201 #ifdef __cplusplus
18202 extern "C"
18203 #endif
18204 char $ac_func ();
18205 /* The GNU C library defines this for functions which it implements
18206     to always fail with ENOSYS.  Some functions are actually named
18207     something starting with __ and the normal name is an alias.  */
18208 #if defined __stub_$ac_func || defined __stub___$ac_func
18209 choke me
18210 #endif
18212 int
18213 main ()
18215 return $ac_func ();
18216   ;
18217   return 0;
18219 _ACEOF
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_link") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235   { (case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_try") 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; } &&
18244          { ac_try='test -s conftest$ac_exeext'
18245   { (case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_try") 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); }; }; then
18254   eval "$as_ac_var=yes"
18255 else
18256   echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259         eval "$as_ac_var=no"
18262 rm -f core conftest.err conftest.$ac_objext \
18263       conftest$ac_exeext conftest.$ac_ext
18265 ac_res=`eval echo '${'$as_ac_var'}'`
18266                { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269   cat >>confdefs.h <<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 _ACEOF
18274 done
18281 for ac_func in log log2 log10 exp exp2
18283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289   cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h.  */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h.  */
18295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18297 #define $ac_func innocuous_$ac_func
18299 /* System header to define __stub macros and hopefully few prototypes,
18300     which can conflict with char $ac_func (); below.
18301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18302     <limits.h> exists even on freestanding compilers.  */
18304 #ifdef __STDC__
18305 # include <limits.h>
18306 #else
18307 # include <assert.h>
18308 #endif
18310 #undef $ac_func
18312 /* Override any GCC internal prototype to avoid an error.
18313    Use char because int might match the return type of a GCC
18314    builtin and then its argument prototype would still apply.  */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char $ac_func ();
18319 /* The GNU C library defines this for functions which it implements
18320     to always fail with ENOSYS.  Some functions are actually named
18321     something starting with __ and the normal name is an alias.  */
18322 #if defined __stub_$ac_func || defined __stub___$ac_func
18323 choke me
18324 #endif
18326 int
18327 main ()
18329 return $ac_func ();
18330   ;
18331   return 0;
18333 _ACEOF
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_link") 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18349   { (case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_try") 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; } &&
18358          { ac_try='test -s conftest$ac_exeext'
18359   { (case "(($ac_try" in
18360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361   *) ac_try_echo=$ac_try;;
18362 esac
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364   (eval "$ac_try") 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); }; }; then
18368   eval "$as_ac_var=yes"
18369 else
18370   echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373         eval "$as_ac_var=no"
18376 rm -f core conftest.err conftest.$ac_objext \
18377       conftest$ac_exeext conftest.$ac_ext
18379 ac_res=`eval echo '${'$as_ac_var'}'`
18380                { echo "$as_me:$LINENO: result: $ac_res" >&5
18381 echo "${ECHO_T}$ac_res" >&6; }
18382 if test `eval echo '${'$as_ac_var'}'` = yes; then
18383   cat >>confdefs.h <<_ACEOF
18384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18385 _ACEOF
18388 done
18395 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18411 #define $ac_func innocuous_$ac_func
18413 /* System header to define __stub macros and hopefully few prototypes,
18414     which can conflict with char $ac_func (); below.
18415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18416     <limits.h> exists even on freestanding compilers.  */
18418 #ifdef __STDC__
18419 # include <limits.h>
18420 #else
18421 # include <assert.h>
18422 #endif
18424 #undef $ac_func
18426 /* Override any GCC internal prototype to avoid an error.
18427    Use char because int might match the return type of a GCC
18428    builtin and then its argument prototype would still apply.  */
18429 #ifdef __cplusplus
18430 extern "C"
18431 #endif
18432 char $ac_func ();
18433 /* The GNU C library defines this for functions which it implements
18434     to always fail with ENOSYS.  Some functions are actually named
18435     something starting with __ and the normal name is an alias.  */
18436 #if defined __stub_$ac_func || defined __stub___$ac_func
18437 choke me
18438 #endif
18440 int
18441 main ()
18443 return $ac_func ();
18444   ;
18445   return 0;
18447 _ACEOF
18448 rm -f conftest.$ac_objext conftest$ac_exeext
18449 if { (ac_try="$ac_link"
18450 case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_link") 2>conftest.er1
18456   ac_status=$?
18457   grep -v '^ *+' conftest.er1 >conftest.err
18458   rm -f conftest.er1
18459   cat conftest.err >&5
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } &&
18462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest$ac_exeext'
18473   { (case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478   (eval "$ac_try") 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; }; then
18482   eval "$as_ac_var=yes"
18483 else
18484   echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487         eval "$as_ac_var=no"
18490 rm -f core conftest.err conftest.$ac_objext \
18491       conftest$ac_exeext conftest.$ac_ext
18493 ac_res=`eval echo '${'$as_ac_var'}'`
18494                { echo "$as_me:$LINENO: result: $ac_res" >&5
18495 echo "${ECHO_T}$ac_res" >&6; }
18496 if test `eval echo '${'$as_ac_var'}'` = yes; then
18497   cat >>confdefs.h <<_ACEOF
18498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499 _ACEOF
18502 done
18507 for ac_func in isatty mkdtemp mkstemp
18509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18513   echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515   cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h.  */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h.  */
18521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18523 #define $ac_func innocuous_$ac_func
18525 /* System header to define __stub macros and hopefully few prototypes,
18526     which can conflict with char $ac_func (); below.
18527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18528     <limits.h> exists even on freestanding compilers.  */
18530 #ifdef __STDC__
18531 # include <limits.h>
18532 #else
18533 # include <assert.h>
18534 #endif
18536 #undef $ac_func
18538 /* Override any GCC internal prototype to avoid an error.
18539    Use char because int might match the return type of a GCC
18540    builtin and then its argument prototype would still apply.  */
18541 #ifdef __cplusplus
18542 extern "C"
18543 #endif
18544 char $ac_func ();
18545 /* The GNU C library defines this for functions which it implements
18546     to always fail with ENOSYS.  Some functions are actually named
18547     something starting with __ and the normal name is an alias.  */
18548 #if defined __stub_$ac_func || defined __stub___$ac_func
18549 choke me
18550 #endif
18552 int
18553 main ()
18555 return $ac_func ();
18556   ;
18557   return 0;
18559 _ACEOF
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_link") 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } &&
18574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575   { (case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_try") 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; } &&
18584          { ac_try='test -s conftest$ac_exeext'
18585   { (case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_try") 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; }; then
18594   eval "$as_ac_var=yes"
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599         eval "$as_ac_var=no"
18602 rm -f core conftest.err conftest.$ac_objext \
18603       conftest$ac_exeext conftest.$ac_ext
18605 ac_res=`eval echo '${'$as_ac_var'}'`
18606                { echo "$as_me:$LINENO: result: $ac_res" >&5
18607 echo "${ECHO_T}$ac_res" >&6; }
18608 if test `eval echo '${'$as_ac_var'}'` = yes; then
18609   cat >>confdefs.h <<_ACEOF
18610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18611 _ACEOF
18614 done
18623 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629   echo $ECHO_N "(cached) $ECHO_C" >&6
18630 else
18631   cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18639 #define $ac_func innocuous_$ac_func
18641 /* System header to define __stub macros and hopefully few prototypes,
18642     which can conflict with char $ac_func (); below.
18643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644     <limits.h> exists even on freestanding compilers.  */
18646 #ifdef __STDC__
18647 # include <limits.h>
18648 #else
18649 # include <assert.h>
18650 #endif
18652 #undef $ac_func
18654 /* Override any GCC internal prototype to avoid an error.
18655    Use char because int might match the return type of a GCC
18656    builtin and then its argument prototype would still apply.  */
18657 #ifdef __cplusplus
18658 extern "C"
18659 #endif
18660 char $ac_func ();
18661 /* The GNU C library defines this for functions which it implements
18662     to always fail with ENOSYS.  Some functions are actually named
18663     something starting with __ and the normal name is an alias.  */
18664 #if defined __stub_$ac_func || defined __stub___$ac_func
18665 choke me
18666 #endif
18668 int
18669 main ()
18671 return $ac_func ();
18672   ;
18673   return 0;
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_link") 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691   { (case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_try") 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest$ac_exeext'
18701   { (case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_try") 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   eval "$as_ac_var=yes"
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715         eval "$as_ac_var=no"
18718 rm -f core conftest.err conftest.$ac_objext \
18719       conftest$ac_exeext conftest.$ac_ext
18721 ac_res=`eval echo '${'$as_ac_var'}'`
18722                { echo "$as_me:$LINENO: result: $ac_res" >&5
18723 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_var'}'` = yes; then
18725   cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18727 _ACEOF
18730 done
18736 for ac_func in strerror strerror_r setenv arc4random
18738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755     which can conflict with char $ac_func (); below.
18756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757     <limits.h> exists even on freestanding compilers.  */
18759 #ifdef __STDC__
18760 # include <limits.h>
18761 #else
18762 # include <assert.h>
18763 #endif
18765 #undef $ac_func
18767 /* Override any GCC internal prototype to avoid an error.
18768    Use char because int might match the return type of a GCC
18769    builtin and then its argument prototype would still apply.  */
18770 #ifdef __cplusplus
18771 extern "C"
18772 #endif
18773 char $ac_func ();
18774 /* The GNU C library defines this for functions which it implements
18775     to always fail with ENOSYS.  Some functions are actually named
18776     something starting with __ and the normal name is an alias.  */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18778 choke me
18779 #endif
18781 int
18782 main ()
18784 return $ac_func ();
18785   ;
18786   return 0;
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   eval "$as_ac_var=yes"
18824 else
18825   echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828         eval "$as_ac_var=no"
18831 rm -f core conftest.err conftest.$ac_objext \
18832       conftest$ac_exeext conftest.$ac_ext
18834 ac_res=`eval echo '${'$as_ac_var'}'`
18835                { echo "$as_me:$LINENO: result: $ac_res" >&5
18836 echo "${ECHO_T}$ac_res" >&6; }
18837 if test `eval echo '${'$as_ac_var'}'` = yes; then
18838   cat >>confdefs.h <<_ACEOF
18839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18840 _ACEOF
18843 done
18849 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18865 #define $ac_func innocuous_$ac_func
18867 /* System header to define __stub macros and hopefully few prototypes,
18868     which can conflict with char $ac_func (); below.
18869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18870     <limits.h> exists even on freestanding compilers.  */
18872 #ifdef __STDC__
18873 # include <limits.h>
18874 #else
18875 # include <assert.h>
18876 #endif
18878 #undef $ac_func
18880 /* Override any GCC internal prototype to avoid an error.
18881    Use char because int might match the return type of a GCC
18882    builtin and then its argument prototype would still apply.  */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 char $ac_func ();
18887 /* The GNU C library defines this for functions which it implements
18888     to always fail with ENOSYS.  Some functions are actually named
18889     something starting with __ and the normal name is an alias.  */
18890 #if defined __stub_$ac_func || defined __stub___$ac_func
18891 choke me
18892 #endif
18894 int
18895 main ()
18897 return $ac_func ();
18898   ;
18899   return 0;
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_link") 2>conftest.er1
18910   ac_status=$?
18911   grep -v '^ *+' conftest.er1 >conftest.err
18912   rm -f conftest.er1
18913   cat conftest.err >&5
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); } &&
18916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917   { (case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_try") 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; } &&
18926          { ac_try='test -s conftest$ac_exeext'
18927   { (case "(($ac_try" in
18928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929   *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932   (eval "$ac_try") 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936   eval "$as_ac_var=yes"
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941         eval "$as_ac_var=no"
18944 rm -f core conftest.err conftest.$ac_objext \
18945       conftest$ac_exeext conftest.$ac_ext
18947 ac_res=`eval echo '${'$as_ac_var'}'`
18948                { echo "$as_me:$LINENO: result: $ac_res" >&5
18949 echo "${ECHO_T}$ac_res" >&6; }
18950 if test `eval echo '${'$as_ac_var'}'` = yes; then
18951   cat >>confdefs.h <<_ACEOF
18952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18953 _ACEOF
18956 done
18963 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18969   echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971   cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18979 #define $ac_func innocuous_$ac_func
18981 /* System header to define __stub macros and hopefully few prototypes,
18982     which can conflict with char $ac_func (); below.
18983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984     <limits.h> exists even on freestanding compilers.  */
18986 #ifdef __STDC__
18987 # include <limits.h>
18988 #else
18989 # include <assert.h>
18990 #endif
18992 #undef $ac_func
18994 /* Override any GCC internal prototype to avoid an error.
18995    Use char because int might match the return type of a GCC
18996    builtin and then its argument prototype would still apply.  */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char $ac_func ();
19001 /* The GNU C library defines this for functions which it implements
19002     to always fail with ENOSYS.  Some functions are actually named
19003     something starting with __ and the normal name is an alias.  */
19004 #if defined __stub_$ac_func || defined __stub___$ac_func
19005 choke me
19006 #endif
19008 int
19009 main ()
19011 return $ac_func ();
19012   ;
19013   return 0;
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } &&
19030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031   { (case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036   (eval "$ac_try") 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; } &&
19040          { ac_try='test -s conftest$ac_exeext'
19041   { (case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_try") 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   eval "$as_ac_var=yes"
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055         eval "$as_ac_var=no"
19058 rm -f core conftest.err conftest.$ac_objext \
19059       conftest$ac_exeext conftest.$ac_ext
19061 ac_res=`eval echo '${'$as_ac_var'}'`
19062                { echo "$as_me:$LINENO: result: $ac_res" >&5
19063 echo "${ECHO_T}$ac_res" >&6; }
19064 if test `eval echo '${'$as_ac_var'}'` = yes; then
19065   cat >>confdefs.h <<_ACEOF
19066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19067 _ACEOF
19070 done
19074 for ac_func in futimes futimens
19076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19090 #define $ac_func innocuous_$ac_func
19092 /* System header to define __stub macros and hopefully few prototypes,
19093     which can conflict with char $ac_func (); below.
19094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19095     <limits.h> exists even on freestanding compilers.  */
19097 #ifdef __STDC__
19098 # include <limits.h>
19099 #else
19100 # include <assert.h>
19101 #endif
19103 #undef $ac_func
19105 /* Override any GCC internal prototype to avoid an error.
19106    Use char because int might match the return type of a GCC
19107    builtin and then its argument prototype would still apply.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char $ac_func ();
19112 /* The GNU C library defines this for functions which it implements
19113     to always fail with ENOSYS.  Some functions are actually named
19114     something starting with __ and the normal name is an alias.  */
19115 #if defined __stub_$ac_func || defined __stub___$ac_func
19116 choke me
19117 #endif
19119 int
19120 main ()
19122 return $ac_func ();
19123   ;
19124   return 0;
19126 _ACEOF
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_link") 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } &&
19141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142   { (case "(($ac_try" in
19143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144   *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147   (eval "$ac_try") 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_try") 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   eval "$as_ac_var=yes"
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166         eval "$as_ac_var=no"
19169 rm -f core conftest.err conftest.$ac_objext \
19170       conftest$ac_exeext conftest.$ac_ext
19172 ac_res=`eval echo '${'$as_ac_var'}'`
19173                { echo "$as_me:$LINENO: result: $ac_res" >&5
19174 echo "${ECHO_T}$ac_res" >&6; }
19175 if test `eval echo '${'$as_ac_var'}'` = yes; then
19176   cat >>confdefs.h <<_ACEOF
19177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19178 _ACEOF
19181 done
19183 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19184 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19185 if test "${llvm_cv_c_printf_a+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   ac_ext=c
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19194  if test "$cross_compiling" = yes; then
19195   llvmac_cv_c_printf_a=no
19196 else
19197   cat >conftest.$ac_ext <<_ACEOF
19199   /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19205 #include <stdio.h>
19206 #include <stdlib.h>
19208 int
19209 main ()
19212 volatile double A, B;
19213 char Buffer[100];
19214 A = 1;
19215 A /= 10.0;
19216 sprintf(Buffer, "%a", A);
19217 B = atof(Buffer);
19218 if (A != B)
19219   return (1);
19220 if (A != 0x1.999999999999ap-4)
19221   return (1);
19222 return (0);
19223   ;
19224   return 0;
19226 _ACEOF
19227 rm -f conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_link") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19238   { (case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_try") 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; }; then
19247   llvm_cv_c_printf_a=yes
19248 else
19249   echo "$as_me: program exited with status $ac_status" >&5
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ( exit $ac_status )
19254 llvmac_cv_c_printf_a=no
19256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19260  ac_ext=c
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19268 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19269  if test "$llvm_cv_c_printf_a" = "yes"; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define HAVE_PRINTF_A 1
19273 _ACEOF
19275  fi
19279   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19280 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19281 if test "${ac_cv_func_rand48+set}" = set; then
19282   echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19285     ac_ext=cpp
19286 ac_cpp='$CXXCPP $CPPFLAGS'
19287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291     cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #include <stdlib.h>
19298 int
19299 main ()
19301 srand48(0);lrand48();drand48();
19302   ;
19303   return 0;
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (ac_try="$ac_compile"
19308 case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313   (eval "$ac_compile") 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19321   { (case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_try") 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; } &&
19330          { ac_try='test -s conftest.$ac_objext'
19331   { (case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_try") 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; }; then
19340   ac_cv_func_rand48=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345         ac_cv_func_rand48=no
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349     ac_ext=c
19350 ac_cpp='$CPP $CPPFLAGS'
19351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19358 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19360 if test "$ac_cv_func_rand48" = "yes" ; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_RAND48 1
19364 _ACEOF
19369 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19370 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19371 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 $ac_includes_default
19381 int
19382 main ()
19384 #ifndef strerror_s
19385   char *p = (char *) strerror_s;
19386   return !p;
19387 #endif
19389   ;
19390   return 0;
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397   *) ac_try_echo=$ac_try;;
19398 esac
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400   (eval "$ac_compile") 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } &&
19407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19408   { (case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_try") 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest.$ac_objext'
19418   { (case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_try") 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   ac_cv_have_decl_strerror_s=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432         ac_cv_have_decl_strerror_s=no
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19438 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19439 if test $ac_cv_have_decl_strerror_s = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_DECL_STRERROR_S 1
19443 _ACEOF
19446 else
19447   cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_STRERROR_S 0
19449 _ACEOF
19456 if test "$llvm_cv_os_type" = "MingW" ; then
19457   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19458 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19459 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lgcc  $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19471 /* Override any GCC internal prototype to avoid an error.
19472    Use char because int might match the return type of a GCC
19473    builtin and then its argument prototype would still apply.  */
19474 #ifdef __cplusplus
19475 extern "C"
19476 #endif
19477 char _alloca ();
19478 int
19479 main ()
19481 return _alloca ();
19482   ;
19483   return 0;
19485 _ACEOF
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (ac_try="$ac_link"
19488 case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_link") 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } &&
19500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; } &&
19510          { ac_try='test -s conftest$ac_exeext'
19511   { (case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516   (eval "$ac_try") 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   ac_cv_lib_gcc__alloca=yes
19521 else
19522   echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525         ac_cv_lib_gcc__alloca=no
19528 rm -f core conftest.err conftest.$ac_objext \
19529       conftest$ac_exeext conftest.$ac_ext
19530 LIBS=$ac_check_lib_save_LIBS
19532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19533 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19534 if test $ac_cv_lib_gcc__alloca = yes; then
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE__ALLOCA 1
19538 _ACEOF
19542   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19543 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19544 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   ac_check_lib_save_LIBS=$LIBS
19548 LIBS="-lgcc  $LIBS"
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19556 /* Override any GCC internal prototype to avoid an error.
19557    Use char because int might match the return type of a GCC
19558    builtin and then its argument prototype would still apply.  */
19559 #ifdef __cplusplus
19560 extern "C"
19561 #endif
19562 char __alloca ();
19563 int
19564 main ()
19566 return __alloca ();
19567   ;
19568   return 0;
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_link") 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19586   { (case "(($ac_try" in
19587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588   *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591   (eval "$ac_try") 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; } &&
19595          { ac_try='test -s conftest$ac_exeext'
19596   { (case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_try") 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_lib_gcc___alloca=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610         ac_cv_lib_gcc___alloca=no
19613 rm -f core conftest.err conftest.$ac_objext \
19614       conftest$ac_exeext conftest.$ac_ext
19615 LIBS=$ac_check_lib_save_LIBS
19617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19618 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19619 if test $ac_cv_lib_gcc___alloca = yes; then
19621 cat >>confdefs.h <<\_ACEOF
19622 #define HAVE___ALLOCA 1
19623 _ACEOF
19627   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19628 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19629 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19630   echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632   ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-lgcc  $LIBS"
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19641 /* Override any GCC internal prototype to avoid an error.
19642    Use char because int might match the return type of a GCC
19643    builtin and then its argument prototype would still apply.  */
19644 #ifdef __cplusplus
19645 extern "C"
19646 #endif
19647 char __chkstk ();
19648 int
19649 main ()
19651 return __chkstk ();
19652   ;
19653   return 0;
19655 _ACEOF
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_link") 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19671   { (case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_try") 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; } &&
19680          { ac_try='test -s conftest$ac_exeext'
19681   { (case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_try") 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; }; then
19690   ac_cv_lib_gcc___chkstk=yes
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695         ac_cv_lib_gcc___chkstk=no
19698 rm -f core conftest.err conftest.$ac_objext \
19699       conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19703 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19704 if test $ac_cv_lib_gcc___chkstk = yes; then
19706 cat >>confdefs.h <<\_ACEOF
19707 #define HAVE___CHKSTK 1
19708 _ACEOF
19712   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19713 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lgcc  $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19726 /* Override any GCC internal prototype to avoid an error.
19727    Use char because int might match the return type of a GCC
19728    builtin and then its argument prototype would still apply.  */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char ___chkstk ();
19733 int
19734 main ()
19736 return ___chkstk ();
19737   ;
19738   return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745   *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748   (eval "$ac_link") 2>conftest.er1
19749   ac_status=$?
19750   grep -v '^ *+' conftest.er1 >conftest.err
19751   rm -f conftest.er1
19752   cat conftest.err >&5
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } &&
19755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756   { (case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_try") 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest$ac_exeext'
19766   { (case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771   (eval "$ac_try") 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; }; then
19775   ac_cv_lib_gcc____chkstk=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780         ac_cv_lib_gcc____chkstk=no
19783 rm -f core conftest.err conftest.$ac_objext \
19784       conftest$ac_exeext conftest.$ac_ext
19785 LIBS=$ac_check_lib_save_LIBS
19787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19788 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19789 if test $ac_cv_lib_gcc____chkstk = yes; then
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE____CHKSTK 1
19793 _ACEOF
19798   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19799 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lgcc  $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19812 /* Override any GCC internal prototype to avoid an error.
19813    Use char because int might match the return type of a GCC
19814    builtin and then its argument prototype would still apply.  */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char __ashldi3 ();
19819 int
19820 main ()
19822 return __ashldi3 ();
19823   ;
19824   return 0;
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_link") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } &&
19841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842   { (case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_try") 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; } &&
19851          { ac_try='test -s conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_lib_gcc___ashldi3=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866         ac_cv_lib_gcc___ashldi3=no
19869 rm -f core conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_check_lib_save_LIBS
19873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19874 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19875 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE___ASHLDI3 1
19879 _ACEOF
19883   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19884 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lgcc  $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19897 /* Override any GCC internal prototype to avoid an error.
19898    Use char because int might match the return type of a GCC
19899    builtin and then its argument prototype would still apply.  */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char __ashrdi3 ();
19904 int
19905 main ()
19907 return __ashrdi3 ();
19908   ;
19909   return 0;
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_link") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } &&
19926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19927   { (case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_try") 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } &&
19936          { ac_try='test -s conftest$ac_exeext'
19937   { (case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_try") 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_gcc___ashrdi3=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951         ac_cv_lib_gcc___ashrdi3=no
19954 rm -f core conftest.err conftest.$ac_objext \
19955       conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19959 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19960 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE___ASHRDI3 1
19964 _ACEOF
19968   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19969 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lgcc  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19982 /* Override any GCC internal prototype to avoid an error.
19983    Use char because int might match the return type of a GCC
19984    builtin and then its argument prototype would still apply.  */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 char __divdi3 ();
19989 int
19990 main ()
19992 return __divdi3 ();
19993   ;
19994   return 0;
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004   (eval "$ac_link") 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } &&
20011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012   { (case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_try") 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest$ac_exeext'
20022   { (case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_try") 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031   ac_cv_lib_gcc___divdi3=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036         ac_cv_lib_gcc___divdi3=no
20039 rm -f core conftest.err conftest.$ac_objext \
20040       conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
20044 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
20045 if test $ac_cv_lib_gcc___divdi3 = yes; then
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE___DIVDI3 1
20049 _ACEOF
20053   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
20054 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
20055 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058   ac_check_lib_save_LIBS=$LIBS
20059 LIBS="-lgcc  $LIBS"
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20067 /* Override any GCC internal prototype to avoid an error.
20068    Use char because int might match the return type of a GCC
20069    builtin and then its argument prototype would still apply.  */
20070 #ifdef __cplusplus
20071 extern "C"
20072 #endif
20073 char __fixdfdi ();
20074 int
20075 main ()
20077 return __fixdfdi ();
20078   ;
20079   return 0;
20081 _ACEOF
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_link") 2>conftest.er1
20090   ac_status=$?
20091   grep -v '^ *+' conftest.er1 >conftest.err
20092   rm -f conftest.er1
20093   cat conftest.err >&5
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); } &&
20096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097   { (case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102   (eval "$ac_try") 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; } &&
20106          { ac_try='test -s conftest$ac_exeext'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   ac_cv_lib_gcc___fixdfdi=yes
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121         ac_cv_lib_gcc___fixdfdi=no
20124 rm -f core conftest.err conftest.$ac_objext \
20125       conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20129 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20130 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE___FIXDFDI 1
20134 _ACEOF
20138   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20139 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20140 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-lgcc  $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20152 /* Override any GCC internal prototype to avoid an error.
20153    Use char because int might match the return type of a GCC
20154    builtin and then its argument prototype would still apply.  */
20155 #ifdef __cplusplus
20156 extern "C"
20157 #endif
20158 char __fixsfdi ();
20159 int
20160 main ()
20162 return __fixsfdi ();
20163   ;
20164   return 0;
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (ac_try="$ac_link"
20169 case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_link") 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20182   { (case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_try") 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest$ac_exeext'
20192   { (case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_try") 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; }; then
20201   ac_cv_lib_gcc___fixsfdi=yes
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206         ac_cv_lib_gcc___fixsfdi=no
20209 rm -f core conftest.err conftest.$ac_objext \
20210       conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20214 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20215 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE___FIXSFDI 1
20219 _ACEOF
20223   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20224 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20225 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   ac_check_lib_save_LIBS=$LIBS
20229 LIBS="-lgcc  $LIBS"
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20237 /* Override any GCC internal prototype to avoid an error.
20238    Use char because int might match the return type of a GCC
20239    builtin and then its argument prototype would still apply.  */
20240 #ifdef __cplusplus
20241 extern "C"
20242 #endif
20243 char __floatdidf ();
20244 int
20245 main ()
20247 return __floatdidf ();
20248   ;
20249   return 0;
20251 _ACEOF
20252 rm -f conftest.$ac_objext conftest$ac_exeext
20253 if { (ac_try="$ac_link"
20254 case "(($ac_try" in
20255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256   *) ac_try_echo=$ac_try;;
20257 esac
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259   (eval "$ac_link") 2>conftest.er1
20260   ac_status=$?
20261   grep -v '^ *+' conftest.er1 >conftest.err
20262   rm -f conftest.er1
20263   cat conftest.err >&5
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } &&
20266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20267   { (case "(($ac_try" in
20268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269   *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272   (eval "$ac_try") 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; } &&
20276          { ac_try='test -s conftest$ac_exeext'
20277   { (case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_try") 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_lib_gcc___floatdidf=yes
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291         ac_cv_lib_gcc___floatdidf=no
20294 rm -f core conftest.err conftest.$ac_objext \
20295       conftest$ac_exeext conftest.$ac_ext
20296 LIBS=$ac_check_lib_save_LIBS
20298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20299 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20300 if test $ac_cv_lib_gcc___floatdidf = yes; then
20302 cat >>confdefs.h <<\_ACEOF
20303 #define HAVE___FLOATDIDF 1
20304 _ACEOF
20308   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20309 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20310 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313   ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lgcc  $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20322 /* Override any GCC internal prototype to avoid an error.
20323    Use char because int might match the return type of a GCC
20324    builtin and then its argument prototype would still apply.  */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char __lshrdi3 ();
20329 int
20330 main ()
20332 return __lshrdi3 ();
20333   ;
20334   return 0;
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_link") 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20352   { (case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_try") 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); }; } &&
20361          { ac_try='test -s conftest$ac_exeext'
20362   { (case "(($ac_try" in
20363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364   *) ac_try_echo=$ac_try;;
20365 esac
20366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367   (eval "$ac_try") 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; }; then
20371   ac_cv_lib_gcc___lshrdi3=yes
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376         ac_cv_lib_gcc___lshrdi3=no
20379 rm -f core conftest.err conftest.$ac_objext \
20380       conftest$ac_exeext conftest.$ac_ext
20381 LIBS=$ac_check_lib_save_LIBS
20383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20384 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20385 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE___LSHRDI3 1
20389 _ACEOF
20393   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20394 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20395 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   ac_check_lib_save_LIBS=$LIBS
20399 LIBS="-lgcc  $LIBS"
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20407 /* Override any GCC internal prototype to avoid an error.
20408    Use char because int might match the return type of a GCC
20409    builtin and then its argument prototype would still apply.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 char __moddi3 ();
20414 int
20415 main ()
20417 return __moddi3 ();
20418   ;
20419   return 0;
20421 _ACEOF
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_gcc___moddi3=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461         ac_cv_lib_gcc___moddi3=no
20464 rm -f core conftest.err conftest.$ac_objext \
20465       conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20469 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20470 if test $ac_cv_lib_gcc___moddi3 = yes; then
20472 cat >>confdefs.h <<\_ACEOF
20473 #define HAVE___MODDI3 1
20474 _ACEOF
20478   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20479 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20480 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20481   echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483   ac_check_lib_save_LIBS=$LIBS
20484 LIBS="-lgcc  $LIBS"
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20492 /* Override any GCC internal prototype to avoid an error.
20493    Use char because int might match the return type of a GCC
20494    builtin and then its argument prototype would still apply.  */
20495 #ifdef __cplusplus
20496 extern "C"
20497 #endif
20498 char __udivdi3 ();
20499 int
20500 main ()
20502 return __udivdi3 ();
20503   ;
20504   return 0;
20506 _ACEOF
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_link") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } &&
20521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522   { (case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_try") 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; } &&
20531          { ac_try='test -s conftest$ac_exeext'
20532   { (case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_try") 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_lib_gcc___udivdi3=yes
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546         ac_cv_lib_gcc___udivdi3=no
20549 rm -f core conftest.err conftest.$ac_objext \
20550       conftest$ac_exeext conftest.$ac_ext
20551 LIBS=$ac_check_lib_save_LIBS
20553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20554 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20555 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE___UDIVDI3 1
20559 _ACEOF
20563   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20564 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20565 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   ac_check_lib_save_LIBS=$LIBS
20569 LIBS="-lgcc  $LIBS"
20570 cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20577 /* Override any GCC internal prototype to avoid an error.
20578    Use char because int might match the return type of a GCC
20579    builtin and then its argument prototype would still apply.  */
20580 #ifdef __cplusplus
20581 extern "C"
20582 #endif
20583 char __umoddi3 ();
20584 int
20585 main ()
20587 return __umoddi3 ();
20588   ;
20589   return 0;
20591 _ACEOF
20592 rm -f conftest.$ac_objext conftest$ac_exeext
20593 if { (ac_try="$ac_link"
20594 case "(($ac_try" in
20595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596   *) ac_try_echo=$ac_try;;
20597 esac
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599   (eval "$ac_link") 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } &&
20606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20607   { (case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612   (eval "$ac_try") 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; } &&
20616          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20626   ac_cv_lib_gcc___umoddi3=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631         ac_cv_lib_gcc___umoddi3=no
20634 rm -f core conftest.err conftest.$ac_objext \
20635       conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20639 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20640 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20642 cat >>confdefs.h <<\_ACEOF
20643 #define HAVE___UMODDI3 1
20644 _ACEOF
20649   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20650 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20651 if test "${ac_cv_lib_gcc___main+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654   ac_check_lib_save_LIBS=$LIBS
20655 LIBS="-lgcc  $LIBS"
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20663 /* Override any GCC internal prototype to avoid an error.
20664    Use char because int might match the return type of a GCC
20665    builtin and then its argument prototype would still apply.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char __main ();
20670 int
20671 main ()
20673 return __main ();
20674   ;
20675   return 0;
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682   *) ac_try_echo=$ac_try;;
20683 esac
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685   (eval "$ac_link") 2>conftest.er1
20686   ac_status=$?
20687   grep -v '^ *+' conftest.er1 >conftest.err
20688   rm -f conftest.er1
20689   cat conftest.err >&5
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); } &&
20692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693   { (case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_try") 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; } &&
20702          { ac_try='test -s conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_cv_lib_gcc___main=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717         ac_cv_lib_gcc___main=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721       conftest$ac_exeext conftest.$ac_ext
20722 LIBS=$ac_check_lib_save_LIBS
20724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20725 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20726 if test $ac_cv_lib_gcc___main = yes; then
20728 cat >>confdefs.h <<\_ACEOF
20729 #define HAVE___MAIN 1
20730 _ACEOF
20734   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20735 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739   ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lgcc  $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20748 /* Override any GCC internal prototype to avoid an error.
20749    Use char because int might match the return type of a GCC
20750    builtin and then its argument prototype would still apply.  */
20751 #ifdef __cplusplus
20752 extern "C"
20753 #endif
20754 char __cmpdi2 ();
20755 int
20756 main ()
20758 return __cmpdi2 ();
20759   ;
20760   return 0;
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_link") 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } &&
20777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20778   { (case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_try") 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; } &&
20787          { ac_try='test -s conftest$ac_exeext'
20788   { (case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793   (eval "$ac_try") 2>&5
20794   ac_status=$?
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); }; }; then
20797   ac_cv_lib_gcc___cmpdi2=yes
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802         ac_cv_lib_gcc___cmpdi2=no
20805 rm -f core conftest.err conftest.$ac_objext \
20806       conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20810 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20811 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20813 cat >>confdefs.h <<\_ACEOF
20814 #define HAVE___CMPDI2 1
20815 _ACEOF
20821 if test "$llvm_cv_os_type" = "MingW" ; then
20822   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20823 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20824   cat >conftest.$ac_ext <<_ACEOF
20826   /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20832     #include <windows.h>
20833     #include <imagehlp.h>
20834     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20835     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_compile") 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20854   { (case "(($ac_try" in
20855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856   *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859   (eval "$ac_try") 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; } &&
20863          { ac_try='test -s conftest.$ac_objext'
20864   { (case "(($ac_try" in
20865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866   *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869   (eval "$ac_try") 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20874   { echo "$as_me:$LINENO: result: yes" >&5
20875 echo "${ECHO_T}yes" >&6; }
20876   llvm_cv_win32_elmcb_pcstr="PCSTR"
20878 else
20879   echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20883   { echo "$as_me:$LINENO: result: no" >&5
20884 echo "${ECHO_T}no" >&6; }
20885   llvm_cv_win32_elmcb_pcstr="PSTR"
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 cat >>confdefs.h <<_ACEOF
20892 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20893 _ACEOF
20899   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20900 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20901 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20905     ac_ext=cpp
20906 ac_cpp='$CXXCPP $CPPFLAGS'
20907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911     cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 #include <math.h>
20918 int
20919 main ()
20921 float f; isnan(f);
20922   ;
20923   return 0;
20925 _ACEOF
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_compile") 2>conftest.er1
20934   ac_status=$?
20935   grep -v '^ *+' conftest.er1 >conftest.err
20936   rm -f conftest.er1
20937   cat conftest.err >&5
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } &&
20940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20941   { (case "(($ac_try" in
20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943   *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946   (eval "$ac_try") 2>&5
20947   ac_status=$?
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); }; } &&
20950          { ac_try='test -s conftest.$ac_objext'
20951   { (case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_try") 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; }; then
20960   ac_cv_func_isnan_in_math_h=yes
20961 else
20962   echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965         ac_cv_func_isnan_in_math_h=no
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969     ac_ext=c
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20977 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20978 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20981 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_ISNAN_IN_MATH_H 1
20985 _ACEOF
20990   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20991 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20992 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20996     ac_ext=cpp
20997 ac_cpp='$CXXCPP $CPPFLAGS'
20998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21002     cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <cmath>
21009 int
21010 main ()
21012 float f; isnan(f);
21013   ;
21014   return 0;
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (ac_try="$ac_compile"
21019 case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_compile") 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21032   { (case "(($ac_try" in
21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034   *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037   (eval "$ac_try") 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; } &&
21041          { ac_try='test -s conftest.$ac_objext'
21042   { (case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_try") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   ac_cv_func_isnan_in_cmath=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056         ac_cv_func_isnan_in_cmath=no
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060     ac_ext=c
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21069 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
21071 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
21073 cat >>confdefs.h <<\_ACEOF
21074 #define HAVE_ISNAN_IN_CMATH 1
21075 _ACEOF
21080   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21081 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21082 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21086     ac_ext=cpp
21087 ac_cpp='$CXXCPP $CPPFLAGS'
21088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21092     cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <cmath>
21099 int
21100 main ()
21102 float f; std::isnan(f);
21103   ;
21104   return 0;
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_compile") 2>conftest.er1
21115   ac_status=$?
21116   grep -v '^ *+' conftest.er1 >conftest.err
21117   rm -f conftest.er1
21118   cat conftest.err >&5
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } &&
21121          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21122   { (case "(($ac_try" in
21123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124   *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127   (eval "$ac_try") 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; } &&
21131          { ac_try='test -s conftest.$ac_objext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   ac_cv_func_std_isnan_in_cmath=yes
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146         ac_cv_func_std_isnan_in_cmath=no
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150     ac_ext=c
21151 ac_cpp='$CPP $CPPFLAGS'
21152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21159 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21161 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21163 cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_STD_ISNAN_IN_CMATH 1
21165 _ACEOF
21172   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21173 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21174 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21178     ac_ext=cpp
21179 ac_cpp='$CXXCPP $CPPFLAGS'
21180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184     cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <math.h>
21191 int
21192 main ()
21194 float f; isinf(f);
21195   ;
21196   return 0;
21198 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203   *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206   (eval "$ac_compile") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } &&
21213          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21214   { (case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_try") 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; } &&
21223          { ac_try='test -s conftest.$ac_objext'
21224   { (case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229   (eval "$ac_try") 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_func_isinf_in_math_h=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238         ac_cv_func_isinf_in_math_h=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242     ac_ext=c
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21250 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21251 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21253 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_ISINF_IN_MATH_H 1
21257 _ACEOF
21262   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21263 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21264 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21265   echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21268     ac_ext=cpp
21269 ac_cpp='$CXXCPP $CPPFLAGS'
21270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21274     cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <cmath>
21281 int
21282 main ()
21284 float f; isinf(f);
21285   ;
21286   return 0;
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296   (eval "$ac_compile") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } &&
21303          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21304   { (case "(($ac_try" in
21305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306   *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309   (eval "$ac_try") 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (case "(($ac_try" in
21315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316   *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319   (eval "$ac_try") 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); }; }; then
21323   ac_cv_func_isinf_in_cmath=yes
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328         ac_cv_func_isinf_in_cmath=no
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332     ac_ext=c
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21341 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21343 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_ISINF_IN_CMATH 1
21347 _ACEOF
21352   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21353 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21354 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21355   echo $ECHO_N "(cached) $ECHO_C" >&6
21356 else
21358     ac_ext=cpp
21359 ac_cpp='$CXXCPP $CPPFLAGS'
21360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21364     cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <cmath>
21371 int
21372 main ()
21374 float f; std::isinf(f);
21375   ;
21376   return 0;
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383   *) ac_try_echo=$ac_try;;
21384 esac
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386   (eval "$ac_compile") 2>conftest.er1
21387   ac_status=$?
21388   grep -v '^ *+' conftest.er1 >conftest.err
21389   rm -f conftest.er1
21390   cat conftest.err >&5
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); } &&
21393          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21394   { (case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_try") 2>&5
21400   ac_status=$?
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); }; } &&
21403          { ac_try='test -s conftest.$ac_objext'
21404   { (case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_try") 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; }; then
21413   ac_cv_func_std_isinf_in_cmath=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418         ac_cv_func_std_isinf_in_cmath=no
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422     ac_ext=c
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21430 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21431 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21433 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21435 cat >>confdefs.h <<\_ACEOF
21436 #define HAVE_STD_ISINF_IN_CMATH 1
21437 _ACEOF
21442   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21443 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21444 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21445   echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21448     ac_ext=cpp
21449 ac_cpp='$CXXCPP $CPPFLAGS'
21450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454     cat >conftest.$ac_ext <<_ACEOF
21455 /* confdefs.h.  */
21456 _ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h.  */
21460 #include <ieeefp.h>
21461 int
21462 main ()
21464 float f; finite(f);
21465   ;
21466   return 0;
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_compile") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } &&
21483          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21484   { (case "(($ac_try" in
21485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486   *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489   (eval "$ac_try") 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; } &&
21493          { ac_try='test -s conftest.$ac_objext'
21494   { (case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_try") 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }; then
21503   ac_cv_func_finite_in_ieeefp_h=yes
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508         ac_cv_func_finite_in_ieeefp_h=no
21511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512     ac_ext=c
21513 ac_cpp='$CPP $CPPFLAGS'
21514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21521 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21523 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_FINITE_IN_IEEEFP_H 1
21527 _ACEOF
21533 if test "$llvm_cv_platform_type" = "Unix" ; then
21536 for ac_header in stdlib.h unistd.h
21538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21543   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546                { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21548 else
21549   # Is the header compilable?
21550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 $ac_includes_default
21559 #include <$ac_header>
21560 _ACEOF
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565   *) ac_try_echo=$ac_try;;
21566 esac
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568   (eval "$ac_compile") 2>conftest.er1
21569   ac_status=$?
21570   grep -v '^ *+' conftest.er1 >conftest.err
21571   rm -f conftest.er1
21572   cat conftest.err >&5
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); } &&
21575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21576   { (case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_try") 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; } &&
21585          { ac_try='test -s conftest.$ac_objext'
21586   { (case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_try") 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_header_compiler=yes
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600         ac_header_compiler=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <$ac_header>
21617 _ACEOF
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } >/dev/null; then
21631   if test -s conftest.err; then
21632     ac_cpp_err=$ac_c_preproc_warn_flag
21633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21634   else
21635     ac_cpp_err=
21636   fi
21637 else
21638   ac_cpp_err=yes
21640 if test -z "$ac_cpp_err"; then
21641   ac_header_preproc=yes
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646   ac_header_preproc=no
21649 rm -f conftest.err conftest.$ac_ext
21650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21651 echo "${ECHO_T}$ac_header_preproc" >&6; }
21653 # So?  What about this header?
21654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21655   yes:no: )
21656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21660     ac_header_preproc=yes
21661     ;;
21662   no:yes:* )
21663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21675     ( cat <<\_ASBOX
21676 ## ------------------------------------ ##
21677 ## Report this to http://llvm.org/bugs/ ##
21678 ## ------------------------------------ ##
21679 _ASBOX
21680      ) | sed "s/^/$as_me: WARNING:     /" >&2
21681     ;;
21682 esac
21683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21686   echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688   eval "$as_ac_Header=\$ac_header_preproc"
21690 ac_res=`eval echo '${'$as_ac_Header'}'`
21691                { echo "$as_me:$LINENO: result: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21696   cat >>confdefs.h <<_ACEOF
21697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21698 _ACEOF
21702 done
21705 for ac_func in getpagesize
21707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713   cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21721 #define $ac_func innocuous_$ac_func
21723 /* System header to define __stub macros and hopefully few prototypes,
21724     which can conflict with char $ac_func (); below.
21725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726     <limits.h> exists even on freestanding compilers.  */
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21734 #undef $ac_func
21736 /* Override any GCC internal prototype to avoid an error.
21737    Use char because int might match the return type of a GCC
21738    builtin and then its argument prototype would still apply.  */
21739 #ifdef __cplusplus
21740 extern "C"
21741 #endif
21742 char $ac_func ();
21743 /* The GNU C library defines this for functions which it implements
21744     to always fail with ENOSYS.  Some functions are actually named
21745     something starting with __ and the normal name is an alias.  */
21746 #if defined __stub_$ac_func || defined __stub___$ac_func
21747 choke me
21748 #endif
21750 int
21751 main ()
21753 return $ac_func ();
21754   ;
21755   return 0;
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } &&
21772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21773   { (case "(($ac_try" in
21774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775   *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778   (eval "$ac_try") 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; } &&
21782          { ac_try='test -s conftest$ac_exeext'
21783   { (case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_try") 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); }; }; then
21792   eval "$as_ac_var=yes"
21793 else
21794   echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797         eval "$as_ac_var=no"
21800 rm -f core conftest.err conftest.$ac_objext \
21801       conftest$ac_exeext conftest.$ac_ext
21803 ac_res=`eval echo '${'$as_ac_var'}'`
21804                { echo "$as_me:$LINENO: result: $ac_res" >&5
21805 echo "${ECHO_T}$ac_res" >&6; }
21806 if test `eval echo '${'$as_ac_var'}'` = yes; then
21807   cat >>confdefs.h <<_ACEOF
21808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21809 _ACEOF
21812 done
21814 { echo "$as_me:$LINENO: checking for working mmap" >&5
21815 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21816 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   if test "$cross_compiling" = yes; then
21820   ac_cv_func_mmap_fixed_mapped=no
21821 else
21822   cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h.  */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h.  */
21828 $ac_includes_default
21829 /* malloc might have been renamed as rpl_malloc. */
21830 #undef malloc
21832 /* Thanks to Mike Haertel and Jim Avera for this test.
21833    Here is a matrix of mmap possibilities:
21834         mmap private not fixed
21835         mmap private fixed at somewhere currently unmapped
21836         mmap private fixed at somewhere already mapped
21837         mmap shared not fixed
21838         mmap shared fixed at somewhere currently unmapped
21839         mmap shared fixed at somewhere already mapped
21840    For private mappings, we should verify that changes cannot be read()
21841    back from the file, nor mmap's back from the file at a different
21842    address.  (There have been systems where private was not correctly
21843    implemented like the infamous i386 svr4.0, and systems where the
21844    VM page cache was not coherent with the file system buffer cache
21845    like early versions of FreeBSD and possibly contemporary NetBSD.)
21846    For shared mappings, we should conversely verify that changes get
21847    propagated back to all the places they're supposed to be.
21849    Grep wants private fixed already mapped.
21850    The main things grep needs to know about mmap are:
21851    * does it exist and is it safe to write into the mmap'd area
21852    * how to use it (BSD variants)  */
21854 #include <fcntl.h>
21855 #include <sys/mman.h>
21857 #if !STDC_HEADERS && !HAVE_STDLIB_H
21858 char *malloc ();
21859 #endif
21861 /* This mess was copied from the GNU getpagesize.h.  */
21862 #if !HAVE_GETPAGESIZE
21863 /* Assume that all systems that can run configure have sys/param.h.  */
21864 # if !HAVE_SYS_PARAM_H
21865 #  define HAVE_SYS_PARAM_H 1
21866 # endif
21868 # ifdef _SC_PAGESIZE
21869 #  define getpagesize() sysconf(_SC_PAGESIZE)
21870 # else /* no _SC_PAGESIZE */
21871 #  if HAVE_SYS_PARAM_H
21872 #   include <sys/param.h>
21873 #   ifdef EXEC_PAGESIZE
21874 #    define getpagesize() EXEC_PAGESIZE
21875 #   else /* no EXEC_PAGESIZE */
21876 #    ifdef NBPG
21877 #     define getpagesize() NBPG * CLSIZE
21878 #     ifndef CLSIZE
21879 #      define CLSIZE 1
21880 #     endif /* no CLSIZE */
21881 #    else /* no NBPG */
21882 #     ifdef NBPC
21883 #      define getpagesize() NBPC
21884 #     else /* no NBPC */
21885 #      ifdef PAGESIZE
21886 #       define getpagesize() PAGESIZE
21887 #      endif /* PAGESIZE */
21888 #     endif /* no NBPC */
21889 #    endif /* no NBPG */
21890 #   endif /* no EXEC_PAGESIZE */
21891 #  else /* no HAVE_SYS_PARAM_H */
21892 #   define getpagesize() 8192   /* punt totally */
21893 #  endif /* no HAVE_SYS_PARAM_H */
21894 # endif /* no _SC_PAGESIZE */
21896 #endif /* no HAVE_GETPAGESIZE */
21898 int
21899 main ()
21901   char *data, *data2, *data3;
21902   int i, pagesize;
21903   int fd;
21905   pagesize = getpagesize ();
21907   /* First, make a file with some known garbage in it. */
21908   data = (char *) malloc (pagesize);
21909   if (!data)
21910     return 1;
21911   for (i = 0; i < pagesize; ++i)
21912     *(data + i) = rand ();
21913   umask (0);
21914   fd = creat ("conftest.mmap", 0600);
21915   if (fd < 0)
21916     return 1;
21917   if (write (fd, data, pagesize) != pagesize)
21918     return 1;
21919   close (fd);
21921   /* Next, try to mmap the file at a fixed address which already has
21922      something else allocated at it.  If we can, also make sure that
21923      we see the same garbage.  */
21924   fd = open ("conftest.mmap", O_RDWR);
21925   if (fd < 0)
21926     return 1;
21927   data2 = (char *) malloc (2 * pagesize);
21928   if (!data2)
21929     return 1;
21930   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21931   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21932                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21933     return 1;
21934   for (i = 0; i < pagesize; ++i)
21935     if (*(data + i) != *(data2 + i))
21936       return 1;
21938   /* Finally, make sure that changes to the mapped area do not
21939      percolate back to the file as seen by read().  (This is a bug on
21940      some variants of i386 svr4.0.)  */
21941   for (i = 0; i < pagesize; ++i)
21942     *(data2 + i) = *(data2 + i) + 1;
21943   data3 = (char *) malloc (pagesize);
21944   if (!data3)
21945     return 1;
21946   if (read (fd, data3, pagesize) != pagesize)
21947     return 1;
21948   for (i = 0; i < pagesize; ++i)
21949     if (*(data + i) != *(data3 + i))
21950       return 1;
21951   close (fd);
21952   return 0;
21954 _ACEOF
21955 rm -f conftest$ac_exeext
21956 if { (ac_try="$ac_link"
21957 case "(($ac_try" in
21958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959   *) ac_try_echo=$ac_try;;
21960 esac
21961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21962   (eval "$ac_link") 2>&5
21963   ac_status=$?
21964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21966   { (case "(($ac_try" in
21967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968   *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971   (eval "$ac_try") 2>&5
21972   ac_status=$?
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; }; then
21975   ac_cv_func_mmap_fixed_mapped=yes
21976 else
21977   echo "$as_me: program exited with status $ac_status" >&5
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ( exit $ac_status )
21982 ac_cv_func_mmap_fixed_mapped=no
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21990 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21991 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_MMAP 1
21995 _ACEOF
21998 rm -f conftest.mmap
22000   { echo "$as_me:$LINENO: checking for mmap of files" >&5
22001 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
22002 if test "${ac_cv_func_mmap_file+set}" = set; then
22003   echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005    ac_ext=c
22006 ac_cpp='$CPP $CPPFLAGS'
22007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011   if test "$cross_compiling" = yes; then
22012   ac_cv_func_mmap_file=no
22013 else
22014   cat >conftest.$ac_ext <<_ACEOF
22016     /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22022 #include <sys/types.h>
22023 #include <sys/mman.h>
22024 #include <fcntl.h>
22026 int
22027 main ()
22030   int fd;
22031   fd = creat ("foo",0777);
22032   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
22033   unlink ("foo");
22034   return (fd != (int) MAP_FAILED);
22035   ;
22036   return 0;
22038 _ACEOF
22039 rm -f conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_link") 2>&5
22047   ac_status=$?
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22050   { (case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_try") 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); }; }; then
22059   ac_cv_func_mmap_file=yes
22060 else
22061   echo "$as_me: program exited with status $ac_status" >&5
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ( exit $ac_status )
22066 ac_cv_func_mmap_file=no
22068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22072   ac_ext=c
22073 ac_cpp='$CPP $CPPFLAGS'
22074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22081 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22082 if test "$ac_cv_func_mmap_file" = yes; then
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_MMAP_FILE
22086 _ACEOF
22088    MMAP_FILE=yes
22092   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22093 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22094 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   if test "$llvm_cv_os_type" = "Interix" ; then
22098    ac_cv_need_dev_zero_for_mmap=yes
22099  else
22100    ac_cv_need_dev_zero_for_mmap=no
22101  fi
22104 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22105 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22106 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define NEED_DEV_ZERO_FOR_MMAP 1
22110 _ACEOF
22114   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22115   then
22116     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22117 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22118   fi
22119   if test "$ac_cv_func_mmap_file" = "no"
22120   then
22121     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22122 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22123   fi
22126 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22127 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22128 ac_ext=cpp
22129 ac_cpp='$CXXCPP $CPPFLAGS'
22130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22134 cat >conftest.$ac_ext <<_ACEOF
22136   /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22142     int main() {
22143       volatile unsigned long val = 1;
22144       __sync_synchronize();
22145       __sync_val_compare_and_swap(&val, 1, 0);
22146       __sync_add_and_fetch(&val, 1);
22147       __sync_sub_and_fetch(&val, 1);
22148       return 0;
22149     }
22152 _ACEOF
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157   *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160   (eval "$ac_link") 2>conftest.er1
22161   ac_status=$?
22162   grep -v '^ *+' conftest.er1 >conftest.err
22163   rm -f conftest.er1
22164   cat conftest.err >&5
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); } &&
22167          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22168   { (case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173   (eval "$ac_try") 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; } &&
22177          { ac_try='test -s conftest$ac_exeext'
22178   { (case "(($ac_try" in
22179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180   *) ac_try_echo=$ac_try;;
22181 esac
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183   (eval "$ac_try") 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); }; }; then
22188   { echo "$as_me:$LINENO: result: yes" >&5
22189 echo "${ECHO_T}yes" >&6; }
22191 cat >>confdefs.h <<\_ACEOF
22192 #define LLVM_HAS_ATOMICS 1
22193 _ACEOF
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22201   { echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6; }
22204 cat >>confdefs.h <<\_ACEOF
22205 #define LLVM_HAS_ATOMICS 0
22206 _ACEOF
22208   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22209 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22213 rm -f core conftest.err conftest.$ac_objext \
22214       conftest$ac_exeext conftest.$ac_ext
22215 ac_ext=c
22216 ac_cpp='$CPP $CPPFLAGS'
22217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22224   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22225 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22226 if test "${llvm_cv_linux_mixed+set}" = set; then
22227   echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229    ac_ext=c
22230 ac_cpp='$CPP $CPPFLAGS'
22231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22235   cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 #ifndef __x86_64__
22242        error: Not x86-64 even if uname says so!
22243       #endif
22245 int
22246 main ()
22249   ;
22250   return 0;
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257   *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260   (eval "$ac_compile") 2>conftest.er1
22261   ac_status=$?
22262   grep -v '^ *+' conftest.er1 >conftest.err
22263   rm -f conftest.er1
22264   cat conftest.err >&5
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } &&
22267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22268   { (case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_try") 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; } &&
22277          { ac_try='test -s conftest.$ac_objext'
22278   { (case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_try") 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; }; then
22287   llvm_cv_linux_mixed=no
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292         llvm_cv_linux_mixed=yes
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296   ac_ext=c
22297 ac_cpp='$CPP $CPPFLAGS'
22298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22304 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22305 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22307   if test "$llvm_cv_linux_mixed" = "yes"; then
22308     llvm_cv_target_arch="x86"
22309     ARCH="x86"
22310   fi
22314 for ac_func in __dso_handle
22316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322   cat >conftest.$ac_ext <<_ACEOF
22323 /* confdefs.h.  */
22324 _ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h.  */
22328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22330 #define $ac_func innocuous_$ac_func
22332 /* System header to define __stub macros and hopefully few prototypes,
22333     which can conflict with char $ac_func (); below.
22334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22335     <limits.h> exists even on freestanding compilers.  */
22337 #ifdef __STDC__
22338 # include <limits.h>
22339 #else
22340 # include <assert.h>
22341 #endif
22343 #undef $ac_func
22345 /* Override any GCC internal prototype to avoid an error.
22346    Use char because int might match the return type of a GCC
22347    builtin and then its argument prototype would still apply.  */
22348 #ifdef __cplusplus
22349 extern "C"
22350 #endif
22351 char $ac_func ();
22352 /* The GNU C library defines this for functions which it implements
22353     to always fail with ENOSYS.  Some functions are actually named
22354     something starting with __ and the normal name is an alias.  */
22355 #if defined __stub_$ac_func || defined __stub___$ac_func
22356 choke me
22357 #endif
22359 int
22360 main ()
22362 return $ac_func ();
22363   ;
22364   return 0;
22366 _ACEOF
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_link") 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } &&
22381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22382   { (case "(($ac_try" in
22383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384   *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387   (eval "$ac_try") 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; } &&
22391          { ac_try='test -s conftest$ac_exeext'
22392   { (case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_try") 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }; }; then
22401   eval "$as_ac_var=yes"
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22406         eval "$as_ac_var=no"
22409 rm -f core conftest.err conftest.$ac_objext \
22410       conftest$ac_exeext conftest.$ac_ext
22412 ac_res=`eval echo '${'$as_ac_var'}'`
22413                { echo "$as_me:$LINENO: result: $ac_res" >&5
22414 echo "${ECHO_T}$ac_res" >&6; }
22415 if test `eval echo '${'$as_ac_var'}'` = yes; then
22416   cat >>confdefs.h <<_ACEOF
22417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22418 _ACEOF
22421 done
22424 SHLIBEXT=$libltdl_cv_shlibext
22427 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22430 if test "${prefix}" = "NONE" ; then
22431   prefix="/usr/local"
22433 eval LLVM_PREFIX="${prefix}";
22434 eval LLVM_BINDIR="${prefix}/bin";
22435 eval LLVM_DATADIR="${prefix}/share/llvm";
22436 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22437 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22438 eval LLVM_INCLUDEDIR="${prefix}/include";
22439 eval LLVM_INFODIR="${prefix}/info";
22440 eval LLVM_MANDIR="${prefix}/man";
22441 LLVM_CONFIGTIME=`date`
22452 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22453   LLVM_CONFIGTIME="(timestamp not enabled)"
22457 cat >>confdefs.h <<_ACEOF
22458 #define LLVM_PREFIX "$LLVM_PREFIX"
22459 _ACEOF
22462 cat >>confdefs.h <<_ACEOF
22463 #define LLVM_BINDIR "$LLVM_BINDIR"
22464 _ACEOF
22467 cat >>confdefs.h <<_ACEOF
22468 #define LLVM_DATADIR "$LLVM_DATADIR"
22469 _ACEOF
22472 cat >>confdefs.h <<_ACEOF
22473 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22474 _ACEOF
22477 cat >>confdefs.h <<_ACEOF
22478 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22479 _ACEOF
22482 cat >>confdefs.h <<_ACEOF
22483 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22484 _ACEOF
22487 cat >>confdefs.h <<_ACEOF
22488 #define LLVM_INFODIR "$LLVM_INFODIR"
22489 _ACEOF
22492 cat >>confdefs.h <<_ACEOF
22493 #define LLVM_MANDIR "$LLVM_MANDIR"
22494 _ACEOF
22497 cat >>confdefs.h <<_ACEOF
22498 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22499 _ACEOF
22502 cat >>confdefs.h <<_ACEOF
22503 #define LLVM_HOST_TRIPLE "$host"
22504 _ACEOF
22507 cat >>confdefs.h <<_ACEOF
22508 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22509 _ACEOF
22512 if test "$BINDINGS_TO_BUILD" = auto ; then
22513   BINDINGS_TO_BUILD=""
22514   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22515     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22516   fi
22518 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22521 ALL_BINDINGS=ocaml
22524 binding_prereqs_failed=0
22525 for a_binding in $BINDINGS_TO_BUILD ; do
22526   case "$a_binding" in
22527   ocaml)
22528     if test "x$OCAMLC" = x ; then
22529       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22530 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22531       binding_prereqs_failed=1
22532     fi
22533     if test "x$OCAMLDEP" = x ; then
22534       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22535 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22536       binding_prereqs_failed=1
22537     fi
22538     if test "x$OCAMLOPT" = x ; then
22539       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22540 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22541           fi
22542     if test "x$with_ocaml_libdir" != xauto ; then
22543       OCAML_LIBDIR=$with_ocaml_libdir
22545     else
22546       ocaml_stdlib="`"$OCAMLC" -where`"
22547       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22548       then
22549         # ocaml stdlib is beneath our prefix; use stdlib
22550         OCAML_LIBDIR=$ocaml_stdlib
22552       else
22553         # ocaml stdlib is outside our prefix; use libdir/ocaml
22554         OCAML_LIBDIR=${prefix}/lib/ocaml
22556       fi
22557     fi
22558     ;;
22559   esac
22560 done
22561 if test "$binding_prereqs_failed" = 1 ; then
22562   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22563 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22564    { (exit 1); exit 1; }; }
22567 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22568 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22569 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572    ac_ext=cpp
22573 ac_cpp='$CXXCPP $CPPFLAGS'
22574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22578   oldcxxflags="$CXXFLAGS"
22579   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22580   cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22587 int
22588 main ()
22590 X<int>().f();
22591   ;
22592   return 0;
22594 _ACEOF
22595 rm -f conftest.$ac_objext
22596 if { (ac_try="$ac_compile"
22597 case "(($ac_try" in
22598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599   *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602   (eval "$ac_compile") 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } &&
22609          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22610   { (case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_try") 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; } &&
22619          { ac_try='test -s conftest.$ac_objext'
22620   { (case "(($ac_try" in
22621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622   *) ac_try_echo=$ac_try;;
22623 esac
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625   (eval "$ac_try") 2>&5
22626   ac_status=$?
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); }; }; then
22629   llvm_cv_cxx_visibility_inlines_hidden=yes
22630 else
22631   echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634         llvm_cv_cxx_visibility_inlines_hidden=no
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638   CXXFLAGS="$oldcxxflags"
22639   ac_ext=c
22640 ac_cpp='$CPP $CPPFLAGS'
22641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22647 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22648 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22649 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22650   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22652 else
22653   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22658 if test "$llvm_cv_link_use_r" = "yes" ; then
22659   RPATH="-Wl,-R"
22660 else
22661   RPATH="-Wl,-rpath"
22665 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22666   RDYNAMIC="-Wl,-export-dynamic"
22667 else
22668   RDYNAMIC=""
22673 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22680 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22682 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22684 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22686 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22688 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22691 ac_config_files="$ac_config_files Makefile.config"
22694 ac_config_files="$ac_config_files llvm.spec"
22697 ac_config_files="$ac_config_files docs/doxygen.cfg"
22700 if test "${clang_src_root}" = ""; then
22701   clang_src_root="$srcdir/tools/clang"
22703 if test -f ${clang_src_root}/README.txt; then
22704     configh="include/clang/Config/config.h"
22705   doxy="docs/doxygen.cfg"
22706   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22708   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22712 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22715 test "x$program_prefix" = "xNONE" && program_prefix=""
22719 ac_config_commands="$ac_config_commands setup"
22721 ac_config_commands="$ac_config_commands Makefile"
22724 ac_config_commands="$ac_config_commands Makefile.common"
22727 ac_config_commands="$ac_config_commands examples/Makefile"
22730 ac_config_commands="$ac_config_commands lib/Makefile"
22733 ac_config_commands="$ac_config_commands runtime/Makefile"
22736 ac_config_commands="$ac_config_commands test/Makefile"
22739 ac_config_commands="$ac_config_commands test/Makefile.tests"
22742 ac_config_commands="$ac_config_commands unittests/Makefile"
22745 ac_config_commands="$ac_config_commands tools/Makefile"
22748 ac_config_commands="$ac_config_commands utils/Makefile"
22751 ac_config_commands="$ac_config_commands projects/Makefile"
22754 ac_config_commands="$ac_config_commands bindings/Makefile"
22757 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22761 cat >confcache <<\_ACEOF
22762 # This file is a shell script that caches the results of configure
22763 # tests run on this system so they can be shared between configure
22764 # scripts and configure runs, see configure's option --config-cache.
22765 # It is not useful on other systems.  If it contains results you don't
22766 # want to keep, you may remove or edit it.
22768 # config.status only pays attention to the cache file if you give it
22769 # the --recheck option to rerun configure.
22771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22773 # following values.
22775 _ACEOF
22777 # The following way of writing the cache mishandles newlines in values,
22778 # but we know of no workaround that is simple, portable, and efficient.
22779 # So, we kill variables containing newlines.
22780 # Ultrix sh set writes to stderr and can't be redirected directly,
22781 # and sets the high bit in the cache file unless we assign to the vars.
22783   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22784     eval ac_val=\$$ac_var
22785     case $ac_val in #(
22786     *${as_nl}*)
22787       case $ac_var in #(
22788       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22790       esac
22791       case $ac_var in #(
22792       _ | IFS | as_nl) ;; #(
22793       *) $as_unset $ac_var ;;
22794       esac ;;
22795     esac
22796   done
22798   (set) 2>&1 |
22799     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22800     *${as_nl}ac_space=\ *)
22801       # `set' does not quote correctly, so add quotes (double-quote
22802       # substitution turns \\\\ into \\, and sed turns \\ into \).
22803       sed -n \
22804         "s/'/'\\\\''/g;
22805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22806       ;; #(
22807     *)
22808       # `set' quotes correctly as required by POSIX, so do not add quotes.
22809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22810       ;;
22811     esac |
22812     sort
22813 ) |
22814   sed '
22815      /^ac_cv_env_/b end
22816      t clear
22817      :clear
22818      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22819      t end
22820      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22821      :end' >>confcache
22822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22823   if test -w "$cache_file"; then
22824     test "x$cache_file" != "x/dev/null" &&
22825       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22826 echo "$as_me: updating cache $cache_file" >&6;}
22827     cat confcache >$cache_file
22828   else
22829     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22830 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22831   fi
22833 rm -f confcache
22835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22836 # Let make expand exec_prefix.
22837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22839 DEFS=-DHAVE_CONFIG_H
22841 ac_libobjs=
22842 ac_ltlibobjs=
22843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22844   # 1. Remove the extension, and $U if already installed.
22845   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22846   ac_i=`echo "$ac_i" | sed "$ac_script"`
22847   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22848   #    will be set to the directory where LIBOBJS objects are built.
22849   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22850   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22851 done
22852 LIBOBJS=$ac_libobjs
22854 LTLIBOBJS=$ac_ltlibobjs
22857 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22858   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22859 Usually this means the macro was only invoked conditionally." >&5
22860 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22861 Usually this means the macro was only invoked conditionally." >&2;}
22862    { (exit 1); exit 1; }; }
22864 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22865   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22866 Usually this means the macro was only invoked conditionally." >&5
22867 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22868 Usually this means the macro was only invoked conditionally." >&2;}
22869    { (exit 1); exit 1; }; }
22872 : ${CONFIG_STATUS=./config.status}
22873 ac_clean_files_save=$ac_clean_files
22874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22875 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22876 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22877 cat >$CONFIG_STATUS <<_ACEOF
22878 #! $SHELL
22879 # Generated by $as_me.
22880 # Run this file to recreate the current configuration.
22881 # Compiler output produced by configure, useful for debugging
22882 # configure, is in config.log if it exists.
22884 debug=false
22885 ac_cs_recheck=false
22886 ac_cs_silent=false
22887 SHELL=\${CONFIG_SHELL-$SHELL}
22888 _ACEOF
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 ## --------------------- ##
22892 ## M4sh Initialization.  ##
22893 ## --------------------- ##
22895 # Be Bourne compatible
22896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22897   emulate sh
22898   NULLCMD=:
22899   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22900   # is contrary to our usage.  Disable this feature.
22901   alias -g '${1+"$@"}'='"$@"'
22902   setopt NO_GLOB_SUBST
22903 else
22904   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22906 BIN_SH=xpg4; export BIN_SH # for Tru64
22907 DUALCASE=1; export DUALCASE # for MKS sh
22910 # PATH needs CR
22911 # Avoid depending upon Character Ranges.
22912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22915 as_cr_digits='0123456789'
22916 as_cr_alnum=$as_cr_Letters$as_cr_digits
22918 # The user is always right.
22919 if test "${PATH_SEPARATOR+set}" != set; then
22920   echo "#! /bin/sh" >conf$$.sh
22921   echo  "exit 0"   >>conf$$.sh
22922   chmod +x conf$$.sh
22923   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22924     PATH_SEPARATOR=';'
22925   else
22926     PATH_SEPARATOR=:
22927   fi
22928   rm -f conf$$.sh
22931 # Support unset when possible.
22932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22933   as_unset=unset
22934 else
22935   as_unset=false
22939 # IFS
22940 # We need space, tab and new line, in precisely that order.  Quoting is
22941 # there to prevent editors from complaining about space-tab.
22942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22943 # splitting by setting IFS to empty value.)
22944 as_nl='
22946 IFS=" ""        $as_nl"
22948 # Find who we are.  Look in the path if we contain no directory separator.
22949 case $0 in
22950   *[\\/]* ) as_myself=$0 ;;
22951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22952 for as_dir in $PATH
22954   IFS=$as_save_IFS
22955   test -z "$as_dir" && as_dir=.
22956   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22957 done
22958 IFS=$as_save_IFS
22960      ;;
22961 esac
22962 # We did not find ourselves, most probably we were run as `sh COMMAND'
22963 # in which case we are not to be found in the path.
22964 if test "x$as_myself" = x; then
22965   as_myself=$0
22967 if test ! -f "$as_myself"; then
22968   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22969   { (exit 1); exit 1; }
22972 # Work around bugs in pre-3.0 UWIN ksh.
22973 for as_var in ENV MAIL MAILPATH
22974 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22975 done
22976 PS1='$ '
22977 PS2='> '
22978 PS4='+ '
22980 # NLS nuisances.
22981 for as_var in \
22982   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22983   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22984   LC_TELEPHONE LC_TIME
22986   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22987     eval $as_var=C; export $as_var
22988   else
22989     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22990   fi
22991 done
22993 # Required to use basename.
22994 if expr a : '\(a\)' >/dev/null 2>&1 &&
22995    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22996   as_expr=expr
22997 else
22998   as_expr=false
23001 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23002   as_basename=basename
23003 else
23004   as_basename=false
23008 # Name of the executable.
23009 as_me=`$as_basename -- "$0" ||
23010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23011          X"$0" : 'X\(//\)$' \| \
23012          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23013 echo X/"$0" |
23014     sed '/^.*\/\([^/][^/]*\)\/*$/{
23015             s//\1/
23016             q
23017           }
23018           /^X\/\(\/\/\)$/{
23019             s//\1/
23020             q
23021           }
23022           /^X\/\(\/\).*/{
23023             s//\1/
23024             q
23025           }
23026           s/.*/./; q'`
23028 # CDPATH.
23029 $as_unset CDPATH
23033   as_lineno_1=$LINENO
23034   as_lineno_2=$LINENO
23035   test "x$as_lineno_1" != "x$as_lineno_2" &&
23036   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23038   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23039   # uniformly replaced by the line number.  The first 'sed' inserts a
23040   # line-number line after each line using $LINENO; the second 'sed'
23041   # does the real work.  The second script uses 'N' to pair each
23042   # line-number line with the line containing $LINENO, and appends
23043   # trailing '-' during substitution so that $LINENO is not a special
23044   # case at line end.
23045   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23046   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23047   # E. McMahon (1931-1989) for sed's syntax.  :-)
23048   sed -n '
23049     p
23050     /[$]LINENO/=
23051   ' <$as_myself |
23052     sed '
23053       s/[$]LINENO.*/&-/
23054       t lineno
23055       b
23056       :lineno
23057       N
23058       :loop
23059       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23060       t loop
23061       s/-\n.*//
23062     ' >$as_me.lineno &&
23063   chmod +x "$as_me.lineno" ||
23064     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23065    { (exit 1); exit 1; }; }
23067   # Don't try to exec as it changes $[0], causing all sort of problems
23068   # (the dirname of $[0] is not the place where we might find the
23069   # original and so on.  Autoconf is especially sensitive to this).
23070   . "./$as_me.lineno"
23071   # Exit status is that of the last command.
23072   exit
23076 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23077   as_dirname=dirname
23078 else
23079   as_dirname=false
23082 ECHO_C= ECHO_N= ECHO_T=
23083 case `echo -n x` in
23084 -n*)
23085   case `echo 'x\c'` in
23086   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23087   *)   ECHO_C='\c';;
23088   esac;;
23090   ECHO_N='-n';;
23091 esac
23093 if expr a : '\(a\)' >/dev/null 2>&1 &&
23094    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23095   as_expr=expr
23096 else
23097   as_expr=false
23100 rm -f conf$$ conf$$.exe conf$$.file
23101 if test -d conf$$.dir; then
23102   rm -f conf$$.dir/conf$$.file
23103 else
23104   rm -f conf$$.dir
23105   mkdir conf$$.dir
23107 echo >conf$$.file
23108 if ln -s conf$$.file conf$$ 2>/dev/null; then
23109   as_ln_s='ln -s'
23110   # ... but there are two gotchas:
23111   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23112   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23113   # In both cases, we have to default to `cp -p'.
23114   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23115     as_ln_s='cp -p'
23116 elif ln conf$$.file conf$$ 2>/dev/null; then
23117   as_ln_s=ln
23118 else
23119   as_ln_s='cp -p'
23121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23122 rmdir conf$$.dir 2>/dev/null
23124 if mkdir -p . 2>/dev/null; then
23125   as_mkdir_p=:
23126 else
23127   test -d ./-p && rmdir ./-p
23128   as_mkdir_p=false
23131 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23132 # systems may use methods other than mode bits to determine executability.
23133 cat >conf$$.file <<_ASEOF
23134 #! /bin/sh
23135 exit 0
23136 _ASEOF
23137 chmod +x conf$$.file
23138 if test -x conf$$.file >/dev/null 2>&1; then
23139   as_executable_p="test -x"
23140 else
23141   as_executable_p=:
23143 rm -f conf$$.file
23145 # Sed expression to map a string onto a valid CPP name.
23146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23148 # Sed expression to map a string onto a valid variable name.
23149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23152 exec 6>&1
23154 # Save the log message, to keep $[0] and so on meaningful, and to
23155 # report actual input values of CONFIG_FILES etc. instead of their
23156 # values after options handling.
23157 ac_log="
23158 This file was extended by LLVM $as_me 3.4svn, which was
23159 generated by GNU Autoconf 2.60.  Invocation command line was
23161   CONFIG_FILES    = $CONFIG_FILES
23162   CONFIG_HEADERS  = $CONFIG_HEADERS
23163   CONFIG_LINKS    = $CONFIG_LINKS
23164   CONFIG_COMMANDS = $CONFIG_COMMANDS
23165   $ $0 $@
23167 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23170 _ACEOF
23172 cat >>$CONFIG_STATUS <<_ACEOF
23173 # Files that config.status was made for.
23174 config_files="$ac_config_files"
23175 config_headers="$ac_config_headers"
23176 config_commands="$ac_config_commands"
23178 _ACEOF
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23181 ac_cs_usage="\
23182 \`$as_me' instantiates files from templates according to the
23183 current configuration.
23185 Usage: $0 [OPTIONS] [FILE]...
23187   -h, --help       print this help, then exit
23188   -V, --version    print version number, then exit
23189   -q, --quiet      do not print progress messages
23190   -d, --debug      don't remove temporary files
23191       --recheck    update $as_me by reconfiguring in the same conditions
23192   --file=FILE[:TEMPLATE]
23193                    instantiate the configuration file FILE
23194   --header=FILE[:TEMPLATE]
23195                    instantiate the configuration header FILE
23197 Configuration files:
23198 $config_files
23200 Configuration headers:
23201 $config_headers
23203 Configuration commands:
23204 $config_commands
23206 Report bugs to <bug-autoconf@gnu.org>."
23208 _ACEOF
23209 cat >>$CONFIG_STATUS <<_ACEOF
23210 ac_cs_version="\\
23211 LLVM config.status 3.4svn
23212 configured by $0, generated by GNU Autoconf 2.60,
23213   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23215 Copyright (C) 2006 Free Software Foundation, Inc.
23216 This config.status script is free software; the Free Software Foundation
23217 gives unlimited permission to copy, distribute and modify it."
23219 ac_pwd='$ac_pwd'
23220 srcdir='$srcdir'
23221 INSTALL='$INSTALL'
23222 _ACEOF
23224 cat >>$CONFIG_STATUS <<\_ACEOF
23225 # If no file are specified by the user, then we need to provide default
23226 # value.  By we need to know if files were specified by the user.
23227 ac_need_defaults=:
23228 while test $# != 0
23230   case $1 in
23231   --*=*)
23232     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23233     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23234     ac_shift=:
23235     ;;
23236   *)
23237     ac_option=$1
23238     ac_optarg=$2
23239     ac_shift=shift
23240     ;;
23241   esac
23243   case $ac_option in
23244   # Handling of the options.
23245   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23246     ac_cs_recheck=: ;;
23247   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23248     echo "$ac_cs_version"; exit ;;
23249   --debug | --debu | --deb | --de | --d | -d )
23250     debug=: ;;
23251   --file | --fil | --fi | --f )
23252     $ac_shift
23253     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23254     ac_need_defaults=false;;
23255   --header | --heade | --head | --hea )
23256     $ac_shift
23257     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23258     ac_need_defaults=false;;
23259   --he | --h)
23260     # Conflict between --help and --header
23261     { echo "$as_me: error: ambiguous option: $1
23262 Try \`$0 --help' for more information." >&2
23263    { (exit 1); exit 1; }; };;
23264   --help | --hel | -h )
23265     echo "$ac_cs_usage"; exit ;;
23266   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23267   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23268     ac_cs_silent=: ;;
23270   # This is an error.
23271   -*) { echo "$as_me: error: unrecognized option: $1
23272 Try \`$0 --help' for more information." >&2
23273    { (exit 1); exit 1; }; } ;;
23275   *) ac_config_targets="$ac_config_targets $1"
23276      ac_need_defaults=false ;;
23278   esac
23279   shift
23280 done
23282 ac_configure_extra_args=
23284 if $ac_cs_silent; then
23285   exec 6>/dev/null
23286   ac_configure_extra_args="$ac_configure_extra_args --silent"
23289 _ACEOF
23290 cat >>$CONFIG_STATUS <<_ACEOF
23291 if \$ac_cs_recheck; then
23292   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23293   CONFIG_SHELL=$SHELL
23294   export CONFIG_SHELL
23295   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23298 _ACEOF
23299 cat >>$CONFIG_STATUS <<\_ACEOF
23300 exec 5>>config.log
23302   echo
23303   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23304 ## Running $as_me. ##
23305 _ASBOX
23306   echo "$ac_log"
23307 } >&5
23309 _ACEOF
23310 cat >>$CONFIG_STATUS <<_ACEOF
23312 # INIT-COMMANDS
23314 llvm_src="${srcdir}"
23316 _ACEOF
23318 cat >>$CONFIG_STATUS <<\_ACEOF
23320 # Handling of arguments.
23321 for ac_config_target in $ac_config_targets
23323   case $ac_config_target in
23324     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23325     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23326     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23327     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23328     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23329     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23330     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23331     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23332     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23333     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23334     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23335     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23336     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23337     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23338     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23339     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23340     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23341     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23342     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23343     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23344     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23345     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23346     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23347     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23348     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23349     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23350     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23352   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23354    { (exit 1); exit 1; }; };;
23355   esac
23356 done
23359 # If the user did not use the arguments to specify the items to instantiate,
23360 # then the envvar interface is used.  Set only those that are not.
23361 # We use the long form for the default assignment because of an extremely
23362 # bizarre bug on SunOS 4.1.3.
23363 if $ac_need_defaults; then
23364   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23365   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23366   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23369 # Have a temporary directory for convenience.  Make it in the build tree
23370 # simply because there is no reason against having it here, and in addition,
23371 # creating and moving files from /tmp can sometimes cause problems.
23372 # Hook for its removal unless debugging.
23373 # Note that there is a small window in which the directory will not be cleaned:
23374 # after its creation but before its name has been assigned to `$tmp'.
23375 $debug ||
23377   tmp=
23378   trap 'exit_status=$?
23379   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23380 ' 0
23381   trap '{ (exit 1); exit 1; }' 1 2 13 15
23383 # Create a (secure) tmp directory for tmp files.
23386   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23387   test -n "$tmp" && test -d "$tmp"
23388 }  ||
23390   tmp=./conf$$-$RANDOM
23391   (umask 077 && mkdir "$tmp")
23392 } ||
23394    echo "$me: cannot create a temporary directory in ." >&2
23395    { (exit 1); exit 1; }
23399 # Set up the sed scripts for CONFIG_FILES section.
23402 # No need to generate the scripts if there are no CONFIG_FILES.
23403 # This happens for instance when ./config.status config.h
23404 if test -n "$CONFIG_FILES"; then
23406 _ACEOF
23410 ac_delim='%!_!# '
23411 for ac_last_try in false false false false false :; do
23412   cat >conf$$subs.sed <<_ACEOF
23413 SHELL!$SHELL$ac_delim
23414 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23415 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23416 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23417 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23418 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23419 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23420 exec_prefix!$exec_prefix$ac_delim
23421 prefix!$prefix$ac_delim
23422 program_transform_name!$program_transform_name$ac_delim
23423 bindir!$bindir$ac_delim
23424 sbindir!$sbindir$ac_delim
23425 libexecdir!$libexecdir$ac_delim
23426 datarootdir!$datarootdir$ac_delim
23427 datadir!$datadir$ac_delim
23428 sysconfdir!$sysconfdir$ac_delim
23429 sharedstatedir!$sharedstatedir$ac_delim
23430 localstatedir!$localstatedir$ac_delim
23431 includedir!$includedir$ac_delim
23432 oldincludedir!$oldincludedir$ac_delim
23433 docdir!$docdir$ac_delim
23434 infodir!$infodir$ac_delim
23435 htmldir!$htmldir$ac_delim
23436 dvidir!$dvidir$ac_delim
23437 pdfdir!$pdfdir$ac_delim
23438 psdir!$psdir$ac_delim
23439 libdir!$libdir$ac_delim
23440 localedir!$localedir$ac_delim
23441 mandir!$mandir$ac_delim
23442 DEFS!$DEFS$ac_delim
23443 ECHO_C!$ECHO_C$ac_delim
23444 ECHO_N!$ECHO_N$ac_delim
23445 ECHO_T!$ECHO_T$ac_delim
23446 LIBS!$LIBS$ac_delim
23447 build_alias!$build_alias$ac_delim
23448 host_alias!$host_alias$ac_delim
23449 target_alias!$target_alias$ac_delim
23450 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23451 CC!$CC$ac_delim
23452 CFLAGS!$CFLAGS$ac_delim
23453 LDFLAGS!$LDFLAGS$ac_delim
23454 CPPFLAGS!$CPPFLAGS$ac_delim
23455 ac_ct_CC!$ac_ct_CC$ac_delim
23456 EXEEXT!$EXEEXT$ac_delim
23457 OBJEXT!$OBJEXT$ac_delim
23458 CXX!$CXX$ac_delim
23459 CXXFLAGS!$CXXFLAGS$ac_delim
23460 ac_ct_CXX!$ac_ct_CXX$ac_delim
23461 CPP!$CPP$ac_delim
23462 subdirs!$subdirs$ac_delim
23463 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23464 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23465 build!$build$ac_delim
23466 build_cpu!$build_cpu$ac_delim
23467 build_vendor!$build_vendor$ac_delim
23468 build_os!$build_os$ac_delim
23469 host!$host$ac_delim
23470 host_cpu!$host_cpu$ac_delim
23471 host_vendor!$host_vendor$ac_delim
23472 host_os!$host_os$ac_delim
23473 target!$target$ac_delim
23474 target_cpu!$target_cpu$ac_delim
23475 target_vendor!$target_vendor$ac_delim
23476 target_os!$target_os$ac_delim
23477 OS!$OS$ac_delim
23478 HOST_OS!$HOST_OS$ac_delim
23479 TARGET_OS!$TARGET_OS$ac_delim
23480 LINKALL!$LINKALL$ac_delim
23481 NOLINKALL!$NOLINKALL$ac_delim
23482 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23483 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23484 ARCH!$ARCH$ac_delim
23485 HOST_ARCH!$HOST_ARCH$ac_delim
23486 ENDIAN!$ENDIAN$ac_delim
23487 GREP!$GREP$ac_delim
23488 EGREP!$EGREP$ac_delim
23489 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23490 BUILD_CC!$BUILD_CC$ac_delim
23491 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23492 BUILD_CXX!$BUILD_CXX$ac_delim
23493 CVSBUILD!$CVSBUILD$ac_delim
23494 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23495 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23496 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23497 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23498 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23499 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23500 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23501 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23502 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23503 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23504 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23505 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23506 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23507 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23508 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23509 JIT!$JIT$ac_delim
23510 _ACEOF
23512   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23513     break
23514   elif $ac_last_try; then
23515     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23517    { (exit 1); exit 1; }; }
23518   else
23519     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23520   fi
23521 done
23523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23524 if test -n "$ac_eof"; then
23525   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23526   ac_eof=`expr $ac_eof + 1`
23529 cat >>$CONFIG_STATUS <<_ACEOF
23530 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23532 _ACEOF
23533 sed '
23534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23535 s/^/s,@/; s/!/@,|#_!!_#|/
23537 t n
23538 s/'"$ac_delim"'$/,g/; t
23539 s/$/\\/; p
23540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23541 ' >>$CONFIG_STATUS <conf$$subs.sed
23542 rm -f conf$$subs.sed
23543 cat >>$CONFIG_STATUS <<_ACEOF
23544 CEOF$ac_eof
23545 _ACEOF
23548 ac_delim='%!_!# '
23549 for ac_last_try in false false false false false :; do
23550   cat >conf$$subs.sed <<_ACEOF
23551 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23552 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23553 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23554 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23555 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23556 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23557 ENABLE_PIC!$ENABLE_PIC$ac_delim
23558 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23559 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23560 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23561 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23562 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23563 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23564 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23565 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23566 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23567 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23568 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23569 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23570 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23571 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23572 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23573 NM!$NM$ac_delim
23574 ifGNUmake!$ifGNUmake$ac_delim
23575 LN_S!$LN_S$ac_delim
23576 CMP!$CMP$ac_delim
23577 CP!$CP$ac_delim
23578 DATE!$DATE$ac_delim
23579 FIND!$FIND$ac_delim
23580 MKDIR!$MKDIR$ac_delim
23581 MV!$MV$ac_delim
23582 RANLIB!$RANLIB$ac_delim
23583 AR!$AR$ac_delim
23584 RM!$RM$ac_delim
23585 SED!$SED$ac_delim
23586 TAR!$TAR$ac_delim
23587 BINPWD!$BINPWD$ac_delim
23588 GRAPHVIZ!$GRAPHVIZ$ac_delim
23589 DOT!$DOT$ac_delim
23590 FDP!$FDP$ac_delim
23591 NEATO!$NEATO$ac_delim
23592 TWOPI!$TWOPI$ac_delim
23593 CIRCO!$CIRCO$ac_delim
23594 GV!$GV$ac_delim
23595 DOTTY!$DOTTY$ac_delim
23596 XDOT!$XDOT$ac_delim
23597 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23598 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23599 INSTALL_DATA!$INSTALL_DATA$ac_delim
23600 BZIP2!$BZIP2$ac_delim
23601 CAT!$CAT$ac_delim
23602 DOXYGEN!$DOXYGEN$ac_delim
23603 GROFF!$GROFF$ac_delim
23604 GZIPBIN!$GZIPBIN$ac_delim
23605 PDFROFF!$PDFROFF$ac_delim
23606 ZIP!$ZIP$ac_delim
23607 OCAMLC!$OCAMLC$ac_delim
23608 OCAMLOPT!$OCAMLOPT$ac_delim
23609 OCAMLDEP!$OCAMLDEP$ac_delim
23610 OCAMLDOC!$OCAMLDOC$ac_delim
23611 GAS!$GAS$ac_delim
23612 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23613 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23614 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23615 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23616 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23617 LIBADD_DL!$LIBADD_DL$ac_delim
23618 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23619 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23620 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23621 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23622 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23623 PYTHON!$PYTHON$ac_delim
23624 USE_UDIS86!$USE_UDIS86$ac_delim
23625 USE_OPROFILE!$USE_OPROFILE$ac_delim
23626 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23627 XML2CONFIG!$XML2CONFIG$ac_delim
23628 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23629 LIBXML2_INC!$LIBXML2_INC$ac_delim
23630 CXXCPP!$CXXCPP$ac_delim
23631 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23632 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23633 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23634 MMAP_FILE!$MMAP_FILE$ac_delim
23635 SHLIBEXT!$SHLIBEXT$ac_delim
23636 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23637 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23638 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23639 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23640 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23641 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23642 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23643 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23644 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23645 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23646 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23647 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23648 _ACEOF
23650   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23651     break
23652   elif $ac_last_try; then
23653     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23655    { (exit 1); exit 1; }; }
23656   else
23657     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23658   fi
23659 done
23661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23662 if test -n "$ac_eof"; then
23663   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23664   ac_eof=`expr $ac_eof + 1`
23667 cat >>$CONFIG_STATUS <<_ACEOF
23668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23670 _ACEOF
23671 sed '
23672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23673 s/^/s,@/; s/!/@,|#_!!_#|/
23675 t n
23676 s/'"$ac_delim"'$/,g/; t
23677 s/$/\\/; p
23678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23679 ' >>$CONFIG_STATUS <conf$$subs.sed
23680 rm -f conf$$subs.sed
23681 cat >>$CONFIG_STATUS <<_ACEOF
23682 CEOF$ac_eof
23683 _ACEOF
23686 ac_delim='%!_!# '
23687 for ac_last_try in false false false false false :; do
23688   cat >conf$$subs.sed <<_ACEOF
23689 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23690 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23691 RPATH!$RPATH$ac_delim
23692 RDYNAMIC!$RDYNAMIC$ac_delim
23693 program_prefix!$program_prefix$ac_delim
23694 LIBOBJS!$LIBOBJS$ac_delim
23695 LTLIBOBJS!$LTLIBOBJS$ac_delim
23696 _ACEOF
23698   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23699     break
23700   elif $ac_last_try; then
23701     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23703    { (exit 1); exit 1; }; }
23704   else
23705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23706   fi
23707 done
23709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23710 if test -n "$ac_eof"; then
23711   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23712   ac_eof=`expr $ac_eof + 1`
23715 cat >>$CONFIG_STATUS <<_ACEOF
23716 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23718 _ACEOF
23719 sed '
23720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23721 s/^/s,@/; s/!/@,|#_!!_#|/
23723 t n
23724 s/'"$ac_delim"'$/,g/; t
23725 s/$/\\/; p
23726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23727 ' >>$CONFIG_STATUS <conf$$subs.sed
23728 rm -f conf$$subs.sed
23729 cat >>$CONFIG_STATUS <<_ACEOF
23730 :end
23731 s/|#_!!_#|//g
23732 CEOF$ac_eof
23733 _ACEOF
23736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23738 # trailing colons and then remove the whole line if VPATH becomes empty
23739 # (actually we leave an empty line to preserve line numbers).
23740 if test "x$srcdir" = x.; then
23741   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23742 s/:*\$(srcdir):*/:/
23743 s/:*\${srcdir}:*/:/
23744 s/:*@srcdir@:*/:/
23745 s/^\([^=]*=[     ]*\):*/\1/
23746 s/:*$//
23747 s/^[^=]*=[       ]*$//
23751 cat >>$CONFIG_STATUS <<\_ACEOF
23752 fi # test -n "$CONFIG_FILES"
23755 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23757   case $ac_tag in
23758   :[FHLC]) ac_mode=$ac_tag; continue;;
23759   esac
23760   case $ac_mode$ac_tag in
23761   :[FHL]*:*);;
23762   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23764    { (exit 1); exit 1; }; };;
23765   :[FH]-) ac_tag=-:-;;
23766   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23767   esac
23768   ac_save_IFS=$IFS
23769   IFS=:
23770   set x $ac_tag
23771   IFS=$ac_save_IFS
23772   shift
23773   ac_file=$1
23774   shift
23776   case $ac_mode in
23777   :L) ac_source=$1;;
23778   :[FH])
23779     ac_file_inputs=
23780     for ac_f
23781     do
23782       case $ac_f in
23783       -) ac_f="$tmp/stdin";;
23784       *) # Look for the file first in the build tree, then in the source tree
23785          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23786          # because $ac_f cannot contain `:'.
23787          test -f "$ac_f" ||
23788            case $ac_f in
23789            [\\/$]*) false;;
23790            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23791            esac ||
23792            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23794    { (exit 1); exit 1; }; };;
23795       esac
23796       ac_file_inputs="$ac_file_inputs $ac_f"
23797     done
23799     # Let's still pretend it is `configure' which instantiates (i.e., don't
23800     # use $as_me), people would be surprised to read:
23801     #    /* config.h.  Generated by config.status.  */
23802     configure_input="Generated from "`IFS=:
23803           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23804     if test x"$ac_file" != x-; then
23805       configure_input="$ac_file.  $configure_input"
23806       { echo "$as_me:$LINENO: creating $ac_file" >&5
23807 echo "$as_me: creating $ac_file" >&6;}
23808     fi
23810     case $ac_tag in
23811     *:-:* | *:-) cat >"$tmp/stdin";;
23812     esac
23813     ;;
23814   esac
23816   ac_dir=`$as_dirname -- "$ac_file" ||
23817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23818          X"$ac_file" : 'X\(//\)[^/]' \| \
23819          X"$ac_file" : 'X\(//\)$' \| \
23820          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23821 echo X"$ac_file" |
23822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23823             s//\1/
23824             q
23825           }
23826           /^X\(\/\/\)[^/].*/{
23827             s//\1/
23828             q
23829           }
23830           /^X\(\/\/\)$/{
23831             s//\1/
23832             q
23833           }
23834           /^X\(\/\).*/{
23835             s//\1/
23836             q
23837           }
23838           s/.*/./; q'`
23839   { as_dir="$ac_dir"
23840   case $as_dir in #(
23841   -*) as_dir=./$as_dir;;
23842   esac
23843   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23844     as_dirs=
23845     while :; do
23846       case $as_dir in #(
23847       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23848       *) as_qdir=$as_dir;;
23849       esac
23850       as_dirs="'$as_qdir' $as_dirs"
23851       as_dir=`$as_dirname -- "$as_dir" ||
23852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23853          X"$as_dir" : 'X\(//\)[^/]' \| \
23854          X"$as_dir" : 'X\(//\)$' \| \
23855          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23856 echo X"$as_dir" |
23857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23858             s//\1/
23859             q
23860           }
23861           /^X\(\/\/\)[^/].*/{
23862             s//\1/
23863             q
23864           }
23865           /^X\(\/\/\)$/{
23866             s//\1/
23867             q
23868           }
23869           /^X\(\/\).*/{
23870             s//\1/
23871             q
23872           }
23873           s/.*/./; q'`
23874       test -d "$as_dir" && break
23875     done
23876     test -z "$as_dirs" || eval "mkdir $as_dirs"
23877   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23879    { (exit 1); exit 1; }; }; }
23880   ac_builddir=.
23882 case "$ac_dir" in
23883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23886   # A ".." for each directory in $ac_dir_suffix.
23887   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23888   case $ac_top_builddir_sub in
23889   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23890   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23891   esac ;;
23892 esac
23893 ac_abs_top_builddir=$ac_pwd
23894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23895 # for backward compatibility:
23896 ac_top_builddir=$ac_top_build_prefix
23898 case $srcdir in
23899   .)  # We are building in place.
23900     ac_srcdir=.
23901     ac_top_srcdir=$ac_top_builddir_sub
23902     ac_abs_top_srcdir=$ac_pwd ;;
23903   [\\/]* | ?:[\\/]* )  # Absolute name.
23904     ac_srcdir=$srcdir$ac_dir_suffix;
23905     ac_top_srcdir=$srcdir
23906     ac_abs_top_srcdir=$srcdir ;;
23907   *) # Relative name.
23908     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23909     ac_top_srcdir=$ac_top_build_prefix$srcdir
23910     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23911 esac
23912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23915   case $ac_mode in
23916   :F)
23917   #
23918   # CONFIG_FILE
23919   #
23921   case $INSTALL in
23922   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23923   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23924   esac
23925 _ACEOF
23927 cat >>$CONFIG_STATUS <<\_ACEOF
23928 # If the template does not know about datarootdir, expand it.
23929 # FIXME: This hack should be removed a few years after 2.60.
23930 ac_datarootdir_hack=; ac_datarootdir_seen=
23932 case `sed -n '/datarootdir/ {
23933   p
23934   q
23936 /@datadir@/p
23937 /@docdir@/p
23938 /@infodir@/p
23939 /@localedir@/p
23940 /@mandir@/p
23941 ' $ac_file_inputs` in
23942 *datarootdir*) ac_datarootdir_seen=yes;;
23943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23944   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23945 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23946 _ACEOF
23947 cat >>$CONFIG_STATUS <<_ACEOF
23948   ac_datarootdir_hack='
23949   s&@datadir@&$datadir&g
23950   s&@docdir@&$docdir&g
23951   s&@infodir@&$infodir&g
23952   s&@localedir@&$localedir&g
23953   s&@mandir@&$mandir&g
23954     s&\\\${datarootdir}&$datarootdir&g' ;;
23955 esac
23956 _ACEOF
23958 # Neutralize VPATH when `$srcdir' = `.'.
23959 # Shell code in configure.ac might set extrasub.
23960 # FIXME: do we really want to maintain this feature?
23961 cat >>$CONFIG_STATUS <<_ACEOF
23962   sed "$ac_vpsub
23963 $extrasub
23964 _ACEOF
23965 cat >>$CONFIG_STATUS <<\_ACEOF
23967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23968 s&@configure_input@&$configure_input&;t t
23969 s&@top_builddir@&$ac_top_builddir_sub&;t t
23970 s&@srcdir@&$ac_srcdir&;t t
23971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23972 s&@top_srcdir@&$ac_top_srcdir&;t t
23973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23974 s&@builddir@&$ac_builddir&;t t
23975 s&@abs_builddir@&$ac_abs_builddir&;t t
23976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23977 s&@INSTALL@&$ac_INSTALL&;t t
23978 $ac_datarootdir_hack
23979 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23982   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23983   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23984   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23985 which seems to be undefined.  Please make sure it is defined." >&5
23986 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23987 which seems to be undefined.  Please make sure it is defined." >&2;}
23989   rm -f "$tmp/stdin"
23990   case $ac_file in
23991   -) cat "$tmp/out"; rm -f "$tmp/out";;
23992   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23993   esac
23994  ;;
23995   :H)
23996   #
23997   # CONFIG_HEADER
23998   #
23999 _ACEOF
24001 # Transform confdefs.h into a sed script `conftest.defines', that
24002 # substitutes the proper values into config.h.in to produce config.h.
24003 rm -f conftest.defines conftest.tail
24004 # First, append a space to every undef/define line, to ease matching.
24005 echo 's/$/ /' >conftest.defines
24006 # Then, protect against being on the right side of a sed subst, or in
24007 # an unquoted here document, in config.status.  If some macros were
24008 # called several times there might be several #defines for the same
24009 # symbol, which is useless.  But do not sort them, since the last
24010 # AC_DEFINE must be honored.
24011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24012 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24013 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24014 # PARAMS is the parameter list in the macro definition--in most cases, it's
24015 # just an empty string.
24016 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24017 ac_dB='\\)[      (].*,\\1define\\2'
24018 ac_dC=' '
24019 ac_dD=' ,'
24021 uniq confdefs.h |
24022   sed -n '
24023         t rset
24024         :rset
24025         s/^[     ]*#[    ]*define[       ][      ]*//
24026         t ok
24027         d
24028         :ok
24029         s/[\\&,]/\\&/g
24030         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24031         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24032   ' >>conftest.defines
24034 # Remove the space that was appended to ease matching.
24035 # Then replace #undef with comments.  This is necessary, for
24036 # example, in the case of _POSIX_SOURCE, which is predefined and required
24037 # on some systems where configure will not decide to define it.
24038 # (The regexp can be short, since the line contains either #define or #undef.)
24039 echo 's/ $//
24040 s,^[     #]*u.*,/* & */,' >>conftest.defines
24042 # Break up conftest.defines:
24043 ac_max_sed_lines=50
24045 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24046 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24047 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24048 # et cetera.
24049 ac_in='$ac_file_inputs'
24050 ac_out='"$tmp/out1"'
24051 ac_nxt='"$tmp/out2"'
24053 while :
24055   # Write a here document:
24056     cat >>$CONFIG_STATUS <<_ACEOF
24057     # First, check the format of the line:
24058     cat >"\$tmp/defines.sed" <<\\CEOF
24059 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24060 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24062 :def
24063 _ACEOF
24064   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24065   echo 'CEOF
24066     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24067   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24068   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24069   grep . conftest.tail >/dev/null || break
24070   rm -f conftest.defines
24071   mv conftest.tail conftest.defines
24072 done
24073 rm -f conftest.defines conftest.tail
24075 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24076 cat >>$CONFIG_STATUS <<\_ACEOF
24077   if test x"$ac_file" != x-; then
24078     echo "/* $configure_input  */" >"$tmp/config.h"
24079     cat "$ac_result" >>"$tmp/config.h"
24080     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24081       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24082 echo "$as_me: $ac_file is unchanged" >&6;}
24083     else
24084       rm -f $ac_file
24085       mv "$tmp/config.h" $ac_file
24086     fi
24087   else
24088     echo "/* $configure_input  */"
24089     cat "$ac_result"
24090   fi
24091   rm -f "$tmp/out12"
24092  ;;
24094   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24095 echo "$as_me: executing $ac_file commands" >&6;}
24096  ;;
24097   esac
24100   case $ac_file$ac_mode in
24101     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24102    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24103     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24104    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24105     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24106    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24107     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24108    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24109     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24110    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24111     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24112    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24113     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24114    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24115     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24116    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24117     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24118    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24119     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24120    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24121     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24122    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24123     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24124    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24125     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24126    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24128   esac
24129 done # for ac_tag
24132 { (exit 0); exit 0; }
24133 _ACEOF
24134 chmod +x $CONFIG_STATUS
24135 ac_clean_files=$ac_clean_files_save
24138 # configure is writing to config.log, and then calls config.status.
24139 # config.status does its own redirection, appending to config.log.
24140 # Unfortunately, on DOS this fails, as config.log is still kept open
24141 # by configure, so config.status won't be able to write to it; its
24142 # output is simply discarded.  So we exec the FD to /dev/null,
24143 # effectively closing config.log, so it can be properly (re)opened and
24144 # appended to by config.status.  When coming back to configure, we
24145 # need to make the FD available again.
24146 if test "$no_create" != yes; then
24147   ac_cs_success=:
24148   ac_config_status_args=
24149   test "$silent" = yes &&
24150     ac_config_status_args="$ac_config_status_args --quiet"
24151   exec 5>/dev/null
24152   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24153   exec 5>>config.log
24154   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24155   # would make configure fail if this is the last instruction.
24156   $ac_cs_success || { (exit 1); exit 1; }
24160 # CONFIG_SUBDIRS section.
24162 if test "$no_recursion" != yes; then
24164   # Remove --cache-file and --srcdir arguments so they do not pile up.
24165   ac_sub_configure_args=
24166   ac_prev=
24167   eval "set x $ac_configure_args"
24168   shift
24169   for ac_arg
24170   do
24171     if test -n "$ac_prev"; then
24172       ac_prev=
24173       continue
24174     fi
24175     case $ac_arg in
24176     -cache-file | --cache-file | --cache-fil | --cache-fi \
24177     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24178       ac_prev=cache_file ;;
24179     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24180     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24181     | --c=*)
24182       ;;
24183     --config-cache | -C)
24184       ;;
24185     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24186       ac_prev=srcdir ;;
24187     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24188       ;;
24189     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24190       ac_prev=prefix ;;
24191     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24192       ;;
24193     *)
24194       case $ac_arg in
24195       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24196       esac
24197       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24198     esac
24199   done
24201   # Always prepend --prefix to ensure using the same prefix
24202   # in subdir configurations.
24203   ac_arg="--prefix=$prefix"
24204   case $ac_arg in
24205   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24206   esac
24207   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24209   ac_popdir=`pwd`
24210   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24212     # Do not complain, so a configure script can configure whichever
24213     # parts of a large source tree are present.
24214     test -d "$srcdir/$ac_dir" || continue
24216     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24217     echo "$as_me:$LINENO: $ac_msg" >&5
24218     echo "$ac_msg" >&6
24219     { as_dir="$ac_dir"
24220   case $as_dir in #(
24221   -*) as_dir=./$as_dir;;
24222   esac
24223   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24224     as_dirs=
24225     while :; do
24226       case $as_dir in #(
24227       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24228       *) as_qdir=$as_dir;;
24229       esac
24230       as_dirs="'$as_qdir' $as_dirs"
24231       as_dir=`$as_dirname -- "$as_dir" ||
24232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24233          X"$as_dir" : 'X\(//\)[^/]' \| \
24234          X"$as_dir" : 'X\(//\)$' \| \
24235          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24236 echo X"$as_dir" |
24237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24238             s//\1/
24239             q
24240           }
24241           /^X\(\/\/\)[^/].*/{
24242             s//\1/
24243             q
24244           }
24245           /^X\(\/\/\)$/{
24246             s//\1/
24247             q
24248           }
24249           /^X\(\/\).*/{
24250             s//\1/
24251             q
24252           }
24253           s/.*/./; q'`
24254       test -d "$as_dir" && break
24255     done
24256     test -z "$as_dirs" || eval "mkdir $as_dirs"
24257   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24259    { (exit 1); exit 1; }; }; }
24260     ac_builddir=.
24262 case "$ac_dir" in
24263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24265   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24266   # A ".." for each directory in $ac_dir_suffix.
24267   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24268   case $ac_top_builddir_sub in
24269   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24270   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24271   esac ;;
24272 esac
24273 ac_abs_top_builddir=$ac_pwd
24274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24275 # for backward compatibility:
24276 ac_top_builddir=$ac_top_build_prefix
24278 case $srcdir in
24279   .)  # We are building in place.
24280     ac_srcdir=.
24281     ac_top_srcdir=$ac_top_builddir_sub
24282     ac_abs_top_srcdir=$ac_pwd ;;
24283   [\\/]* | ?:[\\/]* )  # Absolute name.
24284     ac_srcdir=$srcdir$ac_dir_suffix;
24285     ac_top_srcdir=$srcdir
24286     ac_abs_top_srcdir=$srcdir ;;
24287   *) # Relative name.
24288     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24289     ac_top_srcdir=$ac_top_build_prefix$srcdir
24290     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24291 esac
24292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24295     cd "$ac_dir"
24297     # Check for guested configure; otherwise get Cygnus style configure.
24298     if test -f "$ac_srcdir/configure.gnu"; then
24299       ac_sub_configure=$ac_srcdir/configure.gnu
24300     elif test -f "$ac_srcdir/configure"; then
24301       ac_sub_configure=$ac_srcdir/configure
24302     elif test -f "$ac_srcdir/configure.in"; then
24303       # This should be Cygnus configure.
24304       ac_sub_configure=$ac_aux_dir/configure
24305     else
24306       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24307 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24308       ac_sub_configure=
24309     fi
24311     # The recursion is here.
24312     if test -n "$ac_sub_configure"; then
24313       # Make the cache file name correct relative to the subdirectory.
24314       case $cache_file in
24315       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24316       *) # Relative name.
24317         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24318       esac
24320       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24321 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24322       # The eval makes quoting arguments work.
24323       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24324            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24325         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24326 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24327    { (exit 1); exit 1; }; }
24328     fi
24330     cd "$ac_popdir"
24331   done