]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - configure
Cleanup and document MachineLocation.
[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.3svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_LIBDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
894   # Accept the important Cygnus configure options, so we can diagnose typos.
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
917   --config-cache | -C)
918     cache_file=config.cache ;;
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package| sed 's/-/_/g'`
1155     eval with_$ac_package=\$ac_optarg ;;
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1206   esac
1207 done
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1387   cat <<\_ACEOF
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1399    esac
1400   cat <<\_ACEOF
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-libcpp         Use libc++ if available (default is NO)
1407   --enable-cxx11          Use c++11 if available (default is NO)
1408   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1409   --enable-clang-static-analyzer
1410                           Enable building of clang Static Analyzer (default is
1411                           YES)
1412   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1413   --enable-optimized      Compile with optimizations enabled (default is NO)
1414   --enable-profiling      Compile with profiling enabled (default is NO)
1415   --enable-assertions     Compile with assertion checks enabled (default is
1416                           YES)
1417   --enable-werror         Compile with -Werror enabled (default is NO)
1418   --enable-expensive-checks
1419                           Compile with expensive debug checks enabled (default
1420                           is NO)
1421   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1422                           NO)
1423   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1424                           optimization is on and YES if it's off)
1425   --enable-keep-symbols   Do not strip installed executables)
1426   --enable-jit            Enable Just In Time Compiling (default is YES)
1427   --enable-docs           Build documents (default is YES)
1428   --enable-doxygen        Build doxygen documentation (default is NO)
1429   --enable-threads        Use threads if available (default is YES)
1430   --enable-pthreads       Use pthreads if available (default is YES)
1431   --enable-zlib           Use zlib for compression/decompression if available
1432                           (default is YES)
1433   --enable-pic            Build LLVM with Position Independent Code (default
1434                           is YES)
1435   --enable-shared         Build a shared library and link tools against it
1436                           (default is NO)
1437   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1438                           Win32 DLL (default is NO)
1439   --enable-timestamps     Enable embedding timestamp information in build
1440                           (default is YES)
1441   --enable-backtraces     Enable embedding backtraces on crash (default is
1442                           YES)
1443   --enable-targets        Build specific host targets: all or
1444                           target1,target2,... Valid targets are: host, x86,
1445                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446                           xcore, msp430, nvptx, and cpp (default=all)
1447   --enable-experimental-targets
1448                           Build experimental host targets: disable or
1449                           target1,target2,... (default=disable)
1450   --enable-bindings       Build specific language bindings:
1451                           all,auto,none,{binding-name} (default=auto)
1452   --enable-libffi         Check for the presence of libffi (default is NO)
1453   --enable-ltdl-install   install libltdl
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-optimize-option  Select the compiler options to use for optimized
1459                           builds
1460   --with-extra-options    Specify additional options to compile LLVM with
1461   --with-extra-ld-options Specify additional options to link LLVM with
1462   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1463                           is stdlib)
1464   --with-clang-srcdir     Directory to the out-of-tree Clang source
1465   --with-clang-resource-dir
1466                           Relative directory from the Clang binary for
1467                           resource files
1468   --with-c-include-dirs   Colon separated list of directories clang will
1469                           search for headers
1470   --with-gcc-toolchain    Directory where gcc is installed.
1471   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org/bugs/)
1476   --with-internal-prefix  Installation directory for internal files
1477   --with-python           path to python
1478   --with-udis86=<path>    Use udis86 external x86 disassembler library
1479   --with-oprofile=<prefix>
1480                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1481   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484 Some influential environment variables:
1485   CC          C compiler command
1486   CFLAGS      C compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CXX         C++ compiler command
1492   CXXFLAGS    C++ compiler flags
1493   CPP         C preprocessor
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to <http://llvm.org/bugs/>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" || continue
1507     ac_builddir=.
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 LLVM configure 3.3svn
1560 generated by GNU Autoconf 2.60
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1567 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1568 _ACEOF
1569   exit
1570 fi
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1575 It was created by LLVM $as_me 3.3svn, which was
1576 generated by GNU Autoconf 2.60.  Invocation command line was
1578   $ $0 $@
1580 _ACEOF
1581 exec 5>>config.log
1583 cat <<_ASUNAME
1584 ## --------- ##
1585 ## Platform. ##
1586 ## --------- ##
1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1597 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1598 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1601 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1602 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1603 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1605 _ASUNAME
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   echo "PATH: $as_dir"
1613 done
1614 IFS=$as_save_IFS
1616 } >&5
1618 cat >&5 <<_ACEOF
1621 ## ----------- ##
1622 ## Core tests. ##
1623 ## ----------- ##
1625 _ACEOF
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_configure_args=
1634 ac_configure_args0=
1635 ac_configure_args1=
1636 ac_must_keep_next=false
1637 for ac_pass in 1 2
1638 do
1639   for ac_arg
1640   do
1641     case $ac_arg in
1642     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644     | -silent | --silent | --silen | --sile | --sil)
1645       continue ;;
1646     *\'*)
1647       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648     esac
1649     case $ac_pass in
1650     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651     2)
1652       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653       if test $ac_must_keep_next = true; then
1654         ac_must_keep_next=false # Got value, back to normal.
1655       else
1656         case $ac_arg in
1657           *=* | --config-cache | -C | -disable-* | --disable-* \
1658           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660           | -with-* | --with-* | -without-* | --without-* | --x)
1661             case "$ac_configure_args0 " in
1662               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663             esac
1664             ;;
1665           -* ) ac_must_keep_next=true ;;
1666         esac
1667       fi
1668       ac_configure_args="$ac_configure_args '$ac_arg'"
1669       ;;
1670     esac
1671   done
1672 done
1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log.  We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682   # Save into config.log some information that might help in debugging.
1683   {
1684     echo
1686     cat <<\_ASBOX
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1690 _ASBOX
1691     echo
1692     # The following way of writing the cache mishandles newlines in values,
1694   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695     eval ac_val=\$$ac_var
1696     case $ac_val in #(
1697     *${as_nl}*)
1698       case $ac_var in #(
1699       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701       esac
1702       case $ac_var in #(
1703       _ | IFS | as_nl) ;; #(
1704       *) $as_unset $ac_var ;;
1705       esac ;;
1706     esac
1707   done
1708   (set) 2>&1 |
1709     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710     *${as_nl}ac_space=\ *)
1711       sed -n \
1712         "s/'\''/'\''\\\\'\'''\''/g;
1713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714       ;; #(
1715     *)
1716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717       ;;
1718     esac |
1719     sort
1721     echo
1723     cat <<\_ASBOX
1724 ## ----------------- ##
1725 ## Output variables. ##
1726 ## ----------------- ##
1727 _ASBOX
1728     echo
1729     for ac_var in $ac_subst_vars
1730     do
1731       eval ac_val=\$$ac_var
1732       case $ac_val in
1733       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734       esac
1735       echo "$ac_var='\''$ac_val'\''"
1736     done | sort
1737     echo
1739     if test -n "$ac_subst_files"; then
1740       cat <<\_ASBOX
1741 ## ------------------- ##
1742 ## File substitutions. ##
1743 ## ------------------- ##
1744 _ASBOX
1745       echo
1746       for ac_var in $ac_subst_files
1747       do
1748         eval ac_val=\$$ac_var
1749         case $ac_val in
1750         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751         esac
1752         echo "$ac_var='\''$ac_val'\''"
1753       done | sort
1754       echo
1755     fi
1757     if test -s confdefs.h; then
1758       cat <<\_ASBOX
1759 ## ----------- ##
1760 ## confdefs.h. ##
1761 ## ----------- ##
1762 _ASBOX
1763       echo
1764       cat confdefs.h
1765       echo
1766     fi
1767     test "$ac_signal" != 0 &&
1768       echo "$as_me: caught signal $ac_signal"
1769     echo "$as_me: exit $exit_status"
1770   } >&5
1771   rm -f core *.core core.conftest.* &&
1772     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773     exit $exit_status
1774 ' 0
1775 for ac_signal in 1 2 13 15; do
1776   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 done
1778 ac_signal=0
1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1781 rm -f -r conftest* confdefs.h
1783 # Predefined preprocessor variables.
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 _ACEOF
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer explicitly selected file to automatically selected ones.
1812 if test -n "$CONFIG_SITE"; then
1813   set x "$CONFIG_SITE"
1814 elif test "x$prefix" != xNONE; then
1815   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 else
1817   set x "$ac_default_prefix/share/config.site" \
1818         "$ac_default_prefix/etc/config.site"
1819 fi
1820 shift
1821 for ac_site_file
1822 do
1823   if test -r "$ac_site_file"; then
1824     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825 echo "$as_me: loading site script $ac_site_file" >&6;}
1826     sed 's/^/| /' "$ac_site_file" >&5
1827     . "$ac_site_file"
1828   fi
1829 done
1831 if test -r "$cache_file"; then
1832   # Some versions of bash will fail to source /dev/null (special
1833   # files actually), so we avoid doing that.
1834   if test -f "$cache_file"; then
1835     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836 echo "$as_me: loading cache $cache_file" >&6;}
1837     case $cache_file in
1838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839       *)                      . "./$cache_file";;
1840     esac
1841   fi
1842 else
1843   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844 echo "$as_me: creating cache $cache_file" >&6;}
1845   >$cache_file
1846 fi
1848 # Check that the precious variables saved in the cache have kept the same
1849 # value.
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853   eval ac_new_set=\$ac_env_${ac_var}_set
1854   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855   eval ac_new_val=\$ac_env_${ac_var}_value
1856   case $ac_old_set,$ac_new_set in
1857     set,)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,set)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,);;
1866     *)
1867       if test "x$ac_old_val" != "x$ac_new_val"; then
1868         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1871 echo "$as_me:   former value:  $ac_old_val" >&2;}
1872         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1873 echo "$as_me:   current value: $ac_new_val" >&2;}
1874         ac_cache_corrupted=:
1875       fi;;
1876   esac
1877   # Pass precious variables to config.status.
1878   if test "$ac_new_set" = set; then
1879     case $ac_new_val in
1880     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881     *) ac_arg=$ac_var=$ac_new_val ;;
1882     esac
1883     case " $ac_configure_args " in
1884       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1885       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886     esac
1887   fi
1888 done
1889 if $ac_cache_corrupted; then
1890   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1921 ac_ext=c
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929 cat >>confdefs.h <<\_ACEOF
1930 #define LLVM_VERSION_MAJOR 3
1931 _ACEOF
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MINOR 3
1936 _ACEOF
1939 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1947 ac_aux_dir=
1948 for ac_dir in autoconf "$srcdir"/autoconf; do
1949   if test -f "$ac_dir/install-sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install-sh -c"
1952     break
1953   elif test -f "$ac_dir/install.sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install.sh -c"
1956     break
1957   elif test -f "$ac_dir/shtool"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/shtool install -c"
1960     break
1961   fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979 if test ${srcdir} != "." ; then
1980   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1981     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1982 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1983    { (exit 1); exit 1; }; }
1984   fi
1985 fi
1987 ${CFLAGS=}
1988 ${CXXFLAGS=}
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996   for ac_prog in clang llvm-gcc gcc
1997   do
1998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$CC"; then
2006   ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2029 else
2030   { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2032 fi
2035     test -n "$CC" && break
2036   done
2037 fi
2038 if test -z "$CC"; then
2039   ac_ct_CC=$CC
2040   for ac_prog in clang llvm-gcc gcc
2041 do
2042   # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_CC"; then
2050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2059     ac_cv_prog_ac_ct_CC="$ac_prog"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065 IFS=$as_save_IFS
2067 fi
2068 fi
2069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070 if test -n "$ac_ct_CC"; then
2071   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072 echo "${ECHO_T}$ac_ct_CC" >&6; }
2073 else
2074   { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2076 fi
2079   test -n "$ac_ct_CC" && break
2080 done
2082   if test "x$ac_ct_CC" = x; then
2083     CC=""
2084   else
2085     case $cross_compiling:$ac_tool_warned in
2086 yes:)
2087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet.  If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2094 esac
2095     CC=$ac_ct_CC
2096   fi
2097 fi
2100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&2;}
2104    { (exit 1); exit 1; }; }
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO: checking for C compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (ac_try="$ac_compiler --version >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler --version >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119 { (ac_try="$ac_compiler -v >&5"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125   (eval "$ac_compiler -v >&5") 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129 { (ac_try="$ac_compiler -V >&5"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135   (eval "$ac_compiler -V >&5") 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2140 cat >conftest.$ac_ext <<_ACEOF
2141 /* confdefs.h.  */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h.  */
2147 int
2148 main ()
2151   ;
2152   return 0;
2154 _ACEOF
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2159 # of exeext.
2160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 # List of possible output files, starting from the most likely.
2165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2166 # only as a last resort.  b.out is created by i960 compilers.
2167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2169 # The IRIX 6 linker writes into existing files which may not be
2170 # executable, retaining their permissions.  Remove them first so a
2171 # subsequent execution test works.
2172 ac_rmfiles=
2173 for ac_file in $ac_files
2174 do
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178   esac
2179 done
2180 rm -f $ac_rmfiles
2182 if { (ac_try="$ac_link_default"
2183 case "(($ac_try" in
2184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185   *) ac_try_echo=$ac_try;;
2186 esac
2187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2188   (eval "$ac_link_default") 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2195 # so that the user can short-circuit this test for compilers unknown to
2196 # Autoconf.
2197 for ac_file in $ac_files
2198 do
2199   test -f "$ac_file" || continue
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2202         ;;
2203     [ab].out )
2204         # We found the default executable, but exeext='' is most
2205         # certainly right.
2206         break;;
2207     *.* )
2208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2209         then :; else
2210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211         fi
2212         # We set ac_cv_exeext here because the later test for it is not
2213         # safe: cross compilers may not add the suffix if given an `-o'
2214         # argument, so we may need to know it at that point already.
2215         # Even if this section looks crufty: it has the advantage of
2216         # actually working.
2217         break;;
2218     * )
2219         break;;
2220   esac
2221 done
2222 test "$ac_cv_exeext" = no && ac_cv_exeext=
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&2;}
2232    { (exit 77); exit 77; }; }
2233 fi
2235 ac_exeext=$ac_cv_exeext
2236 { echo "$as_me:$LINENO: result: $ac_file" >&5
2237 echo "${ECHO_T}$ac_file" >&6; }
2239 # Check that the compiler produces executables we can run.  If not, either
2240 # the compiler is broken, or we cross compile.
2241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244 # If not cross compiling, check that we can run a simple program.
2245 if test "$cross_compiling" != yes; then
2246   if { ac_try='./$ac_file'
2247   { (case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_try") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; }; then
2256     cross_compiling=no
2257   else
2258     if test "$cross_compiling" = maybe; then
2259         cross_compiling=yes
2260     else
2261         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268     fi
2269   fi
2270 fi
2271 { echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6; }
2274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2275 ac_clean_files=$ac_clean_files_save
2276 # Check that the compiler produces executables we can run.  If not, either
2277 # the compiler is broken, or we cross compile.
2278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281 echo "${ECHO_T}$cross_compiling" >&6; }
2283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2285 if { (ac_try="$ac_link"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291   (eval "$ac_link") 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; then
2295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2298 # `rm'.
2299 for ac_file in conftest.exe conftest conftest.*; do
2300   test -f "$ac_file" || continue
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304           break;;
2305     * ) break;;
2306   esac
2307 done
2308 else
2309   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314 fi
2316 rm -f conftest$ac_cv_exeext
2317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2320 rm -f conftest.$ac_ext
2321 EXEEXT=$ac_cv_exeext
2322 ac_exeext=$EXEEXT
2323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2325 if test "${ac_cv_objext+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2335 int
2336 main ()
2339   ;
2340   return 0;
2342 _ACEOF
2343 rm -f conftest.o conftest.obj
2344 if { (ac_try="$ac_compile"
2345 case "(($ac_try" in
2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347   *) ac_try_echo=$ac_try;;
2348 esac
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350   (eval "$ac_compile") 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; then
2354   for ac_file in conftest.o conftest.obj conftest.*; do
2355   test -f "$ac_file" || continue;
2356   case $ac_file in
2357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359        break;;
2360   esac
2361 done
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2369 See \`config.log' for more details." >&2;}
2370    { (exit 1); exit 1; }; }
2371 fi
2373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2374 fi
2375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2376 echo "${ECHO_T}$ac_cv_objext" >&6; }
2377 OBJEXT=$ac_cv_objext
2378 ac_objext=$OBJEXT
2379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2391 int
2392 main ()
2394 #ifndef __GNUC__
2395        choke me
2396 #endif
2398   ;
2399   return 0;
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (ac_try="$ac_compile"
2404 case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_compile") 2>conftest.er1
2410   ac_status=$?
2411   grep -v '^ *+' conftest.er1 >conftest.err
2412   rm -f conftest.er1
2413   cat conftest.err >&5
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); } &&
2416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417   { (case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_try") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; } &&
2426          { ac_try='test -s conftest.$ac_objext'
2427   { (case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_try") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   ac_compiler_gnu=yes
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441         ac_compiler_gnu=no
2442 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447 fi
2448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   ac_save_c_werror_flag=$ac_c_werror_flag
2459    ac_c_werror_flag=yes
2460    ac_cv_prog_cc_g=no
2461    CFLAGS="-g"
2462    cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2469 int
2470 main ()
2473   ;
2474   return 0;
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_compile") 2>conftest.er1
2485   ac_status=$?
2486   grep -v '^ *+' conftest.er1 >conftest.err
2487   rm -f conftest.er1
2488   cat conftest.err >&5
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); } &&
2491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492   { (case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497   (eval "$ac_try") 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; } &&
2501          { ac_try='test -s conftest.$ac_objext'
2502   { (case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_try") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   ac_cv_prog_cc_g=yes
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516         CFLAGS=""
2517       cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2524 int
2525 main ()
2528   ;
2529   return 0;
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2534 case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_compile") 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547   { (case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_try") 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_try") 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571         ac_c_werror_flag=$ac_save_c_werror_flag
2572          CFLAGS="-g"
2573          cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2580 int
2581 main ()
2584   ;
2585   return 0;
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (ac_try="$ac_compile"
2590 case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595   (eval "$ac_compile") 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2603   { (case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_try") 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_try") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_cv_prog_cc_g=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2628 fi
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637    ac_c_werror_flag=$ac_save_c_werror_flag
2638 fi
2639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2641 if test "$ac_test_CFLAGS" = set; then
2642   CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644   if test "$GCC" = yes; then
2645     CFLAGS="-g -O2"
2646   else
2647     CFLAGS="-g"
2648   fi
2649 else
2650   if test "$GCC" = yes; then
2651     CFLAGS="-O2"
2652   else
2653     CFLAGS=
2654   fi
2655 fi
2656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_cc_c89+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   ac_cv_prog_cc_c89=no
2662 ac_save_CC=$CC
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669 #include <stdarg.h>
2670 #include <stdio.h>
2671 #include <sys/types.h>
2672 #include <sys/stat.h>
2673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2674 struct buf { int x; };
2675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676 static char *e (p, i)
2677      char **p;
2678      int i;
2680   return p[i];
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2684   char *s;
2685   va_list v;
2686   va_start (v,p);
2687   s = g (p, va_arg (v,int));
2688   va_end (v);
2689   return s;
2692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2693    function prototypes and stuff, but not '\xHH' hex character constants.
2694    These don't provoke an error unfortunately, instead are silently treated
2695    as 'x'.  The following induces an error, until -std is added to get
2696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2697    array size at least.  It's necessary to write '\x00'==0 to get something
2698    that's true only with -std.  */
2699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2702    inside strings and character constants.  */
2703 #define FOO(x) 'x'
2704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2706 int test (int i, double x);
2707 struct s1 {int (*f) (int a);};
2708 struct s2 {int (*f) (double a);};
2709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2710 int argc;
2711 char **argv;
2712 int
2713 main ()
2715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2716   ;
2717   return 0;
2719 _ACEOF
2720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 do
2723   CC="$ac_save_CC $ac_arg"
2724   rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2726 case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_compile") 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739   { (case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_try") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; } &&
2748          { ac_try='test -s conftest.$ac_objext'
2749   { (case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_try") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   ac_cv_prog_cc_c89=$ac_arg
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 fi
2766 rm -f core conftest.err conftest.$ac_objext
2767   test "x$ac_cv_prog_cc_c89" != "xno" && break
2768 done
2769 rm -f conftest.$ac_ext
2770 CC=$ac_save_CC
2772 fi
2773 # AC_CACHE_VAL
2774 case "x$ac_cv_prog_cc_c89" in
2775   x)
2776     { echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6; } ;;
2778   xno)
2779     { echo "$as_me:$LINENO: result: unsupported" >&5
2780 echo "${ECHO_T}unsupported" >&6; } ;;
2781   *)
2782     CC="$CC $ac_cv_prog_cc_c89"
2783     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2785 esac
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 ac_ext=cpp
2795 ac_cpp='$CXXCPP $CPPFLAGS'
2796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2799 if test -z "$CXX"; then
2800   if test -n "$CCC"; then
2801     CXX=$CCC
2802   else
2803     if test -n "$ac_tool_prefix"; then
2804   for ac_prog in clang++ llvm-g++ g++
2805   do
2806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CXX+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$CXX"; then
2814   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2831 fi
2832 fi
2833 CXX=$ac_cv_prog_CXX
2834 if test -n "$CXX"; then
2835   { echo "$as_me:$LINENO: result: $CXX" >&5
2836 echo "${ECHO_T}$CXX" >&6; }
2837 else
2838   { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2843     test -n "$CXX" && break
2844   done
2845 fi
2846 if test -z "$CXX"; then
2847   ac_ct_CXX=$CXX
2848   for ac_prog in clang++ llvm-g++ g++
2849 do
2850   # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CXX"; then
2858   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_ac_ct_CXX="$ac_prog"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2875 fi
2876 fi
2877 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2878 if test -n "$ac_ct_CXX"; then
2879   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2880 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2881 else
2882   { echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6; }
2884 fi
2887   test -n "$ac_ct_CXX" && break
2888 done
2890   if test "x$ac_ct_CXX" = x; then
2891     CXX="g++"
2892   else
2893     case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet.  If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&5
2898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2901 ac_tool_warned=yes ;;
2902 esac
2903     CXX=$ac_ct_CXX
2904   fi
2905 fi
2907   fi
2908 fi
2909 # Provide some information about the compiler.
2910 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2911 ac_compiler=`set X $ac_compile; echo $2`
2912 { (ac_try="$ac_compiler --version >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler --version >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922 { (ac_try="$ac_compiler -v >&5"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compiler -v >&5") 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (ac_try="$ac_compiler -V >&5"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compiler -V >&5") 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2955 int
2956 main ()
2958 #ifndef __GNUC__
2959        choke me
2960 #endif
2962   ;
2963   return 0;
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compile") 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2981   { (case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_try") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; } &&
2990          { ac_try='test -s conftest.$ac_objext'
2991   { (case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_try") 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; }; then
3000   ac_compiler_gnu=yes
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005         ac_compiler_gnu=no
3006 fi
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3011 fi
3012 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3014 GXX=`test $ac_compiler_gnu = yes && echo yes`
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3018 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_cxx_g+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3023    ac_cxx_werror_flag=yes
3024    ac_cv_prog_cxx_g=no
3025    CXXFLAGS="-g"
3026    cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3033 int
3034 main ()
3037   ;
3038   return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } &&
3055          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3056   { (case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_try") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; } &&
3065          { ac_try='test -s conftest.$ac_objext'
3066   { (case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_try") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; }; then
3075   ac_cv_prog_cxx_g=yes
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080         CXXFLAGS=""
3081       cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3088 int
3089 main ()
3092   ;
3093   return 0;
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_compile") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111   { (case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   :
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3136          CXXFLAGS="-g"
3137          cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3144 int
3145 main ()
3148   ;
3149   return 0;
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_compile") 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3167   { (case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_try") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }; } &&
3176          { ac_try='test -s conftest.$ac_objext'
3177   { (case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_try") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_cv_prog_cxx_g=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3192 fi
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3205 if test "$ac_test_CXXFLAGS" = set; then
3206   CXXFLAGS=$ac_save_CXXFLAGS
3207 elif test $ac_cv_prog_cxx_g = yes; then
3208   if test "$GXX" = yes; then
3209     CXXFLAGS="-g -O2"
3210   else
3211     CXXFLAGS="-g"
3212   fi
3213 else
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-O2"
3216   else
3217     CXXFLAGS=
3218   fi
3219 fi
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3235   CPP=
3236 fi
3237 if test -z "$CPP"; then
3238   if test "${ac_cv_prog_CPP+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241       # Double quotes because CPP needs to be expanded
3242     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243     do
3244       ac_preproc_ok=false
3245 for ac_c_preproc_warn_flag in '' yes
3246 do
3247   # Use a header file that comes with gcc, so configuring glibc
3248   # with a fresh cross-compiler works.
3249   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250   # <limits.h> exists even on freestanding compilers.
3251   # On the NeXT, cc -E runs the code through the compiler's parser,
3252   # not just through cpp. "Syntax error" is here to catch this case.
3253   cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #ifdef __STDC__
3260 # include <limits.h>
3261 #else
3262 # include <assert.h>
3263 #endif
3264                      Syntax error
3265 _ACEOF
3266 if { (ac_try="$ac_cpp conftest.$ac_ext"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } >/dev/null; then
3279   if test -s conftest.err; then
3280     ac_cpp_err=$ac_c_preproc_warn_flag
3281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282   else
3283     ac_cpp_err=
3284   fi
3285 else
3286   ac_cpp_err=yes
3287 fi
3288 if test -z "$ac_cpp_err"; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3298 rm -f conftest.err conftest.$ac_ext
3300   # OK, works on sane cases.  Now check whether nonexistent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null; then
3323   if test -s conftest.err; then
3324     ac_cpp_err=$ac_c_preproc_warn_flag
3325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326   else
3327     ac_cpp_err=
3328   fi
3329 else
3330   ac_cpp_err=yes
3331 fi
3332 if test -z "$ac_cpp_err"; then
3333   # Broken: success on invalid input.
3334 continue
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339   # Passes both tests.
3340 ac_preproc_ok=:
3341 break
3342 fi
3344 rm -f conftest.err conftest.$ac_ext
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350   break
3351 fi
3353     done
3354     ac_cv_prog_CPP=$CPP
3356 fi
3357   CPP=$ac_cv_prog_CPP
3358 else
3359   ac_cv_prog_CPP=$CPP
3360 fi
3361 { echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6; }
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3365 do
3366   # Use a header file that comes with gcc, so configuring glibc
3367   # with a fresh cross-compiler works.
3368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369   # <limits.h> exists even on freestanding compilers.
3370   # On the NeXT, cc -E runs the code through the compiler's parser,
3371   # not just through cpp. "Syntax error" is here to catch this case.
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383                      Syntax error
3384 _ACEOF
3385 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } >/dev/null; then
3398   if test -s conftest.err; then
3399     ac_cpp_err=$ac_c_preproc_warn_flag
3400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401   else
3402     ac_cpp_err=
3403   fi
3404 else
3405   ac_cpp_err=yes
3406 fi
3407 if test -z "$ac_cpp_err"; then
3408   :
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413   # Broken: fails on valid input.
3414 continue
3415 fi
3417 rm -f conftest.err conftest.$ac_ext
3419   # OK, works on sane cases.  Now check whether nonexistent headers
3420   # can be detected and how.
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #include <ac_nonexistent.h>
3428 _ACEOF
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } >/dev/null; then
3442   if test -s conftest.err; then
3443     ac_cpp_err=$ac_c_preproc_warn_flag
3444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445   else
3446     ac_cpp_err=
3447   fi
3448 else
3449   ac_cpp_err=yes
3450 fi
3451 if test -z "$ac_cpp_err"; then
3452   # Broken: success on invalid input.
3453 continue
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458   # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3461 fi
3463 rm -f conftest.err conftest.$ac_ext
3465 done
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3469   :
3470 else
3471   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472 See \`config.log' for more details." >&5
3473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474 See \`config.log' for more details." >&2;}
3475    { (exit 1); exit 1; }; }
3476 fi
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test "$CXX" = "clang++" ; then
3486   { echo "$as_me:$LINENO: checking whether clang works" >&5
3487 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3488   ac_ext=cpp
3489 ac_cpp='$CXXCPP $CPPFLAGS'
3490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 #include <limits>
3502 #if __has_include (<cxxabi.h>)
3503 #include <cxxabi.h>
3504 #endif
3505 #if __has_include (<unwind.h>)
3506 #include <unwind.h>
3507 #endif
3509 int
3510 main ()
3513   ;
3514   return 0;
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524   (eval "$ac_compile") 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532   { (case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_try") 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }; } &&
3541          { ac_try='test -s conftest.$ac_objext'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3552   { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560   { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3562   { { 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
3563 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;}
3564    { (exit 1); exit 1; }; }
3566 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569   ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 fi
3579 if test -d ${srcdir}/projects/llvm-gcc ; then
3580   subdirs="$subdirs projects/llvm-gcc"
3582 fi
3584 if test -d ${srcdir}/projects/test-suite ; then
3585   subdirs="$subdirs projects/test-suite"
3587 fi
3589 if test -d ${srcdir}/projects/llvm-test ; then
3590   subdirs="$subdirs projects/llvm-test"
3592 fi
3594 if test -d ${srcdir}/projects/poolalloc ; then
3595   subdirs="$subdirs projects/poolalloc"
3597 fi
3599 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3600   subdirs="$subdirs projects/llvm-poolalloc"
3602 fi
3604 for i in `ls ${srcdir}/projects`
3605 do
3606   if test -d ${srcdir}/projects/${i} ; then
3607     case ${i} in
3608       sample)       subdirs="$subdirs projects/sample"
3609     ;;
3610       privbracket)  subdirs="$subdirs projects/privbracket"
3611  ;;
3612       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3613  ;;
3614       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3615 ;;
3616       llvm-java)    subdirs="$subdirs projects/llvm-java"
3617  ;;
3618       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3619    ;;
3620       safecode)     subdirs="$subdirs projects/safecode"
3621  ;;
3622       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3623  ;;
3624       compiler-rt)       ;;
3625       llvm-gcc)       ;;
3626       test-suite)     ;;
3627       llvm-test)      ;;
3628       poolalloc)      ;;
3629       llvm-poolalloc) ;;
3630       *)
3631         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3632 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3633         ;;
3634     esac
3635   fi
3636 done
3638 # Check whether --enable-polly was given.
3639 if test "${enable_polly+set}" = set; then
3640   enableval=$enable_polly;
3641 else
3642   enableval=default
3643 fi
3645 case "$enableval" in
3646   yes) ENABLE_POLLY=1
3647  ;;
3648   no)  ENABLE_POLLY=0
3649  ;;
3650   default) ENABLE_POLLY=1
3651  ;;
3652   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3653 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3654    { (exit 1); exit 1; }; } ;;
3655 esac
3658 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3659   LLVM_HAS_POLLY=1
3661   subdirs="$subdirs tools/polly"
3663 fi
3666 # Make sure we can run config.sub.
3667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3669 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3670    { (exit 1); exit 1; }; }
3672 { echo "$as_me:$LINENO: checking build system type" >&5
3673 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3674 if test "${ac_cv_build+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_build_alias=$build_alias
3678 test "x$ac_build_alias" = x &&
3679   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680 test "x$ac_build_alias" = x &&
3681   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3682 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3683    { (exit 1); exit 1; }; }
3684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3686 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3687    { (exit 1); exit 1; }; }
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3691 echo "${ECHO_T}$ac_cv_build" >&6; }
3692 case $ac_cv_build in
3693 *-*-*) ;;
3694 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3695 echo "$as_me: error: invalid value of canonical build" >&2;}
3696    { (exit 1); exit 1; }; };;
3697 esac
3698 build=$ac_cv_build
3699 ac_save_IFS=$IFS; IFS='-'
3700 set x $ac_cv_build
3701 shift
3702 build_cpu=$1
3703 build_vendor=$2
3704 shift; shift
3705 # Remember, the first character of IFS is used to create $*,
3706 # except with old shells:
3707 build_os=$*
3708 IFS=$ac_save_IFS
3709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3712 { echo "$as_me:$LINENO: checking host system type" >&5
3713 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3714 if test "${ac_cv_host+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test "x$host_alias" = x; then
3718   ac_cv_host=$ac_cv_build
3719 else
3720   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3722 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3723    { (exit 1); exit 1; }; }
3724 fi
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3728 echo "${ECHO_T}$ac_cv_host" >&6; }
3729 case $ac_cv_host in
3730 *-*-*) ;;
3731 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3732 echo "$as_me: error: invalid value of canonical host" >&2;}
3733    { (exit 1); exit 1; }; };;
3734 esac
3735 host=$ac_cv_host
3736 ac_save_IFS=$IFS; IFS='-'
3737 set x $ac_cv_host
3738 shift
3739 host_cpu=$1
3740 host_vendor=$2
3741 shift; shift
3742 # Remember, the first character of IFS is used to create $*,
3743 # except with old shells:
3744 host_os=$*
3745 IFS=$ac_save_IFS
3746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3749 { echo "$as_me:$LINENO: checking target system type" >&5
3750 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3751 if test "${ac_cv_target+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test "x$target_alias" = x; then
3755   ac_cv_target=$ac_cv_host
3756 else
3757   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3758     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3759 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3760    { (exit 1); exit 1; }; }
3761 fi
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3765 echo "${ECHO_T}$ac_cv_target" >&6; }
3766 case $ac_cv_target in
3767 *-*-*) ;;
3768 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3769 echo "$as_me: error: invalid value of canonical target" >&2;}
3770    { (exit 1); exit 1; }; };;
3771 esac
3772 target=$ac_cv_target
3773 ac_save_IFS=$IFS; IFS='-'
3774 set x $ac_cv_target
3775 shift
3776 target_cpu=$1
3777 target_vendor=$2
3778 shift; shift
3779 # Remember, the first character of IFS is used to create $*,
3780 # except with old shells:
3781 target_os=$*
3782 IFS=$ac_save_IFS
3783 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3786 # The aliases save the names the user supplied, while $host etc.
3787 # will get canonicalized.
3788 test -n "$target_alias" &&
3789   test "$program_prefix$program_suffix$program_transform_name" = \
3790     NONENONEs,x,x, &&
3791   program_prefix=${target_alias}-
3793 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3794 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3795 if test "${llvm_cv_os_type+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   case $host in
3799   *-*-aix*)
3800     llvm_cv_link_all_option="-Wl,--whole-archive"
3801     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3802     llvm_cv_os_type="AIX"
3803     llvm_cv_platform_type="Unix" ;;
3804   *-*-irix*)
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="IRIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-cygwin*)
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="Cygwin"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-darwin*)
3815     llvm_cv_link_all_option="-Wl,-all_load"
3816     llvm_cv_no_link_all_option="-Wl,-noall_load"
3817     llvm_cv_os_type="Darwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-minix*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Minix"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-freebsd* | *-*-kfreebsd-gnu)
3825     llvm_cv_link_all_option="-Wl,--whole-archive"
3826     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827     llvm_cv_os_type="FreeBSD"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-openbsd*)
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="OpenBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-netbsd*)
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="NetBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-dragonfly*)
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="DragonFly"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-hpux*)
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="HP-UX"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-interix*)
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="Interix"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-linux*)
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="Linux"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-gnu*)
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="GNU"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-solaris*)
3865     llvm_cv_link_all_option="-Wl,-z,allextract"
3866     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3867     llvm_cv_os_type="SunOS"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-auroraux*)
3870     llvm_cv_link_all_option="-Wl,-z,allextract"
3871     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3872     llvm_cv_os_type="AuroraUX"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-win32*)
3875     llvm_cv_link_all_option="-Wl,--whole-archive"
3876     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877     llvm_cv_os_type="Win32"
3878     llvm_cv_platform_type="Win32" ;;
3879   *-*-mingw*)
3880     llvm_cv_link_all_option="-Wl,--whole-archive"
3881     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882     llvm_cv_os_type="MingW"
3883     llvm_cv_platform_type="Win32" ;;
3884   *-*-haiku*)
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="Haiku"
3888     llvm_cv_platform_type="Unix" ;;
3889   *-unknown-eabi*)
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="Freestanding"
3893     llvm_cv_platform_type="Unix" ;;
3894   *-unknown-elf*)
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="Freestanding"
3898     llvm_cv_platform_type="Unix" ;;
3899   *)
3900     llvm_cv_link_all_option=""
3901     llvm_cv_no_link_all_option=""
3902     llvm_cv_os_type="Unknown"
3903     llvm_cv_platform_type="Unknown" ;;
3904 esac
3905 fi
3906 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3907 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3909 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3910 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3911 if test "${llvm_cv_target_os_type+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   case $target in
3915   *-*-aix*)
3916     llvm_cv_target_os_type="AIX" ;;
3917   *-*-irix*)
3918     llvm_cv_target_os_type="IRIX" ;;
3919   *-*-cygwin*)
3920     llvm_cv_target_os_type="Cygwin" ;;
3921   *-*-darwin*)
3922     llvm_cv_target_os_type="Darwin" ;;
3923   *-*-minix*)
3924     llvm_cv_target_os_type="Minix" ;;
3925   *-*-freebsd* | *-*-kfreebsd-gnu)
3926     llvm_cv_target_os_type="FreeBSD" ;;
3927   *-*-openbsd*)
3928     llvm_cv_target_os_type="OpenBSD" ;;
3929   *-*-netbsd*)
3930     llvm_cv_target_os_type="NetBSD" ;;
3931   *-*-dragonfly*)
3932     llvm_cv_target_os_type="DragonFly" ;;
3933   *-*-hpux*)
3934     llvm_cv_target_os_type="HP-UX" ;;
3935   *-*-interix*)
3936     llvm_cv_target_os_type="Interix" ;;
3937   *-*-linux*)
3938     llvm_cv_target_os_type="Linux" ;;
3939   *-*-gnu*)
3940     llvm_cv_target_os_type="GNU" ;;
3941   *-*-solaris*)
3942     llvm_cv_target_os_type="SunOS" ;;
3943   *-*-auroraux*)
3944     llvm_cv_target_os_type="AuroraUX" ;;
3945   *-*-win32*)
3946     llvm_cv_target_os_type="Win32" ;;
3947   *-*-mingw*)
3948     llvm_cv_target_os_type="MingW" ;;
3949   *-*-haiku*)
3950     llvm_cv_target_os_type="Haiku" ;;
3951   *-*-rtems*)
3952     llvm_cv_target_os_type="RTEMS" ;;
3953   *-*-nacl*)
3954     llvm_cv_target_os_type="NativeClient" ;;
3955   *-unknown-eabi*)
3956     llvm_cv_target_os_type="Freestanding" ;;
3957   *)
3958     llvm_cv_target_os_type="Unknown" ;;
3959 esac
3960 fi
3961 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3962 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3964 if test "$llvm_cv_os_type" = "Unknown" ; then
3965   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3966 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3970 OS=$llvm_cv_os_type
3972 HOST_OS=$llvm_cv_os_type
3974 TARGET_OS=$llvm_cv_target_os_type
3977 LINKALL=$llvm_cv_link_all_option
3979 NOLINKALL=$llvm_cv_no_link_all_option
3982 case $llvm_cv_platform_type in
3983   Unix)
3985 cat >>confdefs.h <<\_ACEOF
3986 #define LLVM_ON_UNIX 1
3987 _ACEOF
3989     LLVM_ON_UNIX=1
3991     LLVM_ON_WIN32=0
3993     ;;
3994   Win32)
3996 cat >>confdefs.h <<\_ACEOF
3997 #define LLVM_ON_WIN32 1
3998 _ACEOF
4000     LLVM_ON_UNIX=0
4002     LLVM_ON_WIN32=1
4004     ;;
4005 esac
4007 { echo "$as_me:$LINENO: checking target architecture" >&5
4008 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4009 if test "${llvm_cv_target_arch+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   case $target in
4013   i?86-*)                 llvm_cv_target_arch="x86" ;;
4014   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4015   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4016   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4017   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4018   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4019   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4020   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4021   xcore-*)                llvm_cv_target_arch="XCore" ;;
4022   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4023   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4024   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4025   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4026   *)                      llvm_cv_target_arch="Unknown" ;;
4027 esac
4028 fi
4029 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4030 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4032 if test "$llvm_cv_target_arch" = "Unknown" ; then
4033   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4034 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4035 fi
4037 case "$llvm_cv_target_arch" in
4038     x86)     LLVM_NATIVE_ARCH="X86" ;;
4039     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4040     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4041 esac
4043 ARCH=$llvm_cv_target_arch
4046 case $host in
4047   i?86-*)                 host_arch="x86" ;;
4048   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4049   sparc*-*)               host_arch="Sparc" ;;
4050   powerpc*-*)             host_arch="PowerPC" ;;
4051   arm*-*)                 host_arch="ARM" ;;
4052   aarch64*-*)             host_arch="AArch64" ;;
4053   mips-* | mips64-*)      host_arch="Mips" ;;
4054   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4055   xcore-*)                host_arch="XCore" ;;
4056   msp430-*)               host_arch="MSP430" ;;
4057   hexagon-*)              host_arch="Hexagon" ;;
4058   mblaze-*)               host_arch="MBlaze" ;;
4059   *)                      host_arch="Unknown" ;;
4060 esac
4062 if test "$host_arch" = "Unknown" ; then
4063   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4064 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4065 fi
4067 HOST_ARCH=$host_arch
4072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   # Extract the first word of "grep ggrep" to use in msg output
4078 if test -z "$GREP"; then
4079 set dummy grep ggrep; ac_prog_name=$2
4080 if test "${ac_cv_path_GREP+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   ac_path_GREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_prog in grep ggrep; do
4091   for ac_exec_ext in '' $ac_executable_extensions; do
4092     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4094     # Check for GNU ac_path_GREP and select it if it is found.
4095   # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4097 *GNU*)
4098   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099 *)
4100   ac_count=0
4101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4102   while :
4103   do
4104     cat "conftest.in" "conftest.in" >"conftest.tmp"
4105     mv "conftest.tmp" "conftest.in"
4106     cp "conftest.in" "conftest.nl"
4107     echo 'GREP' >> "conftest.nl"
4108     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110     ac_count=`expr $ac_count + 1`
4111     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112       # Best one so far, save it but keep looking for a better one
4113       ac_cv_path_GREP="$ac_path_GREP"
4114       ac_path_GREP_max=$ac_count
4115     fi
4116     # 10*(2^10) chars as input seems more than enough
4117     test $ac_count -gt 10 && break
4118   done
4119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4123     $ac_path_GREP_found && break 3
4124   done
4125 done
4127 done
4128 IFS=$as_save_IFS
4131 fi
4133 GREP="$ac_cv_path_GREP"
4134 if test -z "$GREP"; then
4135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137    { (exit 1); exit 1; }; }
4138 fi
4140 else
4141   ac_cv_path_GREP=$GREP
4142 fi
4145 fi
4146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4148  GREP="$ac_cv_path_GREP"
4151 { echo "$as_me:$LINENO: checking for egrep" >&5
4152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157    then ac_cv_path_EGREP="$GREP -E"
4158    else
4159      # Extract the first word of "egrep" to use in msg output
4160 if test -z "$EGREP"; then
4161 set dummy egrep; ac_prog_name=$2
4162 if test "${ac_cv_path_EGREP+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   ac_path_EGREP_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_prog in egrep; do
4173   for ac_exec_ext in '' $ac_executable_extensions; do
4174     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4176     # Check for GNU ac_path_EGREP and select it if it is found.
4177   # Check for GNU $ac_path_EGREP
4178 case `"$ac_path_EGREP" --version 2>&1` in
4179 *GNU*)
4180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181 *)
4182   ac_count=0
4183   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4184   while :
4185   do
4186     cat "conftest.in" "conftest.in" >"conftest.tmp"
4187     mv "conftest.tmp" "conftest.in"
4188     cp "conftest.in" "conftest.nl"
4189     echo 'EGREP' >> "conftest.nl"
4190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192     ac_count=`expr $ac_count + 1`
4193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194       # Best one so far, save it but keep looking for a better one
4195       ac_cv_path_EGREP="$ac_path_EGREP"
4196       ac_path_EGREP_max=$ac_count
4197     fi
4198     # 10*(2^10) chars as input seems more than enough
4199     test $ac_count -gt 10 && break
4200   done
4201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 esac
4205     $ac_path_EGREP_found && break 3
4206   done
4207 done
4209 done
4210 IFS=$as_save_IFS
4213 fi
4215 EGREP="$ac_cv_path_EGREP"
4216 if test -z "$EGREP"; then
4217   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4219    { (exit 1); exit 1; }; }
4220 fi
4222 else
4223   ac_cv_path_EGREP=$EGREP
4224 fi
4227    fi
4228 fi
4229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4231  EGREP="$ac_cv_path_EGREP"
4234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4236 if test "${ac_cv_header_stdc+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 #include <stdlib.h>
4246 #include <stdarg.h>
4247 #include <string.h>
4248 #include <float.h>
4250 int
4251 main ()
4254   ;
4255   return 0;
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } &&
4272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; } &&
4282          { ac_try='test -s conftest.$ac_objext'
4283   { (case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   ac_cv_header_stdc=yes
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297         ac_cv_header_stdc=no
4298 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 if test $ac_cv_header_stdc = yes; then
4303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304   cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310 #include <string.h>
4312 _ACEOF
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314   $EGREP "memchr" >/dev/null 2>&1; then
4315   :
4316 else
4317   ac_cv_header_stdc=no
4318 fi
4319 rm -f conftest*
4321 fi
4323 if test $ac_cv_header_stdc = yes; then
4324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <stdlib.h>
4333 _ACEOF
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335   $EGREP "free" >/dev/null 2>&1; then
4336   :
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f conftest*
4342 fi
4344 if test $ac_cv_header_stdc = yes; then
4345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4346   if test "$cross_compiling" = yes; then
4347   :
4348 else
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <ctype.h>
4356 #include <stdlib.h>
4357 #if ((' ' & 0x0FF) == 0x020)
4358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4360 #else
4361 # define ISLOWER(c) \
4362                    (('a' <= (c) && (c) <= 'i') \
4363                      || ('j' <= (c) && (c) <= 'r') \
4364                      || ('s' <= (c) && (c) <= 'z'))
4365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4366 #endif
4368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369 int
4370 main ()
4372   int i;
4373   for (i = 0; i < 256; i++)
4374     if (XOR (islower (i), ISLOWER (i))
4375         || toupper (i) != TOUPPER (i))
4376       return 2;
4377   return 0;
4379 _ACEOF
4380 rm -f conftest$ac_exeext
4381 if { (ac_try="$ac_link"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_link") 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391   { (case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396   (eval "$ac_try") 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   :
4401 else
4402   echo "$as_me: program exited with status $ac_status" >&5
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 ( exit $ac_status )
4407 ac_cv_header_stdc=no
4408 fi
4409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4410 fi
4413 fi
4414 fi
4415 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4423 fi
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (ac_try="$ac_compile"
4456 case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461   (eval "$ac_compile") 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } &&
4468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469   { (case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_try") 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   eval "$as_ac_Header=yes"
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493         eval "$as_ac_Header=no"
4494 fi
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 fi
4498 ac_res=`eval echo '${'$as_ac_Header'}'`
4499                { echo "$as_me:$LINENO: result: $ac_res" >&5
4500 echo "${ECHO_T}$ac_res" >&6; }
4501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4502   cat >>confdefs.h <<_ACEOF
4503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 _ACEOF
4506 fi
4508 done
4511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4513 if test "${ac_cv_c_bigendian+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   # See if sys/param.h defines the BYTE_ORDER macro.
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 #include <sys/types.h>
4524 #include <sys/param.h>
4526 int
4527 main ()
4529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4530  bogus endian macros
4531 #endif
4533   ;
4534   return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_compile") 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } &&
4551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4552   { (case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; } &&
4561          { ac_try='test -s conftest.$ac_objext'
4562   { (case "(($ac_try" in
4563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564   *) ac_try_echo=$ac_try;;
4565 esac
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567   (eval "$ac_try") 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }; }; then
4571   # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <sys/types.h>
4579 #include <sys/param.h>
4581 int
4582 main ()
4584 #if BYTE_ORDER != BIG_ENDIAN
4585  not big endian
4586 #endif
4588   ;
4589   return 0;
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_compile") 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_try") 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   ac_cv_c_bigendian=yes
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631         ac_cv_c_bigendian=no
4632 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639         # It does not; compile a test program.
4640 if test "$cross_compiling" = yes; then
4641   # try to guess the endianness by grepping values into an object file
4642   ac_cv_c_bigendian=unknown
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4650 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4651 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4652 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4653 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4654 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4655 int
4656 main ()
4658  _ascii (); _ebcdic ();
4659   ;
4660   return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_compile") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } &&
4677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4678   { (case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_try") 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; } &&
4687          { ac_try='test -s conftest.$ac_objext'
4688   { (case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_try") 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4698   ac_cv_c_bigendian=yes
4699 fi
4700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4701   if test "$ac_cv_c_bigendian" = unknown; then
4702     ac_cv_c_bigendian=no
4703   else
4704     # finding both strings is unlikely to happen, but who knows?
4705     ac_cv_c_bigendian=unknown
4706   fi
4707 fi
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4713 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_includes_default
4724 int
4725 main ()
4728   /* Are we little or big endian?  From Harbison&Steele.  */
4729   union
4730   {
4731     long int l;
4732     char c[sizeof (long int)];
4733   } u;
4734   u.l = 1;
4735   return u.c[sizeof (long int) - 1] == 1;
4737   ;
4738   return 0;
4740 _ACEOF
4741 rm -f conftest$ac_exeext
4742 if { (ac_try="$ac_link"
4743 case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_link") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4752   { (case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_try") 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   ac_cv_c_bigendian=no
4762 else
4763   echo "$as_me: program exited with status $ac_status" >&5
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 ( exit $ac_status )
4768 ac_cv_c_bigendian=yes
4769 fi
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4771 fi
4774 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4779 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4780 case $ac_cv_c_bigendian in
4781   yes)
4782     ENDIAN=big
4783  ;;
4784   no)
4785     ENDIAN=little
4786  ;;
4787   *)
4788     { { echo "$as_me:$LINENO: error: unknown endianness
4789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4790 echo "$as_me: error: unknown endianness
4791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4792    { (exit 1); exit 1; }; } ;;
4793 esac
4796 if test "$cross_compiling" = yes; then
4797   LLVM_CROSS_COMPILING=1
4800 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4801 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4802 if test "${ac_cv_build_exeext+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4806   ac_cv_build_exeext=.exe
4807 else
4808   ac_build_prefix=${build_alias}-
4810   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_build_prefix}gcc; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test -n "$BUILD_CC"; then
4818   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4835 fi
4836 fi
4837 BUILD_CC=$ac_cv_prog_BUILD_CC
4838 if test -n "$BUILD_CC"; then
4839   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4840 echo "${ECHO_T}$BUILD_CC" >&6; }
4841 else
4842   { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4847   if test -z "$BUILD_CC"; then
4848      # Extract the first word of "gcc", so it can be a program name with args.
4849 set dummy gcc; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   if test -n "$BUILD_CC"; then
4856   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863   for ac_exec_ext in '' $ac_executable_extensions; do
4864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865     ac_cv_prog_BUILD_CC="gcc"
4866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867     break 2
4868   fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4873 fi
4874 fi
4875 BUILD_CC=$ac_cv_prog_BUILD_CC
4876 if test -n "$BUILD_CC"; then
4877   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4878 echo "${ECHO_T}$BUILD_CC" >&6; }
4879 else
4880   { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4882 fi
4885      if test -z "$BUILD_CC"; then
4886        # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$BUILD_CC"; then
4894   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4895 else
4896   ac_prog_rejected=no
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905        ac_prog_rejected=yes
4906        continue
4907      fi
4908     ac_cv_prog_BUILD_CC="cc"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4916 if test $ac_prog_rejected = yes; then
4917   # We found a bogon in the path, so make sure we never use it.
4918   set dummy $ac_cv_prog_BUILD_CC
4919   shift
4920   if test $# != 0; then
4921     # We chose a different compiler from the bogus one.
4922     # However, it has the same basename, so the bogon will be chosen
4923     # first if we set BUILD_CC to just the basename; use the full file name.
4924     shift
4925     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4926   fi
4927 fi
4928 fi
4929 fi
4930 BUILD_CC=$ac_cv_prog_BUILD_CC
4931 if test -n "$BUILD_CC"; then
4932   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4933 echo "${ECHO_T}$BUILD_CC" >&6; }
4934 else
4935   { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4940      fi
4941   fi
4942   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4943 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4944    { (exit 1); exit 1; }; }
4945   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4946   rm -f conftest*
4947   echo 'int main () { return 0; }' > conftest.$ac_ext
4948   ac_cv_build_exeext=
4949   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4950   (eval $ac_build_link) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; then
4954     for file in conftest.*; do
4955       case $file in
4956       *.c | *.o | *.obj | *.dSYM) ;;
4957       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4958       esac
4959     done
4960   else
4961     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4962 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4963    { (exit 1); exit 1; }; }
4964   fi
4965   rm -f conftest*
4966   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4967 fi
4968 fi
4970 BUILD_EXEEXT=""
4971 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4972 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4973 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4974 ac_build_exeext=$BUILD_EXEEXT
4976   ac_build_prefix=${build_alias}-
4977   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4978 set dummy ${ac_build_prefix}g++; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -n "$BUILD_CXX"; then
4985   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4994     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5002 fi
5003 fi
5004 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5005 if test -n "$BUILD_CXX"; then
5006   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5007 echo "${ECHO_T}$BUILD_CXX" >&6; }
5008 else
5009   { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5011 fi
5014   if test -z "$BUILD_CXX"; then
5015      # Extract the first word of "g++", so it can be a program name with args.
5016 set dummy g++; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   if test -n "$BUILD_CXX"; then
5023   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030   for ac_exec_ext in '' $ac_executable_extensions; do
5031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5032     ac_cv_prog_BUILD_CXX="g++"
5033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5040 fi
5041 fi
5042 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5043 if test -n "$BUILD_CXX"; then
5044   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5045 echo "${ECHO_T}$BUILD_CXX" >&6; }
5046 else
5047   { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5049 fi
5052      if test -z "$BUILD_CXX"; then
5053        # Extract the first word of "c++", so it can be a program name with args.
5054 set dummy c++; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   if test -n "$BUILD_CXX"; then
5061   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5062 else
5063   ac_prog_rejected=no
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069   for ac_exec_ext in '' $ac_executable_extensions; do
5070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5071     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5072        ac_prog_rejected=yes
5073        continue
5074      fi
5075     ac_cv_prog_BUILD_CXX="c++"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5083 if test $ac_prog_rejected = yes; then
5084   # We found a bogon in the path, so make sure we never use it.
5085   set dummy $ac_cv_prog_BUILD_CXX
5086   shift
5087   if test $# != 0; then
5088     # We chose a different compiler from the bogus one.
5089     # However, it has the same basename, so the bogon will be chosen
5090     # first if we set BUILD_CXX to just the basename; use the full file name.
5091     shift
5092     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5093   fi
5094 fi
5095 fi
5096 fi
5097 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5098 if test -n "$BUILD_CXX"; then
5099   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5100 echo "${ECHO_T}$BUILD_CXX" >&6; }
5101 else
5102   { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5107      fi
5108   fi
5109 else
5110   LLVM_CROSS_COMPILING=0
5112 fi
5114 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5115   cvsbuild="yes"
5116   optimize="no"
5117   CVSBUILD=CVSBUILD=1
5119 else
5120   cvsbuild="no"
5121   optimize="yes"
5122 fi
5125 # Check whether --enable-libcpp was given.
5126 if test "${enable_libcpp+set}" = set; then
5127   enableval=$enable_libcpp;
5128 else
5129   enableval=default
5130 fi
5132 case "$enableval" in
5133   yes) ENABLE_LIBCPP=1
5134  ;;
5135   no)  ENABLE_LIBCPP=0
5136  ;;
5137   default) ENABLE_LIBCPP=0
5138 ;;
5139   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5140 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5141    { (exit 1); exit 1; }; } ;;
5142 esac
5144 # Check whether --enable-cxx11 was given.
5145 if test "${enable_cxx11+set}" = set; then
5146   enableval=$enable_cxx11;
5147 else
5148   enableval=default
5149 fi
5151 case "$enableval" in
5152   yes) ENABLE_CXX11=1
5153  ;;
5154   no)  ENABLE_CXX11=0
5155  ;;
5156   default) ENABLE_CXX11=0
5157 ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5163 clang_arcmt="yes"
5164 # Check whether --enable-clang-arcmt was given.
5165 if test "${enable_clang_arcmt+set}" = set; then
5166   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5167 else
5168   enableval="yes"
5169 fi
5171 case "$enableval" in
5172   yes) ENABLE_CLANG_ARCMT=1
5173  ;;
5174   no)  ENABLE_CLANG_ARCMT=0
5175  ;;
5176   default) ENABLE_CLANG_ARCMT=1
5177 ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5183 clang_static_analyzer="yes"
5184 # Check whether --enable-clang-static-analyzer was given.
5185 if test "${enable_clang_static_analyzer+set}" = set; then
5186   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5187 else
5188   enableval="yes"
5189 fi
5191 case "$enableval" in
5192   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5193  ;;
5194   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5195  ;;
5196   default) ENABLE_CLANG_STATIC_ANALYZER=1
5197 ;;
5198   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5200    { (exit 1); exit 1; }; } ;;
5201 esac
5203 # Check whether --enable-clang-rewriter was given.
5204 if test "${enable_clang_rewriter+set}" = set; then
5205   enableval=$enable_clang_rewriter;
5206 else
5207   enableval="yes"
5208 fi
5210 case "$enableval" in
5211   yes) ENABLE_CLANG_REWRITER=1
5212  ;;
5213   no)
5214     if test ${clang_arcmt} != "no" ; then
5215       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5216 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5217    { (exit 1); exit 1; }; }
5218     fi
5219     if test ${clang_static_analyzer} != "no" ; then
5220       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5222    { (exit 1); exit 1; }; }
5223     fi
5224     ENABLE_CLANG_REWRITER=0
5226     ;;
5227   default) ENABLE_CLANG_REWRITER=1
5228 ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5234 # Check whether --enable-optimized was given.
5235 if test "${enable_optimized+set}" = set; then
5236   enableval=$enable_optimized;
5237 else
5238   enableval=$optimize
5239 fi
5241 if test ${enableval} = "no" ; then
5242   ENABLE_OPTIMIZED=
5244 else
5245   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5247 fi
5249 # Check whether --enable-profiling was given.
5250 if test "${enable_profiling+set}" = set; then
5251   enableval=$enable_profiling;
5252 else
5253   enableval="no"
5254 fi
5256 if test ${enableval} = "no" ; then
5257   ENABLE_PROFILING=
5259 else
5260   ENABLE_PROFILING=ENABLE_PROFILING=1
5262 fi
5264 # Check whether --enable-assertions was given.
5265 if test "${enable_assertions+set}" = set; then
5266   enableval=$enable_assertions;
5267 else
5268   enableval="yes"
5269 fi
5271 if test ${enableval} = "yes" ; then
5272   DISABLE_ASSERTIONS=
5274 else
5275   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5277 fi
5279 # Check whether --enable-werror was given.
5280 if test "${enable_werror+set}" = set; then
5281   enableval=$enable_werror;
5282 else
5283   enableval="no"
5284 fi
5286 case "$enableval" in
5287   yes) ENABLE_WERROR=1
5288  ;;
5289   no)  ENABLE_WERROR=0
5290  ;;
5291   default) ENABLE_WERROR=0
5292 ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5298 # Check whether --enable-expensive-checks was given.
5299 if test "${enable_expensive_checks+set}" = set; then
5300   enableval=$enable_expensive_checks;
5301 else
5302   enableval="no"
5303 fi
5305 if test ${enableval} = "yes" ; then
5306   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5308   EXPENSIVE_CHECKS=yes
5310 else
5311   ENABLE_EXPENSIVE_CHECKS=
5313   EXPENSIVE_CHECKS=no
5315 fi
5317 # Check whether --enable-debug-runtime was given.
5318 if test "${enable_debug_runtime+set}" = set; then
5319   enableval=$enable_debug_runtime;
5320 else
5321   enableval=no
5322 fi
5324 if test ${enableval} = "no" ; then
5325   DEBUG_RUNTIME=
5327 else
5328   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5330 fi
5332 # Check whether --enable-debug-symbols was given.
5333 if test "${enable_debug_symbols+set}" = set; then
5334   enableval=$enable_debug_symbols;
5335 else
5336   enableval=no
5337 fi
5339 if test ${enableval} = "no" ; then
5340   DEBUG_SYMBOLS=
5342 else
5343   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5345 fi
5347 # Check whether --enable-keep-symbols was given.
5348 if test "${enable_keep_symbols+set}" = set; then
5349   enableval=$enable_keep_symbols;
5350 else
5351   enableval=no
5352 fi
5354 if test ${enableval} = "no" ; then
5355   KEEP_SYMBOLS=
5357 else
5358   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5360 fi
5362 # Check whether --enable-jit was given.
5363 if test "${enable_jit+set}" = set; then
5364   enableval=$enable_jit;
5365 else
5366   enableval=default
5367 fi
5369 if test ${enableval} = "no"
5370 then
5371   JIT=
5373 else
5374   case "$llvm_cv_target_arch" in
5375     x86)         TARGET_HAS_JIT=1
5376  ;;
5377     Sparc)       TARGET_HAS_JIT=0
5378  ;;
5379     PowerPC)     TARGET_HAS_JIT=1
5380  ;;
5381     x86_64)      TARGET_HAS_JIT=1
5382  ;;
5383     ARM)         TARGET_HAS_JIT=1
5384  ;;
5385     AArch64)     TARGET_HAS_JIT=0
5386  ;;
5387     Mips)        TARGET_HAS_JIT=1
5388  ;;
5389     XCore)       TARGET_HAS_JIT=0
5390  ;;
5391     MSP430)      TARGET_HAS_JIT=0
5392  ;;
5393     Hexagon)     TARGET_HAS_JIT=0
5394  ;;
5395     MBlaze)      TARGET_HAS_JIT=0
5396  ;;
5397     NVPTX)       TARGET_HAS_JIT=0
5398  ;;
5399     *)           TARGET_HAS_JIT=0
5400  ;;
5401   esac
5402 fi
5404 # Check whether --enable-docs was given.
5405 if test "${enable_docs+set}" = set; then
5406   enableval=$enable_docs;
5407 else
5408   enableval=default
5409 fi
5411 case "$enableval" in
5412   yes) ENABLE_DOCS=1
5413  ;;
5414   no)  ENABLE_DOCS=0
5415  ;;
5416   default) ENABLE_DOCS=1
5417  ;;
5418   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5419 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5420    { (exit 1); exit 1; }; } ;;
5421 esac
5423 # Check whether --enable-doxygen was given.
5424 if test "${enable_doxygen+set}" = set; then
5425   enableval=$enable_doxygen;
5426 else
5427   enableval=default
5428 fi
5430 case "$enableval" in
5431   yes) ENABLE_DOXYGEN=1
5432  ;;
5433   no)  ENABLE_DOXYGEN=0
5434  ;;
5435   default) ENABLE_DOXYGEN=0
5436  ;;
5437   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5438 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5439    { (exit 1); exit 1; }; } ;;
5440 esac
5442 # Check whether --enable-threads was given.
5443 if test "${enable_threads+set}" = set; then
5444   enableval=$enable_threads;
5445 else
5446   enableval=default
5447 fi
5449 case "$enableval" in
5450   yes) LLVM_ENABLE_THREADS=1
5451  ;;
5452   no)  LLVM_ENABLE_THREADS=0
5453  ;;
5454   default) LLVM_ENABLE_THREADS=1
5455  ;;
5456   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5457 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5458    { (exit 1); exit 1; }; } ;;
5459 esac
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5463 _ACEOF
5466 # Check whether --enable-pthreads was given.
5467 if test "${enable_pthreads+set}" = set; then
5468   enableval=$enable_pthreads;
5469 else
5470   enableval=default
5471 fi
5473 case "$enableval" in
5474   yes) ENABLE_PTHREADS=1
5475  ;;
5476   no)  ENABLE_PTHREADS=0
5477  ;;
5478   default) ENABLE_PTHREADS=1
5479  ;;
5480   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5481 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483 esac
5485 # Check whether --enable-zlib was given.
5486 if test "${enable_zlib+set}" = set; then
5487   enableval=$enable_zlib;
5488 else
5489   enableval=default
5490 fi
5492 case "$enableval" in
5493   yes) LLVM_ENABLE_ZLIB=1
5494  ;;
5495   no)  LLVM_ENABLE_ZLIB=0
5496  ;;
5497   default) LLVM_ENABLE_ZLIB=1
5498  ;;
5499   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5500 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502 esac
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5506 _ACEOF
5509 # Check whether --enable-pic was given.
5510 if test "${enable_pic+set}" = set; then
5511   enableval=$enable_pic;
5512 else
5513   enableval=default
5514 fi
5516 case "$enableval" in
5517   yes) ENABLE_PIC=1
5518  ;;
5519   no)  ENABLE_PIC=0
5520  ;;
5521   default) ENABLE_PIC=1
5522  ;;
5523   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5524 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5525    { (exit 1); exit 1; }; } ;;
5526 esac
5528 cat >>confdefs.h <<_ACEOF
5529 #define ENABLE_PIC $ENABLE_PIC
5530 _ACEOF
5533 # Check whether --enable-shared was given.
5534 if test "${enable_shared+set}" = set; then
5535   enableval=$enable_shared;
5536 else
5537   enableval=default
5538 fi
5540 case "$enableval" in
5541   yes) ENABLE_SHARED=1
5542  ;;
5543   no)  ENABLE_SHARED=0
5544  ;;
5545   default) ENABLE_SHARED=0
5546  ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5548 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5552 # Check whether --enable-embed-stdcxx was given.
5553 if test "${enable_embed_stdcxx+set}" = set; then
5554   enableval=$enable_embed_stdcxx;
5555 else
5556   enableval=default
5557 fi
5559 case "$enableval" in
5560   yes) ENABLE_EMBED_STDCXX=1
5561  ;;
5562   no)  ENABLE_EMBED_STDCXX=0
5563  ;;
5564   default) ENABLE_EMBED_STDCXX=0
5565  ;;
5566   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5567 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5568    { (exit 1); exit 1; }; } ;;
5569 esac
5571 # Check whether --enable-timestamps was given.
5572 if test "${enable_timestamps+set}" = set; then
5573   enableval=$enable_timestamps;
5574 else
5575   enableval=default
5576 fi
5578 case "$enableval" in
5579   yes) ENABLE_TIMESTAMPS=1
5580  ;;
5581   no)  ENABLE_TIMESTAMPS=0
5582  ;;
5583   default) ENABLE_TIMESTAMPS=1
5584  ;;
5585   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5586 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5587    { (exit 1); exit 1; }; } ;;
5588 esac
5590 cat >>confdefs.h <<_ACEOF
5591 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5592 _ACEOF
5596 # Check whether --enable-backtraces was given.
5597 if test "${enable_backtraces+set}" = set; then
5598   enableval=$enable_backtraces;
5599 else
5600   enableval=default
5601 fi
5603 case "$enableval" in
5604   yes) ENABLE_BACKTRACES=1
5605  ;;
5606   no)  ENABLE_BACKTRACES=0
5607  ;;
5608   default) ENABLE_BACKTRACES=1
5609  ;;
5610   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5611 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5612    { (exit 1); exit 1; }; } ;;
5613 esac
5615 cat >>confdefs.h <<_ACEOF
5616 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5617 _ACEOF
5620 TARGETS_TO_BUILD=""
5621 # Check whether --enable-targets was given.
5622 if test "${enable_targets+set}" = set; then
5623   enableval=$enable_targets;
5624 else
5625   enableval=all
5626 fi
5628 if test "$enableval" = host-only ; then
5629   enableval=host
5630 fi
5631 case "$enableval" in
5632   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5633   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5634       case "$a_target" in
5635         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5636         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5637         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5638         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5639         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5640         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5641         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5642         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5643         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5644         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5645         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5646         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5647         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5648         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5649         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5650         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5651         host) case "$llvm_cv_target_arch" in
5652             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5653             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5654             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5655             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5656             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5657             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5658             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5660             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5661             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5662             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5663             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5664             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5665 echo "$as_me: error: Can not set target to build" >&2;}
5666    { (exit 1); exit 1; }; } ;;
5667           esac ;;
5668         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5669 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5670    { (exit 1); exit 1; }; } ;;
5671       esac
5672   done
5673   ;;
5674 esac
5676 # Check whether --enable-experimental-targets was given.
5677 if test "${enable_experimental_targets+set}" = set; then
5678   enableval=$enable_experimental_targets;
5679 else
5680   enableval=disable
5681 fi
5684 if test ${enableval} != "disable"
5685 then
5686   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5687 fi
5689 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5692 for a_target in $TARGETS_TO_BUILD; do
5693   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5695 cat >>confdefs.h <<_ACEOF
5696 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5697 _ACEOF
5699     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5700     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5701     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5702     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5703     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5704       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5705     fi
5706     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5707       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5708     fi
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5712 _ACEOF
5715 cat >>confdefs.h <<_ACEOF
5716 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5717 _ACEOF
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5722 _ACEOF
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5727 _ACEOF
5729     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5731 cat >>confdefs.h <<_ACEOF
5732 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5733 _ACEOF
5735     fi
5736     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5740 _ACEOF
5742     fi
5743   fi
5744 done
5746 LLVM_ENUM_TARGETS=""
5747 LLVM_ENUM_ASM_PRINTERS=""
5748 LLVM_ENUM_ASM_PARSERS=""
5749 LLVM_ENUM_DISASSEMBLERS=""
5750 for target_to_build in $TARGETS_TO_BUILD; do
5751   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5752   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5753     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5754   fi
5755   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5756     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5757   fi
5758   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5759     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5760   fi
5761 done
5768 # Check whether --with-optimize-option was given.
5769 if test "${with_optimize_option+set}" = set; then
5770   withval=$with_optimize_option;
5771 else
5772   withval=default
5773 fi
5775 { echo "$as_me:$LINENO: checking optimization flags" >&5
5776 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5777 case "$withval" in
5778   default)
5779     case "$llvm_cv_os_type" in
5780     FreeBSD) optimize_option=-O2 ;;
5781     MingW) optimize_option=-O2 ;;
5782     *)     optimize_option=-O3 ;;
5783     esac ;;
5784   *) optimize_option="$withval" ;;
5785 esac
5786 OPTIMIZE_OPTION=$optimize_option
5788 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5789 echo "${ECHO_T}$optimize_option" >&6; }
5792 # Check whether --with-extra-options was given.
5793 if test "${with_extra_options+set}" = set; then
5794   withval=$with_extra_options;
5795 else
5796   withval=default
5797 fi
5799 case "$withval" in
5800   default) EXTRA_OPTIONS= ;;
5801   *) EXTRA_OPTIONS=$withval ;;
5802 esac
5803 EXTRA_OPTIONS=$EXTRA_OPTIONS
5807 # Check whether --with-extra-ld-options was given.
5808 if test "${with_extra_ld_options+set}" = set; then
5809   withval=$with_extra_ld_options;
5810 else
5811   withval=default
5812 fi
5814 case "$withval" in
5815   default) EXTRA_LD_OPTIONS= ;;
5816   *) EXTRA_LD_OPTIONS=$withval ;;
5817 esac
5818 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5821 # Check whether --enable-bindings was given.
5822 if test "${enable_bindings+set}" = set; then
5823   enableval=$enable_bindings;
5824 else
5825   enableval=default
5826 fi
5828 BINDINGS_TO_BUILD=""
5829 case "$enableval" in
5830   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5831   all ) BINDINGS_TO_BUILD="ocaml" ;;
5832   none | no) BINDINGS_TO_BUILD="" ;;
5833   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5834       case "$a_binding" in
5835         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5836         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5837 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5838    { (exit 1); exit 1; }; } ;;
5839       esac
5840   done
5841   ;;
5842 esac
5845 # Check whether --with-ocaml-libdir was given.
5846 if test "${with_ocaml_libdir+set}" = set; then
5847   withval=$with_ocaml_libdir;
5848 else
5849   withval=auto
5850 fi
5852 case "$withval" in
5853   auto) with_ocaml_libdir="$withval" ;;
5854   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5855   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5856 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5857    { (exit 1); exit 1; }; } ;;
5858 esac
5861 # Check whether --with-clang-srcdir was given.
5862 if test "${with_clang_srcdir+set}" = set; then
5863   withval=$with_clang_srcdir;
5864 else
5865   withval="-"
5866 fi
5868 case "$withval" in
5869   -) clang_src_root="" ;;
5870   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5871   *) clang_src_root="$ac_pwd/$withval" ;;
5872 esac
5873 CLANG_SRC_ROOT=$clang_src_root
5877 # Check whether --with-clang-resource-dir was given.
5878 if test "${with_clang_resource_dir+set}" = set; then
5879   withval=$with_clang_resource_dir;
5880 else
5881   withval=""
5882 fi
5885 cat >>confdefs.h <<_ACEOF
5886 #define CLANG_RESOURCE_DIR "$withval"
5887 _ACEOF
5891 # Check whether --with-c-include-dirs was given.
5892 if test "${with_c_include_dirs+set}" = set; then
5893   withval=$with_c_include_dirs;
5894 else
5895   withval=""
5896 fi
5899 cat >>confdefs.h <<_ACEOF
5900 #define C_INCLUDE_DIRS "$withval"
5901 _ACEOF
5904 # Clang normally uses the system c++ headers and libraries. With this option,
5905 # clang will use the ones provided by a gcc installation instead. This option should
5906 # be passed the same value that was used with --prefix when configuring gcc.
5908 # Check whether --with-gcc-toolchain was given.
5909 if test "${with_gcc_toolchain+set}" = set; then
5910   withval=$with_gcc_toolchain;
5911 else
5912   withval=""
5913 fi
5916 cat >>confdefs.h <<_ACEOF
5917 #define GCC_INSTALL_PREFIX "$withval"
5918 _ACEOF
5922 # Check whether --with-default-sysroot was given.
5923 if test "${with_default_sysroot+set}" = set; then
5924   withval=$with_default_sysroot;
5925 else
5926   withval=""
5927 fi
5930 cat >>confdefs.h <<_ACEOF
5931 #define DEFAULT_SYSROOT "$withval"
5932 _ACEOF
5936 # Check whether --with-binutils-include was given.
5937 if test "${with_binutils_include+set}" = set; then
5938   withval=$with_binutils_include;
5939 else
5940   withval=default
5941 fi
5943 case "$withval" in
5944   default) WITH_BINUTILS_INCDIR=default ;;
5945   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5946   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5947 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5948    { (exit 1); exit 1; }; } ;;
5949 esac
5950 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5951   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5953   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5954      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5955      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5956 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5957    { (exit 1); exit 1; }; };
5958   fi
5959 fi
5962 # Check whether --with-bug-report-url was given.
5963 if test "${with_bug_report_url+set}" = set; then
5964   withval=$with_bug_report_url;
5965 else
5966   withval="http://llvm.org/bugs/"
5967 fi
5970 cat >>confdefs.h <<_ACEOF
5971 #define BUG_REPORT_URL "$withval"
5972 _ACEOF
5975 # Check whether --enable-libffi was given.
5976 if test "${enable_libffi+set}" = set; then
5977   enableval=$enable_libffi; case "$enableval" in
5978     yes) llvm_cv_enable_libffi="yes" ;;
5979     no)  llvm_cv_enable_libffi="no"  ;;
5980     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5981 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5982    { (exit 1); exit 1; }; } ;;
5983   esac
5984 else
5985   llvm_cv_enable_libffi=no
5986 fi
5990 # Check whether --with-internal-prefix was given.
5991 if test "${with_internal_prefix+set}" = set; then
5992   withval=$with_internal_prefix;
5993 else
5994   withval=""
5995 fi
5997 INTERNAL_PREFIX=$withval
6001 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6002 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6003 if test "${lt_cv_path_NM+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$NM"; then
6007   # Let the user override the test.
6008   lt_cv_path_NM="$NM"
6009 else
6010   lt_nm_to_check="${ac_tool_prefix}nm"
6011   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6012     lt_nm_to_check="$lt_nm_to_check nm"
6013   fi
6014   for lt_tmp_nm in $lt_nm_to_check; do
6015     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6017       IFS="$lt_save_ifs"
6018       test -z "$ac_dir" && ac_dir=.
6019       tmp_nm="$ac_dir/$lt_tmp_nm"
6020       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6021         # Check to see if the nm accepts a BSD-compat flag.
6022         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6023         #   nm: unknown option "B" ignored
6024         # Tru64's nm complains that /dev/null is an invalid object file
6025         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6026         */dev/null* | *'Invalid file or object type'*)
6027           lt_cv_path_NM="$tmp_nm -B"
6028           break
6029           ;;
6030         *)
6031           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6032           */dev/null*)
6033             lt_cv_path_NM="$tmp_nm -p"
6034             break
6035             ;;
6036           *)
6037             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6038             continue # so that we can try to find one that supports BSD flags
6039             ;;
6040           esac
6041           ;;
6042         esac
6043       fi
6044     done
6045     IFS="$lt_save_ifs"
6046   done
6047   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6048 fi
6049 fi
6050 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6051 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6052 NM="$lt_cv_path_NM"
6056 { echo "$as_me:$LINENO: checking for GNU make" >&5
6057 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6058 if test "${llvm_cv_gnu_make_command+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   llvm_cv_gnu_make_command=''
6062  for a in "$MAKE" make gmake gnumake ; do
6063   if test -z "$a" ; then continue ; fi ;
6064   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6065   then
6066    llvm_cv_gnu_make_command=$a ;
6067    break;
6068   fi
6069  done
6070 fi
6071 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6072 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6073  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6074    ifGNUmake='' ;
6075  else
6076    ifGNUmake='#' ;
6077    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6078 echo "${ECHO_T}\"Not found\"" >&6; };
6079  fi
6082 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6083 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6084 LN_S=$as_ln_s
6085 if test "$LN_S" = "ln -s"; then
6086   { echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6090 echo "${ECHO_T}no, using $LN_S" >&6; }
6091 fi
6093 # Extract the first word of "cmp", so it can be a program name with args.
6094 set dummy cmp; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_path_CMP+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   case $CMP in
6101   [\\/]* | ?:[\\/]*)
6102   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6103   ;;
6104   *)
6105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110   for ac_exec_ext in '' $ac_executable_extensions; do
6111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6112     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6120   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6121   ;;
6122 esac
6123 fi
6124 CMP=$ac_cv_path_CMP
6125 if test -n "$CMP"; then
6126   { echo "$as_me:$LINENO: result: $CMP" >&5
6127 echo "${ECHO_T}$CMP" >&6; }
6128 else
6129   { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6131 fi
6134 # Extract the first word of "cp", so it can be a program name with args.
6135 set dummy cp; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_CP+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   case $CP in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6161   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6162   ;;
6163 esac
6164 fi
6165 CP=$ac_cv_path_CP
6166 if test -n "$CP"; then
6167   { echo "$as_me:$LINENO: result: $CP" >&5
6168 echo "${ECHO_T}$CP" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6175 # Extract the first word of "date", so it can be a program name with args.
6176 set dummy date; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_DATE+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $DATE in
6183   [\\/]* | ?:[\\/]*)
6184   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6185   ;;
6186   *)
6187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6202   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6203   ;;
6204 esac
6205 fi
6206 DATE=$ac_cv_path_DATE
6207 if test -n "$DATE"; then
6208   { echo "$as_me:$LINENO: result: $DATE" >&5
6209 echo "${ECHO_T}$DATE" >&6; }
6210 else
6211   { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6213 fi
6216 # Extract the first word of "find", so it can be a program name with args.
6217 set dummy find; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_FIND+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   case $FIND in
6224   [\\/]* | ?:[\\/]*)
6225   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6226   ;;
6227   *)
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233   for ac_exec_ext in '' $ac_executable_extensions; do
6234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237     break 2
6238   fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6243   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6244   ;;
6245 esac
6246 fi
6247 FIND=$ac_cv_path_FIND
6248 if test -n "$FIND"; then
6249   { echo "$as_me:$LINENO: result: $FIND" >&5
6250 echo "${ECHO_T}$FIND" >&6; }
6251 else
6252   { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6254 fi
6257 # Extract the first word of "grep", so it can be a program name with args.
6258 set dummy grep; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_GREP+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $GREP in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6284   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6285   ;;
6286 esac
6287 fi
6288 GREP=$ac_cv_path_GREP
6289 if test -n "$GREP"; then
6290   { echo "$as_me:$LINENO: result: $GREP" >&5
6291 echo "${ECHO_T}$GREP" >&6; }
6292 else
6293   { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6295 fi
6298 # Extract the first word of "mkdir", so it can be a program name with args.
6299 set dummy mkdir; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_MKDIR+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $MKDIR in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6308   ;;
6309   *)
6310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6325   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6326   ;;
6327 esac
6328 fi
6329 MKDIR=$ac_cv_path_MKDIR
6330 if test -n "$MKDIR"; then
6331   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6332 echo "${ECHO_T}$MKDIR" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6339 # Extract the first word of "mv", so it can be a program name with args.
6340 set dummy mv; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_MV+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   case $MV in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6366   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6367   ;;
6368 esac
6369 fi
6370 MV=$ac_cv_path_MV
6371 if test -n "$MV"; then
6372   { echo "$as_me:$LINENO: result: $MV" >&5
6373 echo "${ECHO_T}$MV" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6380 if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   if test -n "$RANLIB"; then
6389   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6406 fi
6407 fi
6408 RANLIB=$ac_cv_prog_RANLIB
6409 if test -n "$RANLIB"; then
6410   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6411 echo "${ECHO_T}$RANLIB" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6418 fi
6419 if test -z "$ac_cv_prog_RANLIB"; then
6420   ac_ct_RANLIB=$RANLIB
6421   # Extract the first word of "ranlib", so it can be a program name with args.
6422 set dummy ranlib; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   if test -n "$ac_ct_RANLIB"; then
6429   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_ac_ct_RANLIB="ranlib"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6446 fi
6447 fi
6448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449 if test -n "$ac_ct_RANLIB"; then
6450   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6451 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6452 else
6453   { echo "$as_me:$LINENO: result: no" >&5
6454 echo "${ECHO_T}no" >&6; }
6455 fi
6457   if test "x$ac_ct_RANLIB" = x; then
6458     RANLIB=":"
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet.  If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&5
6465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet.  If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     RANLIB=$ac_ct_RANLIB
6471   fi
6472 else
6473   RANLIB="$ac_cv_prog_RANLIB"
6474 fi
6476 if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$AR"; then
6485   ac_cv_prog_AR="$AR" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_AR="${ac_tool_prefix}ar"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6502 fi
6503 fi
6504 AR=$ac_cv_prog_AR
6505 if test -n "$AR"; then
6506   { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6508 else
6509   { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6511 fi
6514 fi
6515 if test -z "$ac_cv_prog_AR"; then
6516   ac_ct_AR=$AR
6517   # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   if test -n "$ac_ct_AR"; then
6525   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_ac_ct_AR="ar"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6542 fi
6543 fi
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6553   if test "x$ac_ct_AR" = x; then
6554     AR="false"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     AR=$ac_ct_AR
6567   fi
6568 else
6569   AR="$ac_cv_prog_AR"
6570 fi
6572 # Extract the first word of "rm", so it can be a program name with args.
6573 set dummy rm; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_RM+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   case $RM in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6599   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6600   ;;
6601 esac
6602 fi
6603 RM=$ac_cv_path_RM
6604 if test -n "$RM"; then
6605   { echo "$as_me:$LINENO: result: $RM" >&5
6606 echo "${ECHO_T}$RM" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6610 fi
6613 # Extract the first word of "sed", so it can be a program name with args.
6614 set dummy sed; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_SED+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $SED in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6640   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6641   ;;
6642 esac
6643 fi
6644 SED=$ac_cv_path_SED
6645 if test -n "$SED"; then
6646   { echo "$as_me:$LINENO: result: $SED" >&5
6647 echo "${ECHO_T}$SED" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6654 # Extract the first word of "tar", so it can be a program name with args.
6655 set dummy tar; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TAR+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $TAR in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6681   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6682   ;;
6683 esac
6684 fi
6685 TAR=$ac_cv_path_TAR
6686 if test -n "$TAR"; then
6687   { echo "$as_me:$LINENO: result: $TAR" >&5
6688 echo "${ECHO_T}$TAR" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6695 # Extract the first word of "pwd", so it can be a program name with args.
6696 set dummy pwd; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_BINPWD+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $BINPWD in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6722   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6723   ;;
6724 esac
6725 fi
6726 BINPWD=$ac_cv_path_BINPWD
6727 if test -n "$BINPWD"; then
6728   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729 echo "${ECHO_T}$BINPWD" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6737 # Extract the first word of "Graphviz", so it can be a program name with args.
6738 set dummy Graphviz; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $GRAPHVIZ in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6764   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6765   ;;
6766 esac
6767 fi
6768 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769 if test -n "$GRAPHVIZ"; then
6770   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6778 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GRAPHVIZ 1
6782 _ACEOF
6784     if test "$llvm_cv_os_type" = "MingW" ; then
6785     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786   fi
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6790 _ACEOF
6792 fi
6793 # Extract the first word of "dot", so it can be a program name with args.
6794 set dummy dot; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOT+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   case $DOT in
6801   [\\/]* | ?:[\\/]*)
6802   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6803   ;;
6804   *)
6805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6820   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821   ;;
6822 esac
6823 fi
6824 DOT=$ac_cv_path_DOT
6825 if test -n "$DOT"; then
6826   { echo "$as_me:$LINENO: result: $DOT" >&5
6827 echo "${ECHO_T}$DOT" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6834 if test "$DOT" != "echo dot" ; then
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_DOT 1
6838 _ACEOF
6840     if test "$llvm_cv_os_type" = "MingW" ; then
6841     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842   fi
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846 _ACEOF
6848 fi
6849 # Extract the first word of "fdp", so it can be a program name with args.
6850 set dummy fdp; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_FDP+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   case $FDP in
6857   [\\/]* | ?:[\\/]*)
6858   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6859   ;;
6860   *)
6861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6876   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6877   ;;
6878 esac
6879 fi
6880 FDP=$ac_cv_path_FDP
6881 if test -n "$FDP"; then
6882   { echo "$as_me:$LINENO: result: $FDP" >&5
6883 echo "${ECHO_T}$FDP" >&6; }
6884 else
6885   { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6887 fi
6890 if test "$FDP" != "echo fdp" ; then
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_FDP 1
6894 _ACEOF
6896     if test "$llvm_cv_os_type" = "MingW" ; then
6897     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898   fi
6900 cat >>confdefs.h <<_ACEOF
6901 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6902 _ACEOF
6904 fi
6905 # Extract the first word of "neato", so it can be a program name with args.
6906 set dummy neato; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_NEATO+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $NEATO in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6932   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6933   ;;
6934 esac
6935 fi
6936 NEATO=$ac_cv_path_NEATO
6937 if test -n "$NEATO"; then
6938   { echo "$as_me:$LINENO: result: $NEATO" >&5
6939 echo "${ECHO_T}$NEATO" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6946 if test "$NEATO" != "echo neato" ; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_NEATO 1
6950 _ACEOF
6952     if test "$llvm_cv_os_type" = "MingW" ; then
6953     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6954   fi
6956 cat >>confdefs.h <<_ACEOF
6957 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6958 _ACEOF
6960 fi
6961 # Extract the first word of "twopi", so it can be a program name with args.
6962 set dummy twopi; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_path_TWOPI+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   case $TWOPI in
6969   [\\/]* | ?:[\\/]*)
6970   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6971   ;;
6972   *)
6973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978   for ac_exec_ext in '' $ac_executable_extensions; do
6979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6988   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6989   ;;
6990 esac
6991 fi
6992 TWOPI=$ac_cv_path_TWOPI
6993 if test -n "$TWOPI"; then
6994   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6995 echo "${ECHO_T}$TWOPI" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7002 if test "$TWOPI" != "echo twopi" ; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_TWOPI 1
7006 _ACEOF
7008     if test "$llvm_cv_os_type" = "MingW" ; then
7009     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010   fi
7012 cat >>confdefs.h <<_ACEOF
7013 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7014 _ACEOF
7016 fi
7017 # Extract the first word of "circo", so it can be a program name with args.
7018 set dummy circo; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_CIRCO+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $CIRCO in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7044   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7045   ;;
7046 esac
7047 fi
7048 CIRCO=$ac_cv_path_CIRCO
7049 if test -n "$CIRCO"; then
7050   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7051 echo "${ECHO_T}$CIRCO" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7058 if test "$CIRCO" != "echo circo" ; then
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_CIRCO 1
7062 _ACEOF
7064     if test "$llvm_cv_os_type" = "MingW" ; then
7065     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7066   fi
7068 cat >>confdefs.h <<_ACEOF
7069 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7070 _ACEOF
7072 fi
7073 for ac_prog in gv gsview32
7074 do
7075   # Extract the first word of "$ac_prog", so it can be a program name with args.
7076 set dummy $ac_prog; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_GV+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   case $GV in
7083   [\\/]* | ?:[\\/]*)
7084   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7085   ;;
7086   *)
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7102   ;;
7103 esac
7104 fi
7105 GV=$ac_cv_path_GV
7106 if test -n "$GV"; then
7107   { echo "$as_me:$LINENO: result: $GV" >&5
7108 echo "${ECHO_T}$GV" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7115   test -n "$GV" && break
7116 done
7117 test -n "$GV" || GV="echo gv"
7119 if test "$GV" != "echo gv" ; then
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_GV 1
7123 _ACEOF
7125     if test "$llvm_cv_os_type" = "MingW" ; then
7126     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7127   fi
7129 cat >>confdefs.h <<_ACEOF
7130 #define LLVM_PATH_GV "$GV${EXEEXT}"
7131 _ACEOF
7133 fi
7134 # Extract the first word of "dotty", so it can be a program name with args.
7135 set dummy dotty; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_path_DOTTY+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   case $DOTTY in
7142   [\\/]* | ?:[\\/]*)
7143   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7144   ;;
7145   *)
7146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7161   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7162   ;;
7163 esac
7164 fi
7165 DOTTY=$ac_cv_path_DOTTY
7166 if test -n "$DOTTY"; then
7167   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7168 echo "${ECHO_T}$DOTTY" >&6; }
7169 else
7170   { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7172 fi
7175 if test "$DOTTY" != "echo dotty" ; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define HAVE_DOTTY 1
7179 _ACEOF
7181     if test "$llvm_cv_os_type" = "MingW" ; then
7182     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7183   fi
7185 cat >>confdefs.h <<_ACEOF
7186 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7187 _ACEOF
7189 fi
7190 # Extract the first word of "xdot.py", so it can be a program name with args.
7191 set dummy xdot.py; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   case $XDOT_PY in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7200   ;;
7201   *)
7202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7217   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7218   ;;
7219 esac
7220 fi
7221 XDOT_PY=$ac_cv_path_XDOT_PY
7222 if test -n "$XDOT_PY"; then
7223   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7224 echo "${ECHO_T}$XDOT_PY" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7231 if test "$XDOT_PY" != "echo xdot.py" ; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_XDOT_PY 1
7235 _ACEOF
7237     if test "$llvm_cv_os_type" = "MingW" ; then
7238     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239   fi
7241 cat >>confdefs.h <<_ACEOF
7242 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7243 _ACEOF
7245 fi
7247 # Find a good install program.  We prefer a C program (faster),
7248 # so one script is as good as another.  But avoid the broken or
7249 # incompatible versions:
7250 # SysV /etc/install, /usr/sbin/install
7251 # SunOS /usr/etc/install
7252 # IRIX /sbin/install
7253 # AIX /bin/install
7254 # AmigaOS /C/install, which installs bootblocks on floppy discs
7255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7258 # OS/2's system install, which has a completely different semantic
7259 # ./install, which can be erroneously created by make from ./install.sh.
7260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7262 if test -z "$INSTALL"; then
7263 if test "${ac_cv_path_install+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   # Account for people who put trailing slashes in PATH elements.
7272 case $as_dir/ in
7273   ./ | .// | /cC/* | \
7274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7276   /usr/ucb/* ) ;;
7277   *)
7278     # OSF1 and SCO ODT 3.0 have their own names for install.
7279     # Don't use installbsd from OSF since it installs stuff as root
7280     # by default.
7281     for ac_prog in ginstall scoinst install; do
7282       for ac_exec_ext in '' $ac_executable_extensions; do
7283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7284           if test $ac_prog = install &&
7285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7286             # AIX install.  It has an incompatible calling convention.
7287             :
7288           elif test $ac_prog = install &&
7289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7290             # program-specific install script used by HP pwplus--don't use.
7291             :
7292           else
7293             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7294             break 3
7295           fi
7296         fi
7297       done
7298     done
7299     ;;
7300 esac
7301 done
7302 IFS=$as_save_IFS
7305 fi
7306   if test "${ac_cv_path_install+set}" = set; then
7307     INSTALL=$ac_cv_path_install
7308   else
7309     # As a last resort, use the slow shell script.  Don't cache a
7310     # value for INSTALL within a source directory, because that will
7311     # break other packages using the cache if that directory is
7312     # removed, or if the value is a relative name.
7313     INSTALL=$ac_install_sh
7314   fi
7315 fi
7316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7317 echo "${ECHO_T}$INSTALL" >&6; }
7319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7320 # It thinks the first close brace ends the variable substitution.
7321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7327 case "$INSTALL" in
7328  [\\/$]* | ?:[\\/]* ) ;;
7329  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7330 esac
7332 # Extract the first word of "bzip2", so it can be a program name with args.
7333 set dummy bzip2; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_BZIP2+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   case $BZIP2 in
7340   [\\/]* | ?:[\\/]*)
7341   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7342   ;;
7343   *)
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7359   ;;
7360 esac
7361 fi
7362 BZIP2=$ac_cv_path_BZIP2
7363 if test -n "$BZIP2"; then
7364   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7365 echo "${ECHO_T}$BZIP2" >&6; }
7366 else
7367   { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369 fi
7372 # Extract the first word of "cat", so it can be a program name with args.
7373 set dummy cat; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_path_CAT+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   case $CAT in
7380   [\\/]* | ?:[\\/]*)
7381   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7382   ;;
7383   *)
7384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389   for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7399   ;;
7400 esac
7401 fi
7402 CAT=$ac_cv_path_CAT
7403 if test -n "$CAT"; then
7404   { echo "$as_me:$LINENO: result: $CAT" >&5
7405 echo "${ECHO_T}$CAT" >&6; }
7406 else
7407   { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7409 fi
7412 # Extract the first word of "doxygen", so it can be a program name with args.
7413 set dummy doxygen; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $DOXYGEN in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7439   ;;
7440 esac
7441 fi
7442 DOXYGEN=$ac_cv_path_DOXYGEN
7443 if test -n "$DOXYGEN"; then
7444   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7445 echo "${ECHO_T}$DOXYGEN" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7452 # Extract the first word of "groff", so it can be a program name with args.
7453 set dummy groff; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GROFF+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $GROFF in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7479   ;;
7480 esac
7481 fi
7482 GROFF=$ac_cv_path_GROFF
7483 if test -n "$GROFF"; then
7484   { echo "$as_me:$LINENO: result: $GROFF" >&5
7485 echo "${ECHO_T}$GROFF" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7492 # Extract the first word of "gzip", so it can be a program name with args.
7493 set dummy gzip; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $GZIPBIN in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7519   ;;
7520 esac
7521 fi
7522 GZIPBIN=$ac_cv_path_GZIPBIN
7523 if test -n "$GZIPBIN"; then
7524   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7525 echo "${ECHO_T}$GZIPBIN" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7532 # Extract the first word of "pdfroff", so it can be a program name with args.
7533 set dummy pdfroff; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_path_PDFROFF+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   case $PDFROFF in
7540   [\\/]* | ?:[\\/]*)
7541   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7542   ;;
7543   *)
7544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549   for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7559   ;;
7560 esac
7561 fi
7562 PDFROFF=$ac_cv_path_PDFROFF
7563 if test -n "$PDFROFF"; then
7564   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7565 echo "${ECHO_T}$PDFROFF" >&6; }
7566 else
7567   { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7569 fi
7572 # Extract the first word of "zip", so it can be a program name with args.
7573 set dummy zip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_ZIP+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $ZIP in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7599   ;;
7600 esac
7601 fi
7602 ZIP=$ac_cv_path_ZIP
7603 if test -n "$ZIP"; then
7604   { echo "$as_me:$LINENO: result: $ZIP" >&5
7605 echo "${ECHO_T}$ZIP" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7612 for ac_prog in ocamlc
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_OCAMLC+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $OCAMLC in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7641   ;;
7642 esac
7643 fi
7644 OCAMLC=$ac_cv_path_OCAMLC
7645 if test -n "$OCAMLC"; then
7646   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647 echo "${ECHO_T}$OCAMLC" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7654   test -n "$OCAMLC" && break
7655 done
7657 for ac_prog in ocamlopt
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $OCAMLOPT in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7686   ;;
7687 esac
7688 fi
7689 OCAMLOPT=$ac_cv_path_OCAMLOPT
7690 if test -n "$OCAMLOPT"; then
7691   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692 echo "${ECHO_T}$OCAMLOPT" >&6; }
7693 else
7694   { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7696 fi
7699   test -n "$OCAMLOPT" && break
7700 done
7702 for ac_prog in ocamldep
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $OCAMLDEP in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7731   ;;
7732 esac
7733 fi
7734 OCAMLDEP=$ac_cv_path_OCAMLDEP
7735 if test -n "$OCAMLDEP"; then
7736   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737 echo "${ECHO_T}$OCAMLDEP" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7744   test -n "$OCAMLDEP" && break
7745 done
7747 for ac_prog in ocamldoc
7748 do
7749   # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   case $OCAMLDOC in
7757   [\\/]* | ?:[\\/]*)
7758   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7759   ;;
7760   *)
7761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7768     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7776   ;;
7777 esac
7778 fi
7779 OCAMLDOC=$ac_cv_path_OCAMLDOC
7780 if test -n "$OCAMLDOC"; then
7781   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782 echo "${ECHO_T}$OCAMLDOC" >&6; }
7783 else
7784   { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7786 fi
7789   test -n "$OCAMLDOC" && break
7790 done
7792 for ac_prog in gas as
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GAS+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   case $GAS in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7821   ;;
7822 esac
7823 fi
7824 GAS=$ac_cv_path_GAS
7825 if test -n "$GAS"; then
7826   { echo "$as_me:$LINENO: result: $GAS" >&5
7827 echo "${ECHO_T}$GAS" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7834   test -n "$GAS" && break
7835 done
7838 { echo "$as_me:$LINENO: checking for linker version" >&5
7839 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_version+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7844    version_string="$(ld -v 2>&1 | head -1)"
7846    # Check for ld64.
7847    if (echo "$version_string" | grep -q "ld64"); then
7848      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7849    else
7850      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7851    fi
7853 fi
7854 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7857 cat >>confdefs.h <<_ACEOF
7858 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7859 _ACEOF
7863 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865 if test "${llvm_cv_link_use_r+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868    ac_ext=c
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874   oldcflags="$CFLAGS"
7875   CFLAGS="$CFLAGS -Wl,-R."
7876   cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7883 int
7884 main ()
7887   ;
7888   return 0;
7890 _ACEOF
7891 rm -f conftest.$ac_objext conftest$ac_exeext
7892 if { (ac_try="$ac_link"
7893 case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_link") 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906   { (case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_try") 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_try") 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; }; then
7925   llvm_cv_link_use_r=yes
7926 else
7927   echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930         llvm_cv_link_use_r=no
7931 fi
7933 rm -f core conftest.err conftest.$ac_objext \
7934       conftest$ac_exeext conftest.$ac_ext
7935   CFLAGS="$oldcflags"
7936   ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 fi
7944 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7946 if test "$llvm_cv_link_use_r" = yes ; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_LINK_R 1
7950 _ACEOF
7952   fi
7955 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960    ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966   oldcflags="$CFLAGS"
7967   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7975 int
7976 main ()
7979   ;
7980   return 0;
7982 _ACEOF
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_link") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest$ac_exeext'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   llvm_cv_link_use_export_dynamic=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022         llvm_cv_link_use_export_dynamic=no
8023 fi
8025 rm -f core conftest.err conftest.$ac_objext \
8026       conftest$ac_exeext conftest.$ac_ext
8027   CFLAGS="$oldcflags"
8028   ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035 fi
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8038 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_LINK_EXPORT_DYNAMIC 1
8042 _ACEOF
8044   fi
8047 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049 if test "${llvm_cv_link_use_version_script+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052    ac_ext=c
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8058   oldcflags="$CFLAGS"
8060   # The following code is from the autoconf manual,
8061   # "11.13: Limitations of Usual Tools".
8062   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063   # Use mktemp if possible; otherwise fall back on mkdir,
8064   # with $RANDOM to make collisions less likely.
8065   : ${TMPDIR=/tmp}
8066   {
8067     tmp=`
8068       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8069     ` &&
8070     test -n "$tmp" && test -d "$tmp"
8071   } || {
8072     tmp=$TMPDIR/foo$$-$RANDOM
8073     (umask 077 && mkdir "$tmp")
8074   } || exit $?
8076   echo "{" > "$tmp/export.map"
8077   echo "  global: main;" >> "$tmp/export.map"
8078   echo "  local: *;" >> "$tmp/export.map"
8079   echo "};" >> "$tmp/export.map"
8081   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8089 int
8090 main ()
8093   ;
8094   return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_link") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   llvm_cv_link_use_version_script=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136         llvm_cv_link_use_version_script=no
8137 fi
8139 rm -f core conftest.err conftest.$ac_objext \
8140       conftest$ac_exeext conftest.$ac_ext
8141   rm "$tmp/export.map"
8142   rmdir "$tmp"
8143   CFLAGS="$oldcflags"
8144   ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8151 fi
8152 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154 if test "$llvm_cv_link_use_version_script" = yes ; then
8155   HAVE_LINK_VERSION_SCRIPT=1
8157   fi
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8174 int
8175 main ()
8177 /* FIXME: Include the comments suggested by Paul. */
8178 #ifndef __cplusplus
8179   /* Ultrix mips cc rejects this.  */
8180   typedef int charset[2];
8181   const charset x;
8182   /* SunOS 4.1.1 cc rejects this.  */
8183   char const *const *ccp;
8184   char **p;
8185   /* NEC SVR4.0.2 mips cc rejects this.  */
8186   struct point {int x, y;};
8187   static struct point const zero = {0,0};
8188   /* AIX XL C 1.02.0.0 rejects this.
8189      It does not let you subtract one const X* pointer from another in
8190      an arm of an if-expression whose if-part is not a constant
8191      expression */
8192   const char *g = "string";
8193   ccp = &g + (g ? g-g : 0);
8194   /* HPUX 7.0 cc rejects these. */
8195   ++ccp;
8196   p = (char**) ccp;
8197   ccp = (char const *const *) p;
8198   { /* SCO 3.2v4 cc rejects this.  */
8199     char *t;
8200     char const *s = 0 ? (char *) 0 : (char const *) 0;
8202     *t++ = 0;
8203     if (s) return 0;
8204   }
8205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8206     int x[] = {25, 17};
8207     const int *foo = &x[0];
8208     ++foo;
8209   }
8210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211     typedef const int *iptr;
8212     iptr p = 0;
8213     ++p;
8214   }
8215   { /* AIX XL C 1.02.0.0 rejects this saying
8216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217     struct s { int j; const int *ap[3]; };
8218     struct s *b; b->j = 5;
8219   }
8220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221     const int foo = 10;
8222     if (!foo) return 0;
8223   }
8224   return !x[0] && !zero.x;
8225 #endif
8227   ;
8228   return 0;
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_compile") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246   { (case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_try") 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_cv_c_const=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270         ac_cv_c_const=no
8271 fi
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define const
8281 _ACEOF
8283 fi
8290 ac_header_dirent=no
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 #include <sys/types.h>
8305 #include <$ac_hdr>
8307 int
8308 main ()
8310 if ((DIR *) 0)
8311 return 0;
8312   ;
8313   return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331   { (case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_try") 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest.$ac_objext'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   eval "$as_ac_Header=yes"
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355         eval "$as_ac_Header=no"
8356 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361                { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364   cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8366 _ACEOF
8368 ac_header_dirent=$ac_hdr; break
8369 fi
8371 done
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8387 /* Override any GCC internal prototype to avoid an error.
8388    Use char because int might match the return type of a GCC
8389    builtin and then its argument prototype would still apply.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 char opendir ();
8394 int
8395 main ()
8397 return opendir ();
8398   ;
8399   return 0;
8401 _ACEOF
8402 for ac_lib in '' dir; do
8403   if test -z "$ac_lib"; then
8404     ac_res="none required"
8405   else
8406     ac_res=-l$ac_lib
8407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8408   fi
8409   rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_link") 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest$ac_exeext'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_search_opendir=$ac_res
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8449 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext
8453   if test "${ac_cv_search_opendir+set}" = set; then
8454   break
8455 fi
8456 done
8457 if test "${ac_cv_search_opendir+set}" = set; then
8458   :
8459 else
8460   ac_cv_search_opendir=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8471 fi
8473 else
8474   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8487 /* Override any GCC internal prototype to avoid an error.
8488    Use char because int might match the return type of a GCC
8489    builtin and then its argument prototype would still apply.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char opendir ();
8494 int
8495 main ()
8497 return opendir ();
8498   ;
8499   return 0;
8501 _ACEOF
8502 for ac_lib in '' x; do
8503   if test -z "$ac_lib"; then
8504     ac_res="none required"
8505   else
8506     ac_res=-l$ac_lib
8507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8508   fi
8509   rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_link") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524   { (case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_try") 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_search_opendir=$ac_res
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8549 fi
8551 rm -f core conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext
8553   if test "${ac_cv_search_opendir+set}" = set; then
8554   break
8555 fi
8556 done
8557 if test "${ac_cv_search_opendir+set}" = set; then
8558   :
8559 else
8560   ac_cv_search_opendir=no
8561 fi
8562 rm conftest.$ac_ext
8563 LIBS=$ac_func_search_save_LIBS
8564 fi
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8571 fi
8573 fi
8576 for ac_header in dlfcn.h
8577 do
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 fi
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586                { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8588 else
8589   # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598 $ac_includes_default
8599 #include <$ac_header>
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; } &&
8625          { ac_try='test -s conftest.$ac_objext'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_header_compiler=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640         ac_header_compiler=no
8641 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } >/dev/null; then
8671   if test -s conftest.err; then
8672     ac_cpp_err=$ac_c_preproc_warn_flag
8673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674   else
8675     ac_cpp_err=
8676   fi
8677 else
8678   ac_cpp_err=yes
8679 fi
8680 if test -z "$ac_cpp_err"; then
8681   ac_header_preproc=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686   ac_header_preproc=no
8687 fi
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8693 # So?  What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695   yes:no: )
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700     ac_header_preproc=yes
8701     ;;
8702   no:yes:* )
8703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715     ( cat <<\_ASBOX
8716 ## ------------------------------------ ##
8717 ## Report this to http://llvm.org/bugs/ ##
8718 ## ------------------------------------ ##
8719 _ASBOX
8720      ) | sed "s/^/$as_me: WARNING:     /" >&2
8721     ;;
8722 esac
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   eval "$as_ac_Header=\$ac_header_preproc"
8729 fi
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731                { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8734 fi
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8740 fi
8742 done
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746   enableval=$enable_ltdl_install;
8747 fi
8752 if test x"${enable_ltdl_install-no}" != xno; then
8753   INSTALL_LTDL_TRUE=
8754   INSTALL_LTDL_FALSE='#'
8755 else
8756   INSTALL_LTDL_TRUE='#'
8757   INSTALL_LTDL_FALSE=
8758 fi
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763   CONVENIENCE_LTDL_TRUE=
8764   CONVENIENCE_LTDL_FALSE='#'
8765 else
8766   CONVENIENCE_LTDL_TRUE='#'
8767   CONVENIENCE_LTDL_FALSE=
8768 fi
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 library_names_spec=
8774 libname_spec='lib$name'
8775 soname_spec=
8776 shrext_cmds=".so"
8777 postinstall_cmds=
8778 postuninstall_cmds=
8779 finish_cmds=
8780 finish_eval=
8781 shlibpath_var=
8782 shlibpath_overrides_runpath=unknown
8783 version_type=none
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789     # if the path contains ";" then we assume it to be the separator
8790     # otherwise default to the standard path separator (i.e. ":") - it is
8791     # assumed that no part of a normal pathname contains ";" but that should
8792     # okay in the real world where ";" in dirpaths is itself problematic.
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794   else
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8796   fi
8797 else
8798   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 fi
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8807 case $host_os in
8808 aix3*)
8809   version_type=linux
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811   shlibpath_var=LIBPATH
8813   # AIX 3 has no versioning support, so we append a major version to the name.
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   ;;
8817 aix4* | aix5*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   hardcode_into_libs=yes
8822   if test "$host_cpu" = ia64; then
8823     # AIX 5 supports IA64
8824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825     shlibpath_var=LD_LIBRARY_PATH
8826   else
8827     # With GCC up to 2.95.x, collect2 would create an import file
8828     # for dependence libraries.  The import file would start with
8829     # the line `#! .'.  This would cause the generated library to
8830     # depend on `.', always an invalid library.  This was fixed in
8831     # development snapshots of GCC prior to 3.0.
8832     case $host_os in
8833       aix4 | aix4.[01] | aix4.[01].*)
8834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835            echo ' yes '
8836            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837         :
8838       else
8839         can_build_shared=no
8840       fi
8841       ;;
8842     esac
8843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844     # soname into executable. Probably we can add versioning support to
8845     # collect2, so additional links can be useful in future.
8846     if test "$aix_use_runtimelinking" = yes; then
8847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848       # instead of lib<name>.a to let people know that these are not
8849       # typical AIX shared libraries.
8850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     else
8852       # We preserve .a as extension for shared libraries through AIX4.2
8853       # and later when we are not doing run time linking.
8854       library_names_spec='${libname}${release}.a $libname.a'
8855       soname_spec='${libname}${release}${shared_ext}$major'
8856     fi
8857     shlibpath_var=LIBPATH
8858   fi
8859   ;;
8861 amigaos*)
8862   library_names_spec='$libname.ixlibrary $libname.a'
8863   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864   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'
8865   ;;
8867 beos*)
8868   library_names_spec='${libname}${shared_ext}'
8869   dynamic_linker="$host_os ld.so"
8870   shlibpath_var=LIBRARY_PATH
8871   ;;
8873 bsdi[45]*)
8874   version_type=linux
8875   need_version=no
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882   # the default ld.so.conf also contains /usr/contrib/lib and
8883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884   # libtool to hard-code these into programs
8885   ;;
8887 cygwin* | mingw* | pw32*)
8888   version_type=windows
8889   shrext_cmds=".dll"
8890   need_version=no
8891   need_lib_prefix=no
8893   case $GCC,$host_os in
8894   yes,cygwin* | yes,mingw* | yes,pw32*)
8895     library_names_spec='$libname.dll.a'
8896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897     postinstall_cmds='base_file=`basename \${file}`~
8898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899       dldir=$destdir/`dirname \$dlpath`~
8900       test -d \$dldir || mkdir -p \$dldir~
8901       $install_prog $dir/$dlname \$dldir/$dlname~
8902       chmod a+x \$dldir/$dlname'
8903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904       dlpath=$dir/\$dldll~
8905        $rm \$dlpath'
8906     shlibpath_overrides_runpath=yes
8908     case $host_os in
8909     cygwin*)
8910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913       ;;
8914     mingw*)
8915       # MinGW DLLs use traditional 'lib' prefix
8916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919         # It is most probably a Windows format PATH printed by
8920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921         # path with ; separators, and with drive letters. We can handle the
8922         # drive letters (cygwin fileutils understands them), so leave them,
8923         # especially as we might pass files found there to a mingw objdump,
8924         # which wouldn't understand a cygwinified path. Ahh.
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926       else
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8928       fi
8929       ;;
8930     pw32*)
8931       # pw32 DLLs use 'pw' prefix rather than 'lib'
8932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933       ;;
8934     esac
8935     ;;
8937   *)
8938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939     ;;
8940   esac
8941   dynamic_linker='Win32 ld.exe'
8942   # FIXME: first we should search . and the directory the executable is in
8943   shlibpath_var=PATH
8944   ;;
8946 darwin* | rhapsody*)
8947   dynamic_linker="$host_os dyld"
8948   version_type=darwin
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952   soname_spec='${libname}${release}${major}$shared_ext'
8953   shlibpath_overrides_runpath=yes
8954   shlibpath_var=DYLD_LIBRARY_PATH
8955   shrext_cmds='.dylib'
8956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957   if test "$GCC" = yes; then
8958     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"`
8959   else
8960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961   fi
8962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963   ;;
8965 dgux*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   ;;
8974 freebsd1.*)
8975   dynamic_linker=no
8976   ;;
8978 kfreebsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8990 freebsd* | dragonfly*)
8991   # DragonFly does not have aout.  When/if they implement a new
8992   # versioning mechanism, adjust this.
8993   if test -x /usr/bin/objformat; then
8994     objformat=`/usr/bin/objformat`
8995   else
8996     case $host_os in
8997     freebsd[123].*) objformat=aout ;;
8998     *) objformat=elf ;;
8999     esac
9000   fi
9001   version_type=freebsd-$objformat
9002   case $version_type in
9003     freebsd-elf*)
9004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005       need_version=no
9006       need_lib_prefix=no
9007       ;;
9008     freebsd-*)
9009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010       need_version=yes
9011       ;;
9012   esac
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_os in
9015   freebsd2.*)
9016     shlibpath_overrides_runpath=yes
9017     ;;
9018   freebsd3.[01]* | freebsdelf3.[01]*)
9019     shlibpath_overrides_runpath=yes
9020     hardcode_into_libs=yes
9021     ;;
9022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024     shlibpath_overrides_runpath=no
9025     hardcode_into_libs=yes
9026     ;;
9027   freebsd*) # from 4.6 on
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   esac
9032   ;;
9034 gnu*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   hardcode_into_libs=yes
9042   ;;
9044 hpux9* | hpux10* | hpux11*)
9045   # Give a soname corresponding to the major version so that dld.sl refuses to
9046   # link against other versions.
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   case $host_cpu in
9051   ia64*)
9052     shrext_cmds='.so'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.so"
9055     shlibpath_var=LD_LIBRARY_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     if test "X$HPUX_IA64_MODE" = X32; then
9060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061     else
9062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063     fi
9064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065     ;;
9066    hppa*64*)
9067      shrext_cmds='.sl'
9068      hardcode_into_libs=yes
9069      dynamic_linker="$host_os dld.sl"
9070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073      soname_spec='${libname}${release}${shared_ext}$major'
9074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076      ;;
9077    *)
9078     shrext_cmds='.sl'
9079     dynamic_linker="$host_os dld.sl"
9080     shlibpath_var=SHLIB_PATH
9081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     soname_spec='${libname}${release}${shared_ext}$major'
9084     ;;
9085   esac
9086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087   postinstall_cmds='chmod 555 $lib'
9088   ;;
9090 interix3*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   ;;
9102 irix5* | irix6* | nonstopux*)
9103   case $host_os in
9104     nonstopux*) version_type=nonstopux ;;
9105     *)
9106         if test "$lt_cv_prog_gnu_ld" = yes; then
9107                 version_type=linux
9108         else
9109                 version_type=irix
9110         fi ;;
9111   esac
9112   need_lib_prefix=no
9113   need_version=no
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   case $host_os in
9117   irix5* | nonstopux*)
9118     libsuff= shlibsuff=
9119     ;;
9120   *)
9121     case $LD in # libtool.m4 will add one of these switches to LD
9122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123       libsuff= shlibsuff= libmagic=32-bit;;
9124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125       libsuff=32 shlibsuff=N32 libmagic=N32;;
9126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128     *) libsuff= shlibsuff= libmagic=never-match;;
9129     esac
9130     ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133   shlibpath_overrides_runpath=no
9134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136   hardcode_into_libs=yes
9137   ;;
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9141   dynamic_linker=no
9142   ;;
9144 # This must be Linux ELF.
9145 linux*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   # This implies no fast_install, which is unacceptable.
9155   # Some rework will be needed to allow for fast_install
9156   # before this can be enabled.
9157   hardcode_into_libs=yes
9159   # Append ld.so.conf contents to the search path
9160   if test -f /etc/ld.so.conf; then
9161     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' ' '`
9162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163   fi
9165   # We used to test for /lib/ld.so.1 and disable shared libraries on
9166   # powerpc, because MkLinux only supported shared libraries with the
9167   # GNU dynamic linker.  Since this was broken with cross compilers,
9168   # most powerpc-linux boxes support dynamic linking these days and
9169   # people can always --disable-shared, the test was removed, and we
9170   # assume the GNU/Linux dynamic linker is in use.
9171   dynamic_linker='GNU/Linux ld.so'
9172   ;;
9174 knetbsd*-gnu)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   dynamic_linker='GNU ld.so'
9184   ;;
9186 netbsd*)
9187   version_type=sunos
9188   need_lib_prefix=no
9189   need_version=no
9190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193     dynamic_linker='NetBSD (a.out) ld.so'
9194   else
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196     soname_spec='${libname}${release}${shared_ext}$major'
9197     dynamic_linker='NetBSD ld.elf_so'
9198   fi
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   hardcode_into_libs=yes
9202   ;;
9204 newsos6)
9205   version_type=linux
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   ;;
9211 nto-qnx*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9221 openbsd* | bitrig*)
9222   version_type=sunos
9223   sys_lib_dlsearch_path_spec="/usr/lib"
9224   need_lib_prefix=no
9225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226   case $host_os in
9227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228     *)                         need_version=no  ;;
9229   esac
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234     case $host_os in
9235       openbsd2.[89] | openbsd2.[89].*)
9236         shlibpath_overrides_runpath=no
9237         ;;
9238       *)
9239         shlibpath_overrides_runpath=yes
9240         ;;
9241       esac
9242   else
9243     shlibpath_overrides_runpath=yes
9244   fi
9245   ;;
9247 os2*)
9248   libname_spec='$name'
9249   shrext_cmds=".dll"
9250   need_lib_prefix=no
9251   library_names_spec='$libname${shared_ext} $libname.a'
9252   dynamic_linker='OS/2 ld.exe'
9253   shlibpath_var=LIBPATH
9254   ;;
9256 osf3* | osf4* | osf5*)
9257   version_type=osf
9258   need_lib_prefix=no
9259   need_version=no
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265   ;;
9267 solaris*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   # ldd complains unless libraries are executable
9277   postinstall_cmds='chmod +x $lib'
9278   ;;
9280 sunos4*)
9281   version_type=sunos
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   if test "$with_gnu_ld" = yes; then
9287     need_lib_prefix=no
9288   fi
9289   need_version=yes
9290   ;;
9292 sysv4 | sysv4.3*)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   case $host_vendor in
9298     sni)
9299       shlibpath_overrides_runpath=no
9300       need_lib_prefix=no
9301       export_dynamic_flag_spec='${wl}-Blargedynsym'
9302       runpath_var=LD_RUN_PATH
9303       ;;
9304     siemens)
9305       need_lib_prefix=no
9306       ;;
9307     motorola)
9308       need_lib_prefix=no
9309       need_version=no
9310       shlibpath_overrides_runpath=no
9311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312       ;;
9313   esac
9314   ;;
9316 sysv4*MP*)
9317   if test -d /usr/nec ;then
9318     version_type=linux
9319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320     soname_spec='$libname${shared_ext}.$major'
9321     shlibpath_var=LD_LIBRARY_PATH
9322   fi
9323   ;;
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326   version_type=freebsd-elf
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   if test "$with_gnu_ld" = yes; then
9334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335     shlibpath_overrides_runpath=no
9336   else
9337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338     shlibpath_overrides_runpath=yes
9339     case $host_os in
9340       sco3.2v5*)
9341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342         ;;
9343     esac
9344   fi
9345   sys_lib_dlsearch_path_spec='/usr/lib'
9346   ;;
9348 uts4*)
9349   version_type=linux
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9355 *)
9356   dynamic_linker=no
9357   ;;
9358 esac
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 fi
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9375 module=yes
9376 eval libltdl_cv_shlibext=$shrext_cmds
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385 _ACEOF
9387 fi
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   libltdl_cv_shlibpath_var="$shlibpath_var"
9396 fi
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403 _ACEOF
9405 fi
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414 fi
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9418   sys_search_path=
9419   for dir in $libltdl_cv_sys_search_path; do
9420     if test -z "$sys_search_path"; then
9421       sys_search_path="$dir"
9422     else
9423       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424     fi
9425   done
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9429 _ACEOF
9431 fi
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   libltdl_cv_objdir="$objdir"
9439   if test -n "$objdir"; then
9440     :
9441   else
9442     rm -f .libs 2>/dev/null
9443     mkdir .libs 2>/dev/null
9444     if test -d .libs; then
9445       libltdl_cv_objdir=.libs
9446     else
9447       # MS-DOS does not allow filenames that begin with a dot.
9448       libltdl_cv_objdir=_libs
9449     fi
9450   rmdir .libs 2>/dev/null
9451   fi
9453 fi
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459 _ACEOF
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9488 # Define system-specific variables.
9489 case $host_os in
9490 aix*)
9491   symcode='[BCDT]'
9492   ;;
9493 cygwin* | mingw* | pw32*)
9494   symcode='[ABCDGISTW]'
9495   ;;
9496 hpux*) # Its linker distinguishes data from code symbols
9497   if test "$host_cpu" = ia64; then
9498     symcode='[ABCDEGRST]'
9499   fi
9500   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501   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'"
9502   ;;
9503 linux*)
9504   if test "$host_cpu" = ia64; then
9505     symcode='[ABCDGIRSTW]'
9506     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507     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'"
9508   fi
9509   ;;
9510 irix* | nonstopux*)
9511   symcode='[BCDEGRST]'
9512   ;;
9513 osf*)
9514   symcode='[BCDEGQRST]'
9515   ;;
9516 solaris*)
9517   symcode='[BDRT]'
9518   ;;
9519 sco3.2v5*)
9520   symcode='[DT]'
9521   ;;
9522 sysv4.2uw2*)
9523   symcode='[DT]'
9524   ;;
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526   symcode='[ABDT]'
9527   ;;
9528 sysv4)
9529   symcode='[DFNSTU]'
9530   ;;
9531 esac
9533 # Handle CRLF in mingw tool chain
9534 opt_cr=
9535 case $build_os in
9536 mingw*)
9537   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538   ;;
9539 esac
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544   symcode='[ABCDGIRSTW]' ;;
9545 esac
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551   symxfrm="\\1 $ac_symprfx\\2 \\2"
9553   # Write the raw and C identifiers.
9554   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9556   # Check to see that the pipe works correctly.
9557   pipe_works=no
9559   rm -f conftest*
9560   cat > conftest.$ac_ext <<EOF
9561 #ifdef __cplusplus
9562 extern "C" {
9563 #endif
9564 char nm_test_var;
9565 void nm_test_func(){}
9566 #ifdef __cplusplus
9568 #endif
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9570 EOF
9572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; then
9577     # Now try to grab the symbols.
9578     nlist=conftest.nm
9579     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && test -s "$nlist"; then
9584       # Try sorting and uniquifying the output.
9585       if sort "$nlist" | uniq > "$nlist"T; then
9586         mv -f "$nlist"T "$nlist"
9587       else
9588         rm -f "$nlist"T
9589       fi
9591       # Make sure that we snagged all the symbols we need.
9592       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594           cat <<EOF > conftest.$ac_ext
9595 #ifdef __cplusplus
9596 extern "C" {
9597 #endif
9599 EOF
9600           # Now generate the symbol file.
9601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9603           cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9606 #else
9607 # define lt_ptr_t char *
9608 # define const
9609 #endif
9611 /* The mapping between symbol names and symbols. */
9612 const struct {
9613   const char *name;
9614   lt_ptr_t address;
9616 lt_preloaded_symbols[] =
9618 EOF
9619           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620           cat <<\EOF >> conftest.$ac_ext
9621   {0, (lt_ptr_t) 0}
9622 };
9624 #ifdef __cplusplus
9626 #endif
9627 EOF
9628           # Now try linking the two files.
9629           mv conftest.$ac_objext conftstm.$ac_objext
9630           lt_save_LIBS="$LIBS"
9631           lt_save_CFLAGS="$CFLAGS"
9632           LIBS="conftstm.$ac_objext"
9633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635   (eval $ac_link) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9639             pipe_works=yes
9640           fi
9641           LIBS="$lt_save_LIBS"
9642           CFLAGS="$lt_save_CFLAGS"
9643         else
9644           echo "cannot find nm_test_func in $nlist" >&5
9645         fi
9646       else
9647         echo "cannot find nm_test_var in $nlist" >&5
9648       fi
9649     else
9650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651     fi
9652   else
9653     echo "$progname: failed program was:" >&5
9654     cat conftest.$ac_ext >&5
9655   fi
9656   rm -f conftest* conftst*
9658   # Do not use the global_symbol_pipe unless it works.
9659   if test "$pipe_works" = yes; then
9660     break
9661   else
9662     lt_cv_sys_global_symbol_pipe=
9663   fi
9664 done
9666 fi
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669   lt_cv_sys_global_symbol_to_cdecl=
9670 fi
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672   { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9674 else
9675   { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9677 fi
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686     libltdl_cv_preloaded_symbols=yes
9687   else
9688     libltdl_cv_preloaded_symbols=no
9689   fi
9691 fi
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9698 _ACEOF
9700 fi
9702 LIBADD_DL=
9704 ac_ext=c
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define shl_load innocuous_shl_load
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char shl_load (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9737 #undef shl_load
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char shl_load ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9750 choke me
9751 #endif
9753 int
9754 main ()
9756 return shl_load ();
9757   ;
9758   return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776   { (case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_try") 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_func_shl_load=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800         ac_cv_func_shl_load=no
9801 fi
9803 rm -f core conftest.err conftest.$ac_objext \
9804       conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9812 _ACEOF
9814 else
9815   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char shl_load ();
9836 int
9837 main ()
9839 return shl_load ();
9840   ;
9841   return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_lib_dld_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883         ac_cv_lib_dld_shl_load=no
9884 fi
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9896 _ACEOF
9898         LIBADD_DL="$LIBADD_DL -ldld"
9899 else
9900   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-ldl  $LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9914 /* Override any GCC internal prototype to avoid an error.
9915    Use char because int might match the return type of a GCC
9916    builtin and then its argument prototype would still apply.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char dlopen ();
9921 int
9922 main ()
9924 return dlopen ();
9925   ;
9926   return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944   { (case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_try") 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_cv_lib_dl_dlopen=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968         ac_cv_lib_dl_dlopen=no
9969 fi
9971 rm -f core conftest.err conftest.$ac_objext \
9972       conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9981 _ACEOF
9983                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #if HAVE_DLFCN_H
9992 #  include <dlfcn.h>
9993 #endif
9995 int
9996 main ()
9998 dlopen(0, 0);
9999   ;
10000   return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10040 _ACEOF
10041  libltdl_cv_func_dlopen="yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char dlopen ();
10067 int
10068 main ()
10070 return dlopen ();
10071   ;
10072   return 0;
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_link") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_lib_svld_dlopen=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114         ac_cv_lib_svld_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10127 _ACEOF
10129                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130 else
10131   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldld  $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char dld_link ();
10152 int
10153 main ()
10155 return dld_link ();
10156   ;
10157   return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175   { (case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_try") 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_lib_dld_dld_link=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199         ac_cv_lib_dld_dld_link=no
10202 rm -f core conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_DLD 1
10212 _ACEOF
10214                 LIBADD_DL="$LIBADD_DL -ldld"
10215 else
10216   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10231 /* System header to define __stub macros and hopefully few prototypes,
10232     which can conflict with char _dyld_func_lookup (); below.
10233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234     <limits.h> exists even on freestanding compilers.  */
10236 #ifdef __STDC__
10237 # include <limits.h>
10238 #else
10239 # include <assert.h>
10240 #endif
10242 #undef _dyld_func_lookup
10244 /* Override any GCC internal prototype to avoid an error.
10245    Use char because int might match the return type of a GCC
10246    builtin and then its argument prototype would still apply.  */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252     to always fail with ENOSYS.  Some functions are actually named
10253     something starting with __ and the normal name is an alias.  */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255 choke me
10256 #endif
10258 int
10259 main ()
10261 return _dyld_func_lookup ();
10262   ;
10263   return 0;
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_link") 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281   { (case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_try") 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest$ac_exeext'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_func__dyld_func_lookup=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305         ac_cv_func__dyld_func_lookup=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309       conftest$ac_exeext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10317 _ACEOF
10330 rm -f core conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343 then
10344   lt_save_LIBS="$LIBS"
10345   LIBS="$LIBS $LIBADD_DL"
10347 for ac_func in dlerror
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10363 #define $ac_func innocuous_$ac_func
10365 /* System header to define __stub macros and hopefully few prototypes,
10366     which can conflict with char $ac_func (); below.
10367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368     <limits.h> exists even on freestanding compilers.  */
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10376 #undef $ac_func
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char $ac_func ();
10385 /* The GNU C library defines this for functions which it implements
10386     to always fail with ENOSYS.  Some functions are actually named
10387     something starting with __ and the normal name is an alias.  */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10389 choke me
10390 #endif
10392 int
10393 main ()
10395 return $ac_func ();
10396   ;
10397   return 0;
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404   *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407   (eval "$ac_link") 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415   { (case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_try") 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439         eval "$as_ac_var=no"
10442 rm -f core conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446                { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449   cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 _ACEOF
10454 done
10456   LIBS="$lt_save_LIBS"
10458 ac_ext=c
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_cv_sys_symbol_underscore=no
10472   cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10475 EOF
10476   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; then
10481     # Now try to grab the symbols.
10482     ac_nlist=conftest.nm
10483     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && test -s "$ac_nlist"; then
10488       # See whether the symbols have a leading underscore.
10489       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490         ac_cv_sys_symbol_underscore=yes
10491       else
10492         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493           :
10494         else
10495           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496         fi
10497       fi
10498     else
10499       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500     fi
10501   else
10502     echo "configure: failed program was:" >&5
10503     cat conftest.c >&5
10504   fi
10505   rm -rf conftest*
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513   if test x"$libltdl_cv_func_dlopen" = xyes ||
10514      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   libltdl_cv_need_uscore=unknown
10521           save_LIBS="$LIBS"
10522           LIBS="$LIBS $LIBADD_DL"
10523           if test "$cross_compiling" = yes; then :
10524   libltdl_cv_need_uscore=cross
10525 else
10526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527   lt_status=$lt_dlunknown
10528   cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10532 #if HAVE_DLFCN_H
10533 #include <dlfcn.h>
10534 #endif
10536 #include <stdio.h>
10538 #ifdef RTLD_GLOBAL
10539 #  define LT_DLGLOBAL           RTLD_GLOBAL
10540 #else
10541 #  ifdef DL_GLOBAL
10542 #    define LT_DLGLOBAL         DL_GLOBAL
10543 #  else
10544 #    define LT_DLGLOBAL         0
10545 #  endif
10546 #endif
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549    find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10551 #  ifdef RTLD_LAZY
10552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10553 #  else
10554 #    ifdef DL_LAZY
10555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10556 #    else
10557 #      ifdef RTLD_NOW
10558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10559 #      else
10560 #        ifdef DL_NOW
10561 #          define LT_DLLAZY_OR_NOW      DL_NOW
10562 #        else
10563 #          define LT_DLLAZY_OR_NOW      0
10564 #        endif
10565 #      endif
10566 #    endif
10567 #  endif
10568 #endif
10570 #ifdef __cplusplus
10571 extern "C" void exit (int);
10572 #endif
10574 void fnord() { int i=42;}
10575 int main ()
10577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578   int status = $lt_dlunknown;
10580   if (self)
10581     {
10582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584       /* dlclose (self); */
10585     }
10586   else
10587     puts (dlerror ());
10589     exit (status);
10591 EOF
10592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597     (./conftest; exit; ) >&5 2>/dev/null
10598     lt_status=$?
10599     case x$lt_status in
10600       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602       x$lt_dlunknown|x*)  ;;
10603     esac
10604   else :
10605     # compilation failed
10607   fi
10609 rm -fr conftest*
10611           LIBS="$save_LIBS"
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10616   fi
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10623 _ACEOF
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   # PORTME does your system automatically load deplibs for dlopen?
10634   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635   # For now, we just catch OSes we know something about -- in the
10636   # future, we'll try test this programmatically.
10637   libltdl_cv_sys_dlopen_deplibs=unknown
10638   case "$host_os" in
10639   aix3*|aix4.1.*|aix4.2.*)
10640     # Unknown whether this is true for these versions of AIX, but
10641     # we want this `case' here to explicitly catch those versions.
10642     libltdl_cv_sys_dlopen_deplibs=unknown
10643     ;;
10644   aix[45]*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   darwin*)
10648     # Assuming the user has installed a libdl from somewhere, this is true
10649     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653     # GNU and its variants, using gnu ld.so (Glibc)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   hpux10*|hpux11*)
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   interix*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   irix[12345]*|irix6.[01]*)
10663     # Catch all versions of IRIX before 6.2, and indicate that we don't
10664     # know how it worked for any of those versions.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   irix*)
10668     # The case above catches anything before 6.2, and it's known that
10669     # at 6.2 and later dlopen does load deplibs.
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   netbsd*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   openbsd*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   osf[1234]*)
10679     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680     # it did *not* use an RPATH in a shared library to find objects the
10681     # library depends on, so we explicitly say `no'.
10682     libltdl_cv_sys_dlopen_deplibs=no
10683     ;;
10684   osf5.0|osf5.0a|osf5.1)
10685     # dlopen *does* load deplibs and with the right loader patch applied
10686     # it even uses RPATH in a shared library to search for shared objects
10687     # that the library depends on, but there's no easy way to know if that
10688     # patch is installed.  Since this is the case, all we can really
10689     # say is unknown -- it depends on the patch being installed.  If
10690     # it is, this changes to `yes'.  Without it, it would be `no'.
10691     libltdl_cv_sys_dlopen_deplibs=unknown
10692     ;;
10693   osf*)
10694     # the two cases above should catch all versions of osf <= 5.1.  Read
10695     # the comments above for what we know about them.
10696     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697     # is used to find them so we can finally say `yes'.
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   solaris*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   esac
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10715 _ACEOF
10720 for ac_header in argz.h
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732 else
10733   # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 #include <$ac_header>
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_header_compiler=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784         ac_header_compiler=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 #include <$ac_header>
10801 _ACEOF
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818   else
10819     ac_cpp_err=
10820   fi
10821 else
10822   ac_cpp_err=yes
10824 if test -z "$ac_cpp_err"; then
10825   ac_header_preproc=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830   ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So?  What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839   yes:no: )
10840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844     ac_header_preproc=yes
10845     ;;
10846   no:yes:* )
10847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859     ( cat <<\_ASBOX
10860 ## ------------------------------------ ##
10861 ## Report this to http://llvm.org/bugs/ ##
10862 ## ------------------------------------ ##
10863 _ASBOX
10864      ) | sed "s/^/$as_me: WARNING:     /" >&2
10865     ;;
10866 esac
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875                { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880   cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10886 done
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #if HAVE_ARGZ_H
10901 #  include <argz.h>
10902 #endif
10904 typedef error_t ac__type_new_;
10905 int
10906 main ()
10908 if ((ac__type_new_ *) 0)
10909   return 0;
10910 if (sizeof (ac__type_new_))
10911   return 0;
10912   ;
10913   return 0;
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   ac_cv_type_error_t=yes
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955         ac_cv_type_error_t=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10966 _ACEOF
10969 else
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10973 _ACEOF
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10999 #define $ac_func innocuous_$ac_func
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.
11003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004     <limits.h> exists even on freestanding compilers.  */
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11012 #undef $ac_func
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 choke me
11026 #endif
11028 int
11029 main ()
11031 return $ac_func ();
11032   ;
11033   return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   eval "$as_ac_var=yes"
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075         eval "$as_ac_var=no"
11078 rm -f core conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082                { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085   cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11090 done
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120                   stdio.h unistd.h
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_header_compiler=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184         ac_header_compiler=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <$ac_header>
11201 _ACEOF
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11224 if test -z "$ac_cpp_err"; then
11225   ac_header_preproc=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230   ac_header_preproc=no
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237 # So?  What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239   yes:no: )
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244     ac_header_preproc=yes
11245     ;;
11246   no:yes:* )
11247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259     ( cat <<\_ASBOX
11260 ## ------------------------------------ ##
11261 ## Report this to http://llvm.org/bugs/ ##
11262 ## ------------------------------------ ##
11263 _ASBOX
11264      ) | sed "s/^/$as_me: WARNING:     /" >&2
11265     ;;
11266 esac
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11286 done
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305   # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 $ac_includes_default
11315 #include <$ac_header>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_compile") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332   { (case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_try") 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_header_compiler=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356         ac_header_compiler=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <$ac_header>
11373 _ACEOF
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381   ac_status=$?
11382   grep -v '^ *+' conftest.er1 >conftest.err
11383   rm -f conftest.er1
11384   cat conftest.err >&5
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } >/dev/null; then
11387   if test -s conftest.err; then
11388     ac_cpp_err=$ac_c_preproc_warn_flag
11389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390   else
11391     ac_cpp_err=
11392   fi
11393 else
11394   ac_cpp_err=yes
11396 if test -z "$ac_cpp_err"; then
11397   ac_header_preproc=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402   ac_header_preproc=no
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So?  What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411   yes:no: )
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416     ac_header_preproc=yes
11417     ;;
11418   no:yes:* )
11419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431     ( cat <<\_ASBOX
11432 ## ------------------------------------ ##
11433 ## Report this to http://llvm.org/bugs/ ##
11434 ## ------------------------------------ ##
11435 _ASBOX
11436      ) | sed "s/^/$as_me: WARNING:     /" >&2
11437     ;;
11438 esac
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   eval "$as_ac_Header=\$ac_header_preproc"
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447                { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452   cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 _ACEOF
11458 done
11462 for ac_header in string.h strings.h
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 else
11475   # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 $ac_includes_default
11485 #include <$ac_header>
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_compile") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_header_compiler=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526         ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } >/dev/null; then
11557   if test -s conftest.err; then
11558     ac_cpp_err=$ac_c_preproc_warn_flag
11559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560   else
11561     ac_cpp_err=
11562   fi
11563 else
11564   ac_cpp_err=yes
11566 if test -z "$ac_cpp_err"; then
11567   ac_header_preproc=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572   ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So?  What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581   yes:no: )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586     ac_header_preproc=yes
11587     ;;
11588   no:yes:* )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601     ( cat <<\_ASBOX
11602 ## ------------------------------------ ##
11603 ## Report this to http://llvm.org/bugs/ ##
11604 ## ------------------------------------ ##
11605 _ASBOX
11606      ) | sed "s/^/$as_me: WARNING:     /" >&2
11607     ;;
11608 esac
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   eval "$as_ac_Header=\$ac_header_preproc"
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 _ACEOF
11625  break
11628 done
11633 for ac_func in strchr index
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11662 #undef $ac_func
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11678 int
11679 main ()
11681 return $ac_func ();
11682   ;
11683   return 0;
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725         eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11740 done
11744 for ac_func in strrchr rindex
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11760 #define $ac_func innocuous_$ac_func
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func (); below.
11764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765     <limits.h> exists even on freestanding compilers.  */
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11773 #undef $ac_func
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11789 int
11790 main ()
11792 return $ac_func ();
11793   ;
11794   return 0;
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_link") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812   { (case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_try") 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   eval "$as_ac_var=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836         eval "$as_ac_var=no"
11839 rm -f core conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843                { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 _ACEOF
11849  break
11851 done
11855 for ac_func in memcpy bcopy
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11871 #define $ac_func innocuous_$ac_func
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func (); below.
11875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876     <limits.h> exists even on freestanding compilers.  */
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11884 #undef $ac_func
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char $ac_func ();
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 choke me
11898 #endif
11900 int
11901 main ()
11903 return $ac_func ();
11904   ;
11905   return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947         eval "$as_ac_var=no"
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11960  break
11962 done
11966 for ac_func in memmove strcmp
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11982 #define $ac_func innocuous_$ac_func
11984 /* System header to define __stub macros and hopefully few prototypes,
11985     which can conflict with char $ac_func (); below.
11986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987     <limits.h> exists even on freestanding compilers.  */
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11995 #undef $ac_func
11997 /* Override any GCC internal prototype to avoid an error.
11998    Use char because int might match the return type of a GCC
11999    builtin and then its argument prototype would still apply.  */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char $ac_func ();
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12008 choke me
12009 #endif
12011 int
12012 main ()
12014 return $ac_func ();
12015   ;
12016   return 0;
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_link") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; } &&
12043          { ac_try='test -s conftest$ac_exeext'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058         eval "$as_ac_var=no"
12061 rm -f core conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065                { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12073 done
12078 for ac_func in closedir opendir readdir
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12094 #define $ac_func innocuous_$ac_func
12096 /* System header to define __stub macros and hopefully few prototypes,
12097     which can conflict with char $ac_func (); below.
12098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099     <limits.h> exists even on freestanding compilers.  */
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12107 #undef $ac_func
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char $ac_func ();
12116 /* The GNU C library defines this for functions which it implements
12117     to always fail with ENOSYS.  Some functions are actually named
12118     something starting with __ and the normal name is an alias.  */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12120 choke me
12121 #endif
12123 int
12124 main ()
12126 return $ac_func ();
12127   ;
12128   return 0;
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_link") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146   { (case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_try") 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   eval "$as_ac_var=yes"
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170         eval "$as_ac_var=no"
12173 rm -f core conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177                { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 _ACEOF
12185 done
12189 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12190 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12192 ICC=no
12193 IXX=no
12194 case $CC in
12195   icc*|icpc*)
12196     ICC=yes
12197     IXX=yes
12198     ;;
12199    *)
12200     ;;
12201 esac
12203 if test "$GCC" != "yes" && test "$ICC" != "yes"
12204 then
12205   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12206 echo "$as_me: error: gcc|icc required but not found" >&2;}
12207    { (exit 1); exit 1; }; }
12210 if test "$GXX" != "yes" && test "$IXX" != "yes"
12211 then
12212   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12213 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12214    { (exit 1); exit 1; }; }
12217 if test "$GCC" = "yes"
12218 then
12219   cat >conftest.$ac_ext <<_ACEOF
12221   /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12227     #if !defined(__GNUC__) || __GNUC__ < 3
12228     #error Unsupported GCC version
12229     #endif
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_compile") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   :
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12274    { (exit 1); exit 1; }; }
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 if test -z "$llvm_cv_gnu_make_command"
12281 then
12282   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12283 echo "$as_me: error: GNU Make required but not found" >&2;}
12284    { (exit 1); exit 1; }; }
12287 { echo "$as_me:$LINENO: result: ok" >&5
12288 echo "${ECHO_T}ok" >&6; }
12290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12292 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12296 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12299 NO_UNINITIALIZED=
12300 NO_MAYBE_UNINITIALIZED=
12301 if test "$GXX" = "yes"
12302 then
12303   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12305         if test -z "$NO_MAYBE_UNINITIALIZED"
12306   then
12307     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12309   fi
12311 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12312 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12315 # Check whether --with-python was given.
12316 if test "${with_python+set}" = set; then
12317   withval=$with_python; PYTHON="$withval"
12321 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12322   { echo "$as_me:$LINENO: checking for python" >&5
12323 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12324   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12325 echo "${ECHO_T}user defined: $with_python" >&6; }
12326 else
12327   if test -n "$PYTHON" ; then
12328     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12329 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12330   fi
12332   # Extract the first word of "python python2 python26", so it can be a program name with args.
12333 set dummy python python2 python26; ac_word=$2
12334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12336 if test "${ac_cv_path_PYTHON+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339   case $PYTHON in
12340   [\\/]* | ?:[\\/]*)
12341   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12342   ;;
12343   *)
12344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349   for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12359   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12360 echo "${ECHO_T}not found" >&6; }
12361                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12362 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12363    { (exit 1); exit 1; }; }"
12364   ;;
12365 esac
12367 PYTHON=$ac_cv_path_PYTHON
12368 if test -n "$PYTHON"; then
12369   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12370 echo "${ECHO_T}$PYTHON" >&6; }
12371 else
12372   { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12379 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12380 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12381 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12382 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12383 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12384 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12385 if   test "$ac_python_version_major" -eq "2" \
12386    && test "$ac_python_version_minor" -ge "5" ; then
12387   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12388 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12389 else
12390   { echo "$as_me:$LINENO: result: not found" >&5
12391 echo "${ECHO_T}not found" >&6; }
12392   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12393 See \`config.log' for more details." >&5
12394 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12395 See \`config.log' for more details." >&2;}
12396    { (exit 1); exit 1; }; }
12401 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12402 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12403 if test "${ac_cv_lib_m_sin+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lm  $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12415 /* Override any GCC internal prototype to avoid an error.
12416    Use char because int might match the return type of a GCC
12417    builtin and then its argument prototype would still apply.  */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char sin ();
12422 int
12423 main ()
12425 return sin ();
12426   ;
12427   return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_link") 2>conftest.er1
12438   ac_status=$?
12439   grep -v '^ *+' conftest.er1 >conftest.err
12440   rm -f conftest.er1
12441   cat conftest.err >&5
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445   { (case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_try") 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest$ac_exeext'
12455   { (case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_try") 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   ac_cv_lib_m_sin=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469         ac_cv_lib_m_sin=no
12472 rm -f core conftest.err conftest.$ac_objext \
12473       conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12477 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12478 if test $ac_cv_lib_m_sin = yes; then
12479   cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBM 1
12481 _ACEOF
12483   LIBS="-lm $LIBS"
12487 if test "$llvm_cv_os_type" = "MingW" ; then
12489 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12490 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12491 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-limagehlp  $LIBS"
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12504 int
12505 main ()
12507 return main ();
12508   ;
12509   return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_link") 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527   { (case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest$ac_exeext'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_lib_imagehlp_main=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551         ac_cv_lib_imagehlp_main=no
12554 rm -f core conftest.err conftest.$ac_objext \
12555       conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12559 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12560 if test $ac_cv_lib_imagehlp_main = yes; then
12561   cat >>confdefs.h <<_ACEOF
12562 #define HAVE_LIBIMAGEHLP 1
12563 _ACEOF
12565   LIBS="-limagehlp $LIBS"
12570 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12571 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12572 if test "${ac_cv_lib_psapi_main+set}" = set; then
12573   echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575   ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lpsapi  $LIBS"
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12585 int
12586 main ()
12588 return main ();
12589   ;
12590   return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600   (eval "$ac_link") 2>conftest.er1
12601   ac_status=$?
12602   grep -v '^ *+' conftest.er1 >conftest.err
12603   rm -f conftest.er1
12604   cat conftest.err >&5
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608   { (case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_try") 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); }; } &&
12617          { ac_try='test -s conftest$ac_exeext'
12618   { (case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_try") 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   ac_cv_lib_psapi_main=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632         ac_cv_lib_psapi_main=no
12635 rm -f core conftest.err conftest.$ac_objext \
12636       conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12640 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12641 if test $ac_cv_lib_psapi_main = yes; then
12642   cat >>confdefs.h <<_ACEOF
12643 #define HAVE_LIBPSAPI 1
12644 _ACEOF
12646   LIBS="-lpsapi $LIBS"
12652 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12653 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12654 if test "${ac_cv_search_dlopen+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   ac_func_search_save_LIBS=$LIBS
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12665 /* Override any GCC internal prototype to avoid an error.
12666    Use char because int might match the return type of a GCC
12667    builtin and then its argument prototype would still apply.  */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char dlopen ();
12672 int
12673 main ()
12675 return dlopen ();
12676   ;
12677   return 0;
12679 _ACEOF
12680 for ac_lib in '' dl; do
12681   if test -z "$ac_lib"; then
12682     ac_res="none required"
12683   else
12684     ac_res=-l$ac_lib
12685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12686   fi
12687   rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_link") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; } &&
12711          { ac_try='test -s conftest$ac_exeext'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_search_dlopen=$ac_res
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12729 rm -f core conftest.err conftest.$ac_objext \
12730       conftest$ac_exeext
12731   if test "${ac_cv_search_dlopen+set}" = set; then
12732   break
12734 done
12735 if test "${ac_cv_search_dlopen+set}" = set; then
12736   :
12737 else
12738   ac_cv_search_dlopen=no
12740 rm conftest.$ac_ext
12741 LIBS=$ac_func_search_save_LIBS
12743 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12744 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12745 ac_res=$ac_cv_search_dlopen
12746 if test "$ac_res" != no; then
12747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_DLOPEN 1
12751 _ACEOF
12753 else
12754   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12755 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12759 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12760 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12761 if test "${ac_cv_search_clock_gettime+set}" = set; then
12762   echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764   ac_func_search_save_LIBS=$LIBS
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12772 /* Override any GCC internal prototype to avoid an error.
12773    Use char because int might match the return type of a GCC
12774    builtin and then its argument prototype would still apply.  */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char clock_gettime ();
12779 int
12780 main ()
12782 return clock_gettime ();
12783   ;
12784   return 0;
12786 _ACEOF
12787 for ac_lib in '' rt; do
12788   if test -z "$ac_lib"; then
12789     ac_res="none required"
12790   else
12791     ac_res=-l$ac_lib
12792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12793   fi
12794   rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798   *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801   (eval "$ac_link") 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809   { (case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_try") 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; } &&
12818          { ac_try='test -s conftest$ac_exeext'
12819   { (case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_try") 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_cv_search_clock_gettime=$ac_res
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12836 rm -f core conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext
12838   if test "${ac_cv_search_clock_gettime+set}" = set; then
12839   break
12841 done
12842 if test "${ac_cv_search_clock_gettime+set}" = set; then
12843   :
12844 else
12845   ac_cv_search_clock_gettime=no
12847 rm conftest.$ac_ext
12848 LIBS=$ac_func_search_save_LIBS
12850 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12851 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12852 ac_res=$ac_cv_search_clock_gettime
12853 if test "$ac_res" != no; then
12854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859 if test "$llvm_cv_enable_libffi" = "yes" ; then
12860   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12861 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_ffi_call+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12873 /* Override any GCC internal prototype to avoid an error.
12874    Use char because int might match the return type of a GCC
12875    builtin and then its argument prototype would still apply.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char ffi_call ();
12880 int
12881 main ()
12883 return ffi_call ();
12884   ;
12885   return 0;
12887 _ACEOF
12888 for ac_lib in '' ffi; do
12889   if test -z "$ac_lib"; then
12890     ac_res="none required"
12891   else
12892     ac_res=-l$ac_lib
12893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12894   fi
12895   rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_link") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910   { (case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_try") 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (case "(($ac_try" in
12921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922   *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925   (eval "$ac_try") 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; }; then
12929   ac_cv_search_ffi_call=$ac_res
12930 else
12931   echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12937 rm -f core conftest.err conftest.$ac_objext \
12938       conftest$ac_exeext
12939   if test "${ac_cv_search_ffi_call+set}" = set; then
12940   break
12942 done
12943 if test "${ac_cv_search_ffi_call+set}" = set; then
12944   :
12945 else
12946   ac_cv_search_ffi_call=no
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12952 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12953 ac_res=$ac_cv_search_ffi_call
12954 if test "$ac_res" != no; then
12955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_FFI_CALL 1
12959 _ACEOF
12961 else
12962   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12963 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12964    { (exit 1); exit 1; }; }
12969 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12970 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12971 if test "${ac_cv_search_mallinfo+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   ac_func_search_save_LIBS=$LIBS
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12982 /* Override any GCC internal prototype to avoid an error.
12983    Use char because int might match the return type of a GCC
12984    builtin and then its argument prototype would still apply.  */
12985 #ifdef __cplusplus
12986 extern "C"
12987 #endif
12988 char mallinfo ();
12989 int
12990 main ()
12992 return mallinfo ();
12993   ;
12994   return 0;
12996 _ACEOF
12997 for ac_lib in '' malloc; do
12998   if test -z "$ac_lib"; then
12999     ac_res="none required"
13000   else
13001     ac_res=-l$ac_lib
13002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13003   fi
13004   rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (ac_try="$ac_link"
13006 case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_link") 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } &&
13018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019   { (case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_try") 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; } &&
13028          { ac_try='test -s conftest$ac_exeext'
13029   { (case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_try") 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; }; then
13038   ac_cv_search_mallinfo=$ac_res
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13046 rm -f core conftest.err conftest.$ac_objext \
13047       conftest$ac_exeext
13048   if test "${ac_cv_search_mallinfo+set}" = set; then
13049   break
13051 done
13052 if test "${ac_cv_search_mallinfo+set}" = set; then
13053   :
13054 else
13055   ac_cv_search_mallinfo=no
13057 rm conftest.$ac_ext
13058 LIBS=$ac_func_search_save_LIBS
13060 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13061 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13062 ac_res=$ac_cv_search_mallinfo
13063 if test "$ac_res" != no; then
13064   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_MALLINFO 1
13068 _ACEOF
13073 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13075 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13076 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lpthread  $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char pthread_mutex_init ();
13096 int
13097 main ()
13099 return pthread_mutex_init ();
13100   ;
13101   return 0;
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_link") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119   { (case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_try") 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest$ac_exeext'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_cv_lib_pthread_pthread_mutex_init=yes
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143         ac_cv_lib_pthread_pthread_mutex_init=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147       conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13151 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13152 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13153   cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBPTHREAD 1
13155 _ACEOF
13157   LIBS="-lpthread $LIBS"
13161   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13162 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13174 /* Override any GCC internal prototype to avoid an error.
13175    Use char because int might match the return type of a GCC
13176    builtin and then its argument prototype would still apply.  */
13177 #ifdef __cplusplus
13178 extern "C"
13179 #endif
13180 char pthread_mutex_lock ();
13181 int
13182 main ()
13184 return pthread_mutex_lock ();
13185   ;
13186   return 0;
13188 _ACEOF
13189 for ac_lib in '' pthread; do
13190   if test -z "$ac_lib"; then
13191     ac_res="none required"
13192   else
13193     ac_res=-l$ac_lib
13194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13195   fi
13196   rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_link") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; } &&
13220          { ac_try='test -s conftest$ac_exeext'
13221   { (case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_try") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   ac_cv_search_pthread_mutex_lock=$ac_res
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13238 rm -f core conftest.err conftest.$ac_objext \
13239       conftest$ac_exeext
13240   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13241   break
13243 done
13244 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13245   :
13246 else
13247   ac_cv_search_pthread_mutex_lock=no
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13253 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13254 ac_res=$ac_cv_search_pthread_mutex_lock
13255 if test "$ac_res" != no; then
13256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_PTHREAD_MUTEX_LOCK 1
13260 _ACEOF
13264   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13265 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13266 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   ac_func_search_save_LIBS=$LIBS
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13277 /* Override any GCC internal prototype to avoid an error.
13278    Use char because int might match the return type of a GCC
13279    builtin and then its argument prototype would still apply.  */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char pthread_rwlock_init ();
13284 int
13285 main ()
13287 return pthread_rwlock_init ();
13288   ;
13289   return 0;
13291 _ACEOF
13292 for ac_lib in '' pthread; do
13293   if test -z "$ac_lib"; then
13294     ac_res="none required"
13295   else
13296     ac_res=-l$ac_lib
13297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13298   fi
13299   rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (ac_try="$ac_link"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_link") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; } &&
13323          { ac_try='test -s conftest$ac_exeext'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_cv_search_pthread_rwlock_init=$ac_res
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13341 rm -f core conftest.err conftest.$ac_objext \
13342       conftest$ac_exeext
13343   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13344   break
13346 done
13347 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13348   :
13349 else
13350   ac_cv_search_pthread_rwlock_init=no
13352 rm conftest.$ac_ext
13353 LIBS=$ac_func_search_save_LIBS
13355 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13356 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13357 ac_res=$ac_cv_search_pthread_rwlock_init
13358 if test "$ac_res" != no; then
13359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_PTHREAD_RWLOCK_INIT 1
13363 _ACEOF
13367   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13368 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13369 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13370   echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372   ac_func_search_save_LIBS=$LIBS
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13380 /* Override any GCC internal prototype to avoid an error.
13381    Use char because int might match the return type of a GCC
13382    builtin and then its argument prototype would still apply.  */
13383 #ifdef __cplusplus
13384 extern "C"
13385 #endif
13386 char pthread_getspecific ();
13387 int
13388 main ()
13390 return pthread_getspecific ();
13391   ;
13392   return 0;
13394 _ACEOF
13395 for ac_lib in '' pthread; do
13396   if test -z "$ac_lib"; then
13397     ac_res="none required"
13398   else
13399     ac_res=-l$ac_lib
13400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13401   fi
13402   rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_link") 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } &&
13416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417   { (case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_try") 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; } &&
13426          { ac_try='test -s conftest$ac_exeext'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; }; then
13436   ac_cv_search_pthread_getspecific=$ac_res
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13444 rm -f core conftest.err conftest.$ac_objext \
13445       conftest$ac_exeext
13446   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13447   break
13449 done
13450 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13451   :
13452 else
13453   ac_cv_search_pthread_getspecific=no
13455 rm conftest.$ac_ext
13456 LIBS=$ac_func_search_save_LIBS
13458 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13459 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13460 ac_res=$ac_cv_search_pthread_getspecific
13461 if test "$ac_res" != no; then
13462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_PTHREAD_GETSPECIFIC 1
13466 _ACEOF
13472 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13474 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13475 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13476 if test "${ac_cv_lib_z_compress2+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   ac_check_lib_save_LIBS=$LIBS
13480 LIBS="-lz  $LIBS"
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13488 /* Override any GCC internal prototype to avoid an error.
13489    Use char because int might match the return type of a GCC
13490    builtin and then its argument prototype would still apply.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char compress2 ();
13495 int
13496 main ()
13498 return compress2 ();
13499   ;
13500   return 0;
13502 _ACEOF
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510   (eval "$ac_link") 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; } &&
13527          { ac_try='test -s conftest$ac_exeext'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_cv_lib_z_compress2=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542         ac_cv_lib_z_compress2=no
13545 rm -f core conftest.err conftest.$ac_objext \
13546       conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13549 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13550 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13551 if test $ac_cv_lib_z_compress2 = yes; then
13552   cat >>confdefs.h <<_ACEOF
13553 #define HAVE_LIBZ 1
13554 _ACEOF
13556   LIBS="-lz $LIBS"
13563 # Check whether --with-udis86 was given.
13564 if test "${with_udis86+set}" = set; then
13565   withval=$with_udis86;
13566       USE_UDIS86=1
13568       case "$withval" in
13569         /usr/lib|yes) ;;
13570         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13571       esac
13573 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13574 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13575 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13576   echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578   ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-ludis86  $LIBS"
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13587 /* Override any GCC internal prototype to avoid an error.
13588    Use char because int might match the return type of a GCC
13589    builtin and then its argument prototype would still apply.  */
13590 #ifdef __cplusplus
13591 extern "C"
13592 #endif
13593 char ud_init ();
13594 int
13595 main ()
13597 return ud_init ();
13598   ;
13599   return 0;
13601 _ACEOF
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (ac_try="$ac_link"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_link") 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632   (eval "$ac_try") 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_lib_udis86_ud_init=yes
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641         ac_cv_lib_udis86_ud_init=no
13644 rm -f core conftest.err conftest.$ac_objext \
13645       conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13648 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13649 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13650 if test $ac_cv_lib_udis86_ud_init = yes; then
13651   cat >>confdefs.h <<_ACEOF
13652 #define HAVE_LIBUDIS86 1
13653 _ACEOF
13655   LIBS="-ludis86 $LIBS"
13657 else
13659         echo "Error! You need to have libudis86 around."
13660         exit -1
13665 else
13666   USE_UDIS86=0
13671 cat >>confdefs.h <<_ACEOF
13672 #define USE_UDIS86 $USE_UDIS86
13673 _ACEOF
13677 # Check whether --with-oprofile was given.
13678 if test "${with_oprofile+set}" = set; then
13679   withval=$with_oprofile;
13680       USE_OPROFILE=1
13682       case "$withval" in
13683         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13684         no) llvm_cv_oppath=
13685             USE_OPROFILE=0
13686  ;;
13687         *) llvm_cv_oppath="${withval}/lib/oprofile"
13688            CPPFLAGS="-I${withval}/include";;
13689       esac
13690       case $llvm_cv_os_type in
13691         Linux)
13692           if test -n "$llvm_cv_oppath" ; then
13693             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13694                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13695 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13696 if test "${ac_cv_search_bfd_init+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13707 /* Override any GCC internal prototype to avoid an error.
13708    Use char because int might match the return type of a GCC
13709    builtin and then its argument prototype would still apply.  */
13710 #ifdef __cplusplus
13711 extern "C"
13712 #endif
13713 char bfd_init ();
13714 int
13715 main ()
13717 return bfd_init ();
13718   ;
13719   return 0;
13721 _ACEOF
13722 for ac_lib in '' bfd; do
13723   if test -z "$ac_lib"; then
13724     ac_res="none required"
13725   else
13726     ac_res=-l$ac_lib
13727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13728   fi
13729   rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_link") 2>conftest.er1
13737   ac_status=$?
13738   grep -v '^ *+' conftest.er1 >conftest.err
13739   rm -f conftest.er1
13740   cat conftest.err >&5
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); } &&
13743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest$ac_exeext'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_search_bfd_init=$ac_res
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13771 rm -f core conftest.err conftest.$ac_objext \
13772       conftest$ac_exeext
13773   if test "${ac_cv_search_bfd_init+set}" = set; then
13774   break
13776 done
13777 if test "${ac_cv_search_bfd_init+set}" = set; then
13778   :
13779 else
13780   ac_cv_search_bfd_init=no
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13786 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13787 ac_res=$ac_cv_search_bfd_init
13788 if test "$ac_res" != no; then
13789   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13794 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_op_open_agent+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13806 /* Override any GCC internal prototype to avoid an error.
13807    Use char because int might match the return type of a GCC
13808    builtin and then its argument prototype would still apply.  */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char op_open_agent ();
13813 int
13814 main ()
13816 return op_open_agent ();
13817   ;
13818   return 0;
13820 _ACEOF
13821 for ac_lib in '' opagent; do
13822   if test -z "$ac_lib"; then
13823     ac_res="none required"
13824   else
13825     ac_res=-l$ac_lib
13826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13827   fi
13828   rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_link") 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest$ac_exeext'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_search_op_open_agent=$ac_res
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13870 rm -f core conftest.err conftest.$ac_objext \
13871       conftest$ac_exeext
13872   if test "${ac_cv_search_op_open_agent+set}" = set; then
13873   break
13875 done
13876 if test "${ac_cv_search_op_open_agent+set}" = set; then
13877   :
13878 else
13879   ac_cv_search_op_open_agent=no
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13885 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13886 ac_res=$ac_cv_search_op_open_agent
13887 if test "$ac_res" != no; then
13888   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13890 else
13892               echo "Error! You need to have libopagent around."
13893               exit -1
13897             if test "${ac_cv_header_opagent_h+set}" = set; then
13898   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13899 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13900 if test "${ac_cv_header_opagent_h+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13904 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13905 else
13906   # Is the header compilable?
13907 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13908 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915 $ac_includes_default
13916 #include <opagent.h>
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (ac_try="$ac_compile"
13920 case "(($ac_try" in
13921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922   *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925   (eval "$ac_compile") 2>conftest.er1
13926   ac_status=$?
13927   grep -v '^ *+' conftest.er1 >conftest.err
13928   rm -f conftest.er1
13929   cat conftest.err >&5
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933   { (case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_try") 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; } &&
13942          { ac_try='test -s conftest.$ac_objext'
13943   { (case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_try") 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_header_compiler=yes
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957         ac_header_compiler=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6; }
13964 # Is the header present?
13965 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13966 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #include <opagent.h>
13974 _ACEOF
13975 if { (ac_try="$ac_cpp conftest.$ac_ext"
13976 case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982   ac_status=$?
13983   grep -v '^ *+' conftest.er1 >conftest.err
13984   rm -f conftest.er1
13985   cat conftest.err >&5
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } >/dev/null; then
13988   if test -s conftest.err; then
13989     ac_cpp_err=$ac_c_preproc_warn_flag
13990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13991   else
13992     ac_cpp_err=
13993   fi
13994 else
13995   ac_cpp_err=yes
13997 if test -z "$ac_cpp_err"; then
13998   ac_header_preproc=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003   ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14010 # So?  What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012   yes:no: )
14013     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14017     ac_header_preproc=yes
14018     ;;
14019   no:yes:* )
14020     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14032     ( cat <<\_ASBOX
14033 ## ------------------------------------ ##
14034 ## Report this to http://llvm.org/bugs/ ##
14035 ## ------------------------------------ ##
14036 _ASBOX
14037      ) | sed "s/^/$as_me: WARNING:     /" >&2
14038     ;;
14039 esac
14040 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14041 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_opagent_h+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   ac_cv_header_opagent_h=$ac_header_preproc
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14051 if test $ac_cv_header_opagent_h = yes; then
14052   :
14053 else
14055               echo "Error! You need to have opagent.h around."
14056               exit -1
14061           fi ;;
14062         *)
14063           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14064 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14065    { (exit 1); exit 1; }; } ;;
14066       esac
14068 else
14070       USE_OPROFILE=0
14076 cat >>confdefs.h <<_ACEOF
14077 #define LLVM_USE_OPROFILE $USE_OPROFILE
14078 _ACEOF
14082 # Check whether --with-intel-jitevents was given.
14083 if test "${with_intel_jitevents+set}" = set; then
14084   withval=$with_intel_jitevents;
14085        case "$withval" in
14086           yes) USE_INTEL_JITEVENTS=1
14088           no)  USE_INTEL_JITEVENTS=0
14090           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14091 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14092    { (exit 1); exit 1; }; };;
14093        esac
14095       case $llvm_cv_os_type in
14096         Linux|Win32|Cygwin|MingW) ;;
14097         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14098 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14099    { (exit 1); exit 1; }; };;
14100       esac
14102       case "$llvm_cv_target_arch" in
14103         x86|x86_64) ;;
14104         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14105 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14106    { (exit 1); exit 1; }; };;
14107       esac
14109 else
14111       USE_INTEL_JITEVENTS=0
14117 cat >>confdefs.h <<_ACEOF
14118 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14119 _ACEOF
14122 for ac_prog in xml2-config
14124   # Extract the first word of "$ac_prog", so it can be a program name with args.
14125 set dummy $ac_prog; ac_word=$2
14126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14128 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   if test -n "$XML2CONFIG"; then
14132   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14133 else
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14137   IFS=$as_save_IFS
14138   test -z "$as_dir" && as_dir=.
14139   for ac_exec_ext in '' $ac_executable_extensions; do
14140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14141     ac_cv_prog_XML2CONFIG="$ac_prog"
14142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14143     break 2
14144   fi
14145 done
14146 done
14147 IFS=$as_save_IFS
14151 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14152 if test -n "$XML2CONFIG"; then
14153   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14154 echo "${ECHO_T}$XML2CONFIG" >&6; }
14155 else
14156   { echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6; }
14161   test -n "$XML2CONFIG" && break
14162 done
14165 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14166 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14167 if test "x$XML2CONFIG" = "x"; then
14168  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14169 echo "${ECHO_T}xml2-config not found" >&6; }
14170 else
14171  LIBXML2_INC=`$XML2CONFIG --cflags`
14172  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14173 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14174  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14175 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14176 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lxml2  $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14188 /* Override any GCC internal prototype to avoid an error.
14189    Use char because int might match the return type of a GCC
14190    builtin and then its argument prototype would still apply.  */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char xmlReadFile ();
14195 int
14196 main ()
14198 return xmlReadFile ();
14199   ;
14200   return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210   (eval "$ac_link") 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; } &&
14227          { ac_try='test -s conftest$ac_exeext'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_lib_xml2_xmlReadFile=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242         ac_cv_lib_xml2_xmlReadFile=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14249 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14250 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14251 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14253 cat >>confdefs.h <<\_ACEOF
14254 #define CLANG_HAVE_LIBXML 1
14255 _ACEOF
14257                                 LIBXML2_LIBS="-lxml2"
14270 ac_header_dirent=no
14271 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14272   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14273 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14274 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 #include <sys/types.h>
14285 #include <$ac_hdr>
14287 int
14288 main ()
14290 if ((DIR *) 0)
14291 return 0;
14292   ;
14293   return 0;
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_compile") 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311   { (case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316   (eval "$ac_try") 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   eval "$as_ac_Header=yes"
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335         eval "$as_ac_Header=no"
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 ac_res=`eval echo '${'$as_ac_Header'}'`
14341                { echo "$as_me:$LINENO: result: $ac_res" >&5
14342 echo "${ECHO_T}$ac_res" >&6; }
14343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14344   cat >>confdefs.h <<_ACEOF
14345 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14346 _ACEOF
14348 ac_header_dirent=$ac_hdr; break
14351 done
14352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14353 if test $ac_header_dirent = dirent.h; then
14354   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14356 if test "${ac_cv_search_opendir+set}" = set; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   ac_func_search_save_LIBS=$LIBS
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14367 /* Override any GCC internal prototype to avoid an error.
14368    Use char because int might match the return type of a GCC
14369    builtin and then its argument prototype would still apply.  */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 char opendir ();
14374 int
14375 main ()
14377 return opendir ();
14378   ;
14379   return 0;
14381 _ACEOF
14382 for ac_lib in '' dir; do
14383   if test -z "$ac_lib"; then
14384     ac_res="none required"
14385   else
14386     ac_res=-l$ac_lib
14387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14388   fi
14389   rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_link") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; } &&
14413          { ac_try='test -s conftest$ac_exeext'
14414   { (case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_try") 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_cv_search_opendir=$ac_res
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14431 rm -f core conftest.err conftest.$ac_objext \
14432       conftest$ac_exeext
14433   if test "${ac_cv_search_opendir+set}" = set; then
14434   break
14436 done
14437 if test "${ac_cv_search_opendir+set}" = set; then
14438   :
14439 else
14440   ac_cv_search_opendir=no
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14453 else
14454   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14455 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14456 if test "${ac_cv_search_opendir+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   ac_func_search_save_LIBS=$LIBS
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14467 /* Override any GCC internal prototype to avoid an error.
14468    Use char because int might match the return type of a GCC
14469    builtin and then its argument prototype would still apply.  */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char opendir ();
14474 int
14475 main ()
14477 return opendir ();
14478   ;
14479   return 0;
14481 _ACEOF
14482 for ac_lib in '' x; do
14483   if test -z "$ac_lib"; then
14484     ac_res="none required"
14485   else
14486     ac_res=-l$ac_lib
14487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14488   fi
14489   rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_link") 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504   { (case "(($ac_try" in
14505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506   *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509   (eval "$ac_try") 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; } &&
14513          { ac_try='test -s conftest$ac_exeext'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_search_opendir=$ac_res
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14531 rm -f core conftest.err conftest.$ac_objext \
14532       conftest$ac_exeext
14533   if test "${ac_cv_search_opendir+set}" = set; then
14534   break
14536 done
14537 if test "${ac_cv_search_opendir+set}" = set; then
14538   :
14539 else
14540   ac_cv_search_opendir=no
14542 rm conftest.$ac_ext
14543 LIBS=$ac_func_search_save_LIBS
14545 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14546 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14547 ac_res=$ac_cv_search_opendir
14548 if test "$ac_res" != no; then
14549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14555 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14556 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14557 if test "${ac_cv_header_mmap_anon+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560    ac_ext=c
14561 ac_cpp='$CPP $CPPFLAGS'
14562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14566   cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572 #include <sys/mman.h>
14573 #include <unistd.h>
14574 #include <fcntl.h>
14575 int
14576 main ()
14578 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14579   ;
14580   return 0;
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (ac_try="$ac_compile"
14585 case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_compile") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598   { (case "(($ac_try" in
14599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600   *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603   (eval "$ac_try") 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617   ac_cv_header_mmap_anon=yes
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622         ac_cv_header_mmap_anon=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626   ac_ext=c
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14635 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14636 if test "$ac_cv_header_mmap_anon" = yes; then
14638 cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_MMAP_ANONYMOUS 1
14640 _ACEOF
14644 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14645 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_stat_broken+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 #include <sys/types.h>
14656 #include <sys/stat.h>
14658 #if defined S_ISBLK && defined S_IFDIR
14659 # if S_ISBLK (S_IFDIR)
14660 You lose.
14661 # endif
14662 #endif
14664 #if defined S_ISBLK && defined S_IFCHR
14665 # if S_ISBLK (S_IFCHR)
14666 You lose.
14667 # endif
14668 #endif
14670 #if defined S_ISLNK && defined S_IFREG
14671 # if S_ISLNK (S_IFREG)
14672 You lose.
14673 # endif
14674 #endif
14676 #if defined S_ISSOCK && defined S_IFREG
14677 # if S_ISSOCK (S_IFREG)
14678 You lose.
14679 # endif
14680 #endif
14682 _ACEOF
14683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14684   $EGREP "You lose" >/dev/null 2>&1; then
14685   ac_cv_header_stat_broken=yes
14686 else
14687   ac_cv_header_stat_broken=no
14689 rm -f conftest*
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14693 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14694 if test $ac_cv_header_stat_broken = yes; then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define STAT_MACROS_BROKEN 1
14698 _ACEOF
14702 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14703 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14704 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 #include <sys/types.h>
14714 #include <sys/wait.h>
14715 #ifndef WEXITSTATUS
14716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14717 #endif
14718 #ifndef WIFEXITED
14719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14720 #endif
14722 int
14723 main ()
14725   int s;
14726   wait (&s);
14727   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14728   ;
14729   return 0;
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_compile") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_try") 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766   ac_cv_header_sys_wait_h=yes
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771         ac_cv_header_sys_wait_h=no
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14777 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14778 if test $ac_cv_header_sys_wait_h = yes; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_SYS_WAIT_H 1
14782 _ACEOF
14786 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14788 if test "${ac_cv_header_time+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 #include <sys/types.h>
14798 #include <sys/time.h>
14799 #include <time.h>
14801 int
14802 main ()
14804 if ((struct tm *) 0)
14805 return 0;
14806   ;
14807   return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (ac_try="$ac_compile"
14812 case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_compile") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } &&
14824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14825   { (case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_try") 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; } &&
14834          { ac_try='test -s conftest.$ac_objext'
14835   { (case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_try") 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_cv_header_time=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849         ac_cv_header_time=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14855 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14856 if test $ac_cv_header_time = yes; then
14858 cat >>confdefs.h <<\_ACEOF
14859 #define TIME_WITH_SYS_TIME 1
14860 _ACEOF
14871 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_res=`eval echo '${'$as_ac_Header'}'`
14881                { echo "$as_me:$LINENO: result: $ac_res" >&5
14882 echo "${ECHO_T}$ac_res" >&6; }
14883 else
14884   # Is the header compilable?
14885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h.  */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h.  */
14893 $ac_includes_default
14894 #include <$ac_header>
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903   (eval "$ac_compile") 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911   { (case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_try") 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; } &&
14920          { ac_try='test -s conftest.$ac_objext'
14921   { (case "(($ac_try" in
14922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923   *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926   (eval "$ac_try") 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_header_compiler=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935         ac_header_compiler=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6; }
14942 # Is the header present?
14943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951 #include <$ac_header>
14952 _ACEOF
14953 if { (ac_try="$ac_cpp conftest.$ac_ext"
14954 case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } >/dev/null; then
14966   if test -s conftest.err; then
14967     ac_cpp_err=$ac_c_preproc_warn_flag
14968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14969   else
14970     ac_cpp_err=
14971   fi
14972 else
14973   ac_cpp_err=yes
14975 if test -z "$ac_cpp_err"; then
14976   ac_header_preproc=yes
14977 else
14978   echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981   ac_header_preproc=no
14984 rm -f conftest.err conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986 echo "${ECHO_T}$ac_header_preproc" >&6; }
14988 # So?  What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14990   yes:no: )
14991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995     ac_header_preproc=yes
14996     ;;
14997   no:yes:* )
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15010     ( cat <<\_ASBOX
15011 ## ------------------------------------ ##
15012 ## Report this to http://llvm.org/bugs/ ##
15013 ## ------------------------------------ ##
15014 _ASBOX
15015      ) | sed "s/^/$as_me: WARNING:     /" >&2
15016     ;;
15017 esac
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   eval "$as_ac_Header=\$ac_header_preproc"
15025 ac_res=`eval echo '${'$as_ac_Header'}'`
15026                { echo "$as_me:$LINENO: result: $ac_res" >&5
15027 echo "${ECHO_T}$ac_res" >&6; }
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031   cat >>confdefs.h <<_ACEOF
15032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15033 _ACEOF
15037 done
15045 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055                { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 else
15058   # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 $ac_includes_default
15068 #include <$ac_header>
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_compile") 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085   { (case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_try") 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; } &&
15094          { ac_try='test -s conftest.$ac_objext'
15095   { (case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_try") 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   ac_header_compiler=yes
15105 else
15106   echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109         ac_header_compiler=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6; }
15116 # Is the header present?
15117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 #include <$ac_header>
15126 _ACEOF
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } >/dev/null; then
15140   if test -s conftest.err; then
15141     ac_cpp_err=$ac_c_preproc_warn_flag
15142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15143   else
15144     ac_cpp_err=
15145   fi
15146 else
15147   ac_cpp_err=yes
15149 if test -z "$ac_cpp_err"; then
15150   ac_header_preproc=yes
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155   ac_header_preproc=no
15158 rm -f conftest.err conftest.$ac_ext
15159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160 echo "${ECHO_T}$ac_header_preproc" >&6; }
15162 # So?  What about this header?
15163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15164   yes:no: )
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169     ac_header_preproc=yes
15170     ;;
15171   no:yes:* )
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15184     ( cat <<\_ASBOX
15185 ## ------------------------------------ ##
15186 ## Report this to http://llvm.org/bugs/ ##
15187 ## ------------------------------------ ##
15188 _ASBOX
15189      ) | sed "s/^/$as_me: WARNING:     /" >&2
15190     ;;
15191 esac
15192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   eval "$as_ac_Header=\$ac_header_preproc"
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200                { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15205   cat >>confdefs.h <<_ACEOF
15206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15207 _ACEOF
15211 done
15215 for ac_header in utime.h windows.h
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 else
15228   # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 $ac_includes_default
15238 #include <$ac_header>
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_compile") 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest.$ac_objext'
15265   { (case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_try") 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_header_compiler=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279         ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } >/dev/null; then
15310   if test -s conftest.err; then
15311     ac_cpp_err=$ac_c_preproc_warn_flag
15312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313   else
15314     ac_cpp_err=
15315   fi
15316 else
15317   ac_cpp_err=yes
15319 if test -z "$ac_cpp_err"; then
15320   ac_header_preproc=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325   ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332 # So?  What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334   yes:no: )
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339     ac_header_preproc=yes
15340     ;;
15341   no:yes:* )
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354     ( cat <<\_ASBOX
15355 ## ------------------------------------ ##
15356 ## Report this to http://llvm.org/bugs/ ##
15357 ## ------------------------------------ ##
15358 _ASBOX
15359      ) | sed "s/^/$as_me: WARNING:     /" >&2
15360     ;;
15361 esac
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   eval "$as_ac_Header=\$ac_header_preproc"
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370                { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375   cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15381 done
15388 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 ac_res=`eval echo '${'$as_ac_Header'}'`
15398                { echo "$as_me:$LINENO: result: $ac_res" >&5
15399 echo "${ECHO_T}$ac_res" >&6; }
15400 else
15401   # Is the header compilable?
15402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 $ac_includes_default
15411 #include <$ac_header>
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_compile") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428   { (case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_try") 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; } &&
15437          { ac_try='test -s conftest.$ac_objext'
15438   { (case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_try") 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   ac_header_compiler=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452         ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 #include <$ac_header>
15469 _ACEOF
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473   *) ac_try_echo=$ac_try;;
15474 esac
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15477   ac_status=$?
15478   grep -v '^ *+' conftest.er1 >conftest.err
15479   rm -f conftest.er1
15480   cat conftest.err >&5
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } >/dev/null; then
15483   if test -s conftest.err; then
15484     ac_cpp_err=$ac_c_preproc_warn_flag
15485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15486   else
15487     ac_cpp_err=
15488   fi
15489 else
15490   ac_cpp_err=yes
15492 if test -z "$ac_cpp_err"; then
15493   ac_header_preproc=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498   ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505 # So?  What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507   yes:no: )
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512     ac_header_preproc=yes
15513     ;;
15514   no:yes:* )
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15527     ( cat <<\_ASBOX
15528 ## ------------------------------------ ##
15529 ## Report this to http://llvm.org/bugs/ ##
15530 ## ------------------------------------ ##
15531 _ASBOX
15532      ) | sed "s/^/$as_me: WARNING:     /" >&2
15533     ;;
15534 esac
15535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   eval "$as_ac_Header=\$ac_header_preproc"
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543                { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548   cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15550 _ACEOF
15554 done
15560 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 ac_res=`eval echo '${'$as_ac_Header'}'`
15570                { echo "$as_me:$LINENO: result: $ac_res" >&5
15571 echo "${ECHO_T}$ac_res" >&6; }
15572 else
15573   # Is the header compilable?
15574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582 $ac_includes_default
15583 #include <$ac_header>
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589   *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592   (eval "$ac_compile") 2>conftest.er1
15593   ac_status=$?
15594   grep -v '^ *+' conftest.er1 >conftest.err
15595   rm -f conftest.er1
15596   cat conftest.err >&5
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); } &&
15599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600   { (case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_try") 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; } &&
15609          { ac_try='test -s conftest.$ac_objext'
15610   { (case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615   (eval "$ac_try") 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   ac_header_compiler=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624         ac_header_compiler=no
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631 # Is the header present?
15632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 #include <$ac_header>
15641 _ACEOF
15642 if { (ac_try="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } >/dev/null; then
15655   if test -s conftest.err; then
15656     ac_cpp_err=$ac_c_preproc_warn_flag
15657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15658   else
15659     ac_cpp_err=
15660   fi
15661 else
15662   ac_cpp_err=yes
15664 if test -z "$ac_cpp_err"; then
15665   ac_header_preproc=yes
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670   ac_header_preproc=no
15673 rm -f conftest.err conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677 # So?  What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679   yes:no: )
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684     ac_header_preproc=yes
15685     ;;
15686   no:yes:* )
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699     ( cat <<\_ASBOX
15700 ## ------------------------------------ ##
15701 ## Report this to http://llvm.org/bugs/ ##
15702 ## ------------------------------------ ##
15703 _ASBOX
15704      ) | sed "s/^/$as_me: WARNING:     /" >&2
15705     ;;
15706 esac
15707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   eval "$as_ac_Header=\$ac_header_preproc"
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715                { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15720   cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15722 _ACEOF
15726 done
15729 for ac_header in valgrind/valgrind.h
15731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 ac_res=`eval echo '${'$as_ac_Header'}'`
15739                { echo "$as_me:$LINENO: result: $ac_res" >&5
15740 echo "${ECHO_T}$ac_res" >&6; }
15741 else
15742   # Is the header compilable?
15743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 $ac_includes_default
15752 #include <$ac_header>
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (ac_try="$ac_compile"
15756 case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_compile") 2>conftest.er1
15762   ac_status=$?
15763   grep -v '^ *+' conftest.er1 >conftest.err
15764   rm -f conftest.er1
15765   cat conftest.err >&5
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); } &&
15768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769   { (case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_try") 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest.$ac_objext'
15779   { (case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_try") 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   ac_header_compiler=yes
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793         ac_header_compiler=no
15796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6; }
15800 # Is the header present?
15801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 #include <$ac_header>
15810 _ACEOF
15811 if { (ac_try="$ac_cpp conftest.$ac_ext"
15812 case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } >/dev/null; then
15824   if test -s conftest.err; then
15825     ac_cpp_err=$ac_c_preproc_warn_flag
15826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15827   else
15828     ac_cpp_err=
15829   fi
15830 else
15831   ac_cpp_err=yes
15833 if test -z "$ac_cpp_err"; then
15834   ac_header_preproc=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839   ac_header_preproc=no
15842 rm -f conftest.err conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844 echo "${ECHO_T}$ac_header_preproc" >&6; }
15846 # So?  What about this header?
15847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15848   yes:no: )
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853     ac_header_preproc=yes
15854     ;;
15855   no:yes:* )
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15868     ( cat <<\_ASBOX
15869 ## ------------------------------------ ##
15870 ## Report this to http://llvm.org/bugs/ ##
15871 ## ------------------------------------ ##
15872 _ASBOX
15873      ) | sed "s/^/$as_me: WARNING:     /" >&2
15874     ;;
15875 esac
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   eval "$as_ac_Header=\$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884                { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889   cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15891 _ACEOF
15895 done
15898 for ac_header in fenv.h
15900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15902   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908                { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15910 else
15911   # Is the header compilable?
15912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h.  */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h.  */
15920 $ac_includes_default
15921 #include <$ac_header>
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_compile") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } &&
15937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15938   { (case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_try") 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest.$ac_objext'
15948   { (case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_try") 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_header_compiler=yes
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962         ac_header_compiler=no
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6; }
15969 # Is the header present?
15970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <$ac_header>
15979 _ACEOF
15980 if { (ac_try="$ac_cpp conftest.$ac_ext"
15981 case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } >/dev/null; then
15993   if test -s conftest.err; then
15994     ac_cpp_err=$ac_c_preproc_warn_flag
15995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15996   else
15997     ac_cpp_err=
15998   fi
15999 else
16000   ac_cpp_err=yes
16002 if test -z "$ac_cpp_err"; then
16003   ac_header_preproc=yes
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008   ac_header_preproc=no
16011 rm -f conftest.err conftest.$ac_ext
16012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6; }
16015 # So?  What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017   yes:no: )
16018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022     ac_header_preproc=yes
16023     ;;
16024   no:yes:* )
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037     ( cat <<\_ASBOX
16038 ## ------------------------------------ ##
16039 ## Report this to http://llvm.org/bugs/ ##
16040 ## ------------------------------------ ##
16041 _ASBOX
16042      ) | sed "s/^/$as_me: WARNING:     /" >&2
16043     ;;
16044 esac
16045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   eval "$as_ac_Header=\$ac_header_preproc"
16052 ac_res=`eval echo '${'$as_ac_Header'}'`
16053                { echo "$as_me:$LINENO: result: $ac_res" >&5
16054 echo "${ECHO_T}$ac_res" >&6; }
16057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16058   cat >>confdefs.h <<_ACEOF
16059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16060 _ACEOF
16064 done
16066 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16067 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16068 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 #include <fenv.h>
16079 int
16080 main ()
16082 #ifndef FE_ALL_EXCEPT
16083   char *p = (char *) FE_ALL_EXCEPT;
16084   return !p;
16085 #endif
16087   ;
16088   return 0;
16090 _ACEOF
16091 rm -f conftest.$ac_objext
16092 if { (ac_try="$ac_compile"
16093 case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_compile") 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106   { (case "(($ac_try" in
16107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108   *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111   (eval "$ac_try") 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; } &&
16115          { ac_try='test -s conftest.$ac_objext'
16116   { (case "(($ac_try" in
16117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118   *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121   (eval "$ac_try") 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; }; then
16125   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130         ac_cv_have_decl_FE_ALL_EXCEPT=no
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16136 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16137 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define HAVE_DECL_FE_ALL_EXCEPT 1
16141 _ACEOF
16144 else
16145   cat >>confdefs.h <<_ACEOF
16146 #define HAVE_DECL_FE_ALL_EXCEPT 0
16147 _ACEOF
16151 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16152 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16153 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <fenv.h>
16164 int
16165 main ()
16167 #ifndef FE_INEXACT
16168   char *p = (char *) FE_INEXACT;
16169   return !p;
16170 #endif
16172   ;
16173   return 0;
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_compile") 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } &&
16190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191   { (case "(($ac_try" in
16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193   *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196   (eval "$ac_try") 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; } &&
16200          { ac_try='test -s conftest.$ac_objext'
16201   { (case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_try") 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_cv_have_decl_FE_INEXACT=yes
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215         ac_cv_have_decl_FE_INEXACT=no
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16221 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16222 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_DECL_FE_INEXACT 1
16226 _ACEOF
16229 else
16230   cat >>confdefs.h <<_ACEOF
16231 #define HAVE_DECL_FE_INEXACT 0
16232 _ACEOF
16238 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16240 for ac_header in pthread.h
16242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 ac_res=`eval echo '${'$as_ac_Header'}'`
16250                { echo "$as_me:$LINENO: result: $ac_res" >&5
16251 echo "${ECHO_T}$ac_res" >&6; }
16252 else
16253   # Is the header compilable?
16254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262 $ac_includes_default
16263 #include <$ac_header>
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_compile") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } &&
16279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280   { (case "(($ac_try" in
16281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282   *) ac_try_echo=$ac_try;;
16283 esac
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285   (eval "$ac_try") 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; } &&
16289          { ac_try='test -s conftest.$ac_objext'
16290   { (case "(($ac_try" in
16291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292   *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295   (eval "$ac_try") 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }; then
16299   ac_header_compiler=yes
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304         ac_header_compiler=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16309 echo "${ECHO_T}$ac_header_compiler" >&6; }
16311 # Is the header present?
16312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320 #include <$ac_header>
16321 _ACEOF
16322 if { (ac_try="$ac_cpp conftest.$ac_ext"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } >/dev/null; then
16335   if test -s conftest.err; then
16336     ac_cpp_err=$ac_c_preproc_warn_flag
16337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16338   else
16339     ac_cpp_err=
16340   fi
16341 else
16342   ac_cpp_err=yes
16344 if test -z "$ac_cpp_err"; then
16345   ac_header_preproc=yes
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350   ac_header_preproc=no
16353 rm -f conftest.err conftest.$ac_ext
16354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16355 echo "${ECHO_T}$ac_header_preproc" >&6; }
16357 # So?  What about this header?
16358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16359   yes:no: )
16360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16364     ac_header_preproc=yes
16365     ;;
16366   no:yes:* )
16367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16379     ( cat <<\_ASBOX
16380 ## ------------------------------------ ##
16381 ## Report this to http://llvm.org/bugs/ ##
16382 ## ------------------------------------ ##
16383 _ASBOX
16384      ) | sed "s/^/$as_me: WARNING:     /" >&2
16385     ;;
16386 esac
16387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392   eval "$as_ac_Header=\$ac_header_preproc"
16394 ac_res=`eval echo '${'$as_ac_Header'}'`
16395                { echo "$as_me:$LINENO: result: $ac_res" >&5
16396 echo "${ECHO_T}$ac_res" >&6; }
16399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16400   cat >>confdefs.h <<_ACEOF
16401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 _ACEOF
16403  HAVE_PTHREAD=1
16405 else
16406   HAVE_PTHREAD=0
16410 done
16412 else
16413   HAVE_PTHREAD=0
16416 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16418 for ac_header in zlib.h
16420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 ac_res=`eval echo '${'$as_ac_Header'}'`
16428                { echo "$as_me:$LINENO: result: $ac_res" >&5
16429 echo "${ECHO_T}$ac_res" >&6; }
16430 else
16431   # Is the header compilable?
16432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 $ac_includes_default
16441 #include <$ac_header>
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (ac_try="$ac_compile"
16445 case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_compile") 2>conftest.er1
16451   ac_status=$?
16452   grep -v '^ *+' conftest.er1 >conftest.err
16453   rm -f conftest.er1
16454   cat conftest.err >&5
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); } &&
16457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16458   { (case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_try") 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; } &&
16467          { ac_try='test -s conftest.$ac_objext'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ac_header_compiler=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482         ac_header_compiler=no
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16487 echo "${ECHO_T}$ac_header_compiler" >&6; }
16489 # Is the header present?
16490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498 #include <$ac_header>
16499 _ACEOF
16500 if { (ac_try="$ac_cpp conftest.$ac_ext"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } >/dev/null; then
16513   if test -s conftest.err; then
16514     ac_cpp_err=$ac_c_preproc_warn_flag
16515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16516   else
16517     ac_cpp_err=
16518   fi
16519 else
16520   ac_cpp_err=yes
16522 if test -z "$ac_cpp_err"; then
16523   ac_header_preproc=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528   ac_header_preproc=no
16531 rm -f conftest.err conftest.$ac_ext
16532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16533 echo "${ECHO_T}$ac_header_preproc" >&6; }
16535 # So?  What about this header?
16536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16537   yes:no: )
16538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16542     ac_header_preproc=yes
16543     ;;
16544   no:yes:* )
16545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16557     ( cat <<\_ASBOX
16558 ## ------------------------------------ ##
16559 ## Report this to http://llvm.org/bugs/ ##
16560 ## ------------------------------------ ##
16561 _ASBOX
16562      ) | sed "s/^/$as_me: WARNING:     /" >&2
16563     ;;
16564 esac
16565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   eval "$as_ac_Header=\$ac_header_preproc"
16572 ac_res=`eval echo '${'$as_ac_Header'}'`
16573                { echo "$as_me:$LINENO: result: $ac_res" >&5
16574 echo "${ECHO_T}$ac_res" >&6; }
16577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16578   cat >>confdefs.h <<_ACEOF
16579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16580 _ACEOF
16581  HAVE_LIBZ=1
16583 else
16584   HAVE_LIBZ=0
16588 done
16590 else
16591   HAVE_LIBZ=0
16595 if test "$llvm_cv_enable_libffi" = "yes" ; then
16598 for ac_header in ffi.h ffi/ffi.h
16600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 ac_res=`eval echo '${'$as_ac_Header'}'`
16608                { echo "$as_me:$LINENO: result: $ac_res" >&5
16609 echo "${ECHO_T}$ac_res" >&6; }
16610 else
16611   # Is the header compilable?
16612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620 $ac_includes_default
16621 #include <$ac_header>
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_compile") 2>conftest.er1
16631   ac_status=$?
16632   grep -v '^ *+' conftest.er1 >conftest.err
16633   rm -f conftest.er1
16634   cat conftest.err >&5
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); } &&
16637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638   { (case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_try") 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest.$ac_objext'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_header_compiler=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662         ac_header_compiler=no
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16667 echo "${ECHO_T}$ac_header_compiler" >&6; }
16669 # Is the header present?
16670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 #include <$ac_header>
16679 _ACEOF
16680 if { (ac_try="$ac_cpp conftest.$ac_ext"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } >/dev/null; then
16693   if test -s conftest.err; then
16694     ac_cpp_err=$ac_c_preproc_warn_flag
16695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16696   else
16697     ac_cpp_err=
16698   fi
16699 else
16700   ac_cpp_err=yes
16702 if test -z "$ac_cpp_err"; then
16703   ac_header_preproc=yes
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708   ac_header_preproc=no
16711 rm -f conftest.err conftest.$ac_ext
16712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16713 echo "${ECHO_T}$ac_header_preproc" >&6; }
16715 # So?  What about this header?
16716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16717   yes:no: )
16718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16722     ac_header_preproc=yes
16723     ;;
16724   no:yes:* )
16725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16737     ( cat <<\_ASBOX
16738 ## ------------------------------------ ##
16739 ## Report this to http://llvm.org/bugs/ ##
16740 ## ------------------------------------ ##
16741 _ASBOX
16742      ) | sed "s/^/$as_me: WARNING:     /" >&2
16743     ;;
16744 esac
16745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   eval "$as_ac_Header=\$ac_header_preproc"
16752 ac_res=`eval echo '${'$as_ac_Header'}'`
16753                { echo "$as_me:$LINENO: result: $ac_res" >&5
16754 echo "${ECHO_T}$ac_res" >&6; }
16757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16758   cat >>confdefs.h <<_ACEOF
16759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16760 _ACEOF
16764 done
16769 for ac_header in CrashReporterClient.h
16771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16773   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16776   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 ac_res=`eval echo '${'$as_ac_Header'}'`
16779                { echo "$as_me:$LINENO: result: $ac_res" >&5
16780 echo "${ECHO_T}$ac_res" >&6; }
16781 else
16782   # Is the header compilable?
16783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791 $ac_includes_default
16792 #include <$ac_header>
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (ac_try="$ac_compile"
16796 case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_compile") 2>conftest.er1
16802   ac_status=$?
16803   grep -v '^ *+' conftest.er1 >conftest.err
16804   rm -f conftest.er1
16805   cat conftest.err >&5
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); } &&
16808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809   { (case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_try") 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; } &&
16818          { ac_try='test -s conftest.$ac_objext'
16819   { (case "(($ac_try" in
16820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821   *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824   (eval "$ac_try") 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_header_compiler=yes
16829 else
16830   echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833         ac_header_compiler=no
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16838 echo "${ECHO_T}$ac_header_compiler" >&6; }
16840 # Is the header present?
16841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 #include <$ac_header>
16850 _ACEOF
16851 if { (ac_try="$ac_cpp conftest.$ac_ext"
16852 case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16858   ac_status=$?
16859   grep -v '^ *+' conftest.er1 >conftest.err
16860   rm -f conftest.er1
16861   cat conftest.err >&5
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); } >/dev/null; then
16864   if test -s conftest.err; then
16865     ac_cpp_err=$ac_c_preproc_warn_flag
16866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16867   else
16868     ac_cpp_err=
16869   fi
16870 else
16871   ac_cpp_err=yes
16873 if test -z "$ac_cpp_err"; then
16874   ac_header_preproc=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879   ac_header_preproc=no
16882 rm -f conftest.err conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16884 echo "${ECHO_T}$ac_header_preproc" >&6; }
16886 # So?  What about this header?
16887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16888   yes:no: )
16889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16893     ac_header_preproc=yes
16894     ;;
16895   no:yes:* )
16896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16908     ( cat <<\_ASBOX
16909 ## ------------------------------------ ##
16910 ## Report this to http://llvm.org/bugs/ ##
16911 ## ------------------------------------ ##
16912 _ASBOX
16913      ) | sed "s/^/$as_me: WARNING:     /" >&2
16914     ;;
16915 esac
16916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16919   echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921   eval "$as_ac_Header=\$ac_header_preproc"
16923 ac_res=`eval echo '${'$as_ac_Header'}'`
16924                { echo "$as_me:$LINENO: result: $ac_res" >&5
16925 echo "${ECHO_T}$ac_res" >&6; }
16928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16929   cat >>confdefs.h <<_ACEOF
16930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16931 _ACEOF
16935 done
16938 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16939 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16942   /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16948     extern const char *__crashreporter_info__;
16949     int main() {
16950       __crashreporter_info__ = "test";
16951       return 0;
16952     }
16955 _ACEOF
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960   *) ac_try_echo=$ac_try;;
16961 esac
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963   (eval "$ac_link") 2>conftest.er1
16964   ac_status=$?
16965   grep -v '^ *+' conftest.er1 >conftest.err
16966   rm -f conftest.er1
16967   cat conftest.err >&5
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } &&
16970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; } &&
16980          { ac_try='test -s conftest$ac_exeext'
16981   { (case "(($ac_try" in
16982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983   *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986   (eval "$ac_try") 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16991   { echo "$as_me:$LINENO: result: yes" >&5
16992 echo "${ECHO_T}yes" >&6; }
16994 cat >>confdefs.h <<\_ACEOF
16995 #define HAVE_CRASHREPORTER_INFO 1
16996 _ACEOF
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17004   { echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6; }
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_CRASHREPORTER_INFO 0
17009 _ACEOF
17014 rm -f core conftest.err conftest.$ac_objext \
17015       conftest$ac_exeext conftest.$ac_ext
17019   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17020 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17021 if test "${ac_cv_huge_val_sanity+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17025     ac_ext=cpp
17026 ac_cpp='$CXXCPP $CPPFLAGS'
17027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17031     ac_save_CXXFLAGS=$CXXFLAGS
17032     CXXFLAGS="$CXXFLAGS -pedantic"
17033     if test "$cross_compiling" = yes; then
17034   ac_cv_huge_val_sanity=yes
17035 else
17036   cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 #include <math.h>
17043 int
17044 main ()
17046 double x = HUGE_VAL; return x != x;
17047   ;
17048   return 0;
17050 _ACEOF
17051 rm -f conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_link") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17062   { (case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_try") 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_huge_val_sanity=yes
17072 else
17073   echo "$as_me: program exited with status $ac_status" >&5
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ( exit $ac_status )
17078 ac_cv_huge_val_sanity=no
17080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17084     CXXFLAGS=$ac_save_CXXFLAGS
17085     ac_ext=c
17086 ac_cpp='$CPP $CPPFLAGS'
17087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17094 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17095   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17098 { echo "$as_me:$LINENO: checking for pid_t" >&5
17099 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17100 if test "${ac_cv_type_pid_t+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109 $ac_includes_default
17110 typedef pid_t ac__type_new_;
17111 int
17112 main ()
17114 if ((ac__type_new_ *) 0)
17115   return 0;
17116 if (sizeof (ac__type_new_))
17117   return 0;
17118   ;
17119   return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_compile") 2>conftest.er1
17130   ac_status=$?
17131   grep -v '^ *+' conftest.er1 >conftest.err
17132   rm -f conftest.er1
17133   cat conftest.err >&5
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); } &&
17136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137   { (case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_try") 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; } &&
17146          { ac_try='test -s conftest.$ac_objext'
17147   { (case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_try") 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   ac_cv_type_pid_t=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161         ac_cv_type_pid_t=no
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17167 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17168 if test $ac_cv_type_pid_t = yes; then
17169   :
17170 else
17172 cat >>confdefs.h <<_ACEOF
17173 #define pid_t int
17174 _ACEOF
17178 { echo "$as_me:$LINENO: checking for size_t" >&5
17179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17180 if test "${ac_cv_type_size_t+set}" = set; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183   cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189 $ac_includes_default
17190 typedef size_t ac__type_new_;
17191 int
17192 main ()
17194 if ((ac__type_new_ *) 0)
17195   return 0;
17196 if (sizeof (ac__type_new_))
17197   return 0;
17198   ;
17199   return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_compile") 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } &&
17216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217   { (case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222   (eval "$ac_try") 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; } &&
17226          { ac_try='test -s conftest.$ac_objext'
17227   { (case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_try") 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; }; then
17236   ac_cv_type_size_t=yes
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241         ac_cv_type_size_t=no
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17247 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17248 if test $ac_cv_type_size_t = yes; then
17249   :
17250 else
17252 cat >>confdefs.h <<_ACEOF
17253 #define size_t unsigned int
17254 _ACEOF
17259 cat >>confdefs.h <<_ACEOF
17260 #define RETSIGTYPE void
17261 _ACEOF
17263 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17265 if test "${ac_cv_struct_tm+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268   cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274 #include <sys/types.h>
17275 #include <time.h>
17277 int
17278 main ()
17280 struct tm *tp; tp->tm_sec;
17281   ;
17282   return 0;
17284 _ACEOF
17285 rm -f conftest.$ac_objext
17286 if { (ac_try="$ac_compile"
17287 case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_compile") 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300   { (case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_try") 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; } &&
17309          { ac_try='test -s conftest.$ac_objext'
17310   { (case "(($ac_try" in
17311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312   *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315   (eval "$ac_try") 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); }; }; then
17319   ac_cv_struct_tm=time.h
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324         ac_cv_struct_tm=sys/time.h
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17330 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17331 if test $ac_cv_struct_tm = sys/time.h; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define TM_IN_SYS_TIME 1
17335 _ACEOF
17339 { echo "$as_me:$LINENO: checking for int64_t" >&5
17340 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17341 if test "${ac_cv_type_int64_t+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 $ac_includes_default
17351 typedef int64_t ac__type_new_;
17352 int
17353 main ()
17355 if ((ac__type_new_ *) 0)
17356   return 0;
17357 if (sizeof (ac__type_new_))
17358   return 0;
17359   ;
17360   return 0;
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_compile") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_try") 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_cv_type_int64_t=yes
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402         ac_cv_type_int64_t=no
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17408 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17409 if test $ac_cv_type_int64_t = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_INT64_T 1
17413 _ACEOF
17416 else
17417   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17418 echo "$as_me: error: Type int64_t required but not found" >&2;}
17419    { (exit 1); exit 1; }; }
17422 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17423 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17424 if test "${ac_cv_type_uint64_t+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433 $ac_includes_default
17434 typedef uint64_t ac__type_new_;
17435 int
17436 main ()
17438 if ((ac__type_new_ *) 0)
17439   return 0;
17440 if (sizeof (ac__type_new_))
17441   return 0;
17442   ;
17443   return 0;
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453   (eval "$ac_compile") 2>conftest.er1
17454   ac_status=$?
17455   grep -v '^ *+' conftest.er1 >conftest.err
17456   rm -f conftest.er1
17457   cat conftest.err >&5
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); } &&
17460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461   { (case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_try") 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_try") 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ac_cv_type_uint64_t=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485         ac_cv_type_uint64_t=no
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17491 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17492 if test $ac_cv_type_uint64_t = yes; then
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_UINT64_T 1
17496 _ACEOF
17499 else
17500   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17501 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17502 if test "${ac_cv_type_u_int64_t+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505   cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511 $ac_includes_default
17512 typedef u_int64_t ac__type_new_;
17513 int
17514 main ()
17516 if ((ac__type_new_ *) 0)
17517   return 0;
17518 if (sizeof (ac__type_new_))
17519   return 0;
17520   ;
17521   return 0;
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_compile") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17539   { (case "(($ac_try" in
17540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541   *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544   (eval "$ac_try") 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; } &&
17548          { ac_try='test -s conftest.$ac_objext'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   ac_cv_type_u_int64_t=yes
17559 else
17560   echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563         ac_cv_type_u_int64_t=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17570 if test $ac_cv_type_u_int64_t = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_U_INT64_T 1
17574 _ACEOF
17577 else
17578   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17579 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17580    { (exit 1); exit 1; }; }
17594 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17610 #define $ac_func innocuous_$ac_func
17612 /* System header to define __stub macros and hopefully few prototypes,
17613     which can conflict with char $ac_func (); below.
17614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17615     <limits.h> exists even on freestanding compilers.  */
17617 #ifdef __STDC__
17618 # include <limits.h>
17619 #else
17620 # include <assert.h>
17621 #endif
17623 #undef $ac_func
17625 /* Override any GCC internal prototype to avoid an error.
17626    Use char because int might match the return type of a GCC
17627    builtin and then its argument prototype would still apply.  */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 char $ac_func ();
17632 /* The GNU C library defines this for functions which it implements
17633     to always fail with ENOSYS.  Some functions are actually named
17634     something starting with __ and the normal name is an alias.  */
17635 #if defined __stub_$ac_func || defined __stub___$ac_func
17636 choke me
17637 #endif
17639 int
17640 main ()
17642 return $ac_func ();
17643   ;
17644   return 0;
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (ac_try="$ac_link"
17649 case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654   (eval "$ac_link") 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662   { (case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_try") 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; } &&
17671          { ac_try='test -s conftest$ac_exeext'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; }; then
17681   eval "$as_ac_var=yes"
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686         eval "$as_ac_var=no"
17689 rm -f core conftest.err conftest.$ac_objext \
17690       conftest$ac_exeext conftest.$ac_ext
17692 ac_res=`eval echo '${'$as_ac_var'}'`
17693                { echo "$as_me:$LINENO: result: $ac_res" >&5
17694 echo "${ECHO_T}$ac_res" >&6; }
17695 if test `eval echo '${'$as_ac_var'}'` = yes; then
17696   cat >>confdefs.h <<_ACEOF
17697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17698 _ACEOF
17701 done
17707 for ac_func in powf fmodf strtof round
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17723 #define $ac_func innocuous_$ac_func
17725 /* System header to define __stub macros and hopefully few prototypes,
17726     which can conflict with char $ac_func (); below.
17727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728     <limits.h> exists even on freestanding compilers.  */
17730 #ifdef __STDC__
17731 # include <limits.h>
17732 #else
17733 # include <assert.h>
17734 #endif
17736 #undef $ac_func
17738 /* Override any GCC internal prototype to avoid an error.
17739    Use char because int might match the return type of a GCC
17740    builtin and then its argument prototype would still apply.  */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char $ac_func ();
17745 /* The GNU C library defines this for functions which it implements
17746     to always fail with ENOSYS.  Some functions are actually named
17747     something starting with __ and the normal name is an alias.  */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17749 choke me
17750 #endif
17752 int
17753 main ()
17755 return $ac_func ();
17756   ;
17757   return 0;
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764   *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767   (eval "$ac_link") 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775   { (case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_try") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; } &&
17784          { ac_try='test -s conftest$ac_exeext'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   eval "$as_ac_var=yes"
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799         eval "$as_ac_var=no"
17802 rm -f core conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806                { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809   cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 _ACEOF
17814 done
17821 for ac_func in log log2 log10 exp exp2
17823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17827   echo $ECHO_N "(cached) $ECHO_C" >&6
17828 else
17829   cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h.  */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h.  */
17835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17837 #define $ac_func innocuous_$ac_func
17839 /* System header to define __stub macros and hopefully few prototypes,
17840     which can conflict with char $ac_func (); below.
17841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17842     <limits.h> exists even on freestanding compilers.  */
17844 #ifdef __STDC__
17845 # include <limits.h>
17846 #else
17847 # include <assert.h>
17848 #endif
17850 #undef $ac_func
17852 /* Override any GCC internal prototype to avoid an error.
17853    Use char because int might match the return type of a GCC
17854    builtin and then its argument prototype would still apply.  */
17855 #ifdef __cplusplus
17856 extern "C"
17857 #endif
17858 char $ac_func ();
17859 /* The GNU C library defines this for functions which it implements
17860     to always fail with ENOSYS.  Some functions are actually named
17861     something starting with __ and the normal name is an alias.  */
17862 #if defined __stub_$ac_func || defined __stub___$ac_func
17863 choke me
17864 #endif
17866 int
17867 main ()
17869 return $ac_func ();
17870   ;
17871   return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878   *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881   (eval "$ac_link") 2>conftest.er1
17882   ac_status=$?
17883   grep -v '^ *+' conftest.er1 >conftest.err
17884   rm -f conftest.er1
17885   cat conftest.err >&5
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889   { (case "(($ac_try" in
17890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891   *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894   (eval "$ac_try") 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; } &&
17898          { ac_try='test -s conftest$ac_exeext'
17899   { (case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904   (eval "$ac_try") 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }; then
17908   eval "$as_ac_var=yes"
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913         eval "$as_ac_var=no"
17916 rm -f core conftest.err conftest.$ac_objext \
17917       conftest$ac_exeext conftest.$ac_ext
17919 ac_res=`eval echo '${'$as_ac_var'}'`
17920                { echo "$as_me:$LINENO: result: $ac_res" >&5
17921 echo "${ECHO_T}$ac_res" >&6; }
17922 if test `eval echo '${'$as_ac_var'}'` = yes; then
17923   cat >>confdefs.h <<_ACEOF
17924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17925 _ACEOF
17928 done
17935 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17941   echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943   cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h.  */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h.  */
17949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17951 #define $ac_func innocuous_$ac_func
17953 /* System header to define __stub macros and hopefully few prototypes,
17954     which can conflict with char $ac_func (); below.
17955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956     <limits.h> exists even on freestanding compilers.  */
17958 #ifdef __STDC__
17959 # include <limits.h>
17960 #else
17961 # include <assert.h>
17962 #endif
17964 #undef $ac_func
17966 /* Override any GCC internal prototype to avoid an error.
17967    Use char because int might match the return type of a GCC
17968    builtin and then its argument prototype would still apply.  */
17969 #ifdef __cplusplus
17970 extern "C"
17971 #endif
17972 char $ac_func ();
17973 /* The GNU C library defines this for functions which it implements
17974     to always fail with ENOSYS.  Some functions are actually named
17975     something starting with __ and the normal name is an alias.  */
17976 #if defined __stub_$ac_func || defined __stub___$ac_func
17977 choke me
17978 #endif
17980 int
17981 main ()
17983 return $ac_func ();
17984   ;
17985   return 0;
17987 _ACEOF
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (ac_try="$ac_link"
17990 case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_link") 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18003   { (case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_try") 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; } &&
18012          { ac_try='test -s conftest$ac_exeext'
18013   { (case "(($ac_try" in
18014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015   *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018   (eval "$ac_try") 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; }; then
18022   eval "$as_ac_var=yes"
18023 else
18024   echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027         eval "$as_ac_var=no"
18030 rm -f core conftest.err conftest.$ac_objext \
18031       conftest$ac_exeext conftest.$ac_ext
18033 ac_res=`eval echo '${'$as_ac_var'}'`
18034                { echo "$as_me:$LINENO: result: $ac_res" >&5
18035 echo "${ECHO_T}$ac_res" >&6; }
18036 if test `eval echo '${'$as_ac_var'}'` = yes; then
18037   cat >>confdefs.h <<_ACEOF
18038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18039 _ACEOF
18042 done
18047 for ac_func in isatty mkdtemp mkstemp
18049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055   cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18063 #define $ac_func innocuous_$ac_func
18065 /* System header to define __stub macros and hopefully few prototypes,
18066     which can conflict with char $ac_func (); below.
18067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068     <limits.h> exists even on freestanding compilers.  */
18070 #ifdef __STDC__
18071 # include <limits.h>
18072 #else
18073 # include <assert.h>
18074 #endif
18076 #undef $ac_func
18078 /* Override any GCC internal prototype to avoid an error.
18079    Use char because int might match the return type of a GCC
18080    builtin and then its argument prototype would still apply.  */
18081 #ifdef __cplusplus
18082 extern "C"
18083 #endif
18084 char $ac_func ();
18085 /* The GNU C library defines this for functions which it implements
18086     to always fail with ENOSYS.  Some functions are actually named
18087     something starting with __ and the normal name is an alias.  */
18088 #if defined __stub_$ac_func || defined __stub___$ac_func
18089 choke me
18090 #endif
18092 int
18093 main ()
18095 return $ac_func ();
18096   ;
18097   return 0;
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104   *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107   (eval "$ac_link") 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18115   { (case "(($ac_try" in
18116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117   *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120   (eval "$ac_try") 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; } &&
18124          { ac_try='test -s conftest$ac_exeext'
18125   { (case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_try") 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; }; then
18134   eval "$as_ac_var=yes"
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139         eval "$as_ac_var=no"
18142 rm -f core conftest.err conftest.$ac_objext \
18143       conftest$ac_exeext conftest.$ac_ext
18145 ac_res=`eval echo '${'$as_ac_var'}'`
18146                { echo "$as_me:$LINENO: result: $ac_res" >&5
18147 echo "${ECHO_T}$ac_res" >&6; }
18148 if test `eval echo '${'$as_ac_var'}'` = yes; then
18149   cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18151 _ACEOF
18154 done
18163 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171   cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18179 #define $ac_func innocuous_$ac_func
18181 /* System header to define __stub macros and hopefully few prototypes,
18182     which can conflict with char $ac_func (); below.
18183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18184     <limits.h> exists even on freestanding compilers.  */
18186 #ifdef __STDC__
18187 # include <limits.h>
18188 #else
18189 # include <assert.h>
18190 #endif
18192 #undef $ac_func
18194 /* Override any GCC internal prototype to avoid an error.
18195    Use char because int might match the return type of a GCC
18196    builtin and then its argument prototype would still apply.  */
18197 #ifdef __cplusplus
18198 extern "C"
18199 #endif
18200 char $ac_func ();
18201 /* The GNU C library defines this for functions which it implements
18202     to always fail with ENOSYS.  Some functions are actually named
18203     something starting with __ and the normal name is an alias.  */
18204 #if defined __stub_$ac_func || defined __stub___$ac_func
18205 choke me
18206 #endif
18208 int
18209 main ()
18211 return $ac_func ();
18212   ;
18213   return 0;
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_link") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231   { (case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_try") 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; } &&
18240          { ac_try='test -s conftest$ac_exeext'
18241   { (case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246   (eval "$ac_try") 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; }; then
18250   eval "$as_ac_var=yes"
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255         eval "$as_ac_var=no"
18258 rm -f core conftest.err conftest.$ac_objext \
18259       conftest$ac_exeext conftest.$ac_ext
18261 ac_res=`eval echo '${'$as_ac_var'}'`
18262                { echo "$as_me:$LINENO: result: $ac_res" >&5
18263 echo "${ECHO_T}$ac_res" >&6; }
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265   cat >>confdefs.h <<_ACEOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18267 _ACEOF
18270 done
18276 for ac_func in strerror strerror_r setenv arc4random
18278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18292 #define $ac_func innocuous_$ac_func
18294 /* System header to define __stub macros and hopefully few prototypes,
18295     which can conflict with char $ac_func (); below.
18296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297     <limits.h> exists even on freestanding compilers.  */
18299 #ifdef __STDC__
18300 # include <limits.h>
18301 #else
18302 # include <assert.h>
18303 #endif
18305 #undef $ac_func
18307 /* Override any GCC internal prototype to avoid an error.
18308    Use char because int might match the return type of a GCC
18309    builtin and then its argument prototype would still apply.  */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char $ac_func ();
18314 /* The GNU C library defines this for functions which it implements
18315     to always fail with ENOSYS.  Some functions are actually named
18316     something starting with __ and the normal name is an alias.  */
18317 #if defined __stub_$ac_func || defined __stub___$ac_func
18318 choke me
18319 #endif
18321 int
18322 main ()
18324 return $ac_func ();
18325   ;
18326   return 0;
18328 _ACEOF
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_link") 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344   { (case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_try") 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest$ac_exeext'
18354   { (case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_try") 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   eval "$as_ac_var=yes"
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368         eval "$as_ac_var=no"
18371 rm -f core conftest.err conftest.$ac_objext \
18372       conftest$ac_exeext conftest.$ac_ext
18374 ac_res=`eval echo '${'$as_ac_var'}'`
18375                { echo "$as_me:$LINENO: result: $ac_res" >&5
18376 echo "${ECHO_T}$ac_res" >&6; }
18377 if test `eval echo '${'$as_ac_var'}'` = yes; then
18378   cat >>confdefs.h <<_ACEOF
18379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 _ACEOF
18383 done
18389 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18395   echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397   cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18405 #define $ac_func innocuous_$ac_func
18407 /* System header to define __stub macros and hopefully few prototypes,
18408     which can conflict with char $ac_func (); below.
18409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410     <limits.h> exists even on freestanding compilers.  */
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18418 #undef $ac_func
18420 /* Override any GCC internal prototype to avoid an error.
18421    Use char because int might match the return type of a GCC
18422    builtin and then its argument prototype would still apply.  */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char $ac_func ();
18427 /* The GNU C library defines this for functions which it implements
18428     to always fail with ENOSYS.  Some functions are actually named
18429     something starting with __ and the normal name is an alias.  */
18430 #if defined __stub_$ac_func || defined __stub___$ac_func
18431 choke me
18432 #endif
18434 int
18435 main ()
18437 return $ac_func ();
18438   ;
18439   return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_link") 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } &&
18456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457   { (case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462   (eval "$ac_try") 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; } &&
18466          { ac_try='test -s conftest$ac_exeext'
18467   { (case "(($ac_try" in
18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469   *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472   (eval "$ac_try") 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   eval "$as_ac_var=yes"
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481         eval "$as_ac_var=no"
18484 rm -f core conftest.err conftest.$ac_objext \
18485       conftest$ac_exeext conftest.$ac_ext
18487 ac_res=`eval echo '${'$as_ac_var'}'`
18488                { echo "$as_me:$LINENO: result: $ac_res" >&5
18489 echo "${ECHO_T}$ac_res" >&6; }
18490 if test `eval echo '${'$as_ac_var'}'` = yes; then
18491   cat >>confdefs.h <<_ACEOF
18492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18493 _ACEOF
18496 done
18503 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18509   echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511   cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18519 #define $ac_func innocuous_$ac_func
18521 /* System header to define __stub macros and hopefully few prototypes,
18522     which can conflict with char $ac_func (); below.
18523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524     <limits.h> exists even on freestanding compilers.  */
18526 #ifdef __STDC__
18527 # include <limits.h>
18528 #else
18529 # include <assert.h>
18530 #endif
18532 #undef $ac_func
18534 /* Override any GCC internal prototype to avoid an error.
18535    Use char because int might match the return type of a GCC
18536    builtin and then its argument prototype would still apply.  */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 char $ac_func ();
18541 /* The GNU C library defines this for functions which it implements
18542     to always fail with ENOSYS.  Some functions are actually named
18543     something starting with __ and the normal name is an alias.  */
18544 #if defined __stub_$ac_func || defined __stub___$ac_func
18545 choke me
18546 #endif
18548 int
18549 main ()
18551 return $ac_func ();
18552   ;
18553   return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_link") 2>conftest.er1
18564   ac_status=$?
18565   grep -v '^ *+' conftest.er1 >conftest.err
18566   rm -f conftest.er1
18567   cat conftest.err >&5
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); } &&
18570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; } &&
18580          { ac_try='test -s conftest$ac_exeext'
18581   { (case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_try") 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; }; then
18590   eval "$as_ac_var=yes"
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595         eval "$as_ac_var=no"
18598 rm -f core conftest.err conftest.$ac_objext \
18599       conftest$ac_exeext conftest.$ac_ext
18601 ac_res=`eval echo '${'$as_ac_var'}'`
18602                { echo "$as_me:$LINENO: result: $ac_res" >&5
18603 echo "${ECHO_T}$ac_res" >&6; }
18604 if test `eval echo '${'$as_ac_var'}'` = yes; then
18605   cat >>confdefs.h <<_ACEOF
18606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 _ACEOF
18610 done
18612 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18613 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18614 if test "${llvm_cv_c_printf_a+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   ac_ext=c
18618 ac_cpp='$CPP $CPPFLAGS'
18619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623  if test "$cross_compiling" = yes; then
18624   llvmac_cv_c_printf_a=no
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18628   /* confdefs.h.  */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h.  */
18634 #include <stdio.h>
18635 #include <stdlib.h>
18637 int
18638 main ()
18641 volatile double A, B;
18642 char Buffer[100];
18643 A = 1;
18644 A /= 10.0;
18645 sprintf(Buffer, "%a", A);
18646 B = atof(Buffer);
18647 if (A != B)
18648   return (1);
18649 if (A != 0x1.999999999999ap-4)
18650   return (1);
18651 return (0);
18652   ;
18653   return 0;
18655 _ACEOF
18656 rm -f conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_link") 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18667   { (case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_try") 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; }; then
18676   llvm_cv_c_printf_a=yes
18677 else
18678   echo "$as_me: program exited with status $ac_status" >&5
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ( exit $ac_status )
18683 llvmac_cv_c_printf_a=no
18685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18689  ac_ext=c
18690 ac_cpp='$CPP $CPPFLAGS'
18691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18696 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18697 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18698  if test "$llvm_cv_c_printf_a" = "yes"; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_PRINTF_A 1
18702 _ACEOF
18704  fi
18708   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18709 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18710 if test "${ac_cv_func_rand48+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18714     ac_ext=cpp
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18720     cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 #include <stdlib.h>
18727 int
18728 main ()
18730 srand48(0);lrand48();drand48();
18731   ;
18732   return 0;
18734 _ACEOF
18735 rm -f conftest.$ac_objext
18736 if { (ac_try="$ac_compile"
18737 case "(($ac_try" in
18738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739   *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742   (eval "$ac_compile") 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } &&
18749          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; } &&
18759          { ac_try='test -s conftest.$ac_objext'
18760   { (case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_try") 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_func_rand48=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774         ac_cv_func_rand48=no
18777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778     ac_ext=c
18779 ac_cpp='$CPP $CPPFLAGS'
18780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18787 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18789 if test "$ac_cv_func_rand48" = "yes" ; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_RAND48 1
18793 _ACEOF
18798 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18799 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18800 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809 $ac_includes_default
18810 int
18811 main ()
18813 #ifndef strerror_s
18814   char *p = (char *) strerror_s;
18815   return !p;
18816 #endif
18818   ;
18819   return 0;
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_compile") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837   { (case "(($ac_try" in
18838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839   *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842   (eval "$ac_try") 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; } &&
18846          { ac_try='test -s conftest.$ac_objext'
18847   { (case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_try") 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; }; then
18856   ac_cv_have_decl_strerror_s=yes
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861         ac_cv_have_decl_strerror_s=no
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18867 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18868 if test $ac_cv_have_decl_strerror_s = yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_DECL_STRERROR_S 1
18872 _ACEOF
18875 else
18876   cat >>confdefs.h <<_ACEOF
18877 #define HAVE_DECL_STRERROR_S 0
18878 _ACEOF
18885 if test "$llvm_cv_os_type" = "MingW" ; then
18886   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18887 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18888 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18889   echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891   ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-lgcc  $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h.  */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h.  */
18900 /* Override any GCC internal prototype to avoid an error.
18901    Use char because int might match the return type of a GCC
18902    builtin and then its argument prototype would still apply.  */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char _alloca ();
18907 int
18908 main ()
18910 return _alloca ();
18911   ;
18912   return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; } &&
18939          { ac_try='test -s conftest$ac_exeext'
18940   { (case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_try") 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949   ac_cv_lib_gcc__alloca=yes
18950 else
18951   echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954         ac_cv_lib_gcc__alloca=no
18957 rm -f core conftest.err conftest.$ac_objext \
18958       conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_lib_save_LIBS
18961 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18962 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18963 if test $ac_cv_lib_gcc__alloca = yes; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE__ALLOCA 1
18967 _ACEOF
18971   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18972 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18973 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976   ac_check_lib_save_LIBS=$LIBS
18977 LIBS="-lgcc  $LIBS"
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18985 /* Override any GCC internal prototype to avoid an error.
18986    Use char because int might match the return type of a GCC
18987    builtin and then its argument prototype would still apply.  */
18988 #ifdef __cplusplus
18989 extern "C"
18990 #endif
18991 char __alloca ();
18992 int
18993 main ()
18995 return __alloca ();
18996   ;
18997   return 0;
18999 _ACEOF
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_link") 2>conftest.er1
19008   ac_status=$?
19009   grep -v '^ *+' conftest.er1 >conftest.err
19010   rm -f conftest.er1
19011   cat conftest.err >&5
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); } &&
19014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015   { (case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_try") 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; } &&
19024          { ac_try='test -s conftest$ac_exeext'
19025   { (case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_try") 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; }; then
19034   ac_cv_lib_gcc___alloca=yes
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039         ac_cv_lib_gcc___alloca=no
19042 rm -f core conftest.err conftest.$ac_objext \
19043       conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19047 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19048 if test $ac_cv_lib_gcc___alloca = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE___ALLOCA 1
19052 _ACEOF
19056   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19057 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19058 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lgcc  $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19070 /* Override any GCC internal prototype to avoid an error.
19071    Use char because int might match the return type of a GCC
19072    builtin and then its argument prototype would still apply.  */
19073 #ifdef __cplusplus
19074 extern "C"
19075 #endif
19076 char __chkstk ();
19077 int
19078 main ()
19080 return __chkstk ();
19081   ;
19082   return 0;
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_link") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } &&
19099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100   { (case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_try") 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; } &&
19109          { ac_try='test -s conftest$ac_exeext'
19110   { (case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_try") 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   ac_cv_lib_gcc___chkstk=yes
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124         ac_cv_lib_gcc___chkstk=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128       conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19132 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19133 if test $ac_cv_lib_gcc___chkstk = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE___CHKSTK 1
19137 _ACEOF
19141   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19142 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19143 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19144   echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146   ac_check_lib_save_LIBS=$LIBS
19147 LIBS="-lgcc  $LIBS"
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19155 /* Override any GCC internal prototype to avoid an error.
19156    Use char because int might match the return type of a GCC
19157    builtin and then its argument prototype would still apply.  */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 char ___chkstk ();
19162 int
19163 main ()
19165 return ___chkstk ();
19166   ;
19167   return 0;
19169 _ACEOF
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174   *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177   (eval "$ac_link") 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } &&
19184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185   { (case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_try") 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; } &&
19194          { ac_try='test -s conftest$ac_exeext'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; }; then
19204   ac_cv_lib_gcc____chkstk=yes
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209         ac_cv_lib_gcc____chkstk=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213       conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19217 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19218 if test $ac_cv_lib_gcc____chkstk = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE____CHKSTK 1
19222 _ACEOF
19227   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19228 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19229 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   ac_check_lib_save_LIBS=$LIBS
19233 LIBS="-lgcc  $LIBS"
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19241 /* Override any GCC internal prototype to avoid an error.
19242    Use char because int might match the return type of a GCC
19243    builtin and then its argument prototype would still apply.  */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 char __ashldi3 ();
19248 int
19249 main ()
19251 return __ashldi3 ();
19252   ;
19253   return 0;
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (ac_try="$ac_link"
19258 case "(($ac_try" in
19259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260   *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263   (eval "$ac_link") 2>conftest.er1
19264   ac_status=$?
19265   grep -v '^ *+' conftest.er1 >conftest.err
19266   rm -f conftest.er1
19267   cat conftest.err >&5
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } &&
19270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19271   { (case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_try") 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; } &&
19280          { ac_try='test -s conftest$ac_exeext'
19281   { (case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_try") 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); }; }; then
19290   ac_cv_lib_gcc___ashldi3=yes
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295         ac_cv_lib_gcc___ashldi3=no
19298 rm -f core conftest.err conftest.$ac_objext \
19299       conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19303 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19304 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE___ASHLDI3 1
19308 _ACEOF
19312   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19313 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19314 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19315   echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317   ac_check_lib_save_LIBS=$LIBS
19318 LIBS="-lgcc  $LIBS"
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19326 /* Override any GCC internal prototype to avoid an error.
19327    Use char because int might match the return type of a GCC
19328    builtin and then its argument prototype would still apply.  */
19329 #ifdef __cplusplus
19330 extern "C"
19331 #endif
19332 char __ashrdi3 ();
19333 int
19334 main ()
19336 return __ashrdi3 ();
19337   ;
19338   return 0;
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345   *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348   (eval "$ac_link") 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest$ac_exeext'
19366   { (case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_try") 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; }; then
19375   ac_cv_lib_gcc___ashrdi3=yes
19376 else
19377   echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380         ac_cv_lib_gcc___ashrdi3=no
19383 rm -f core conftest.err conftest.$ac_objext \
19384       conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19388 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19389 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE___ASHRDI3 1
19393 _ACEOF
19397   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19398 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19399 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19400   echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402   ac_check_lib_save_LIBS=$LIBS
19403 LIBS="-lgcc  $LIBS"
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19411 /* Override any GCC internal prototype to avoid an error.
19412    Use char because int might match the return type of a GCC
19413    builtin and then its argument prototype would still apply.  */
19414 #ifdef __cplusplus
19415 extern "C"
19416 #endif
19417 char __divdi3 ();
19418 int
19419 main ()
19421 return __divdi3 ();
19422   ;
19423   return 0;
19425 _ACEOF
19426 rm -f conftest.$ac_objext conftest$ac_exeext
19427 if { (ac_try="$ac_link"
19428 case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_link") 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } &&
19440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19441   { (case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_try") 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; } &&
19450          { ac_try='test -s conftest$ac_exeext'
19451   { (case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_try") 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; }; then
19460   ac_cv_lib_gcc___divdi3=yes
19461 else
19462   echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465         ac_cv_lib_gcc___divdi3=no
19468 rm -f core conftest.err conftest.$ac_objext \
19469       conftest$ac_exeext conftest.$ac_ext
19470 LIBS=$ac_check_lib_save_LIBS
19472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19473 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19474 if test $ac_cv_lib_gcc___divdi3 = yes; then
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE___DIVDI3 1
19478 _ACEOF
19482   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19483 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19484 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   ac_check_lib_save_LIBS=$LIBS
19488 LIBS="-lgcc  $LIBS"
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19496 /* Override any GCC internal prototype to avoid an error.
19497    Use char because int might match the return type of a GCC
19498    builtin and then its argument prototype would still apply.  */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 char __fixdfdi ();
19503 int
19504 main ()
19506 return __fixdfdi ();
19507   ;
19508   return 0;
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518   (eval "$ac_link") 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } &&
19525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526   { (case "(($ac_try" in
19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528   *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531   (eval "$ac_try") 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; } &&
19535          { ac_try='test -s conftest$ac_exeext'
19536   { (case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_try") 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); }; }; then
19545   ac_cv_lib_gcc___fixdfdi=yes
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550         ac_cv_lib_gcc___fixdfdi=no
19553 rm -f core conftest.err conftest.$ac_objext \
19554       conftest$ac_exeext conftest.$ac_ext
19555 LIBS=$ac_check_lib_save_LIBS
19557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19558 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19559 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE___FIXDFDI 1
19563 _ACEOF
19567   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19568 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19569 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572   ac_check_lib_save_LIBS=$LIBS
19573 LIBS="-lgcc  $LIBS"
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19581 /* Override any GCC internal prototype to avoid an error.
19582    Use char because int might match the return type of a GCC
19583    builtin and then its argument prototype would still apply.  */
19584 #ifdef __cplusplus
19585 extern "C"
19586 #endif
19587 char __fixsfdi ();
19588 int
19589 main ()
19591 return __fixsfdi ();
19592   ;
19593   return 0;
19595 _ACEOF
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_link") 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19611   { (case "(($ac_try" in
19612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613   *) ac_try_echo=$ac_try;;
19614 esac
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616   (eval "$ac_try") 2>&5
19617   ac_status=$?
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); }; } &&
19620          { ac_try='test -s conftest$ac_exeext'
19621   { (case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_try") 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); }; }; then
19630   ac_cv_lib_gcc___fixsfdi=yes
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635         ac_cv_lib_gcc___fixsfdi=no
19638 rm -f core conftest.err conftest.$ac_objext \
19639       conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19643 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19644 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE___FIXSFDI 1
19648 _ACEOF
19652   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19653 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19654 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   ac_check_lib_save_LIBS=$LIBS
19658 LIBS="-lgcc  $LIBS"
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19666 /* Override any GCC internal prototype to avoid an error.
19667    Use char because int might match the return type of a GCC
19668    builtin and then its argument prototype would still apply.  */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 char __floatdidf ();
19673 int
19674 main ()
19676 return __floatdidf ();
19677   ;
19678   return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_link") 2>conftest.er1
19689   ac_status=$?
19690   grep -v '^ *+' conftest.er1 >conftest.err
19691   rm -f conftest.er1
19692   cat conftest.err >&5
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } &&
19695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19696   { (case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_try") 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; } &&
19705          { ac_try='test -s conftest$ac_exeext'
19706   { (case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_try") 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; }; then
19715   ac_cv_lib_gcc___floatdidf=yes
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720         ac_cv_lib_gcc___floatdidf=no
19723 rm -f core conftest.err conftest.$ac_objext \
19724       conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19728 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19729 if test $ac_cv_lib_gcc___floatdidf = yes; then
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE___FLOATDIDF 1
19733 _ACEOF
19737   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19738 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19739 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   ac_check_lib_save_LIBS=$LIBS
19743 LIBS="-lgcc  $LIBS"
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19751 /* Override any GCC internal prototype to avoid an error.
19752    Use char because int might match the return type of a GCC
19753    builtin and then its argument prototype would still apply.  */
19754 #ifdef __cplusplus
19755 extern "C"
19756 #endif
19757 char __lshrdi3 ();
19758 int
19759 main ()
19761 return __lshrdi3 ();
19762   ;
19763   return 0;
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; } &&
19790          { ac_try='test -s conftest$ac_exeext'
19791   { (case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_try") 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_lib_gcc___lshrdi3=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805         ac_cv_lib_gcc___lshrdi3=no
19808 rm -f core conftest.err conftest.$ac_objext \
19809       conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19813 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19814 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE___LSHRDI3 1
19818 _ACEOF
19822   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19823 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19824 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827   ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lgcc  $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19836 /* Override any GCC internal prototype to avoid an error.
19837    Use char because int might match the return type of a GCC
19838    builtin and then its argument prototype would still apply.  */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 char __moddi3 ();
19843 int
19844 main ()
19846 return __moddi3 ();
19847   ;
19848   return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_link") 2>conftest.er1
19859   ac_status=$?
19860   grep -v '^ *+' conftest.er1 >conftest.err
19861   rm -f conftest.er1
19862   cat conftest.err >&5
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } &&
19865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19866   { (case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; } &&
19875          { ac_try='test -s conftest$ac_exeext'
19876   { (case "(($ac_try" in
19877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878   *) ac_try_echo=$ac_try;;
19879 esac
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881   (eval "$ac_try") 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885   ac_cv_lib_gcc___moddi3=yes
19886 else
19887   echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890         ac_cv_lib_gcc___moddi3=no
19893 rm -f core conftest.err conftest.$ac_objext \
19894       conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19898 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19899 if test $ac_cv_lib_gcc___moddi3 = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE___MODDI3 1
19903 _ACEOF
19907   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19908 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19909 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912   ac_check_lib_save_LIBS=$LIBS
19913 LIBS="-lgcc  $LIBS"
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h.  */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h.  */
19921 /* Override any GCC internal prototype to avoid an error.
19922    Use char because int might match the return type of a GCC
19923    builtin and then its argument prototype would still apply.  */
19924 #ifdef __cplusplus
19925 extern "C"
19926 #endif
19927 char __udivdi3 ();
19928 int
19929 main ()
19931 return __udivdi3 ();
19932   ;
19933   return 0;
19935 _ACEOF
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (ac_try="$ac_link"
19938 case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_link") 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } &&
19950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951   { (case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_try") 2>&5
19957   ac_status=$?
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); }; } &&
19960          { ac_try='test -s conftest$ac_exeext'
19961   { (case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_try") 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; }; then
19970   ac_cv_lib_gcc___udivdi3=yes
19971 else
19972   echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975         ac_cv_lib_gcc___udivdi3=no
19978 rm -f core conftest.err conftest.$ac_objext \
19979       conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19983 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19984 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE___UDIVDI3 1
19988 _ACEOF
19992   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19993 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19994 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   ac_check_lib_save_LIBS=$LIBS
19998 LIBS="-lgcc  $LIBS"
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h.  */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h.  */
20006 /* Override any GCC internal prototype to avoid an error.
20007    Use char because int might match the return type of a GCC
20008    builtin and then its argument prototype would still apply.  */
20009 #ifdef __cplusplus
20010 extern "C"
20011 #endif
20012 char __umoddi3 ();
20013 int
20014 main ()
20016 return __umoddi3 ();
20017   ;
20018   return 0;
20020 _ACEOF
20021 rm -f conftest.$ac_objext conftest$ac_exeext
20022 if { (ac_try="$ac_link"
20023 case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_link") 2>conftest.er1
20029   ac_status=$?
20030   grep -v '^ *+' conftest.er1 >conftest.err
20031   rm -f conftest.er1
20032   cat conftest.err >&5
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } &&
20035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20036   { (case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_try") 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; } &&
20045          { ac_try='test -s conftest$ac_exeext'
20046   { (case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_try") 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   ac_cv_lib_gcc___umoddi3=yes
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060         ac_cv_lib_gcc___umoddi3=no
20063 rm -f core conftest.err conftest.$ac_objext \
20064       conftest$ac_exeext conftest.$ac_ext
20065 LIBS=$ac_check_lib_save_LIBS
20067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20068 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20069 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20071 cat >>confdefs.h <<\_ACEOF
20072 #define HAVE___UMODDI3 1
20073 _ACEOF
20078   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20079 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20080 if test "${ac_cv_lib_gcc___main+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   ac_check_lib_save_LIBS=$LIBS
20084 LIBS="-lgcc  $LIBS"
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20092 /* Override any GCC internal prototype to avoid an error.
20093    Use char because int might match the return type of a GCC
20094    builtin and then its argument prototype would still apply.  */
20095 #ifdef __cplusplus
20096 extern "C"
20097 #endif
20098 char __main ();
20099 int
20100 main ()
20102 return __main ();
20103   ;
20104   return 0;
20106 _ACEOF
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_link") 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } &&
20121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20122   { (case "(($ac_try" in
20123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124   *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127   (eval "$ac_try") 2>&5
20128   ac_status=$?
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); }; } &&
20131          { ac_try='test -s conftest$ac_exeext'
20132   { (case "(($ac_try" in
20133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134   *) ac_try_echo=$ac_try;;
20135 esac
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137   (eval "$ac_try") 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; }; then
20141   ac_cv_lib_gcc___main=yes
20142 else
20143   echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146         ac_cv_lib_gcc___main=no
20149 rm -f core conftest.err conftest.$ac_objext \
20150       conftest$ac_exeext conftest.$ac_ext
20151 LIBS=$ac_check_lib_save_LIBS
20153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20154 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20155 if test $ac_cv_lib_gcc___main = yes; then
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE___MAIN 1
20159 _ACEOF
20163   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20164 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20165 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   ac_check_lib_save_LIBS=$LIBS
20169 LIBS="-lgcc  $LIBS"
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20177 /* Override any GCC internal prototype to avoid an error.
20178    Use char because int might match the return type of a GCC
20179    builtin and then its argument prototype would still apply.  */
20180 #ifdef __cplusplus
20181 extern "C"
20182 #endif
20183 char __cmpdi2 ();
20184 int
20185 main ()
20187 return __cmpdi2 ();
20188   ;
20189   return 0;
20191 _ACEOF
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_link") 2>conftest.er1
20200   ac_status=$?
20201   grep -v '^ *+' conftest.er1 >conftest.err
20202   rm -f conftest.er1
20203   cat conftest.err >&5
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); } &&
20206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207   { (case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_try") 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; } &&
20216          { ac_try='test -s conftest$ac_exeext'
20217   { (case "(($ac_try" in
20218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219   *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222   (eval "$ac_try") 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   ac_cv_lib_gcc___cmpdi2=yes
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231         ac_cv_lib_gcc___cmpdi2=no
20234 rm -f core conftest.err conftest.$ac_objext \
20235       conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20239 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20240 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE___CMPDI2 1
20244 _ACEOF
20250 if test "$llvm_cv_os_type" = "MingW" ; then
20251   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20252 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20253   cat >conftest.$ac_ext <<_ACEOF
20255   /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20261     #include <windows.h>
20262     #include <imagehlp.h>
20263     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20264     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20267 _ACEOF
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_compile") 2>conftest.er1
20276   ac_status=$?
20277   grep -v '^ *+' conftest.er1 >conftest.err
20278   rm -f conftest.er1
20279   cat conftest.err >&5
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } &&
20282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20283   { (case "(($ac_try" in
20284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285   *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288   (eval "$ac_try") 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; } &&
20292          { ac_try='test -s conftest.$ac_objext'
20293   { (case "(($ac_try" in
20294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295   *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298   (eval "$ac_try") 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; }; then
20303   { echo "$as_me:$LINENO: result: yes" >&5
20304 echo "${ECHO_T}yes" >&6; }
20305   llvm_cv_win32_elmcb_pcstr="PCSTR"
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20312   { echo "$as_me:$LINENO: result: no" >&5
20313 echo "${ECHO_T}no" >&6; }
20314   llvm_cv_win32_elmcb_pcstr="PSTR"
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 cat >>confdefs.h <<_ACEOF
20321 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20322 _ACEOF
20328   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20329 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20330 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20334     ac_ext=cpp
20335 ac_cpp='$CXXCPP $CPPFLAGS'
20336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20340     cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346 #include <math.h>
20347 int
20348 main ()
20350 float f; isnan(f);
20351   ;
20352   return 0;
20354 _ACEOF
20355 rm -f conftest.$ac_objext
20356 if { (ac_try="$ac_compile"
20357 case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_compile") 2>conftest.er1
20363   ac_status=$?
20364   grep -v '^ *+' conftest.er1 >conftest.err
20365   rm -f conftest.er1
20366   cat conftest.err >&5
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } &&
20369          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20370   { (case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_try") 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (case "(($ac_try" in
20381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382   *) ac_try_echo=$ac_try;;
20383 esac
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385   (eval "$ac_try") 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }; then
20389   ac_cv_func_isnan_in_math_h=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394         ac_cv_func_isnan_in_math_h=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398     ac_ext=c
20399 ac_cpp='$CPP $CPPFLAGS'
20400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20406 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20407 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20410 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20412 cat >>confdefs.h <<\_ACEOF
20413 #define HAVE_ISNAN_IN_MATH_H 1
20414 _ACEOF
20419   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20420 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20421 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20425     ac_ext=cpp
20426 ac_cpp='$CXXCPP $CPPFLAGS'
20427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20431     cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 #include <cmath>
20438 int
20439 main ()
20441 float f; isnan(f);
20442   ;
20443   return 0;
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450   *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453   (eval "$ac_compile") 2>conftest.er1
20454   ac_status=$?
20455   grep -v '^ *+' conftest.er1 >conftest.err
20456   rm -f conftest.er1
20457   cat conftest.err >&5
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } &&
20460          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20461   { (case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_try") 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; } &&
20470          { ac_try='test -s conftest.$ac_objext'
20471   { (case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_try") 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480   ac_cv_func_isnan_in_cmath=yes
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485         ac_cv_func_isnan_in_cmath=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489     ac_ext=c
20490 ac_cpp='$CPP $CPPFLAGS'
20491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20498 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20500 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_ISNAN_IN_CMATH 1
20504 _ACEOF
20509   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20510 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20511 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20512   echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20515     ac_ext=cpp
20516 ac_cpp='$CXXCPP $CPPFLAGS'
20517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20521     cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527 #include <cmath>
20528 int
20529 main ()
20531 float f; std::isnan(f);
20532   ;
20533   return 0;
20535 _ACEOF
20536 rm -f conftest.$ac_objext
20537 if { (ac_try="$ac_compile"
20538 case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_compile") 2>conftest.er1
20544   ac_status=$?
20545   grep -v '^ *+' conftest.er1 >conftest.err
20546   rm -f conftest.er1
20547   cat conftest.err >&5
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); } &&
20550          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20551   { (case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_try") 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_try") 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; }; then
20570   ac_cv_func_std_isnan_in_cmath=yes
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575         ac_cv_func_std_isnan_in_cmath=no
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579     ac_ext=c
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20588 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20590 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20592 cat >>confdefs.h <<\_ACEOF
20593 #define HAVE_STD_ISNAN_IN_CMATH 1
20594 _ACEOF
20601   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20602 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20603 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20607     ac_ext=cpp
20608 ac_cpp='$CXXCPP $CPPFLAGS'
20609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613     cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h.  */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h.  */
20619 #include <math.h>
20620 int
20621 main ()
20623 float f; isinf(f);
20624   ;
20625   return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632   *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635   (eval "$ac_compile") 2>conftest.er1
20636   ac_status=$?
20637   grep -v '^ *+' conftest.er1 >conftest.err
20638   rm -f conftest.er1
20639   cat conftest.err >&5
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); } &&
20642          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20643   { (case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_try") 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; } &&
20652          { ac_try='test -s conftest.$ac_objext'
20653   { (case "(($ac_try" in
20654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655   *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658   (eval "$ac_try") 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }; then
20662   ac_cv_func_isinf_in_math_h=yes
20663 else
20664   echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667         ac_cv_func_isinf_in_math_h=no
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671     ac_ext=c
20672 ac_cpp='$CPP $CPPFLAGS'
20673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20680 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20682 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20684 cat >>confdefs.h <<\_ACEOF
20685 #define HAVE_ISINF_IN_MATH_H 1
20686 _ACEOF
20691   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20692 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20693 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20697     ac_ext=cpp
20698 ac_cpp='$CXXCPP $CPPFLAGS'
20699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20703     cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 #include <cmath>
20710 int
20711 main ()
20713 float f; isinf(f);
20714   ;
20715   return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext
20719 if { (ac_try="$ac_compile"
20720 case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725   (eval "$ac_compile") 2>conftest.er1
20726   ac_status=$?
20727   grep -v '^ *+' conftest.er1 >conftest.err
20728   rm -f conftest.er1
20729   cat conftest.err >&5
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } &&
20732          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20733   { (case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_try") 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; } &&
20742          { ac_try='test -s conftest.$ac_objext'
20743   { (case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_try") 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_cv_func_isinf_in_cmath=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757         ac_cv_func_isinf_in_cmath=no
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761     ac_ext=c
20762 ac_cpp='$CPP $CPPFLAGS'
20763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20769 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20770 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20772 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_ISINF_IN_CMATH 1
20776 _ACEOF
20781   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20782 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20783 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20787     ac_ext=cpp
20788 ac_cpp='$CXXCPP $CPPFLAGS'
20789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793     cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 #include <cmath>
20800 int
20801 main ()
20803 float f; std::isinf(f);
20804   ;
20805   return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_compile") 2>conftest.er1
20816   ac_status=$?
20817   grep -v '^ *+' conftest.er1 >conftest.err
20818   rm -f conftest.er1
20819   cat conftest.err >&5
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } &&
20822          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20823   { (case "(($ac_try" in
20824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825   *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828   (eval "$ac_try") 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; } &&
20832          { ac_try='test -s conftest.$ac_objext'
20833   { (case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_try") 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   ac_cv_func_std_isinf_in_cmath=yes
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847         ac_cv_func_std_isinf_in_cmath=no
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851     ac_ext=c
20852 ac_cpp='$CPP $CPPFLAGS'
20853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20860 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20862 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_STD_ISINF_IN_CMATH 1
20866 _ACEOF
20871   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20872 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20874   echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20877     ac_ext=cpp
20878 ac_cpp='$CXXCPP $CPPFLAGS'
20879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20883     cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <ieeefp.h>
20890 int
20891 main ()
20893 float f; finite(f);
20894   ;
20895   return 0;
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_compile") 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20913   { (case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_try") 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_try") 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); }; }; then
20932   ac_cv_func_finite_in_ieeefp_h=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937         ac_cv_func_finite_in_ieeefp_h=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941     ac_ext=c
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20950 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20952 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_FINITE_IN_IEEEFP_H 1
20956 _ACEOF
20962 if test "$llvm_cv_platform_type" = "Unix" ; then
20965 for ac_header in stdlib.h unistd.h
20967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975                { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20977 else
20978   # Is the header compilable?
20979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 $ac_includes_default
20988 #include <$ac_header>
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997   (eval "$ac_compile") 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21005   { (case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_try") 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; } &&
21014          { ac_try='test -s conftest.$ac_objext'
21015   { (case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_try") 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); }; }; then
21024   ac_header_compiler=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029         ac_header_compiler=no
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 echo "${ECHO_T}$ac_header_compiler" >&6; }
21036 # Is the header present?
21037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 #include <$ac_header>
21046 _ACEOF
21047 if { (ac_try="$ac_cpp conftest.$ac_ext"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21054   ac_status=$?
21055   grep -v '^ *+' conftest.er1 >conftest.err
21056   rm -f conftest.er1
21057   cat conftest.err >&5
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } >/dev/null; then
21060   if test -s conftest.err; then
21061     ac_cpp_err=$ac_c_preproc_warn_flag
21062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21063   else
21064     ac_cpp_err=
21065   fi
21066 else
21067   ac_cpp_err=yes
21069 if test -z "$ac_cpp_err"; then
21070   ac_header_preproc=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075   ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So?  What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084   yes:no: )
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089     ac_header_preproc=yes
21090     ;;
21091   no:yes:* )
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21104     ( cat <<\_ASBOX
21105 ## ------------------------------------ ##
21106 ## Report this to http://llvm.org/bugs/ ##
21107 ## ------------------------------------ ##
21108 _ASBOX
21109      ) | sed "s/^/$as_me: WARNING:     /" >&2
21110     ;;
21111 esac
21112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   eval "$as_ac_Header=\$ac_header_preproc"
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120                { echo "$as_me:$LINENO: result: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21125   cat >>confdefs.h <<_ACEOF
21126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21127 _ACEOF
21131 done
21134 for ac_func in getpagesize
21136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21140   echo $ECHO_N "(cached) $ECHO_C" >&6
21141 else
21142   cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21150 #define $ac_func innocuous_$ac_func
21152 /* System header to define __stub macros and hopefully few prototypes,
21153     which can conflict with char $ac_func (); below.
21154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155     <limits.h> exists even on freestanding compilers.  */
21157 #ifdef __STDC__
21158 # include <limits.h>
21159 #else
21160 # include <assert.h>
21161 #endif
21163 #undef $ac_func
21165 /* Override any GCC internal prototype to avoid an error.
21166    Use char because int might match the return type of a GCC
21167    builtin and then its argument prototype would still apply.  */
21168 #ifdef __cplusplus
21169 extern "C"
21170 #endif
21171 char $ac_func ();
21172 /* The GNU C library defines this for functions which it implements
21173     to always fail with ENOSYS.  Some functions are actually named
21174     something starting with __ and the normal name is an alias.  */
21175 #if defined __stub_$ac_func || defined __stub___$ac_func
21176 choke me
21177 #endif
21179 int
21180 main ()
21182 return $ac_func ();
21183   ;
21184   return 0;
21186 _ACEOF
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191   *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194   (eval "$ac_link") 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21202   { (case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207   (eval "$ac_try") 2>&5
21208   ac_status=$?
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); }; } &&
21211          { ac_try='test -s conftest$ac_exeext'
21212   { (case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_try") 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; }; then
21221   eval "$as_ac_var=yes"
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226         eval "$as_ac_var=no"
21229 rm -f core conftest.err conftest.$ac_objext \
21230       conftest$ac_exeext conftest.$ac_ext
21232 ac_res=`eval echo '${'$as_ac_var'}'`
21233                { echo "$as_me:$LINENO: result: $ac_res" >&5
21234 echo "${ECHO_T}$ac_res" >&6; }
21235 if test `eval echo '${'$as_ac_var'}'` = yes; then
21236   cat >>confdefs.h <<_ACEOF
21237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21238 _ACEOF
21241 done
21243 { echo "$as_me:$LINENO: checking for working mmap" >&5
21244 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21245 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21246   echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248   if test "$cross_compiling" = yes; then
21249   ac_cv_func_mmap_fixed_mapped=no
21250 else
21251   cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 $ac_includes_default
21258 /* malloc might have been renamed as rpl_malloc. */
21259 #undef malloc
21261 /* Thanks to Mike Haertel and Jim Avera for this test.
21262    Here is a matrix of mmap possibilities:
21263         mmap private not fixed
21264         mmap private fixed at somewhere currently unmapped
21265         mmap private fixed at somewhere already mapped
21266         mmap shared not fixed
21267         mmap shared fixed at somewhere currently unmapped
21268         mmap shared fixed at somewhere already mapped
21269    For private mappings, we should verify that changes cannot be read()
21270    back from the file, nor mmap's back from the file at a different
21271    address.  (There have been systems where private was not correctly
21272    implemented like the infamous i386 svr4.0, and systems where the
21273    VM page cache was not coherent with the file system buffer cache
21274    like early versions of FreeBSD and possibly contemporary NetBSD.)
21275    For shared mappings, we should conversely verify that changes get
21276    propagated back to all the places they're supposed to be.
21278    Grep wants private fixed already mapped.
21279    The main things grep needs to know about mmap are:
21280    * does it exist and is it safe to write into the mmap'd area
21281    * how to use it (BSD variants)  */
21283 #include <fcntl.h>
21284 #include <sys/mman.h>
21286 #if !STDC_HEADERS && !HAVE_STDLIB_H
21287 char *malloc ();
21288 #endif
21290 /* This mess was copied from the GNU getpagesize.h.  */
21291 #if !HAVE_GETPAGESIZE
21292 /* Assume that all systems that can run configure have sys/param.h.  */
21293 # if !HAVE_SYS_PARAM_H
21294 #  define HAVE_SYS_PARAM_H 1
21295 # endif
21297 # ifdef _SC_PAGESIZE
21298 #  define getpagesize() sysconf(_SC_PAGESIZE)
21299 # else /* no _SC_PAGESIZE */
21300 #  if HAVE_SYS_PARAM_H
21301 #   include <sys/param.h>
21302 #   ifdef EXEC_PAGESIZE
21303 #    define getpagesize() EXEC_PAGESIZE
21304 #   else /* no EXEC_PAGESIZE */
21305 #    ifdef NBPG
21306 #     define getpagesize() NBPG * CLSIZE
21307 #     ifndef CLSIZE
21308 #      define CLSIZE 1
21309 #     endif /* no CLSIZE */
21310 #    else /* no NBPG */
21311 #     ifdef NBPC
21312 #      define getpagesize() NBPC
21313 #     else /* no NBPC */
21314 #      ifdef PAGESIZE
21315 #       define getpagesize() PAGESIZE
21316 #      endif /* PAGESIZE */
21317 #     endif /* no NBPC */
21318 #    endif /* no NBPG */
21319 #   endif /* no EXEC_PAGESIZE */
21320 #  else /* no HAVE_SYS_PARAM_H */
21321 #   define getpagesize() 8192   /* punt totally */
21322 #  endif /* no HAVE_SYS_PARAM_H */
21323 # endif /* no _SC_PAGESIZE */
21325 #endif /* no HAVE_GETPAGESIZE */
21327 int
21328 main ()
21330   char *data, *data2, *data3;
21331   int i, pagesize;
21332   int fd;
21334   pagesize = getpagesize ();
21336   /* First, make a file with some known garbage in it. */
21337   data = (char *) malloc (pagesize);
21338   if (!data)
21339     return 1;
21340   for (i = 0; i < pagesize; ++i)
21341     *(data + i) = rand ();
21342   umask (0);
21343   fd = creat ("conftest.mmap", 0600);
21344   if (fd < 0)
21345     return 1;
21346   if (write (fd, data, pagesize) != pagesize)
21347     return 1;
21348   close (fd);
21350   /* Next, try to mmap the file at a fixed address which already has
21351      something else allocated at it.  If we can, also make sure that
21352      we see the same garbage.  */
21353   fd = open ("conftest.mmap", O_RDWR);
21354   if (fd < 0)
21355     return 1;
21356   data2 = (char *) malloc (2 * pagesize);
21357   if (!data2)
21358     return 1;
21359   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21360   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21361                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21362     return 1;
21363   for (i = 0; i < pagesize; ++i)
21364     if (*(data + i) != *(data2 + i))
21365       return 1;
21367   /* Finally, make sure that changes to the mapped area do not
21368      percolate back to the file as seen by read().  (This is a bug on
21369      some variants of i386 svr4.0.)  */
21370   for (i = 0; i < pagesize; ++i)
21371     *(data2 + i) = *(data2 + i) + 1;
21372   data3 = (char *) malloc (pagesize);
21373   if (!data3)
21374     return 1;
21375   if (read (fd, data3, pagesize) != pagesize)
21376     return 1;
21377   for (i = 0; i < pagesize; ++i)
21378     if (*(data + i) != *(data3 + i))
21379       return 1;
21380   close (fd);
21381   return 0;
21383 _ACEOF
21384 rm -f conftest$ac_exeext
21385 if { (ac_try="$ac_link"
21386 case "(($ac_try" in
21387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388   *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391   (eval "$ac_link") 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21395   { (case "(($ac_try" in
21396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397   *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400   (eval "$ac_try") 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; }; then
21404   ac_cv_func_mmap_fixed_mapped=yes
21405 else
21406   echo "$as_me: program exited with status $ac_status" >&5
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ( exit $ac_status )
21411 ac_cv_func_mmap_fixed_mapped=no
21413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21419 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_MMAP 1
21424 _ACEOF
21427 rm -f conftest.mmap
21429   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21430 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21431 if test "${ac_cv_func_mmap_file+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434    ac_ext=c
21435 ac_cpp='$CPP $CPPFLAGS'
21436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440   if test "$cross_compiling" = yes; then
21441   ac_cv_func_mmap_file=no
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21445     /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21451 #include <sys/types.h>
21452 #include <sys/mman.h>
21453 #include <fcntl.h>
21455 int
21456 main ()
21459   int fd;
21460   fd = creat ("foo",0777);
21461   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21462   unlink ("foo");
21463   return (fd != (int) MAP_FAILED);
21464   ;
21465   return 0;
21467 _ACEOF
21468 rm -f conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_link") 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21479   { (case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_try") 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; }; then
21488   ac_cv_func_mmap_file=yes
21489 else
21490   echo "$as_me: program exited with status $ac_status" >&5
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ( exit $ac_status )
21495 ac_cv_func_mmap_file=no
21497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21501   ac_ext=c
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21509 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21510 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21511 if test "$ac_cv_func_mmap_file" = yes; then
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_MMAP_FILE
21515 _ACEOF
21517    MMAP_FILE=yes
21521   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21522 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21523 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526   if test "$llvm_cv_os_type" = "Interix" ; then
21527    ac_cv_need_dev_zero_for_mmap=yes
21528  else
21529    ac_cv_need_dev_zero_for_mmap=no
21530  fi
21533 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21534 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21535 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define NEED_DEV_ZERO_FOR_MMAP 1
21539 _ACEOF
21543   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21544   then
21545     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21546 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21547   fi
21548   if test "$ac_cv_func_mmap_file" = "no"
21549   then
21550     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21551 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21552   fi
21555 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21556 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21557 ac_ext=cpp
21558 ac_cpp='$CXXCPP $CPPFLAGS'
21559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563 cat >conftest.$ac_ext <<_ACEOF
21565   /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21571     int main() {
21572       volatile unsigned long val = 1;
21573       __sync_synchronize();
21574       __sync_val_compare_and_swap(&val, 1, 0);
21575       __sync_add_and_fetch(&val, 1);
21576       __sync_sub_and_fetch(&val, 1);
21577       return 0;
21578     }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (ac_try="$ac_link"
21584 case "(($ac_try" in
21585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586   *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589   (eval "$ac_link") 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21597   { (case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_try") 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest$ac_exeext'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21617   { echo "$as_me:$LINENO: result: yes" >&5
21618 echo "${ECHO_T}yes" >&6; }
21620 cat >>confdefs.h <<\_ACEOF
21621 #define LLVM_HAS_ATOMICS 1
21622 _ACEOF
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21630   { echo "$as_me:$LINENO: result: no" >&5
21631 echo "${ECHO_T}no" >&6; }
21633 cat >>confdefs.h <<\_ACEOF
21634 #define LLVM_HAS_ATOMICS 0
21635 _ACEOF
21637   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21638 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21642 rm -f core conftest.err conftest.$ac_objext \
21643       conftest$ac_exeext conftest.$ac_ext
21644 ac_ext=c
21645 ac_cpp='$CPP $CPPFLAGS'
21646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21652 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21653   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21654 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21655 if test "${llvm_cv_linux_mixed+set}" = set; then
21656   echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658    ac_ext=c
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664   cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 #ifndef __x86_64__
21671        error: Not x86-64 even if uname says so!
21672       #endif
21674 int
21675 main ()
21678   ;
21679   return 0;
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686   *) ac_try_echo=$ac_try;;
21687 esac
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689   (eval "$ac_compile") 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } &&
21696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21697   { (case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_try") 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; } &&
21706          { ac_try='test -s conftest.$ac_objext'
21707   { (case "(($ac_try" in
21708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709   *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712   (eval "$ac_try") 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; }; then
21716   llvm_cv_linux_mixed=no
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721         llvm_cv_linux_mixed=yes
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725   ac_ext=c
21726 ac_cpp='$CPP $CPPFLAGS'
21727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21733 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21734 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21736   if test "$llvm_cv_linux_mixed" = "yes"; then
21737     llvm_cv_target_arch="x86"
21738     ARCH="x86"
21739   fi
21743 for ac_func in __dso_handle
21745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21749   echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751   cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21759 #define $ac_func innocuous_$ac_func
21761 /* System header to define __stub macros and hopefully few prototypes,
21762     which can conflict with char $ac_func (); below.
21763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21764     <limits.h> exists even on freestanding compilers.  */
21766 #ifdef __STDC__
21767 # include <limits.h>
21768 #else
21769 # include <assert.h>
21770 #endif
21772 #undef $ac_func
21774 /* Override any GCC internal prototype to avoid an error.
21775    Use char because int might match the return type of a GCC
21776    builtin and then its argument prototype would still apply.  */
21777 #ifdef __cplusplus
21778 extern "C"
21779 #endif
21780 char $ac_func ();
21781 /* The GNU C library defines this for functions which it implements
21782     to always fail with ENOSYS.  Some functions are actually named
21783     something starting with __ and the normal name is an alias.  */
21784 #if defined __stub_$ac_func || defined __stub___$ac_func
21785 choke me
21786 #endif
21788 int
21789 main ()
21791 return $ac_func ();
21792   ;
21793   return 0;
21795 _ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_link") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } &&
21810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811   { (case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_try") 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; } &&
21820          { ac_try='test -s conftest$ac_exeext'
21821   { (case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826   (eval "$ac_try") 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); }; }; then
21830   eval "$as_ac_var=yes"
21831 else
21832   echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835         eval "$as_ac_var=no"
21838 rm -f core conftest.err conftest.$ac_objext \
21839       conftest$ac_exeext conftest.$ac_ext
21841 ac_res=`eval echo '${'$as_ac_var'}'`
21842                { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21844 if test `eval echo '${'$as_ac_var'}'` = yes; then
21845   cat >>confdefs.h <<_ACEOF
21846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21847 _ACEOF
21850 done
21853 SHLIBEXT=$libltdl_cv_shlibext
21856 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21859 if test "${prefix}" = "NONE" ; then
21860   prefix="/usr/local"
21862 eval LLVM_PREFIX="${prefix}";
21863 eval LLVM_BINDIR="${prefix}/bin";
21864 eval LLVM_LIBDIR="${prefix}/lib";
21865 eval LLVM_DATADIR="${prefix}/share/llvm";
21866 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21867 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21868 eval LLVM_INCLUDEDIR="${prefix}/include";
21869 eval LLVM_INFODIR="${prefix}/info";
21870 eval LLVM_MANDIR="${prefix}/man";
21871 LLVM_CONFIGTIME=`date`
21883 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21884   LLVM_CONFIGTIME="(timestamp not enabled)"
21888 cat >>confdefs.h <<_ACEOF
21889 #define LLVM_PREFIX "$LLVM_PREFIX"
21890 _ACEOF
21893 cat >>confdefs.h <<_ACEOF
21894 #define LLVM_BINDIR "$LLVM_BINDIR"
21895 _ACEOF
21898 cat >>confdefs.h <<_ACEOF
21899 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21900 _ACEOF
21903 cat >>confdefs.h <<_ACEOF
21904 #define LLVM_DATADIR "$LLVM_DATADIR"
21905 _ACEOF
21908 cat >>confdefs.h <<_ACEOF
21909 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21910 _ACEOF
21913 cat >>confdefs.h <<_ACEOF
21914 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21915 _ACEOF
21918 cat >>confdefs.h <<_ACEOF
21919 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21920 _ACEOF
21923 cat >>confdefs.h <<_ACEOF
21924 #define LLVM_INFODIR "$LLVM_INFODIR"
21925 _ACEOF
21928 cat >>confdefs.h <<_ACEOF
21929 #define LLVM_MANDIR "$LLVM_MANDIR"
21930 _ACEOF
21933 cat >>confdefs.h <<_ACEOF
21934 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21935 _ACEOF
21938 cat >>confdefs.h <<_ACEOF
21939 #define LLVM_HOSTTRIPLE "$host"
21940 _ACEOF
21943 cat >>confdefs.h <<_ACEOF
21944 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21945 _ACEOF
21948 if test "$BINDINGS_TO_BUILD" = auto ; then
21949   BINDINGS_TO_BUILD=""
21950   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21951     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21952   fi
21954 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21957 ALL_BINDINGS=ocaml
21960 binding_prereqs_failed=0
21961 for a_binding in $BINDINGS_TO_BUILD ; do
21962   case "$a_binding" in
21963   ocaml)
21964     if test "x$OCAMLC" = x ; then
21965       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21966 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21967       binding_prereqs_failed=1
21968     fi
21969     if test "x$OCAMLDEP" = x ; then
21970       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21971 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21972       binding_prereqs_failed=1
21973     fi
21974     if test "x$OCAMLOPT" = x ; then
21975       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21976 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21977           fi
21978     if test "x$with_ocaml_libdir" != xauto ; then
21979       OCAML_LIBDIR=$with_ocaml_libdir
21981     else
21982       ocaml_stdlib="`"$OCAMLC" -where`"
21983       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21984       then
21985         # ocaml stdlib is beneath our prefix; use stdlib
21986         OCAML_LIBDIR=$ocaml_stdlib
21988       else
21989         # ocaml stdlib is outside our prefix; use libdir/ocaml
21990         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21992       fi
21993     fi
21994     ;;
21995   esac
21996 done
21997 if test "$binding_prereqs_failed" = 1 ; then
21998   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21999 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22000    { (exit 1); exit 1; }; }
22003 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22004 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22005 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22006   echo $ECHO_N "(cached) $ECHO_C" >&6
22007 else
22008    ac_ext=cpp
22009 ac_cpp='$CXXCPP $CPPFLAGS'
22010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014   oldcxxflags="$CXXFLAGS"
22015   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22016   cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22023 int
22024 main ()
22026 X<int>().f();
22027   ;
22028   return 0;
22030 _ACEOF
22031 rm -f conftest.$ac_objext
22032 if { (ac_try="$ac_compile"
22033 case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_compile") 2>conftest.er1
22039   ac_status=$?
22040   grep -v '^ *+' conftest.er1 >conftest.err
22041   rm -f conftest.er1
22042   cat conftest.err >&5
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } &&
22045          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22046   { (case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_try") 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; } &&
22055          { ac_try='test -s conftest.$ac_objext'
22056   { (case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_try") 2>&5
22062   ac_status=$?
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); }; }; then
22065   llvm_cv_cxx_visibility_inlines_hidden=yes
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070         llvm_cv_cxx_visibility_inlines_hidden=no
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074   CXXFLAGS="$oldcxxflags"
22075   ac_ext=c
22076 ac_cpp='$CPP $CPPFLAGS'
22077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22083 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22084 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22085 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22086   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22088 else
22089   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22094 if test "$llvm_cv_link_use_r" = "yes" ; then
22095   RPATH="-Wl,-R"
22096 else
22097   RPATH="-Wl,-rpath"
22101 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22102   RDYNAMIC="-Wl,-export-dynamic"
22103 else
22104   RDYNAMIC=""
22109 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22116 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22118 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22120 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22122 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22124 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22127 ac_config_files="$ac_config_files Makefile.config"
22130 ac_config_files="$ac_config_files llvm.spec"
22133 ac_config_files="$ac_config_files docs/doxygen.cfg"
22136 if test "${clang_src_root}" = ""; then
22137   clang_src_root="$srcdir/tools/clang"
22139 if test -f ${clang_src_root}/README.txt; then
22140     configh="include/clang/Config/config.h"
22141   doxy="docs/doxygen.cfg"
22142   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22144   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22148 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22151 test "x$program_prefix" = "xNONE" && program_prefix=""
22155 ac_config_commands="$ac_config_commands setup"
22157 ac_config_commands="$ac_config_commands Makefile"
22160 ac_config_commands="$ac_config_commands Makefile.common"
22163 ac_config_commands="$ac_config_commands examples/Makefile"
22166 ac_config_commands="$ac_config_commands lib/Makefile"
22169 ac_config_commands="$ac_config_commands runtime/Makefile"
22172 ac_config_commands="$ac_config_commands test/Makefile"
22175 ac_config_commands="$ac_config_commands test/Makefile.tests"
22178 ac_config_commands="$ac_config_commands unittests/Makefile"
22181 ac_config_commands="$ac_config_commands tools/Makefile"
22184 ac_config_commands="$ac_config_commands utils/Makefile"
22187 ac_config_commands="$ac_config_commands projects/Makefile"
22190 ac_config_commands="$ac_config_commands bindings/Makefile"
22193 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22197 cat >confcache <<\_ACEOF
22198 # This file is a shell script that caches the results of configure
22199 # tests run on this system so they can be shared between configure
22200 # scripts and configure runs, see configure's option --config-cache.
22201 # It is not useful on other systems.  If it contains results you don't
22202 # want to keep, you may remove or edit it.
22204 # config.status only pays attention to the cache file if you give it
22205 # the --recheck option to rerun configure.
22207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22209 # following values.
22211 _ACEOF
22213 # The following way of writing the cache mishandles newlines in values,
22214 # but we know of no workaround that is simple, portable, and efficient.
22215 # So, we kill variables containing newlines.
22216 # Ultrix sh set writes to stderr and can't be redirected directly,
22217 # and sets the high bit in the cache file unless we assign to the vars.
22219   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22220     eval ac_val=\$$ac_var
22221     case $ac_val in #(
22222     *${as_nl}*)
22223       case $ac_var in #(
22224       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22225 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22226       esac
22227       case $ac_var in #(
22228       _ | IFS | as_nl) ;; #(
22229       *) $as_unset $ac_var ;;
22230       esac ;;
22231     esac
22232   done
22234   (set) 2>&1 |
22235     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22236     *${as_nl}ac_space=\ *)
22237       # `set' does not quote correctly, so add quotes (double-quote
22238       # substitution turns \\\\ into \\, and sed turns \\ into \).
22239       sed -n \
22240         "s/'/'\\\\''/g;
22241           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22242       ;; #(
22243     *)
22244       # `set' quotes correctly as required by POSIX, so do not add quotes.
22245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22246       ;;
22247     esac |
22248     sort
22249 ) |
22250   sed '
22251      /^ac_cv_env_/b end
22252      t clear
22253      :clear
22254      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22255      t end
22256      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22257      :end' >>confcache
22258 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22259   if test -w "$cache_file"; then
22260     test "x$cache_file" != "x/dev/null" &&
22261       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22262 echo "$as_me: updating cache $cache_file" >&6;}
22263     cat confcache >$cache_file
22264   else
22265     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22266 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22267   fi
22269 rm -f confcache
22271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22272 # Let make expand exec_prefix.
22273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22275 DEFS=-DHAVE_CONFIG_H
22277 ac_libobjs=
22278 ac_ltlibobjs=
22279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22280   # 1. Remove the extension, and $U if already installed.
22281   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22282   ac_i=`echo "$ac_i" | sed "$ac_script"`
22283   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22284   #    will be set to the directory where LIBOBJS objects are built.
22285   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22286   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22287 done
22288 LIBOBJS=$ac_libobjs
22290 LTLIBOBJS=$ac_ltlibobjs
22293 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22294   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&5
22296 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22297 Usually this means the macro was only invoked conditionally." >&2;}
22298    { (exit 1); exit 1; }; }
22300 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22301   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&5
22303 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22304 Usually this means the macro was only invoked conditionally." >&2;}
22305    { (exit 1); exit 1; }; }
22308 : ${CONFIG_STATUS=./config.status}
22309 ac_clean_files_save=$ac_clean_files
22310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22313 cat >$CONFIG_STATUS <<_ACEOF
22314 #! $SHELL
22315 # Generated by $as_me.
22316 # Run this file to recreate the current configuration.
22317 # Compiler output produced by configure, useful for debugging
22318 # configure, is in config.log if it exists.
22320 debug=false
22321 ac_cs_recheck=false
22322 ac_cs_silent=false
22323 SHELL=\${CONFIG_SHELL-$SHELL}
22324 _ACEOF
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 ## --------------------- ##
22328 ## M4sh Initialization.  ##
22329 ## --------------------- ##
22331 # Be Bourne compatible
22332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22333   emulate sh
22334   NULLCMD=:
22335   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22336   # is contrary to our usage.  Disable this feature.
22337   alias -g '${1+"$@"}'='"$@"'
22338   setopt NO_GLOB_SUBST
22339 else
22340   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22342 BIN_SH=xpg4; export BIN_SH # for Tru64
22343 DUALCASE=1; export DUALCASE # for MKS sh
22346 # PATH needs CR
22347 # Avoid depending upon Character Ranges.
22348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22351 as_cr_digits='0123456789'
22352 as_cr_alnum=$as_cr_Letters$as_cr_digits
22354 # The user is always right.
22355 if test "${PATH_SEPARATOR+set}" != set; then
22356   echo "#! /bin/sh" >conf$$.sh
22357   echo  "exit 0"   >>conf$$.sh
22358   chmod +x conf$$.sh
22359   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22360     PATH_SEPARATOR=';'
22361   else
22362     PATH_SEPARATOR=:
22363   fi
22364   rm -f conf$$.sh
22367 # Support unset when possible.
22368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22369   as_unset=unset
22370 else
22371   as_unset=false
22375 # IFS
22376 # We need space, tab and new line, in precisely that order.  Quoting is
22377 # there to prevent editors from complaining about space-tab.
22378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22379 # splitting by setting IFS to empty value.)
22380 as_nl='
22382 IFS=" ""        $as_nl"
22384 # Find who we are.  Look in the path if we contain no directory separator.
22385 case $0 in
22386   *[\\/]* ) as_myself=$0 ;;
22387   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22390   IFS=$as_save_IFS
22391   test -z "$as_dir" && as_dir=.
22392   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22393 done
22394 IFS=$as_save_IFS
22396      ;;
22397 esac
22398 # We did not find ourselves, most probably we were run as `sh COMMAND'
22399 # in which case we are not to be found in the path.
22400 if test "x$as_myself" = x; then
22401   as_myself=$0
22403 if test ! -f "$as_myself"; then
22404   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22405   { (exit 1); exit 1; }
22408 # Work around bugs in pre-3.0 UWIN ksh.
22409 for as_var in ENV MAIL MAILPATH
22410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22411 done
22412 PS1='$ '
22413 PS2='> '
22414 PS4='+ '
22416 # NLS nuisances.
22417 for as_var in \
22418   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22419   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22420   LC_TELEPHONE LC_TIME
22422   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22423     eval $as_var=C; export $as_var
22424   else
22425     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22426   fi
22427 done
22429 # Required to use basename.
22430 if expr a : '\(a\)' >/dev/null 2>&1 &&
22431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22432   as_expr=expr
22433 else
22434   as_expr=false
22437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22438   as_basename=basename
22439 else
22440   as_basename=false
22444 # Name of the executable.
22445 as_me=`$as_basename -- "$0" ||
22446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22447          X"$0" : 'X\(//\)$' \| \
22448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22449 echo X/"$0" |
22450     sed '/^.*\/\([^/][^/]*\)\/*$/{
22451             s//\1/
22452             q
22453           }
22454           /^X\/\(\/\/\)$/{
22455             s//\1/
22456             q
22457           }
22458           /^X\/\(\/\).*/{
22459             s//\1/
22460             q
22461           }
22462           s/.*/./; q'`
22464 # CDPATH.
22465 $as_unset CDPATH
22469   as_lineno_1=$LINENO
22470   as_lineno_2=$LINENO
22471   test "x$as_lineno_1" != "x$as_lineno_2" &&
22472   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22474   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475   # uniformly replaced by the line number.  The first 'sed' inserts a
22476   # line-number line after each line using $LINENO; the second 'sed'
22477   # does the real work.  The second script uses 'N' to pair each
22478   # line-number line with the line containing $LINENO, and appends
22479   # trailing '-' during substitution so that $LINENO is not a special
22480   # case at line end.
22481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22482   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22483   # E. McMahon (1931-1989) for sed's syntax.  :-)
22484   sed -n '
22485     p
22486     /[$]LINENO/=
22487   ' <$as_myself |
22488     sed '
22489       s/[$]LINENO.*/&-/
22490       t lineno
22491       b
22492       :lineno
22493       N
22494       :loop
22495       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22496       t loop
22497       s/-\n.*//
22498     ' >$as_me.lineno &&
22499   chmod +x "$as_me.lineno" ||
22500     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22501    { (exit 1); exit 1; }; }
22503   # Don't try to exec as it changes $[0], causing all sort of problems
22504   # (the dirname of $[0] is not the place where we might find the
22505   # original and so on.  Autoconf is especially sensitive to this).
22506   . "./$as_me.lineno"
22507   # Exit status is that of the last command.
22508   exit
22512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22513   as_dirname=dirname
22514 else
22515   as_dirname=false
22518 ECHO_C= ECHO_N= ECHO_T=
22519 case `echo -n x` in
22520 -n*)
22521   case `echo 'x\c'` in
22522   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22523   *)   ECHO_C='\c';;
22524   esac;;
22526   ECHO_N='-n';;
22527 esac
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22531   as_expr=expr
22532 else
22533   as_expr=false
22536 rm -f conf$$ conf$$.exe conf$$.file
22537 if test -d conf$$.dir; then
22538   rm -f conf$$.dir/conf$$.file
22539 else
22540   rm -f conf$$.dir
22541   mkdir conf$$.dir
22543 echo >conf$$.file
22544 if ln -s conf$$.file conf$$ 2>/dev/null; then
22545   as_ln_s='ln -s'
22546   # ... but there are two gotchas:
22547   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22548   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22549   # In both cases, we have to default to `cp -p'.
22550   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22551     as_ln_s='cp -p'
22552 elif ln conf$$.file conf$$ 2>/dev/null; then
22553   as_ln_s=ln
22554 else
22555   as_ln_s='cp -p'
22557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22558 rmdir conf$$.dir 2>/dev/null
22560 if mkdir -p . 2>/dev/null; then
22561   as_mkdir_p=:
22562 else
22563   test -d ./-p && rmdir ./-p
22564   as_mkdir_p=false
22567 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22568 # systems may use methods other than mode bits to determine executability.
22569 cat >conf$$.file <<_ASEOF
22570 #! /bin/sh
22571 exit 0
22572 _ASEOF
22573 chmod +x conf$$.file
22574 if test -x conf$$.file >/dev/null 2>&1; then
22575   as_executable_p="test -x"
22576 else
22577   as_executable_p=:
22579 rm -f conf$$.file
22581 # Sed expression to map a string onto a valid CPP name.
22582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22584 # Sed expression to map a string onto a valid variable name.
22585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22588 exec 6>&1
22590 # Save the log message, to keep $[0] and so on meaningful, and to
22591 # report actual input values of CONFIG_FILES etc. instead of their
22592 # values after options handling.
22593 ac_log="
22594 This file was extended by LLVM $as_me 3.3svn, which was
22595 generated by GNU Autoconf 2.60.  Invocation command line was
22597   CONFIG_FILES    = $CONFIG_FILES
22598   CONFIG_HEADERS  = $CONFIG_HEADERS
22599   CONFIG_LINKS    = $CONFIG_LINKS
22600   CONFIG_COMMANDS = $CONFIG_COMMANDS
22601   $ $0 $@
22603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22606 _ACEOF
22608 cat >>$CONFIG_STATUS <<_ACEOF
22609 # Files that config.status was made for.
22610 config_files="$ac_config_files"
22611 config_headers="$ac_config_headers"
22612 config_commands="$ac_config_commands"
22614 _ACEOF
22616 cat >>$CONFIG_STATUS <<\_ACEOF
22617 ac_cs_usage="\
22618 \`$as_me' instantiates files from templates according to the
22619 current configuration.
22621 Usage: $0 [OPTIONS] [FILE]...
22623   -h, --help       print this help, then exit
22624   -V, --version    print version number, then exit
22625   -q, --quiet      do not print progress messages
22626   -d, --debug      don't remove temporary files
22627       --recheck    update $as_me by reconfiguring in the same conditions
22628   --file=FILE[:TEMPLATE]
22629                    instantiate the configuration file FILE
22630   --header=FILE[:TEMPLATE]
22631                    instantiate the configuration header FILE
22633 Configuration files:
22634 $config_files
22636 Configuration headers:
22637 $config_headers
22639 Configuration commands:
22640 $config_commands
22642 Report bugs to <bug-autoconf@gnu.org>."
22644 _ACEOF
22645 cat >>$CONFIG_STATUS <<_ACEOF
22646 ac_cs_version="\\
22647 LLVM config.status 3.3svn
22648 configured by $0, generated by GNU Autoconf 2.60,
22649   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22651 Copyright (C) 2006 Free Software Foundation, Inc.
22652 This config.status script is free software; the Free Software Foundation
22653 gives unlimited permission to copy, distribute and modify it."
22655 ac_pwd='$ac_pwd'
22656 srcdir='$srcdir'
22657 INSTALL='$INSTALL'
22658 _ACEOF
22660 cat >>$CONFIG_STATUS <<\_ACEOF
22661 # If no file are specified by the user, then we need to provide default
22662 # value.  By we need to know if files were specified by the user.
22663 ac_need_defaults=:
22664 while test $# != 0
22666   case $1 in
22667   --*=*)
22668     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22669     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22670     ac_shift=:
22671     ;;
22672   *)
22673     ac_option=$1
22674     ac_optarg=$2
22675     ac_shift=shift
22676     ;;
22677   esac
22679   case $ac_option in
22680   # Handling of the options.
22681   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22682     ac_cs_recheck=: ;;
22683   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22684     echo "$ac_cs_version"; exit ;;
22685   --debug | --debu | --deb | --de | --d | -d )
22686     debug=: ;;
22687   --file | --fil | --fi | --f )
22688     $ac_shift
22689     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22690     ac_need_defaults=false;;
22691   --header | --heade | --head | --hea )
22692     $ac_shift
22693     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22694     ac_need_defaults=false;;
22695   --he | --h)
22696     # Conflict between --help and --header
22697     { echo "$as_me: error: ambiguous option: $1
22698 Try \`$0 --help' for more information." >&2
22699    { (exit 1); exit 1; }; };;
22700   --help | --hel | -h )
22701     echo "$ac_cs_usage"; exit ;;
22702   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22703   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22704     ac_cs_silent=: ;;
22706   # This is an error.
22707   -*) { echo "$as_me: error: unrecognized option: $1
22708 Try \`$0 --help' for more information." >&2
22709    { (exit 1); exit 1; }; } ;;
22711   *) ac_config_targets="$ac_config_targets $1"
22712      ac_need_defaults=false ;;
22714   esac
22715   shift
22716 done
22718 ac_configure_extra_args=
22720 if $ac_cs_silent; then
22721   exec 6>/dev/null
22722   ac_configure_extra_args="$ac_configure_extra_args --silent"
22725 _ACEOF
22726 cat >>$CONFIG_STATUS <<_ACEOF
22727 if \$ac_cs_recheck; then
22728   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22729   CONFIG_SHELL=$SHELL
22730   export CONFIG_SHELL
22731   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22734 _ACEOF
22735 cat >>$CONFIG_STATUS <<\_ACEOF
22736 exec 5>>config.log
22738   echo
22739   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22740 ## Running $as_me. ##
22741 _ASBOX
22742   echo "$ac_log"
22743 } >&5
22745 _ACEOF
22746 cat >>$CONFIG_STATUS <<_ACEOF
22748 # INIT-COMMANDS
22750 llvm_src="${srcdir}"
22752 _ACEOF
22754 cat >>$CONFIG_STATUS <<\_ACEOF
22756 # Handling of arguments.
22757 for ac_config_target in $ac_config_targets
22759   case $ac_config_target in
22760     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22761     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22762     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22763     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22764     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22765     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22766     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22767     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22768     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22769     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22770     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22771     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22772     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22773     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22774     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22775     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22776     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22777     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22778     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22779     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22780     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22781     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22782     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22783     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22784     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22785     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22786     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22788   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22790    { (exit 1); exit 1; }; };;
22791   esac
22792 done
22795 # If the user did not use the arguments to specify the items to instantiate,
22796 # then the envvar interface is used.  Set only those that are not.
22797 # We use the long form for the default assignment because of an extremely
22798 # bizarre bug on SunOS 4.1.3.
22799 if $ac_need_defaults; then
22800   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22801   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22802   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22805 # Have a temporary directory for convenience.  Make it in the build tree
22806 # simply because there is no reason against having it here, and in addition,
22807 # creating and moving files from /tmp can sometimes cause problems.
22808 # Hook for its removal unless debugging.
22809 # Note that there is a small window in which the directory will not be cleaned:
22810 # after its creation but before its name has been assigned to `$tmp'.
22811 $debug ||
22813   tmp=
22814   trap 'exit_status=$?
22815   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22816 ' 0
22817   trap '{ (exit 1); exit 1; }' 1 2 13 15
22819 # Create a (secure) tmp directory for tmp files.
22822   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22823   test -n "$tmp" && test -d "$tmp"
22824 }  ||
22826   tmp=./conf$$-$RANDOM
22827   (umask 077 && mkdir "$tmp")
22828 } ||
22830    echo "$me: cannot create a temporary directory in ." >&2
22831    { (exit 1); exit 1; }
22835 # Set up the sed scripts for CONFIG_FILES section.
22838 # No need to generate the scripts if there are no CONFIG_FILES.
22839 # This happens for instance when ./config.status config.h
22840 if test -n "$CONFIG_FILES"; then
22842 _ACEOF
22846 ac_delim='%!_!# '
22847 for ac_last_try in false false false false false :; do
22848   cat >conf$$subs.sed <<_ACEOF
22849 SHELL!$SHELL$ac_delim
22850 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22851 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22852 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22853 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22854 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22855 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22856 exec_prefix!$exec_prefix$ac_delim
22857 prefix!$prefix$ac_delim
22858 program_transform_name!$program_transform_name$ac_delim
22859 bindir!$bindir$ac_delim
22860 sbindir!$sbindir$ac_delim
22861 libexecdir!$libexecdir$ac_delim
22862 datarootdir!$datarootdir$ac_delim
22863 datadir!$datadir$ac_delim
22864 sysconfdir!$sysconfdir$ac_delim
22865 sharedstatedir!$sharedstatedir$ac_delim
22866 localstatedir!$localstatedir$ac_delim
22867 includedir!$includedir$ac_delim
22868 oldincludedir!$oldincludedir$ac_delim
22869 docdir!$docdir$ac_delim
22870 infodir!$infodir$ac_delim
22871 htmldir!$htmldir$ac_delim
22872 dvidir!$dvidir$ac_delim
22873 pdfdir!$pdfdir$ac_delim
22874 psdir!$psdir$ac_delim
22875 libdir!$libdir$ac_delim
22876 localedir!$localedir$ac_delim
22877 mandir!$mandir$ac_delim
22878 DEFS!$DEFS$ac_delim
22879 ECHO_C!$ECHO_C$ac_delim
22880 ECHO_N!$ECHO_N$ac_delim
22881 ECHO_T!$ECHO_T$ac_delim
22882 LIBS!$LIBS$ac_delim
22883 build_alias!$build_alias$ac_delim
22884 host_alias!$host_alias$ac_delim
22885 target_alias!$target_alias$ac_delim
22886 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22887 CC!$CC$ac_delim
22888 CFLAGS!$CFLAGS$ac_delim
22889 LDFLAGS!$LDFLAGS$ac_delim
22890 CPPFLAGS!$CPPFLAGS$ac_delim
22891 ac_ct_CC!$ac_ct_CC$ac_delim
22892 EXEEXT!$EXEEXT$ac_delim
22893 OBJEXT!$OBJEXT$ac_delim
22894 CXX!$CXX$ac_delim
22895 CXXFLAGS!$CXXFLAGS$ac_delim
22896 ac_ct_CXX!$ac_ct_CXX$ac_delim
22897 CPP!$CPP$ac_delim
22898 subdirs!$subdirs$ac_delim
22899 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22900 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22901 build!$build$ac_delim
22902 build_cpu!$build_cpu$ac_delim
22903 build_vendor!$build_vendor$ac_delim
22904 build_os!$build_os$ac_delim
22905 host!$host$ac_delim
22906 host_cpu!$host_cpu$ac_delim
22907 host_vendor!$host_vendor$ac_delim
22908 host_os!$host_os$ac_delim
22909 target!$target$ac_delim
22910 target_cpu!$target_cpu$ac_delim
22911 target_vendor!$target_vendor$ac_delim
22912 target_os!$target_os$ac_delim
22913 OS!$OS$ac_delim
22914 HOST_OS!$HOST_OS$ac_delim
22915 TARGET_OS!$TARGET_OS$ac_delim
22916 LINKALL!$LINKALL$ac_delim
22917 NOLINKALL!$NOLINKALL$ac_delim
22918 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22919 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22920 ARCH!$ARCH$ac_delim
22921 HOST_ARCH!$HOST_ARCH$ac_delim
22922 ENDIAN!$ENDIAN$ac_delim
22923 GREP!$GREP$ac_delim
22924 EGREP!$EGREP$ac_delim
22925 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22926 BUILD_CC!$BUILD_CC$ac_delim
22927 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22928 BUILD_CXX!$BUILD_CXX$ac_delim
22929 CVSBUILD!$CVSBUILD$ac_delim
22930 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22931 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22932 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22933 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22934 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22935 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22936 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22937 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22938 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22939 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22940 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22941 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22942 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22943 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22944 JIT!$JIT$ac_delim
22945 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22946 _ACEOF
22948   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22949     break
22950   elif $ac_last_try; then
22951     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22953    { (exit 1); exit 1; }; }
22954   else
22955     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22956   fi
22957 done
22959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22960 if test -n "$ac_eof"; then
22961   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22962   ac_eof=`expr $ac_eof + 1`
22965 cat >>$CONFIG_STATUS <<_ACEOF
22966 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22968 _ACEOF
22969 sed '
22970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22971 s/^/s,@/; s/!/@,|#_!!_#|/
22973 t n
22974 s/'"$ac_delim"'$/,g/; t
22975 s/$/\\/; p
22976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22977 ' >>$CONFIG_STATUS <conf$$subs.sed
22978 rm -f conf$$subs.sed
22979 cat >>$CONFIG_STATUS <<_ACEOF
22980 CEOF$ac_eof
22981 _ACEOF
22984 ac_delim='%!_!# '
22985 for ac_last_try in false false false false false :; do
22986   cat >conf$$subs.sed <<_ACEOF
22987 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22988 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22989 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22990 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22991 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22992 ENABLE_PIC!$ENABLE_PIC$ac_delim
22993 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22994 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22995 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22996 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22997 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22998 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22999 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23000 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23001 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23002 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23003 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23004 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23005 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23006 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23007 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23008 NM!$NM$ac_delim
23009 ifGNUmake!$ifGNUmake$ac_delim
23010 LN_S!$LN_S$ac_delim
23011 CMP!$CMP$ac_delim
23012 CP!$CP$ac_delim
23013 DATE!$DATE$ac_delim
23014 FIND!$FIND$ac_delim
23015 MKDIR!$MKDIR$ac_delim
23016 MV!$MV$ac_delim
23017 RANLIB!$RANLIB$ac_delim
23018 AR!$AR$ac_delim
23019 RM!$RM$ac_delim
23020 SED!$SED$ac_delim
23021 TAR!$TAR$ac_delim
23022 BINPWD!$BINPWD$ac_delim
23023 GRAPHVIZ!$GRAPHVIZ$ac_delim
23024 DOT!$DOT$ac_delim
23025 FDP!$FDP$ac_delim
23026 NEATO!$NEATO$ac_delim
23027 TWOPI!$TWOPI$ac_delim
23028 CIRCO!$CIRCO$ac_delim
23029 GV!$GV$ac_delim
23030 DOTTY!$DOTTY$ac_delim
23031 XDOT_PY!$XDOT_PY$ac_delim
23032 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23033 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23034 INSTALL_DATA!$INSTALL_DATA$ac_delim
23035 BZIP2!$BZIP2$ac_delim
23036 CAT!$CAT$ac_delim
23037 DOXYGEN!$DOXYGEN$ac_delim
23038 GROFF!$GROFF$ac_delim
23039 GZIPBIN!$GZIPBIN$ac_delim
23040 PDFROFF!$PDFROFF$ac_delim
23041 ZIP!$ZIP$ac_delim
23042 OCAMLC!$OCAMLC$ac_delim
23043 OCAMLOPT!$OCAMLOPT$ac_delim
23044 OCAMLDEP!$OCAMLDEP$ac_delim
23045 OCAMLDOC!$OCAMLDOC$ac_delim
23046 GAS!$GAS$ac_delim
23047 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23048 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23049 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23050 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23051 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23052 LIBADD_DL!$LIBADD_DL$ac_delim
23053 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23054 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23055 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23056 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23057 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23058 PYTHON!$PYTHON$ac_delim
23059 USE_UDIS86!$USE_UDIS86$ac_delim
23060 USE_OPROFILE!$USE_OPROFILE$ac_delim
23061 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23062 XML2CONFIG!$XML2CONFIG$ac_delim
23063 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23064 LIBXML2_INC!$LIBXML2_INC$ac_delim
23065 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23066 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23067 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23068 MMAP_FILE!$MMAP_FILE$ac_delim
23069 SHLIBEXT!$SHLIBEXT$ac_delim
23070 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23071 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23072 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23073 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23074 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23075 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23076 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23077 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23078 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23079 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23080 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23081 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23082 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23083 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23084 _ACEOF
23086   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23087     break
23088   elif $ac_last_try; then
23089     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23090 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23091    { (exit 1); exit 1; }; }
23092   else
23093     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23094   fi
23095 done
23097 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23098 if test -n "$ac_eof"; then
23099   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23100   ac_eof=`expr $ac_eof + 1`
23103 cat >>$CONFIG_STATUS <<_ACEOF
23104 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23106 _ACEOF
23107 sed '
23108 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23109 s/^/s,@/; s/!/@,|#_!!_#|/
23111 t n
23112 s/'"$ac_delim"'$/,g/; t
23113 s/$/\\/; p
23114 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23115 ' >>$CONFIG_STATUS <conf$$subs.sed
23116 rm -f conf$$subs.sed
23117 cat >>$CONFIG_STATUS <<_ACEOF
23118 CEOF$ac_eof
23119 _ACEOF
23122 ac_delim='%!_!# '
23123 for ac_last_try in false false false false false :; do
23124   cat >conf$$subs.sed <<_ACEOF
23125 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23126 RPATH!$RPATH$ac_delim
23127 RDYNAMIC!$RDYNAMIC$ac_delim
23128 program_prefix!$program_prefix$ac_delim
23129 LIBOBJS!$LIBOBJS$ac_delim
23130 LTLIBOBJS!$LTLIBOBJS$ac_delim
23131 _ACEOF
23133   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23134     break
23135   elif $ac_last_try; then
23136     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23138    { (exit 1); exit 1; }; }
23139   else
23140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23141   fi
23142 done
23144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23145 if test -n "$ac_eof"; then
23146   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23147   ac_eof=`expr $ac_eof + 1`
23150 cat >>$CONFIG_STATUS <<_ACEOF
23151 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23153 _ACEOF
23154 sed '
23155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23156 s/^/s,@/; s/!/@,|#_!!_#|/
23158 t n
23159 s/'"$ac_delim"'$/,g/; t
23160 s/$/\\/; p
23161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23162 ' >>$CONFIG_STATUS <conf$$subs.sed
23163 rm -f conf$$subs.sed
23164 cat >>$CONFIG_STATUS <<_ACEOF
23165 :end
23166 s/|#_!!_#|//g
23167 CEOF$ac_eof
23168 _ACEOF
23171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23173 # trailing colons and then remove the whole line if VPATH becomes empty
23174 # (actually we leave an empty line to preserve line numbers).
23175 if test "x$srcdir" = x.; then
23176   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23177 s/:*\$(srcdir):*/:/
23178 s/:*\${srcdir}:*/:/
23179 s/:*@srcdir@:*/:/
23180 s/^\([^=]*=[     ]*\):*/\1/
23181 s/:*$//
23182 s/^[^=]*=[       ]*$//
23186 cat >>$CONFIG_STATUS <<\_ACEOF
23187 fi # test -n "$CONFIG_FILES"
23190 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23192   case $ac_tag in
23193   :[FHLC]) ac_mode=$ac_tag; continue;;
23194   esac
23195   case $ac_mode$ac_tag in
23196   :[FHL]*:*);;
23197   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23199    { (exit 1); exit 1; }; };;
23200   :[FH]-) ac_tag=-:-;;
23201   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23202   esac
23203   ac_save_IFS=$IFS
23204   IFS=:
23205   set x $ac_tag
23206   IFS=$ac_save_IFS
23207   shift
23208   ac_file=$1
23209   shift
23211   case $ac_mode in
23212   :L) ac_source=$1;;
23213   :[FH])
23214     ac_file_inputs=
23215     for ac_f
23216     do
23217       case $ac_f in
23218       -) ac_f="$tmp/stdin";;
23219       *) # Look for the file first in the build tree, then in the source tree
23220          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23221          # because $ac_f cannot contain `:'.
23222          test -f "$ac_f" ||
23223            case $ac_f in
23224            [\\/$]*) false;;
23225            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23226            esac ||
23227            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23229    { (exit 1); exit 1; }; };;
23230       esac
23231       ac_file_inputs="$ac_file_inputs $ac_f"
23232     done
23234     # Let's still pretend it is `configure' which instantiates (i.e., don't
23235     # use $as_me), people would be surprised to read:
23236     #    /* config.h.  Generated by config.status.  */
23237     configure_input="Generated from "`IFS=:
23238           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23239     if test x"$ac_file" != x-; then
23240       configure_input="$ac_file.  $configure_input"
23241       { echo "$as_me:$LINENO: creating $ac_file" >&5
23242 echo "$as_me: creating $ac_file" >&6;}
23243     fi
23245     case $ac_tag in
23246     *:-:* | *:-) cat >"$tmp/stdin";;
23247     esac
23248     ;;
23249   esac
23251   ac_dir=`$as_dirname -- "$ac_file" ||
23252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23253          X"$ac_file" : 'X\(//\)[^/]' \| \
23254          X"$ac_file" : 'X\(//\)$' \| \
23255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23256 echo X"$ac_file" |
23257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23258             s//\1/
23259             q
23260           }
23261           /^X\(\/\/\)[^/].*/{
23262             s//\1/
23263             q
23264           }
23265           /^X\(\/\/\)$/{
23266             s//\1/
23267             q
23268           }
23269           /^X\(\/\).*/{
23270             s//\1/
23271             q
23272           }
23273           s/.*/./; q'`
23274   { as_dir="$ac_dir"
23275   case $as_dir in #(
23276   -*) as_dir=./$as_dir;;
23277   esac
23278   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23279     as_dirs=
23280     while :; do
23281       case $as_dir in #(
23282       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23283       *) as_qdir=$as_dir;;
23284       esac
23285       as_dirs="'$as_qdir' $as_dirs"
23286       as_dir=`$as_dirname -- "$as_dir" ||
23287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23288          X"$as_dir" : 'X\(//\)[^/]' \| \
23289          X"$as_dir" : 'X\(//\)$' \| \
23290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23291 echo X"$as_dir" |
23292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23293             s//\1/
23294             q
23295           }
23296           /^X\(\/\/\)[^/].*/{
23297             s//\1/
23298             q
23299           }
23300           /^X\(\/\/\)$/{
23301             s//\1/
23302             q
23303           }
23304           /^X\(\/\).*/{
23305             s//\1/
23306             q
23307           }
23308           s/.*/./; q'`
23309       test -d "$as_dir" && break
23310     done
23311     test -z "$as_dirs" || eval "mkdir $as_dirs"
23312   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23314    { (exit 1); exit 1; }; }; }
23315   ac_builddir=.
23317 case "$ac_dir" in
23318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23321   # A ".." for each directory in $ac_dir_suffix.
23322   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23323   case $ac_top_builddir_sub in
23324   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23325   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23326   esac ;;
23327 esac
23328 ac_abs_top_builddir=$ac_pwd
23329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23330 # for backward compatibility:
23331 ac_top_builddir=$ac_top_build_prefix
23333 case $srcdir in
23334   .)  # We are building in place.
23335     ac_srcdir=.
23336     ac_top_srcdir=$ac_top_builddir_sub
23337     ac_abs_top_srcdir=$ac_pwd ;;
23338   [\\/]* | ?:[\\/]* )  # Absolute name.
23339     ac_srcdir=$srcdir$ac_dir_suffix;
23340     ac_top_srcdir=$srcdir
23341     ac_abs_top_srcdir=$srcdir ;;
23342   *) # Relative name.
23343     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23344     ac_top_srcdir=$ac_top_build_prefix$srcdir
23345     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23346 esac
23347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23350   case $ac_mode in
23351   :F)
23352   #
23353   # CONFIG_FILE
23354   #
23356   case $INSTALL in
23357   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23358   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23359   esac
23360 _ACEOF
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 # If the template does not know about datarootdir, expand it.
23364 # FIXME: This hack should be removed a few years after 2.60.
23365 ac_datarootdir_hack=; ac_datarootdir_seen=
23367 case `sed -n '/datarootdir/ {
23368   p
23369   q
23371 /@datadir@/p
23372 /@docdir@/p
23373 /@infodir@/p
23374 /@localedir@/p
23375 /@mandir@/p
23376 ' $ac_file_inputs` in
23377 *datarootdir*) ac_datarootdir_seen=yes;;
23378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23379   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23381 _ACEOF
23382 cat >>$CONFIG_STATUS <<_ACEOF
23383   ac_datarootdir_hack='
23384   s&@datadir@&$datadir&g
23385   s&@docdir@&$docdir&g
23386   s&@infodir@&$infodir&g
23387   s&@localedir@&$localedir&g
23388   s&@mandir@&$mandir&g
23389     s&\\\${datarootdir}&$datarootdir&g' ;;
23390 esac
23391 _ACEOF
23393 # Neutralize VPATH when `$srcdir' = `.'.
23394 # Shell code in configure.ac might set extrasub.
23395 # FIXME: do we really want to maintain this feature?
23396 cat >>$CONFIG_STATUS <<_ACEOF
23397   sed "$ac_vpsub
23398 $extrasub
23399 _ACEOF
23400 cat >>$CONFIG_STATUS <<\_ACEOF
23402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23403 s&@configure_input@&$configure_input&;t t
23404 s&@top_builddir@&$ac_top_builddir_sub&;t t
23405 s&@srcdir@&$ac_srcdir&;t t
23406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23407 s&@top_srcdir@&$ac_top_srcdir&;t t
23408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23409 s&@builddir@&$ac_builddir&;t t
23410 s&@abs_builddir@&$ac_abs_builddir&;t t
23411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23412 s&@INSTALL@&$ac_INSTALL&;t t
23413 $ac_datarootdir_hack
23414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23417   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23418   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23419   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23420 which seems to be undefined.  Please make sure it is defined." >&5
23421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23422 which seems to be undefined.  Please make sure it is defined." >&2;}
23424   rm -f "$tmp/stdin"
23425   case $ac_file in
23426   -) cat "$tmp/out"; rm -f "$tmp/out";;
23427   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23428   esac
23429  ;;
23430   :H)
23431   #
23432   # CONFIG_HEADER
23433   #
23434 _ACEOF
23436 # Transform confdefs.h into a sed script `conftest.defines', that
23437 # substitutes the proper values into config.h.in to produce config.h.
23438 rm -f conftest.defines conftest.tail
23439 # First, append a space to every undef/define line, to ease matching.
23440 echo 's/$/ /' >conftest.defines
23441 # Then, protect against being on the right side of a sed subst, or in
23442 # an unquoted here document, in config.status.  If some macros were
23443 # called several times there might be several #defines for the same
23444 # symbol, which is useless.  But do not sort them, since the last
23445 # AC_DEFINE must be honored.
23446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23449 # PARAMS is the parameter list in the macro definition--in most cases, it's
23450 # just an empty string.
23451 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23452 ac_dB='\\)[      (].*,\\1define\\2'
23453 ac_dC=' '
23454 ac_dD=' ,'
23456 uniq confdefs.h |
23457   sed -n '
23458         t rset
23459         :rset
23460         s/^[     ]*#[    ]*define[       ][      ]*//
23461         t ok
23462         d
23463         :ok
23464         s/[\\&,]/\\&/g
23465         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23466         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23467   ' >>conftest.defines
23469 # Remove the space that was appended to ease matching.
23470 # Then replace #undef with comments.  This is necessary, for
23471 # example, in the case of _POSIX_SOURCE, which is predefined and required
23472 # on some systems where configure will not decide to define it.
23473 # (The regexp can be short, since the line contains either #define or #undef.)
23474 echo 's/ $//
23475 s,^[     #]*u.*,/* & */,' >>conftest.defines
23477 # Break up conftest.defines:
23478 ac_max_sed_lines=50
23480 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23481 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23482 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23483 # et cetera.
23484 ac_in='$ac_file_inputs'
23485 ac_out='"$tmp/out1"'
23486 ac_nxt='"$tmp/out2"'
23488 while :
23490   # Write a here document:
23491     cat >>$CONFIG_STATUS <<_ACEOF
23492     # First, check the format of the line:
23493     cat >"\$tmp/defines.sed" <<\\CEOF
23494 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23495 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23497 :def
23498 _ACEOF
23499   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23500   echo 'CEOF
23501     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23502   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23503   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23504   grep . conftest.tail >/dev/null || break
23505   rm -f conftest.defines
23506   mv conftest.tail conftest.defines
23507 done
23508 rm -f conftest.defines conftest.tail
23510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512   if test x"$ac_file" != x-; then
23513     echo "/* $configure_input  */" >"$tmp/config.h"
23514     cat "$ac_result" >>"$tmp/config.h"
23515     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23516       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23517 echo "$as_me: $ac_file is unchanged" >&6;}
23518     else
23519       rm -f $ac_file
23520       mv "$tmp/config.h" $ac_file
23521     fi
23522   else
23523     echo "/* $configure_input  */"
23524     cat "$ac_result"
23525   fi
23526   rm -f "$tmp/out12"
23527  ;;
23529   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23530 echo "$as_me: executing $ac_file commands" >&6;}
23531  ;;
23532   esac
23535   case $ac_file$ac_mode in
23536     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23537    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23538     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23539    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23540     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23541    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23542     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23543    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23544     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23545    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23546     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23547    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23548     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23549    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23550     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23551    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23552     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23553    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23554     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23555    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23556     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23557    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23558     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23559    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23560     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23561    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23563   esac
23564 done # for ac_tag
23567 { (exit 0); exit 0; }
23568 _ACEOF
23569 chmod +x $CONFIG_STATUS
23570 ac_clean_files=$ac_clean_files_save
23573 # configure is writing to config.log, and then calls config.status.
23574 # config.status does its own redirection, appending to config.log.
23575 # Unfortunately, on DOS this fails, as config.log is still kept open
23576 # by configure, so config.status won't be able to write to it; its
23577 # output is simply discarded.  So we exec the FD to /dev/null,
23578 # effectively closing config.log, so it can be properly (re)opened and
23579 # appended to by config.status.  When coming back to configure, we
23580 # need to make the FD available again.
23581 if test "$no_create" != yes; then
23582   ac_cs_success=:
23583   ac_config_status_args=
23584   test "$silent" = yes &&
23585     ac_config_status_args="$ac_config_status_args --quiet"
23586   exec 5>/dev/null
23587   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23588   exec 5>>config.log
23589   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23590   # would make configure fail if this is the last instruction.
23591   $ac_cs_success || { (exit 1); exit 1; }
23595 # CONFIG_SUBDIRS section.
23597 if test "$no_recursion" != yes; then
23599   # Remove --cache-file and --srcdir arguments so they do not pile up.
23600   ac_sub_configure_args=
23601   ac_prev=
23602   eval "set x $ac_configure_args"
23603   shift
23604   for ac_arg
23605   do
23606     if test -n "$ac_prev"; then
23607       ac_prev=
23608       continue
23609     fi
23610     case $ac_arg in
23611     -cache-file | --cache-file | --cache-fil | --cache-fi \
23612     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23613       ac_prev=cache_file ;;
23614     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23615     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23616     | --c=*)
23617       ;;
23618     --config-cache | -C)
23619       ;;
23620     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23621       ac_prev=srcdir ;;
23622     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23623       ;;
23624     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23625       ac_prev=prefix ;;
23626     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23627       ;;
23628     *)
23629       case $ac_arg in
23630       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23631       esac
23632       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23633     esac
23634   done
23636   # Always prepend --prefix to ensure using the same prefix
23637   # in subdir configurations.
23638   ac_arg="--prefix=$prefix"
23639   case $ac_arg in
23640   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23641   esac
23642   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23644   ac_popdir=`pwd`
23645   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23647     # Do not complain, so a configure script can configure whichever
23648     # parts of a large source tree are present.
23649     test -d "$srcdir/$ac_dir" || continue
23651     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23652     echo "$as_me:$LINENO: $ac_msg" >&5
23653     echo "$ac_msg" >&6
23654     { as_dir="$ac_dir"
23655   case $as_dir in #(
23656   -*) as_dir=./$as_dir;;
23657   esac
23658   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23659     as_dirs=
23660     while :; do
23661       case $as_dir in #(
23662       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23663       *) as_qdir=$as_dir;;
23664       esac
23665       as_dirs="'$as_qdir' $as_dirs"
23666       as_dir=`$as_dirname -- "$as_dir" ||
23667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668          X"$as_dir" : 'X\(//\)[^/]' \| \
23669          X"$as_dir" : 'X\(//\)$' \| \
23670          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23671 echo X"$as_dir" |
23672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23673             s//\1/
23674             q
23675           }
23676           /^X\(\/\/\)[^/].*/{
23677             s//\1/
23678             q
23679           }
23680           /^X\(\/\/\)$/{
23681             s//\1/
23682             q
23683           }
23684           /^X\(\/\).*/{
23685             s//\1/
23686             q
23687           }
23688           s/.*/./; q'`
23689       test -d "$as_dir" && break
23690     done
23691     test -z "$as_dirs" || eval "mkdir $as_dirs"
23692   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23693 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23694    { (exit 1); exit 1; }; }; }
23695     ac_builddir=.
23697 case "$ac_dir" in
23698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23700   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23701   # A ".." for each directory in $ac_dir_suffix.
23702   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23703   case $ac_top_builddir_sub in
23704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23706   esac ;;
23707 esac
23708 ac_abs_top_builddir=$ac_pwd
23709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23710 # for backward compatibility:
23711 ac_top_builddir=$ac_top_build_prefix
23713 case $srcdir in
23714   .)  # We are building in place.
23715     ac_srcdir=.
23716     ac_top_srcdir=$ac_top_builddir_sub
23717     ac_abs_top_srcdir=$ac_pwd ;;
23718   [\\/]* | ?:[\\/]* )  # Absolute name.
23719     ac_srcdir=$srcdir$ac_dir_suffix;
23720     ac_top_srcdir=$srcdir
23721     ac_abs_top_srcdir=$srcdir ;;
23722   *) # Relative name.
23723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23724     ac_top_srcdir=$ac_top_build_prefix$srcdir
23725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23726 esac
23727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23730     cd "$ac_dir"
23732     # Check for guested configure; otherwise get Cygnus style configure.
23733     if test -f "$ac_srcdir/configure.gnu"; then
23734       ac_sub_configure=$ac_srcdir/configure.gnu
23735     elif test -f "$ac_srcdir/configure"; then
23736       ac_sub_configure=$ac_srcdir/configure
23737     elif test -f "$ac_srcdir/configure.in"; then
23738       # This should be Cygnus configure.
23739       ac_sub_configure=$ac_aux_dir/configure
23740     else
23741       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23742 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23743       ac_sub_configure=
23744     fi
23746     # The recursion is here.
23747     if test -n "$ac_sub_configure"; then
23748       # Make the cache file name correct relative to the subdirectory.
23749       case $cache_file in
23750       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23751       *) # Relative name.
23752         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23753       esac
23755       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23756 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23757       # The eval makes quoting arguments work.
23758       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23759            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23760         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23761 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23762    { (exit 1); exit 1; }; }
23763     fi
23765     cd "$ac_popdir"
23766   done