With rpaths being set correctly, SHLIBPATH_VAR is not needed anymore.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_COPYRIGHT
645 CC
646 CFLAGS
647 LDFLAGS
648 CPPFLAGS
649 ac_ct_CC
650 EXEEXT
651 OBJEXT
652 CXX
653 CXXFLAGS
654 ac_ct_CXX
655 CPP
656 subdirs
657 ENABLE_POLLY
658 LLVM_HAS_POLLY
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 target
668 target_cpu
669 target_vendor
670 target_os
671 OS
672 HOST_OS
673 TARGET_OS
674 LINKALL
675 NOLINKALL
676 LLVM_ON_UNIX
677 LLVM_ON_WIN32
678 ARCH
679 LLVM_NATIVE_ARCH
680 HOST_ARCH
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 TARGETS_WITH_JIT
704 ENABLE_DOCS
705 ENABLE_DOXYGEN
706 LLVM_ENABLE_THREADS
707 ENABLE_PTHREADS
708 LLVM_ENABLE_ZLIB
709 ENABLE_PIC
710 ENABLE_SHARED
711 ENABLE_EMBED_STDCXX
712 ENABLE_TIMESTAMPS
713 ALL_TARGETS
714 TARGETS_TO_BUILD
715 LLVM_ENUM_TARGETS
716 LLVM_ENUM_ASM_PRINTERS
717 LLVM_ENUM_ASM_PARSERS
718 LLVM_ENUM_DISASSEMBLERS
719 OPTIMIZE_OPTION
720 EXTRA_OPTIONS
721 EXTRA_LD_OPTIONS
722 CLANG_SRC_ROOT
723 BINUTILS_INCDIR
724 ENABLE_TERMINFO
725 INTERNAL_PREFIX
726 NM
727 ifGNUmake
728 LN_S
729 CMP
730 CP
731 DATE
732 FIND
733 GREP
734 MKDIR
735 MV
736 RANLIB
737 AR
738 RM
739 SED
740 TAR
741 BINPWD
742 GRAPHVIZ
743 DOT
744 FDP
745 NEATO
746 TWOPI
747 CIRCO
748 GV
749 DOTTY
750 XDOT
751 INSTALL_PROGRAM
752 INSTALL_SCRIPT
753 INSTALL_DATA
754 BZIP2
755 CAT
756 DOXYGEN
757 GROFF
758 GZIPBIN
759 PDFROFF
760 ZIP
761 OCAMLC
762 OCAMLOPT
763 OCAMLDEP
764 OCAMLDOC
765 GAS
766 HAVE_LINK_VERSION_SCRIPT
767 EGREP
768 INSTALL_LTDL_TRUE
769 INSTALL_LTDL_FALSE
770 CONVENIENCE_LTDL_TRUE
771 CONVENIENCE_LTDL_FALSE
772 LIBADD_DL
773 NO_VARIADIC_MACROS
774 NO_MISSING_FIELD_INITIALIZERS
775 COVERED_SWITCH_DEFAULT
776 NO_MAYBE_UNINITIALIZED
777 NO_UNINITIALIZED
778 PYTHON
779 HAVE_DLOPEN
780 HAVE_TERMINFO
781 USE_UDIS86
782 USE_OPROFILE
783 USE_INTEL_JITEVENTS
784 XML2CONFIG
785 LIBXML2_LIBS
786 LIBXML2_INC
787 CXXCPP
788 HAVE_PTHREAD
789 HAVE_LIBZ
790 HUGE_VAL_SANITY
791 MMAP_FILE
792 SHLIBEXT
793 LLVM_PREFIX
794 LLVM_BINDIR
795 LLVM_DATADIR
796 LLVM_DOCSDIR
797 LLVM_ETCDIR
798 LLVM_INCLUDEDIR
799 LLVM_INFODIR
800 LLVM_MANDIR
801 LLVM_CONFIGTIME
802 BINDINGS_TO_BUILD
803 ALL_BINDINGS
804 OCAML_LIBDIR
805 ENABLE_VISIBILITY_INLINES_HIDDEN
806 RPATH
807 RDYNAMIC
808 program_prefix
809 LIBOBJS
810 LTLIBOBJS'
811 ac_subst_files=''
812       ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 CPPFLAGS
819 CXX
820 CXXFLAGS
821 CCC
822 CPP
823 CXXCPP'
824 ac_subdirs_all='projects/test-suite
825 projects/llvm-test
826 projects/poolalloc
827 projects/llvm-poolalloc
828 projects/sample
829 projects/safecode
830 tools/polly'
831
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
851
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'
877
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
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
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 ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
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 ;;
931
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 ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
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 ;;
959
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 ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
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 ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
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 ;;
990
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 ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
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 ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
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 ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
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 ;;
1043
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 ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
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 ;;
1064
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 ;;
1071
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 ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
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 ;;
1108
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 ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
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 ;;
1136
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 ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
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 ;;
1156
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 ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
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 ;;
1176
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 ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
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 ;;
1197
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     ;;
1205
1206   esac
1207 done
1208
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
1214
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
1229
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
1236
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
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
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; }; }
1262
1263
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
1324
1325 #
1326 # Report the --help message.
1327 #
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.5svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
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.
1338
1339 Defaults for the options are specified in brackets.
1340
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 \`..']
1351
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]
1357
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'.
1362
1363 For better control, use the options below.
1364
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
1386
1387   cat <<\_ACEOF
1388
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
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
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-compiler-version-checks
1408                           Check the version of the host compiler (default is
1409                           YES)
1410   --enable-cxx11          Use c++11 if available (default is NO)
1411   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1412   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1413   --enable-clang-static-analyzer
1414                           Enable building of clang Static Analyzer (default is
1415                           YES)
1416   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1417   --enable-optimized      Compile with optimizations enabled (default is NO)
1418   --enable-profiling      Compile with profiling enabled (default is NO)
1419   --enable-assertions     Compile with assertion checks enabled (default is
1420                           YES)
1421   --enable-werror         Compile with -Werror enabled (default is NO)
1422   --enable-expensive-checks
1423                           Compile with expensive debug checks enabled (default
1424                           is NO)
1425   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1426                           NO)
1427   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1428                           optimization is on and YES if it's off)
1429   --enable-keep-symbols   Do not strip installed executables)
1430   --enable-jit            Enable Just In Time Compiling (default is YES)
1431   --enable-docs           Build documents (default is YES)
1432   --enable-doxygen        Build doxygen documentation (default is NO)
1433   --enable-threads        Use threads if available (default is YES)
1434   --enable-pthreads       Use pthreads if available (default is YES)
1435   --enable-zlib           Use zlib for compression/decompression if available
1436                           (default is YES)
1437   --enable-pic            Build LLVM with Position Independent Code (default
1438                           is YES)
1439   --enable-shared         Build a shared library and link tools against it
1440                           (default is NO)
1441   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1442                           Win32 DLL (default is NO)
1443   --enable-timestamps     Enable embedding timestamp information in build
1444                           (default is YES)
1445   --enable-backtraces     Enable embedding backtraces on crash (default is
1446                           YES)
1447   --enable-crash-overrides
1448                           Enable crash handling overrides (default is YES)
1449   --enable-targets        Build specific host targets: all or
1450                           target1,target2,... Valid targets are: host, x86,
1451                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1452                           xcore, msp430, nvptx, systemz, r600, and cpp
1453                           (default=all)
1454   --enable-experimental-targets
1455                           Build experimental host targets: disable or
1456                           target1,target2,... (default=disable)
1457   --enable-bindings       Build specific language bindings:
1458                           all,auto,none,{binding-name} (default=auto)
1459   --enable-terminfo       Query the terminfo database if available (default is
1460                           YES)
1461   --enable-libedit        Use libedit if available (default is YES)
1462   --enable-libffi         Check for the presence of libffi (default is NO)
1463   --enable-ltdl-install   install libltdl
1464
1465 Optional Packages:
1466   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468   --with-optimize-option  Select the compiler options to use for optimized
1469                           builds
1470   --with-extra-options    Specify additional options to compile LLVM with
1471   --with-extra-ld-options Specify additional options to link LLVM with
1472   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1473                           is stdlib)
1474   --with-clang-srcdir     Directory to the out-of-tree Clang source
1475   --with-clang-resource-dir
1476                           Relative directory from the Clang binary for
1477                           resource files
1478   --with-c-include-dirs   Colon separated list of directories clang will
1479                           search for headers
1480   --with-gcc-toolchain    Directory where gcc is installed.
1481   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1482   --with-binutils-include Specify path to binutils/include/ containing
1483                           plugin-api.h file for gold plugin.
1484   --with-bug-report-url   Specify the URL where bug reports should be
1485                           submitted (default=http://llvm.org/bugs/)
1486   --with-internal-prefix  Installation directory for internal files
1487   --with-python           path to python
1488   --with-udis86=<path>    Use udis86 external x86 disassembler library
1489   --with-oprofile=<prefix>
1490                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1491   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1492
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500               you have headers in a nonstandard directory <include dir>
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CPP         C preprocessor
1504   CXXCPP      C++ preprocessor
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <http://llvm.org/bugs/>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515   # If there are subdirs, report their specific --help.
1516   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517     test -d "$ac_dir" || continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 LLVM configure 3.5svn
1571 generated by GNU Autoconf 2.60
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577
1578 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1579 _ACEOF
1580   exit
1581 fi
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1585
1586 It was created by LLVM $as_me 3.5svn, which was
1587 generated by GNU Autoconf 2.60.  Invocation command line was
1588
1589   $ $0 $@
1590
1591 _ACEOF
1592 exec 5>>config.log
1593 {
1594 cat <<_ASUNAME
1595 ## --------- ##
1596 ## Platform. ##
1597 ## --------- ##
1598
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1607
1608 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1609 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1612 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1613 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1614 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1615
1616 _ASUNAME
1617
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   echo "PATH: $as_dir"
1624 done
1625 IFS=$as_save_IFS
1626
1627 } >&5
1628
1629 cat >&5 <<_ACEOF
1630
1631
1632 ## ----------- ##
1633 ## Core tests. ##
1634 ## ----------- ##
1635
1636 _ACEOF
1637
1638
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_configure_args=
1645 ac_configure_args0=
1646 ac_configure_args1=
1647 ac_must_keep_next=false
1648 for ac_pass in 1 2
1649 do
1650   for ac_arg
1651   do
1652     case $ac_arg in
1653     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655     | -silent | --silent | --silen | --sile | --sil)
1656       continue ;;
1657     *\'*)
1658       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659     esac
1660     case $ac_pass in
1661     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662     2)
1663       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664       if test $ac_must_keep_next = true; then
1665         ac_must_keep_next=false # Got value, back to normal.
1666       else
1667         case $ac_arg in
1668           *=* | --config-cache | -C | -disable-* | --disable-* \
1669           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671           | -with-* | --with-* | -without-* | --without-* | --x)
1672             case "$ac_configure_args0 " in
1673               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674             esac
1675             ;;
1676           -* ) ac_must_keep_next=true ;;
1677         esac
1678       fi
1679       ac_configure_args="$ac_configure_args '$ac_arg'"
1680       ;;
1681     esac
1682   done
1683 done
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log.  We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693   # Save into config.log some information that might help in debugging.
1694   {
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1701 _ASBOX
1702     echo
1703     # The following way of writing the cache mishandles newlines in values,
1704 (
1705   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706     eval ac_val=\$$ac_var
1707     case $ac_val in #(
1708     *${as_nl}*)
1709       case $ac_var in #(
1710       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712       esac
1713       case $ac_var in #(
1714       _ | IFS | as_nl) ;; #(
1715       *) $as_unset $ac_var ;;
1716       esac ;;
1717     esac
1718   done
1719   (set) 2>&1 |
1720     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721     *${as_nl}ac_space=\ *)
1722       sed -n \
1723         "s/'\''/'\''\\\\'\'''\''/g;
1724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725       ;; #(
1726     *)
1727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728       ;;
1729     esac |
1730     sort
1731 )
1732     echo
1733
1734     cat <<\_ASBOX
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1738 _ASBOX
1739     echo
1740     for ac_var in $ac_subst_vars
1741     do
1742       eval ac_val=\$$ac_var
1743       case $ac_val in
1744       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745       esac
1746       echo "$ac_var='\''$ac_val'\''"
1747     done | sort
1748     echo
1749
1750     if test -n "$ac_subst_files"; then
1751       cat <<\_ASBOX
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1755 _ASBOX
1756       echo
1757       for ac_var in $ac_subst_files
1758       do
1759         eval ac_val=\$$ac_var
1760         case $ac_val in
1761         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762         esac
1763         echo "$ac_var='\''$ac_val'\''"
1764       done | sort
1765       echo
1766     fi
1767
1768     if test -s confdefs.h; then
1769       cat <<\_ASBOX
1770 ## ----------- ##
1771 ## confdefs.h. ##
1772 ## ----------- ##
1773 _ASBOX
1774       echo
1775       cat confdefs.h
1776       echo
1777     fi
1778     test "$ac_signal" != 0 &&
1779       echo "$as_me: caught signal $ac_signal"
1780     echo "$as_me: exit $exit_status"
1781   } >&5
1782   rm -f core *.core core.conftest.* &&
1783     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784     exit $exit_status
1785 ' 0
1786 for ac_signal in 1 2 13 15; do
1787   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 done
1789 ac_signal=0
1790
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1793
1794 # Predefined preprocessor variables.
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 _ACEOF
1819
1820
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824   set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 else
1828   set x "$ac_default_prefix/share/config.site" \
1829         "$ac_default_prefix/etc/config.site"
1830 fi
1831 shift
1832 for ac_site_file
1833 do
1834   if test -r "$ac_site_file"; then
1835     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837     sed 's/^/| /' "$ac_site_file" >&5
1838     . "$ac_site_file"
1839   fi
1840 done
1841
1842 if test -r "$cache_file"; then
1843   # Some versions of bash will fail to source /dev/null (special
1844   # files actually), so we avoid doing that.
1845   if test -f "$cache_file"; then
1846     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1848     case $cache_file in
1849       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850       *)                      . "./$cache_file";;
1851     esac
1852   fi
1853 else
1854   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1856   >$cache_file
1857 fi
1858
1859 # Check that the precious variables saved in the cache have kept the same
1860 # value.
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864   eval ac_new_set=\$ac_env_${ac_var}_set
1865   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866   eval ac_new_val=\$ac_env_${ac_var}_value
1867   case $ac_old_set,$ac_new_set in
1868     set,)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,set)
1873       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,);;
1877     *)
1878       if test "x$ac_old_val" != "x$ac_new_val"; then
1879         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1882 echo "$as_me:   former value:  $ac_old_val" >&2;}
1883         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1884 echo "$as_me:   current value: $ac_new_val" >&2;}
1885         ac_cache_corrupted=:
1886       fi;;
1887   esac
1888   # Pass precious variables to config.status.
1889   if test "$ac_new_set" = set; then
1890     case $ac_new_val in
1891     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892     *) ac_arg=$ac_var=$ac_new_val ;;
1893     esac
1894     case " $ac_configure_args " in
1895       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1896       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897     esac
1898   fi
1899 done
1900 if $ac_cache_corrupted; then
1901   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939
1940
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MAJOR 3
1943 _ACEOF
1944
1945 LLVM_VERSION_MAJOR='3'
1946
1947
1948
1949
1950 cat >>confdefs.h <<\_ACEOF
1951 #define LLVM_VERSION_MINOR 5
1952 _ACEOF
1953
1954 LLVM_VERSION_MINOR='5'
1955
1956
1957
1958 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1959
1960
1961
1962
1963
1964
1965
1966 ac_aux_dir=
1967 for ac_dir in autoconf "$srcdir"/autoconf; do
1968   if test -f "$ac_dir/install-sh"; then
1969     ac_aux_dir=$ac_dir
1970     ac_install_sh="$ac_aux_dir/install-sh -c"
1971     break
1972   elif test -f "$ac_dir/install.sh"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/install.sh -c"
1975     break
1976   elif test -f "$ac_dir/shtool"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/shtool install -c"
1979     break
1980   fi
1981 done
1982 if test -z "$ac_aux_dir"; then
1983   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1985    { (exit 1); exit 1; }; }
1986 fi
1987
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1995
1996
1997
1998 if test ${srcdir} != "." ; then
1999   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2000     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2001 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2002    { (exit 1); exit 1; }; }
2003   fi
2004 fi
2005
2006 : ${CFLAGS=}
2007 : ${CXXFLAGS=}
2008
2009 ac_ext=c
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 if test -n "$ac_tool_prefix"; then
2015   for ac_prog in clang gcc
2016   do
2017     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   if test -n "$CC"; then
2025   ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032   for ac_exec_ext in '' $ac_executable_extensions; do
2033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2034     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036     break 2
2037   fi
2038 done
2039 done
2040 IFS=$as_save_IFS
2041
2042 fi
2043 fi
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046   { echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6; }
2048 else
2049   { echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6; }
2051 fi
2052
2053
2054     test -n "$CC" && break
2055   done
2056 fi
2057 if test -z "$CC"; then
2058   ac_ct_CC=$CC
2059   for ac_prog in clang gcc
2060 do
2061   # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test -n "$ac_ct_CC"; then
2069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   for ac_exec_ext in '' $ac_executable_extensions; do
2077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2078     ac_cv_prog_ac_ct_CC="$ac_prog"
2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080     break 2
2081   fi
2082 done
2083 done
2084 IFS=$as_save_IFS
2085
2086 fi
2087 fi
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6; }
2092 else
2093   { echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6; }
2095 fi
2096
2097
2098   test -n "$ac_ct_CC" && break
2099 done
2100
2101   if test "x$ac_ct_CC" = x; then
2102     CC=""
2103   else
2104     case $cross_compiling:$ac_tool_warned in
2105 yes:)
2106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2107 whose name does not start with the host triplet.  If you think this
2108 configuration is useful to you, please write to autoconf@gnu.org." >&5
2109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet.  If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2112 ac_tool_warned=yes ;;
2113 esac
2114     CC=$ac_ct_CC
2115   fi
2116 fi
2117
2118
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO: checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (ac_try="$ac_compiler --version >&5"
2129 case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134   (eval "$ac_compiler --version >&5") 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (ac_try="$ac_compiler -v >&5"
2139 case "(($ac_try" in
2140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141   *) ac_try_echo=$ac_try;;
2142 esac
2143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144   (eval "$ac_compiler -v >&5") 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148 { (ac_try="$ac_compiler -V >&5"
2149 case "(($ac_try" in
2150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151   *) ac_try_echo=$ac_try;;
2152 esac
2153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2154   (eval "$ac_compiler -V >&5") 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }
2158
2159 cat >conftest.$ac_ext <<_ACEOF
2160 /* confdefs.h.  */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h.  */
2165
2166 int
2167 main ()
2168 {
2169
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2178 # of exeext.
2179 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182 #
2183 # List of possible output files, starting from the most likely.
2184 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2185 # only as a last resort.  b.out is created by i960 compilers.
2186 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2187 #
2188 # The IRIX 6 linker writes into existing files which may not be
2189 # executable, retaining their permissions.  Remove them first so a
2190 # subsequent execution test works.
2191 ac_rmfiles=
2192 for ac_file in $ac_files
2193 do
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2196     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197   esac
2198 done
2199 rm -f $ac_rmfiles
2200
2201 if { (ac_try="$ac_link_default"
2202 case "(($ac_try" in
2203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204   *) ac_try_echo=$ac_try;;
2205 esac
2206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2207   (eval "$ac_link_default") 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; then
2211   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2213 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2214 # so that the user can short-circuit this test for compilers unknown to
2215 # Autoconf.
2216 for ac_file in $ac_files
2217 do
2218   test -f "$ac_file" || continue
2219   case $ac_file in
2220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2221         ;;
2222     [ab].out )
2223         # We found the default executable, but exeext='' is most
2224         # certainly right.
2225         break;;
2226     *.* )
2227         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2228         then :; else
2229            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230         fi
2231         # We set ac_cv_exeext here because the later test for it is not
2232         # safe: cross compilers may not add the suffix if given an `-o'
2233         # argument, so we may need to know it at that point already.
2234         # Even if this section looks crufty: it has the advantage of
2235         # actually working.
2236         break;;
2237     * )
2238         break;;
2239   esac
2240 done
2241 test "$ac_cv_exeext" = no && ac_cv_exeext=
2242
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&2;}
2251    { (exit 77); exit 77; }; }
2252 fi
2253
2254 ac_exeext=$ac_cv_exeext
2255 { echo "$as_me:$LINENO: result: $ac_file" >&5
2256 echo "${ECHO_T}$ac_file" >&6; }
2257
2258 # Check that the compiler produces executables we can run.  If not, either
2259 # the compiler is broken, or we cross compile.
2260 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2261 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2262 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2263 # If not cross compiling, check that we can run a simple program.
2264 if test "$cross_compiling" != yes; then
2265   if { ac_try='./$ac_file'
2266   { (case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_try") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275     cross_compiling=no
2276   else
2277     if test "$cross_compiling" = maybe; then
2278         cross_compiling=yes
2279     else
2280         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281 If you meant to cross compile, use \`--host'.
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot run C compiled programs.
2284 If you meant to cross compile, use \`--host'.
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287     fi
2288   fi
2289 fi
2290 { echo "$as_me:$LINENO: result: yes" >&5
2291 echo "${ECHO_T}yes" >&6; }
2292
2293 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294 ac_clean_files=$ac_clean_files_save
2295 # Check that the compiler produces executables we can run.  If not, either
2296 # the compiler is broken, or we cross compile.
2297 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2299 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300 echo "${ECHO_T}$cross_compiling" >&6; }
2301
2302 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2304 if { (ac_try="$ac_link"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310   (eval "$ac_link") 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2315 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2316 # work properly (i.e., refer to `conftest.exe'), while it won't with
2317 # `rm'.
2318 for ac_file in conftest.exe conftest conftest.*; do
2319   test -f "$ac_file" || continue
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2322     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323           break;;
2324     * ) break;;
2325   esac
2326 done
2327 else
2328   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333 fi
2334
2335 rm -f conftest$ac_cv_exeext
2336 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2338
2339 rm -f conftest.$ac_ext
2340 EXEEXT=$ac_cv_exeext
2341 ac_exeext=$EXEEXT
2342 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2344 if test "${ac_cv_objext+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h.  */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h.  */
2353
2354 int
2355 main ()
2356 {
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.o conftest.obj
2363 if { (ac_try="$ac_compile"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369   (eval "$ac_compile") 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; then
2373   for ac_file in conftest.o conftest.obj conftest.*; do
2374   test -f "$ac_file" || continue;
2375   case $ac_file in
2376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2377     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2378        break;;
2379   esac
2380 done
2381 else
2382   echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&2;}
2389    { (exit 1); exit 1; }; }
2390 fi
2391
2392 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2393 fi
2394 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2395 echo "${ECHO_T}$ac_cv_objext" >&6; }
2396 OBJEXT=$ac_cv_objext
2397 ac_objext=$OBJEXT
2398 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2399 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h.  */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h.  */
2409
2410 int
2411 main ()
2412 {
2413 #ifndef __GNUC__
2414        choke me
2415 #endif
2416
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (ac_try="$ac_compile"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428   (eval "$ac_compile") 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2436   { (case "(($ac_try" in
2437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438   *) ac_try_echo=$ac_try;;
2439 esac
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441   (eval "$ac_try") 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451   (eval "$ac_try") 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   ac_compiler_gnu=yes
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460         ac_compiler_gnu=no
2461 fi
2462
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_cc_g+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   ac_save_c_werror_flag=$ac_c_werror_flag
2478    ac_c_werror_flag=yes
2479    ac_cv_prog_cc_g=no
2480    CFLAGS="-g"
2481    cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } &&
2510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; }; then
2530   ac_cv_prog_cc_g=yes
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535         CFLAGS=""
2536       cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542
2543 int
2544 main ()
2545 {
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (ac_try="$ac_compile"
2553 case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558   (eval "$ac_compile") 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566   { (case "(($ac_try" in
2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568   *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571   (eval "$ac_try") 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; } &&
2575          { ac_try='test -s conftest.$ac_objext'
2576   { (case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_try") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585   :
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590         ac_c_werror_flag=$ac_save_c_werror_flag
2591          CFLAGS="-g"
2592          cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h.  */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h.  */
2598
2599 int
2600 main ()
2601 {
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (ac_try="$ac_compile"
2609 case "(($ac_try" in
2610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611   *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614   (eval "$ac_compile") 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2622   { (case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627   (eval "$ac_try") 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; } &&
2631          { ac_try='test -s conftest.$ac_objext'
2632   { (case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637   (eval "$ac_try") 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_prog_cc_g=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646
2647 fi
2648
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 fi
2651
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656    ac_c_werror_flag=$ac_save_c_werror_flag
2657 fi
2658 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2660 if test "$ac_test_CFLAGS" = set; then
2661   CFLAGS=$ac_save_CFLAGS
2662 elif test $ac_cv_prog_cc_g = yes; then
2663   if test "$GCC" = yes; then
2664     CFLAGS="-g -O2"
2665   else
2666     CFLAGS="-g"
2667   fi
2668 else
2669   if test "$GCC" = yes; then
2670     CFLAGS="-O2"
2671   else
2672     CFLAGS=
2673   fi
2674 fi
2675 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2676 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_c89+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   ac_cv_prog_cc_c89=no
2681 ac_save_CC=$CC
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 #include <stdarg.h>
2689 #include <stdio.h>
2690 #include <sys/types.h>
2691 #include <sys/stat.h>
2692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2693 struct buf { int x; };
2694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2695 static char *e (p, i)
2696      char **p;
2697      int i;
2698 {
2699   return p[i];
2700 }
2701 static char *f (char * (*g) (char **, int), char **p, ...)
2702 {
2703   char *s;
2704   va_list v;
2705   va_start (v,p);
2706   s = g (p, va_arg (v,int));
2707   va_end (v);
2708   return s;
2709 }
2710
2711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2712    function prototypes and stuff, but not '\xHH' hex character constants.
2713    These don't provoke an error unfortunately, instead are silently treated
2714    as 'x'.  The following induces an error, until -std is added to get
2715    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2716    array size at least.  It's necessary to write '\x00'==0 to get something
2717    that's true only with -std.  */
2718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2719
2720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2721    inside strings and character constants.  */
2722 #define FOO(x) 'x'
2723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2724
2725 int test (int i, double x);
2726 struct s1 {int (*f) (int a);};
2727 struct s2 {int (*f) (double a);};
2728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2729 int argc;
2730 char **argv;
2731 int
2732 main ()
2733 {
2734 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2740         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 do
2742   CC="$ac_save_CC $ac_arg"
2743   rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compile") 2>conftest.er1
2751   ac_status=$?
2752   grep -v '^ *+' conftest.er1 >conftest.err
2753   rm -f conftest.er1
2754   cat conftest.err >&5
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } &&
2757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2758   { (case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_try") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_try") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   ac_cv_prog_cc_c89=$ac_arg
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782
2783 fi
2784
2785 rm -f core conftest.err conftest.$ac_objext
2786   test "x$ac_cv_prog_cc_c89" != "xno" && break
2787 done
2788 rm -f conftest.$ac_ext
2789 CC=$ac_save_CC
2790
2791 fi
2792 # AC_CACHE_VAL
2793 case "x$ac_cv_prog_cc_c89" in
2794   x)
2795     { echo "$as_me:$LINENO: result: none needed" >&5
2796 echo "${ECHO_T}none needed" >&6; } ;;
2797   xno)
2798     { echo "$as_me:$LINENO: result: unsupported" >&5
2799 echo "${ECHO_T}unsupported" >&6; } ;;
2800   *)
2801     CC="$CC $ac_cv_prog_cc_c89"
2802     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2804 esac
2805
2806
2807 ac_ext=c
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812
2813 ac_ext=cpp
2814 ac_cpp='$CXXCPP $CPPFLAGS'
2815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2818 if test -z "$CXX"; then
2819   if test -n "$CCC"; then
2820     CXX=$CCC
2821   else
2822     if test -n "$ac_tool_prefix"; then
2823   for ac_prog in clang++ g++
2824   do
2825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_CXX+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if test -n "$CXX"; then
2833   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838   IFS=$as_save_IFS
2839   test -z "$as_dir" && as_dir=.
2840   for ac_exec_ext in '' $ac_executable_extensions; do
2841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2842     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844     break 2
2845   fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CXX=$ac_cv_prog_CXX
2853 if test -n "$CXX"; then
2854   { echo "$as_me:$LINENO: result: $CXX" >&5
2855 echo "${ECHO_T}$CXX" >&6; }
2856 else
2857   { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2859 fi
2860
2861
2862     test -n "$CXX" && break
2863   done
2864 fi
2865 if test -z "$CXX"; then
2866   ac_ct_CXX=$CXX
2867   for ac_prog in clang++ g++
2868 do
2869   # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$ac_ct_CXX"; then
2877   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884   for ac_exec_ext in '' $ac_executable_extensions; do
2885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2886     ac_cv_prog_ac_ct_CXX="$ac_prog"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2897 if test -n "$ac_ct_CXX"; then
2898   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2899 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2900 else
2901   { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2903 fi
2904
2905
2906   test -n "$ac_ct_CXX" && break
2907 done
2908
2909   if test "x$ac_ct_CXX" = x; then
2910     CXX="g++"
2911   else
2912     case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2915 whose name does not start with the host triplet.  If you think this
2916 configuration is useful to you, please write to autoconf@gnu.org." >&5
2917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2918 whose name does not start with the host triplet.  If you think this
2919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922     CXX=$ac_ct_CXX
2923   fi
2924 fi
2925
2926   fi
2927 fi
2928 # Provide some information about the compiler.
2929 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2930 ac_compiler=`set X $ac_compile; echo $2`
2931 { (ac_try="$ac_compiler --version >&5"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compiler --version >&5") 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }
2941 { (ac_try="$ac_compiler -v >&5"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compiler -v >&5") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }
2951 { (ac_try="$ac_compiler -V >&5"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_compiler -V >&5") 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }
2961
2962 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2963 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2964 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977 #ifndef __GNUC__
2978        choke me
2979 #endif
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } &&
2999          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3000   { (case "(($ac_try" in
3001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002   *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005   (eval "$ac_try") 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; } &&
3009          { ac_try='test -s conftest.$ac_objext'
3010   { (case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_try") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; }; then
3019   ac_compiler_gnu=yes
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024         ac_compiler_gnu=no
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3029
3030 fi
3031 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3033 GXX=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CXXFLAGS=${CXXFLAGS+set}
3035 ac_save_CXXFLAGS=$CXXFLAGS
3036 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3037 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_cxx_g+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3042    ac_cxx_werror_flag=yes
3043    ac_cv_prog_cxx_g=no
3044    CXXFLAGS="-g"
3045    cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   ac_cv_prog_cxx_g=yes
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         CXXFLAGS=""
3100       cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_compile") 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3130   { (case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_try") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   :
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3155          CXXFLAGS="-g"
3156          cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3186   { (case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_try") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; } &&
3195          { ac_try='test -s conftest.$ac_objext'
3196   { (case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_try") 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   ac_cv_prog_cxx_g=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3224 if test "$ac_test_CXXFLAGS" = set; then
3225   CXXFLAGS=$ac_save_CXXFLAGS
3226 elif test $ac_cv_prog_cxx_g = yes; then
3227   if test "$GXX" = yes; then
3228     CXXFLAGS="-g -O2"
3229   else
3230     CXXFLAGS="-g"
3231   fi
3232 else
3233   if test "$GXX" = yes; then
3234     CXXFLAGS="-O2"
3235   else
3236     CXXFLAGS=
3237   fi
3238 fi
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3252 # On Suns, sometimes $CPP names a directory.
3253 if test -n "$CPP" && test -d "$CPP"; then
3254   CPP=
3255 fi
3256 if test -z "$CPP"; then
3257   if test "${ac_cv_prog_CPP+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260       # Double quotes because CPP needs to be expanded
3261     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3262     do
3263       ac_preproc_ok=false
3264 for ac_c_preproc_warn_flag in '' yes
3265 do
3266   # Use a header file that comes with gcc, so configuring glibc
3267   # with a fresh cross-compiler works.
3268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3269   # <limits.h> exists even on freestanding compilers.
3270   # On the NeXT, cc -E runs the code through the compiler's parser,
3271   # not just through cpp. "Syntax error" is here to catch this case.
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #ifdef __STDC__
3279 # include <limits.h>
3280 #else
3281 # include <assert.h>
3282 #endif
3283                      Syntax error
3284 _ACEOF
3285 if { (ac_try="$ac_cpp conftest.$ac_ext"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } >/dev/null; then
3298   if test -s conftest.err; then
3299     ac_cpp_err=$ac_c_preproc_warn_flag
3300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301   else
3302     ac_cpp_err=
3303   fi
3304 else
3305   ac_cpp_err=yes
3306 fi
3307 if test -z "$ac_cpp_err"; then
3308   :
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Broken: fails on valid input.
3314 continue
3315 fi
3316
3317 rm -f conftest.err conftest.$ac_ext
3318
3319   # OK, works on sane cases.  Now check whether nonexistent headers
3320   # can be detected and how.
3321   cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <ac_nonexistent.h>
3328 _ACEOF
3329 if { (ac_try="$ac_cpp conftest.$ac_ext"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } >/dev/null; then
3342   if test -s conftest.err; then
3343     ac_cpp_err=$ac_c_preproc_warn_flag
3344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345   else
3346     ac_cpp_err=
3347   fi
3348 else
3349   ac_cpp_err=yes
3350 fi
3351 if test -z "$ac_cpp_err"; then
3352   # Broken: success on invalid input.
3353 continue
3354 else
3355   echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358   # Passes both tests.
3359 ac_preproc_ok=:
3360 break
3361 fi
3362
3363 rm -f conftest.err conftest.$ac_ext
3364
3365 done
3366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3367 rm -f conftest.err conftest.$ac_ext
3368 if $ac_preproc_ok; then
3369   break
3370 fi
3371
3372     done
3373     ac_cv_prog_CPP=$CPP
3374
3375 fi
3376   CPP=$ac_cv_prog_CPP
3377 else
3378   ac_cv_prog_CPP=$CPP
3379 fi
3380 { echo "$as_me:$LINENO: result: $CPP" >&5
3381 echo "${ECHO_T}$CPP" >&6; }
3382 ac_preproc_ok=false
3383 for ac_c_preproc_warn_flag in '' yes
3384 do
3385   # Use a header file that comes with gcc, so configuring glibc
3386   # with a fresh cross-compiler works.
3387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388   # <limits.h> exists even on freestanding compilers.
3389   # On the NeXT, cc -E runs the code through the compiler's parser,
3390   # not just through cpp. "Syntax error" is here to catch this case.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #ifdef __STDC__
3398 # include <limits.h>
3399 #else
3400 # include <assert.h>
3401 #endif
3402                      Syntax error
3403 _ACEOF
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } >/dev/null; then
3417   if test -s conftest.err; then
3418     ac_cpp_err=$ac_c_preproc_warn_flag
3419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420   else
3421     ac_cpp_err=
3422   fi
3423 else
3424   ac_cpp_err=yes
3425 fi
3426 if test -z "$ac_cpp_err"; then
3427   :
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Broken: fails on valid input.
3433 continue
3434 fi
3435
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether nonexistent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } >/dev/null; then
3461   if test -s conftest.err; then
3462     ac_cpp_err=$ac_c_preproc_warn_flag
3463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464   else
3465     ac_cpp_err=
3466   fi
3467 else
3468   ac_cpp_err=yes
3469 fi
3470 if test -z "$ac_cpp_err"; then
3471   # Broken: success on invalid input.
3472 continue
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477   # Passes both tests.
3478 ac_preproc_ok=:
3479 break
3480 fi
3481
3482 rm -f conftest.err conftest.$ac_ext
3483
3484 done
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3488   :
3489 else
3490   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details." >&5
3492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&2;}
3494    { (exit 1); exit 1; }; }
3495 fi
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504 if test "$CXX" = "clang++" ; then
3505   { echo "$as_me:$LINENO: checking whether clang works" >&5
3506 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3507   ac_ext=cpp
3508 ac_cpp='$CXXCPP $CPPFLAGS'
3509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512
3513
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <limits>
3521 #if __has_include (<cxxabi.h>)
3522 #include <cxxabi.h>
3523 #endif
3524 #if __has_include (<unwind.h>)
3525 #include <unwind.h>
3526 #endif
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3551   { (case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; } &&
3560          { ac_try='test -s conftest.$ac_objext'
3561   { (case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_try") 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570
3571   { echo "$as_me:$LINENO: result: yes" >&5
3572 echo "${ECHO_T}yes" >&6; }
3573
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578
3579   { echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6; }
3581   { { 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
3582 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;}
3583    { (exit 1); exit 1; }; }
3584
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588   ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594 fi
3595
3596 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3597 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3598 ac_ext=cpp
3599 ac_cpp='$CXXCPP $CPPFLAGS'
3600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3603
3604 llvm_cv_cxx_compiler=unknown
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 #if ! __clang__
3612                                     #error
3613                                     #endif
3614
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (ac_try="$ac_compile"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623   (eval "$ac_compile") 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } &&
3630          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3631   { (case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_try") 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; } &&
3640          { ac_try='test -s conftest.$ac_objext'
3641   { (case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_try") 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650   llvm_cv_cxx_compiler=clang
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655         cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #if ! __GNUC__
3662                                                        #error
3663                                                        #endif
3664
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_compile") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; } &&
3690          { ac_try='test -s conftest.$ac_objext'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   llvm_cv_cxx_compiler=gcc
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705
3706 fi
3707
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3719 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3720
3721
3722
3723 if test -d ${srcdir}/projects/test-suite ; then
3724   subdirs="$subdirs projects/test-suite"
3725
3726 fi
3727
3728 if test -d ${srcdir}/projects/llvm-test ; then
3729   subdirs="$subdirs projects/llvm-test"
3730
3731 fi
3732
3733 if test -d ${srcdir}/projects/poolalloc ; then
3734   subdirs="$subdirs projects/poolalloc"
3735
3736 fi
3737
3738 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3739   subdirs="$subdirs projects/llvm-poolalloc"
3740
3741 fi
3742
3743 for i in `ls ${srcdir}/projects`
3744 do
3745   if test -d ${srcdir}/projects/${i} ; then
3746     case ${i} in
3747       sample)       subdirs="$subdirs projects/sample"
3748     ;;
3749       safecode)     subdirs="$subdirs projects/safecode"
3750  ;;
3751       compiler-rt)       ;;
3752       test-suite)     ;;
3753       llvm-test)      ;;
3754       poolalloc)      ;;
3755       llvm-poolalloc) ;;
3756       *)
3757         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3758 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3759         ;;
3760     esac
3761   fi
3762 done
3763
3764 # Check whether --enable-polly was given.
3765 if test "${enable_polly+set}" = set; then
3766   enableval=$enable_polly;
3767 else
3768   enableval=default
3769 fi
3770
3771 case "$enableval" in
3772   yes) ENABLE_POLLY=1
3773  ;;
3774   no)  ENABLE_POLLY=0
3775  ;;
3776   default) ENABLE_POLLY=1
3777  ;;
3778   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3779 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3780    { (exit 1); exit 1; }; } ;;
3781 esac
3782
3783
3784 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3785   LLVM_HAS_POLLY=1
3786
3787   subdirs="$subdirs tools/polly"
3788
3789 fi
3790
3791
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3796    { (exit 1); exit 1; }; }
3797
3798 { echo "$as_me:$LINENO: checking build system type" >&5
3799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3800 if test "${ac_cv_build+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   ac_build_alias=$build_alias
3804 test "x$ac_build_alias" = x &&
3805   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3806 test "x$ac_build_alias" = x &&
3807   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3809    { (exit 1); exit 1; }; }
3810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3811   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3813    { (exit 1); exit 1; }; }
3814
3815 fi
3816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3817 echo "${ECHO_T}$ac_cv_build" >&6; }
3818 case $ac_cv_build in
3819 *-*-*) ;;
3820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3821 echo "$as_me: error: invalid value of canonical build" >&2;}
3822    { (exit 1); exit 1; }; };;
3823 esac
3824 build=$ac_cv_build
3825 ac_save_IFS=$IFS; IFS='-'
3826 set x $ac_cv_build
3827 shift
3828 build_cpu=$1
3829 build_vendor=$2
3830 shift; shift
3831 # Remember, the first character of IFS is used to create $*,
3832 # except with old shells:
3833 build_os=$*
3834 IFS=$ac_save_IFS
3835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3836
3837
3838 { echo "$as_me:$LINENO: checking host system type" >&5
3839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3840 if test "${ac_cv_host+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test "x$host_alias" = x; then
3844   ac_cv_host=$ac_cv_build
3845 else
3846   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3847     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3849    { (exit 1); exit 1; }; }
3850 fi
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3854 echo "${ECHO_T}$ac_cv_host" >&6; }
3855 case $ac_cv_host in
3856 *-*-*) ;;
3857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3858 echo "$as_me: error: invalid value of canonical host" >&2;}
3859    { (exit 1); exit 1; }; };;
3860 esac
3861 host=$ac_cv_host
3862 ac_save_IFS=$IFS; IFS='-'
3863 set x $ac_cv_host
3864 shift
3865 host_cpu=$1
3866 host_vendor=$2
3867 shift; shift
3868 # Remember, the first character of IFS is used to create $*,
3869 # except with old shells:
3870 host_os=$*
3871 IFS=$ac_save_IFS
3872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3873
3874
3875 { echo "$as_me:$LINENO: checking target system type" >&5
3876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3877 if test "${ac_cv_target+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test "x$target_alias" = x; then
3881   ac_cv_target=$ac_cv_host
3882 else
3883   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3884     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3886    { (exit 1); exit 1; }; }
3887 fi
3888
3889 fi
3890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3891 echo "${ECHO_T}$ac_cv_target" >&6; }
3892 case $ac_cv_target in
3893 *-*-*) ;;
3894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3895 echo "$as_me: error: invalid value of canonical target" >&2;}
3896    { (exit 1); exit 1; }; };;
3897 esac
3898 target=$ac_cv_target
3899 ac_save_IFS=$IFS; IFS='-'
3900 set x $ac_cv_target
3901 shift
3902 target_cpu=$1
3903 target_vendor=$2
3904 shift; shift
3905 # Remember, the first character of IFS is used to create $*,
3906 # except with old shells:
3907 target_os=$*
3908 IFS=$ac_save_IFS
3909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3910
3911
3912 # The aliases save the names the user supplied, while $host etc.
3913 # will get canonicalized.
3914 test -n "$target_alias" &&
3915   test "$program_prefix$program_suffix$program_transform_name" = \
3916     NONENONEs,x,x, &&
3917   program_prefix=${target_alias}-
3918
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3920 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3921 if test "${llvm_cv_os_type+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $host in
3925   *-*-aix*)
3926     llvm_cv_link_all_option="-Wl,--whole-archive"
3927     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3928     llvm_cv_os_type="AIX"
3929     llvm_cv_platform_type="Unix" ;;
3930   *-*-irix*)
3931     llvm_cv_link_all_option="-Wl,--whole-archive"
3932     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3933     llvm_cv_os_type="IRIX"
3934     llvm_cv_platform_type="Unix" ;;
3935   *-*-cygwin*)
3936     llvm_cv_link_all_option="-Wl,--whole-archive"
3937     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938     llvm_cv_os_type="Cygwin"
3939     llvm_cv_platform_type="Unix" ;;
3940   *-*-darwin*)
3941     llvm_cv_link_all_option="-Wl,-all_load"
3942     llvm_cv_no_link_all_option="-Wl,-noall_load"
3943     llvm_cv_os_type="Darwin"
3944     llvm_cv_platform_type="Unix" ;;
3945   *-*-minix*)
3946     llvm_cv_link_all_option="-Wl,-all_load"
3947     llvm_cv_no_link_all_option="-Wl,-noall_load"
3948     llvm_cv_os_type="Minix"
3949     llvm_cv_platform_type="Unix" ;;
3950   *-*-freebsd*)
3951     llvm_cv_link_all_option="-Wl,--whole-archive"
3952     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953     llvm_cv_os_type="FreeBSD"
3954     llvm_cv_platform_type="Unix" ;;
3955   *-*-kfreebsd-gnu)
3956     llvm_cv_link_all_option="-Wl,--whole-archive"
3957     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958     llvm_cv_os_type="GNU/kFreeBSD"
3959     llvm_cv_platform_type="Unix" ;;
3960   *-*-openbsd*)
3961     llvm_cv_link_all_option="-Wl,--whole-archive"
3962     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963     llvm_cv_os_type="OpenBSD"
3964     llvm_cv_platform_type="Unix" ;;
3965   *-*-netbsd*)
3966     llvm_cv_link_all_option="-Wl,--whole-archive"
3967     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968     llvm_cv_os_type="NetBSD"
3969     llvm_cv_platform_type="Unix" ;;
3970   *-*-dragonfly*)
3971     llvm_cv_link_all_option="-Wl,--whole-archive"
3972     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973     llvm_cv_os_type="DragonFly"
3974     llvm_cv_platform_type="Unix" ;;
3975   *-*-hpux*)
3976     llvm_cv_link_all_option="-Wl,--whole-archive"
3977     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978     llvm_cv_os_type="HP-UX"
3979     llvm_cv_platform_type="Unix" ;;
3980   *-*-interix*)
3981     llvm_cv_link_all_option="-Wl,--whole-archive"
3982     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983     llvm_cv_os_type="Interix"
3984     llvm_cv_platform_type="Unix" ;;
3985   *-*-linux*)
3986     llvm_cv_link_all_option="-Wl,--whole-archive"
3987     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988     llvm_cv_os_type="Linux"
3989     llvm_cv_platform_type="Unix" ;;
3990   *-*-gnu*)
3991     llvm_cv_link_all_option="-Wl,--whole-archive"
3992     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993     llvm_cv_os_type="GNU"
3994     llvm_cv_platform_type="Unix" ;;
3995   *-*-solaris*)
3996     llvm_cv_link_all_option="-Wl,-z,allextract"
3997     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3998     llvm_cv_os_type="SunOS"
3999     llvm_cv_platform_type="Unix" ;;
4000   *-*-auroraux*)
4001     llvm_cv_link_all_option="-Wl,-z,allextract"
4002     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4003     llvm_cv_os_type="AuroraUX"
4004     llvm_cv_platform_type="Unix" ;;
4005   *-*-win32*)
4006     llvm_cv_link_all_option="-Wl,--whole-archive"
4007     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008     llvm_cv_os_type="Win32"
4009     llvm_cv_platform_type="Win32" ;;
4010   *-*-mingw*)
4011     llvm_cv_link_all_option="-Wl,--whole-archive"
4012     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013     llvm_cv_os_type="MingW"
4014     llvm_cv_platform_type="Win32" ;;
4015   *-*-haiku*)
4016     llvm_cv_link_all_option="-Wl,--whole-archive"
4017     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018     llvm_cv_os_type="Haiku"
4019     llvm_cv_platform_type="Unix" ;;
4020   *-unknown-eabi*)
4021     llvm_cv_link_all_option="-Wl,--whole-archive"
4022     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023     llvm_cv_os_type="Freestanding"
4024     llvm_cv_platform_type="Unix" ;;
4025   *-unknown-elf*)
4026     llvm_cv_link_all_option="-Wl,--whole-archive"
4027     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4028     llvm_cv_os_type="Freestanding"
4029     llvm_cv_platform_type="Unix" ;;
4030   *)
4031     llvm_cv_link_all_option=""
4032     llvm_cv_no_link_all_option=""
4033     llvm_cv_os_type="Unknown"
4034     llvm_cv_platform_type="Unknown" ;;
4035 esac
4036 fi
4037 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4038 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4039
4040 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4041 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4042 if test "${llvm_cv_target_os_type+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   case $target in
4046   *-*-aix*)
4047     llvm_cv_target_os_type="AIX" ;;
4048   *-*-irix*)
4049     llvm_cv_target_os_type="IRIX" ;;
4050   *-*-cygwin*)
4051     llvm_cv_target_os_type="Cygwin" ;;
4052   *-*-darwin*)
4053     llvm_cv_target_os_type="Darwin" ;;
4054   *-*-minix*)
4055     llvm_cv_target_os_type="Minix" ;;
4056   *-*-freebsd*)
4057     llvm_cv_target_os_type="FreeBSD" ;;
4058   *-*-kfreebsd-gnu)
4059     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4060   *-*-openbsd*)
4061     llvm_cv_target_os_type="OpenBSD" ;;
4062   *-*-netbsd*)
4063     llvm_cv_target_os_type="NetBSD" ;;
4064   *-*-dragonfly*)
4065     llvm_cv_target_os_type="DragonFly" ;;
4066   *-*-hpux*)
4067     llvm_cv_target_os_type="HP-UX" ;;
4068   *-*-interix*)
4069     llvm_cv_target_os_type="Interix" ;;
4070   *-*-linux*)
4071     llvm_cv_target_os_type="Linux" ;;
4072   *-*-gnu*)
4073     llvm_cv_target_os_type="GNU" ;;
4074   *-*-solaris*)
4075     llvm_cv_target_os_type="SunOS" ;;
4076   *-*-auroraux*)
4077     llvm_cv_target_os_type="AuroraUX" ;;
4078   *-*-win32*)
4079     llvm_cv_target_os_type="Win32" ;;
4080   *-*-mingw*)
4081     llvm_cv_target_os_type="MingW" ;;
4082   *-*-haiku*)
4083     llvm_cv_target_os_type="Haiku" ;;
4084   *-*-rtems*)
4085     llvm_cv_target_os_type="RTEMS" ;;
4086   *-*-nacl*)
4087     llvm_cv_target_os_type="NativeClient" ;;
4088   *-unknown-eabi*)
4089     llvm_cv_target_os_type="Freestanding" ;;
4090   *)
4091     llvm_cv_target_os_type="Unknown" ;;
4092 esac
4093 fi
4094 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4095 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4096
4097 if test "$llvm_cv_os_type" = "Unknown" ; then
4098   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4099 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4100    { (exit 1); exit 1; }; }
4101 fi
4102
4103 OS=$llvm_cv_os_type
4104
4105 HOST_OS=$llvm_cv_os_type
4106
4107 TARGET_OS=$llvm_cv_target_os_type
4108
4109
4110 LINKALL=$llvm_cv_link_all_option
4111
4112 NOLINKALL=$llvm_cv_no_link_all_option
4113
4114
4115 case $llvm_cv_platform_type in
4116   Unix)
4117
4118 cat >>confdefs.h <<\_ACEOF
4119 #define LLVM_ON_UNIX 1
4120 _ACEOF
4121
4122     LLVM_ON_UNIX=1
4123
4124     LLVM_ON_WIN32=0
4125
4126     ;;
4127   Win32)
4128
4129 cat >>confdefs.h <<\_ACEOF
4130 #define LLVM_ON_WIN32 1
4131 _ACEOF
4132
4133     LLVM_ON_UNIX=0
4134
4135     LLVM_ON_WIN32=1
4136
4137     ;;
4138 esac
4139
4140 { echo "$as_me:$LINENO: checking target architecture" >&5
4141 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4142 if test "${llvm_cv_target_arch+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $target in
4146   i?86-*)                 llvm_cv_target_arch="x86" ;;
4147   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4148   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4149   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4150   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4151   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4152   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4153   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4154   xcore-*)                llvm_cv_target_arch="XCore" ;;
4155   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4156   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4157   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4158   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4159   *)                      llvm_cv_target_arch="Unknown" ;;
4160 esac
4161 fi
4162 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4163 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4164
4165 if test "$llvm_cv_target_arch" = "Unknown" ; then
4166   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4167 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4168 fi
4169
4170 case "$llvm_cv_target_arch" in
4171     x86)     LLVM_NATIVE_ARCH="X86" ;;
4172     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4173     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4174 esac
4175
4176 ARCH=$llvm_cv_target_arch
4177
4178 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4179
4180
4181 case $host in
4182   i?86-*)                 host_arch="x86" ;;
4183   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4184   sparc*-*)               host_arch="Sparc" ;;
4185   powerpc*-*)             host_arch="PowerPC" ;;
4186   arm*-*)                 host_arch="ARM" ;;
4187   aarch64*-*)             host_arch="AArch64" ;;
4188   mips-* | mips64-*)      host_arch="Mips" ;;
4189   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4190   xcore-*)                host_arch="XCore" ;;
4191   msp430-*)               host_arch="MSP430" ;;
4192   hexagon-*)              host_arch="Hexagon" ;;
4193   s390x-*)                host_arch="SystemZ" ;;
4194   *)                      host_arch="Unknown" ;;
4195 esac
4196
4197 if test "$host_arch" = "Unknown" ; then
4198   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4199 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4200 fi
4201
4202 HOST_ARCH=$host_arch
4203
4204
4205 if test "$cross_compiling" = yes; then
4206   LLVM_CROSS_COMPILING=1
4207
4208
4209 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4210 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4211 if test "${ac_cv_build_exeext+set}" = set; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4215   ac_cv_build_exeext=.exe
4216 else
4217   ac_build_prefix=${build_alias}-
4218
4219   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_build_prefix}gcc; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   if test -n "$BUILD_CC"; then
4227   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4236     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 BUILD_CC=$ac_cv_prog_BUILD_CC
4247 if test -n "$BUILD_CC"; then
4248   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4249 echo "${ECHO_T}$BUILD_CC" >&6; }
4250 else
4251   { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4253 fi
4254
4255
4256   if test -z "$BUILD_CC"; then
4257      # Extract the first word of "gcc", so it can be a program name with args.
4258 set dummy gcc; ac_word=$2
4259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4261 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$BUILD_CC"; then
4265   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4274     ac_cv_prog_BUILD_CC="gcc"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 BUILD_CC=$ac_cv_prog_BUILD_CC
4285 if test -n "$BUILD_CC"; then
4286   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4287 echo "${ECHO_T}$BUILD_CC" >&6; }
4288 else
4289   { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4291 fi
4292
4293
4294      if test -z "$BUILD_CC"; then
4295        # Extract the first word of "cc", so it can be a program name with args.
4296 set dummy cc; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   if test -n "$BUILD_CC"; then
4303   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4304 else
4305   ac_prog_rejected=no
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4314        ac_prog_rejected=yes
4315        continue
4316      fi
4317     ac_cv_prog_BUILD_CC="cc"
4318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319     break 2
4320   fi
4321 done
4322 done
4323 IFS=$as_save_IFS
4324
4325 if test $ac_prog_rejected = yes; then
4326   # We found a bogon in the path, so make sure we never use it.
4327   set dummy $ac_cv_prog_BUILD_CC
4328   shift
4329   if test $# != 0; then
4330     # We chose a different compiler from the bogus one.
4331     # However, it has the same basename, so the bogon will be chosen
4332     # first if we set BUILD_CC to just the basename; use the full file name.
4333     shift
4334     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4335   fi
4336 fi
4337 fi
4338 fi
4339 BUILD_CC=$ac_cv_prog_BUILD_CC
4340 if test -n "$BUILD_CC"; then
4341   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4342 echo "${ECHO_T}$BUILD_CC" >&6; }
4343 else
4344   { echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6; }
4346 fi
4347
4348
4349      fi
4350   fi
4351   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4352 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4353    { (exit 1); exit 1; }; }
4354   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4355   rm -f conftest*
4356   echo 'int main () { return 0; }' > conftest.$ac_ext
4357   ac_cv_build_exeext=
4358   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4359   (eval $ac_build_link) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; then
4363     for file in conftest.*; do
4364       case $file in
4365       *.c | *.o | *.obj | *.dSYM) ;;
4366       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4367       esac
4368     done
4369   else
4370     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4371 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4372    { (exit 1); exit 1; }; }
4373   fi
4374   rm -f conftest*
4375   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4376 fi
4377 fi
4378
4379 BUILD_EXEEXT=""
4380 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4381 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4382 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4383 ac_build_exeext=$BUILD_EXEEXT
4384
4385   ac_build_prefix=${build_alias}-
4386   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4387 set dummy ${ac_build_prefix}g++; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   if test -n "$BUILD_CXX"; then
4394   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4410
4411 fi
4412 fi
4413 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4414 if test -n "$BUILD_CXX"; then
4415   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4416 echo "${ECHO_T}$BUILD_CXX" >&6; }
4417 else
4418   { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4420 fi
4421
4422
4423   if test -z "$BUILD_CXX"; then
4424      # Extract the first word of "g++", so it can be a program name with args.
4425 set dummy g++; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test -n "$BUILD_CXX"; then
4432   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_BUILD_CXX="g++"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4452 if test -n "$BUILD_CXX"; then
4453   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4454 echo "${ECHO_T}$BUILD_CXX" >&6; }
4455 else
4456   { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4458 fi
4459
4460
4461      if test -z "$BUILD_CXX"; then
4462        # Extract the first word of "c++", so it can be a program name with args.
4463 set dummy c++; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$BUILD_CXX"; then
4470   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4471 else
4472   ac_prog_rejected=no
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4481        ac_prog_rejected=yes
4482        continue
4483      fi
4484     ac_cv_prog_BUILD_CXX="c++"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490 IFS=$as_save_IFS
4491
4492 if test $ac_prog_rejected = yes; then
4493   # We found a bogon in the path, so make sure we never use it.
4494   set dummy $ac_cv_prog_BUILD_CXX
4495   shift
4496   if test $# != 0; then
4497     # We chose a different compiler from the bogus one.
4498     # However, it has the same basename, so the bogon will be chosen
4499     # first if we set BUILD_CXX to just the basename; use the full file name.
4500     shift
4501     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4502   fi
4503 fi
4504 fi
4505 fi
4506 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4507 if test -n "$BUILD_CXX"; then
4508   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4509 echo "${ECHO_T}$BUILD_CXX" >&6; }
4510 else
4511   { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }
4513 fi
4514
4515
4516      fi
4517   fi
4518 else
4519   LLVM_CROSS_COMPILING=0
4520
4521 fi
4522
4523 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4524   cvsbuild="yes"
4525   optimize="no"
4526   CVSBUILD=CVSBUILD=1
4527
4528 else
4529   cvsbuild="no"
4530   optimize="yes"
4531 fi
4532
4533
4534 # Check whether --enable-libcpp was given.
4535 if test "${enable_libcpp+set}" = set; then
4536   enableval=$enable_libcpp;
4537 else
4538   enableval=default
4539 fi
4540
4541 case "$enableval" in
4542   yes) ENABLE_LIBCPP=1
4543  ;;
4544   no)  ENABLE_LIBCPP=0
4545  ;;
4546   default) ENABLE_LIBCPP=0
4547 ;;
4548   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4549 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4550    { (exit 1); exit 1; }; } ;;
4551 esac
4552
4553 # Check whether --enable-compiler-version-checks was given.
4554 if test "${enable_compiler_version_checks+set}" = set; then
4555   enableval=$enable_compiler_version_checks;
4556 else
4557   enableval=default
4558 fi
4559
4560 case "$enableval" in
4561   no)
4562     ;;
4563   yes|default)
4564     ac_ext=cpp
4565 ac_cpp='$CXXCPP $CPPFLAGS'
4566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4569
4570     case "$llvm_cv_cxx_compiler" in
4571     clang)
4572       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4573 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4574       cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580
4581 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4582 #error This version of Clang is too old to build LLVM
4583 #endif
4584
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4588 case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_compile") 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4601   { (case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_try") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; } &&
4610          { ac_try='test -s conftest.$ac_objext'
4611   { (case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   { echo "$as_me:$LINENO: result: yes" >&5
4621 echo "${ECHO_T}yes" >&6; }
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626         { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628            { { echo "$as_me:$LINENO: error:
4629 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4630 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4631 bypass these sanity checks." >&5
4632 echo "$as_me: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&2;}
4636    { (exit 1); exit 1; }; }
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4642         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4643 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4644         llvm_cv_old_cxxflags="$CXXFLAGS"
4645         CXXFLAGS="$CXXFLAGS -std=c++0x"
4646         cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652
4653 #include <atomic>
4654 std::atomic<float> x(0.0f);
4655 int main() { return (float)x; }
4656
4657 _ACEOF
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (ac_try="$ac_link"
4660 case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665   (eval "$ac_link") 2>conftest.er1
4666   ac_status=$?
4667   grep -v '^ *+' conftest.er1 >conftest.err
4668   rm -f conftest.er1
4669   cat conftest.err >&5
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); } &&
4672          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4673   { (case "(($ac_try" in
4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675   *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678   (eval "$ac_try") 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest$ac_exeext'
4683   { (case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_try") 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   { echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6; }
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698         { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700              { { echo "$as_me:$LINENO: error:
4701 We detected a missing feature in the standard C++ library that was known to be
4702 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4703 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4704 than 4.7. You will need to update your system and ensure Clang uses the newer
4705 standard library.
4706
4707 If this error is incorrect or you need to force things to work, you may pass
4708 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4709 echo "$as_me: error:
4710 We detected a missing feature in the standard C++ library that was known to be
4711 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4712 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4713 than 4.7. You will need to update your system and ensure Clang uses the newer
4714 standard library.
4715
4716 If this error is incorrect or you need to force things to work, you may pass
4717 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4718    { (exit 1); exit 1; }; }
4719 fi
4720
4721 rm -f core conftest.err conftest.$ac_objext \
4722       conftest$ac_exeext conftest.$ac_ext
4723         CXXFLAGS="$llvm_cv_old_cxxflags"
4724       fi
4725       ;;
4726     gcc)
4727       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4728 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4729       cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h.  */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h.  */
4735
4736 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4737 #error This version of GCC is too old to build LLVM
4738 #endif
4739
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4749   ac_status=$?
4750   grep -v '^ *+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } &&
4755          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4756   { (case "(($ac_try" in
4757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758   *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761   (eval "$ac_try") 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; } &&
4765          { ac_try='test -s conftest.$ac_objext'
4766   { (case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_try") 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   { echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6; }
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781         { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4783            { { echo "$as_me:$LINENO: error:
4784 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4785 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4786 bypass these sanity checks." >&5
4787 echo "$as_me: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&2;}
4791    { (exit 1); exit 1; }; }
4792 fi
4793
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795       ;;
4796     unknown)
4797       ;;
4798     esac
4799     ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805     ;;
4806   *)
4807     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4808 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4809    { (exit 1); exit 1; }; }
4810     ;;
4811 esac
4812
4813 # Check whether --enable-cxx11 was given.
4814 if test "${enable_cxx11+set}" = set; then
4815   enableval=$enable_cxx11;
4816 else
4817   enableval=default
4818 fi
4819
4820 case "$enableval" in
4821   yes) ENABLE_CXX11=1
4822  ;;
4823   no)  ENABLE_CXX11=0
4824  ;;
4825   default) ENABLE_CXX11=0
4826 ;;
4827   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4828 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4829    { (exit 1); exit 1; }; } ;;
4830 esac
4831
4832 # Check whether --enable-split-dwarf was given.
4833 if test "${enable_split_dwarf+set}" = set; then
4834   enableval=$enable_split_dwarf;
4835 else
4836   enableval=default
4837 fi
4838
4839 case "$enableval" in
4840   yes) ENABLE_SPLIT_DWARF=1
4841  ;;
4842   no)  ENABLE_SPLIT_DWARF=0
4843  ;;
4844   default) ENABLE_SPLIT_DWARF=0
4845 ;;
4846   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4848    { (exit 1); exit 1; }; } ;;
4849 esac
4850
4851 clang_arcmt="yes"
4852 # Check whether --enable-clang-arcmt was given.
4853 if test "${enable_clang_arcmt+set}" = set; then
4854   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4855 else
4856   enableval="yes"
4857 fi
4858
4859 case "$enableval" in
4860   yes) ENABLE_CLANG_ARCMT=1
4861  ;;
4862   no)  ENABLE_CLANG_ARCMT=0
4863  ;;
4864   default) ENABLE_CLANG_ARCMT=1
4865 ;;
4866   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4868    { (exit 1); exit 1; }; } ;;
4869 esac
4870
4871 clang_static_analyzer="yes"
4872 # Check whether --enable-clang-static-analyzer was given.
4873 if test "${enable_clang_static_analyzer+set}" = set; then
4874   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4875 else
4876   enableval="yes"
4877 fi
4878
4879 case "$enableval" in
4880   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4881  ;;
4882   no)
4883     if test ${clang_arcmt} != "no" ; then
4884       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4885 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4886    { (exit 1); exit 1; }; }
4887     fi
4888     ENABLE_CLANG_STATIC_ANALYZER=0
4889
4890     ;;
4891   default) ENABLE_CLANG_STATIC_ANALYZER=1
4892 ;;
4893   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4895    { (exit 1); exit 1; }; } ;;
4896 esac
4897
4898 # Check whether --enable-clang-rewriter was given.
4899 if test "${enable_clang_rewriter+set}" = set; then
4900   enableval=$enable_clang_rewriter;
4901 else
4902   enableval="yes"
4903 fi
4904
4905 case "$enableval" in
4906   yes) ENABLE_CLANG_REWRITER=1
4907  ;;
4908   no)
4909     if test ${clang_arcmt} != "no" ; then
4910       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4912    { (exit 1); exit 1; }; }
4913     fi
4914     if test ${clang_static_analyzer} != "no" ; then
4915       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4916 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4917    { (exit 1); exit 1; }; }
4918     fi
4919     ENABLE_CLANG_REWRITER=0
4920
4921     ;;
4922   default) ENABLE_CLANG_REWRITER=1
4923 ;;
4924   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4925 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4926    { (exit 1); exit 1; }; } ;;
4927 esac
4928
4929 # Check whether --enable-optimized was given.
4930 if test "${enable_optimized+set}" = set; then
4931   enableval=$enable_optimized;
4932 else
4933   enableval=$optimize
4934 fi
4935
4936 if test ${enableval} = "no" ; then
4937   ENABLE_OPTIMIZED=
4938
4939 else
4940   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4941
4942 fi
4943
4944 # Check whether --enable-profiling was given.
4945 if test "${enable_profiling+set}" = set; then
4946   enableval=$enable_profiling;
4947 else
4948   enableval="no"
4949 fi
4950
4951 if test ${enableval} = "no" ; then
4952   ENABLE_PROFILING=
4953
4954 else
4955   ENABLE_PROFILING=ENABLE_PROFILING=1
4956
4957 fi
4958
4959 # Check whether --enable-assertions was given.
4960 if test "${enable_assertions+set}" = set; then
4961   enableval=$enable_assertions;
4962 else
4963   enableval="yes"
4964 fi
4965
4966 if test ${enableval} = "yes" ; then
4967   DISABLE_ASSERTIONS=
4968
4969 else
4970   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4971
4972 fi
4973
4974 # Check whether --enable-werror was given.
4975 if test "${enable_werror+set}" = set; then
4976   enableval=$enable_werror;
4977 else
4978   enableval="no"
4979 fi
4980
4981 case "$enableval" in
4982   yes) ENABLE_WERROR=1
4983  ;;
4984   no)  ENABLE_WERROR=0
4985  ;;
4986   default) ENABLE_WERROR=0
4987 ;;
4988   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4989 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4990    { (exit 1); exit 1; }; } ;;
4991 esac
4992
4993 # Check whether --enable-expensive-checks was given.
4994 if test "${enable_expensive_checks+set}" = set; then
4995   enableval=$enable_expensive_checks;
4996 else
4997   enableval="no"
4998 fi
4999
5000 if test ${enableval} = "yes" ; then
5001   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5002
5003   EXPENSIVE_CHECKS=yes
5004
5005 else
5006   ENABLE_EXPENSIVE_CHECKS=
5007
5008   EXPENSIVE_CHECKS=no
5009
5010 fi
5011
5012 # Check whether --enable-debug-runtime was given.
5013 if test "${enable_debug_runtime+set}" = set; then
5014   enableval=$enable_debug_runtime;
5015 else
5016   enableval=no
5017 fi
5018
5019 if test ${enableval} = "no" ; then
5020   DEBUG_RUNTIME=
5021
5022 else
5023   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5024
5025 fi
5026
5027 # Check whether --enable-debug-symbols was given.
5028 if test "${enable_debug_symbols+set}" = set; then
5029   enableval=$enable_debug_symbols;
5030 else
5031   enableval=no
5032 fi
5033
5034 if test ${enableval} = "no" ; then
5035   DEBUG_SYMBOLS=
5036
5037 else
5038   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5039
5040 fi
5041
5042 # Check whether --enable-keep-symbols was given.
5043 if test "${enable_keep_symbols+set}" = set; then
5044   enableval=$enable_keep_symbols;
5045 else
5046   enableval=no
5047 fi
5048
5049 if test ${enableval} = "no" ; then
5050   KEEP_SYMBOLS=
5051
5052 else
5053   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5054
5055 fi
5056
5057 # Check whether --enable-jit was given.
5058 if test "${enable_jit+set}" = set; then
5059   enableval=$enable_jit;
5060 else
5061   enableval=default
5062 fi
5063
5064 if test ${enableval} = "no"
5065 then
5066   JIT=
5067
5068 else
5069   case "$llvm_cv_target_arch" in
5070     x86)         TARGET_HAS_JIT=1
5071  ;;
5072     Sparc)       TARGET_HAS_JIT=0
5073  ;;
5074     PowerPC)     TARGET_HAS_JIT=1
5075  ;;
5076     x86_64)      TARGET_HAS_JIT=1
5077  ;;
5078     ARM)         TARGET_HAS_JIT=1
5079  ;;
5080     AArch64)     TARGET_HAS_JIT=0
5081  ;;
5082     Mips)        TARGET_HAS_JIT=1
5083  ;;
5084     XCore)       TARGET_HAS_JIT=0
5085  ;;
5086     MSP430)      TARGET_HAS_JIT=0
5087  ;;
5088     Hexagon)     TARGET_HAS_JIT=0
5089  ;;
5090     NVPTX)       TARGET_HAS_JIT=0
5091  ;;
5092     SystemZ)     TARGET_HAS_JIT=1
5093  ;;
5094     *)           TARGET_HAS_JIT=0
5095  ;;
5096   esac
5097 fi
5098
5099 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5100 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5101
5102
5103 # Check whether --enable-docs was given.
5104 if test "${enable_docs+set}" = set; then
5105   enableval=$enable_docs;
5106 else
5107   enableval=default
5108 fi
5109
5110 case "$enableval" in
5111   yes) ENABLE_DOCS=1
5112  ;;
5113   no)  ENABLE_DOCS=0
5114  ;;
5115   default) ENABLE_DOCS=1
5116  ;;
5117   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5118 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5119    { (exit 1); exit 1; }; } ;;
5120 esac
5121
5122 # Check whether --enable-doxygen was given.
5123 if test "${enable_doxygen+set}" = set; then
5124   enableval=$enable_doxygen;
5125 else
5126   enableval=default
5127 fi
5128
5129 case "$enableval" in
5130   yes) ENABLE_DOXYGEN=1
5131  ;;
5132   no)  ENABLE_DOXYGEN=0
5133  ;;
5134   default) ENABLE_DOXYGEN=0
5135  ;;
5136   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140
5141 # Check whether --enable-threads was given.
5142 if test "${enable_threads+set}" = set; then
5143   enableval=$enable_threads;
5144 else
5145   enableval=default
5146 fi
5147
5148 case "$enableval" in
5149   yes) LLVM_ENABLE_THREADS=1
5150  ;;
5151   no)  LLVM_ENABLE_THREADS=0
5152  ;;
5153   default) LLVM_ENABLE_THREADS=1
5154  ;;
5155   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5157    { (exit 1); exit 1; }; } ;;
5158 esac
5159
5160 cat >>confdefs.h <<_ACEOF
5161 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5162 _ACEOF
5163
5164
5165 # Check whether --enable-pthreads was given.
5166 if test "${enable_pthreads+set}" = set; then
5167   enableval=$enable_pthreads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_PTHREADS=1
5174  ;;
5175   no)  ENABLE_PTHREADS=0
5176  ;;
5177   default) ENABLE_PTHREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 # Check whether --enable-zlib was given.
5185 if test "${enable_zlib+set}" = set; then
5186   enableval=$enable_zlib;
5187 else
5188   enableval=default
5189 fi
5190
5191 case "$enableval" in
5192   yes) LLVM_ENABLE_ZLIB=1
5193  ;;
5194   no)  LLVM_ENABLE_ZLIB=0
5195  ;;
5196   default) LLVM_ENABLE_ZLIB=1
5197  ;;
5198   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5200    { (exit 1); exit 1; }; } ;;
5201 esac
5202
5203 cat >>confdefs.h <<_ACEOF
5204 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5205 _ACEOF
5206
5207
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210   enableval=$enable_pic;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_PIC=1
5217  ;;
5218   no)  ENABLE_PIC=0
5219  ;;
5220   default) ENABLE_PIC=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5229 _ACEOF
5230
5231
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234   enableval=$enable_shared;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_SHARED=1
5241  ;;
5242   no)  ENABLE_SHARED=0
5243  ;;
5244   default) ENABLE_SHARED=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253   enableval=$enable_embed_stdcxx;
5254 else
5255   enableval=default
5256 fi
5257
5258 case "$enableval" in
5259   yes) ENABLE_EMBED_STDCXX=1
5260  ;;
5261   no)  ENABLE_EMBED_STDCXX=0
5262  ;;
5263   default) ENABLE_EMBED_STDCXX=0
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5269
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272   enableval=$enable_timestamps;
5273 else
5274   enableval=default
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_TIMESTAMPS=1
5279  ;;
5280   no)  ENABLE_TIMESTAMPS=0
5281  ;;
5282   default) ENABLE_TIMESTAMPS=1
5283  ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 _ACEOF
5292
5293
5294 # Check whether --enable-backtraces was given.
5295 if test "${enable_backtraces+set}" = set; then
5296   enableval=$enable_backtraces; case "$enableval" in
5297     yes) llvm_cv_enable_backtraces="yes" ;;
5298     no)  llvm_cv_enable_backtraces="no"  ;;
5299     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5301    { (exit 1); exit 1; }; } ;;
5302   esac
5303 else
5304   llvm_cv_enable_backtraces="yes"
5305 fi
5306
5307 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5308
5309 cat >>confdefs.h <<\_ACEOF
5310 #define ENABLE_BACKTRACES 1
5311 _ACEOF
5312
5313 fi
5314
5315 # Check whether --enable-crash-overrides was given.
5316 if test "${enable_crash_overrides+set}" = set; then
5317   enableval=$enable_crash_overrides; case "$enableval" in
5318     yes) llvm_cv_enable_crash_overrides="yes" ;;
5319     no)  llvm_cv_enable_crash_overrides="no"  ;;
5320     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; } ;;
5323   esac
5324 else
5325   llvm_cv_enable_crash_overrides="yes"
5326 fi
5327
5328 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5329
5330 cat >>confdefs.h <<\_ACEOF
5331 #define ENABLE_CRASH_OVERRIDES 1
5332 _ACEOF
5333
5334 fi
5335
5336 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5337 ALL_TARGETS=$ALL_TARGETS
5338
5339
5340 TARGETS_TO_BUILD=""
5341 # Check whether --enable-targets was given.
5342 if test "${enable_targets+set}" = set; then
5343   enableval=$enable_targets;
5344 else
5345   enableval=all
5346 fi
5347
5348 if test "$enableval" = host-only ; then
5349   enableval=host
5350 fi
5351 case "$enableval" in
5352   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5353   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5354       case "$a_target" in
5355         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5358         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5359         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5360         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5366         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5367         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5368         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5371         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5372         host) case "$llvm_cv_target_arch" in
5373             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5374             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5376             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5377             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5378             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5379             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5380             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5381             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5382             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5383             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5384             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5385             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5386 echo "$as_me: error: Can not set target to build" >&2;}
5387    { (exit 1); exit 1; }; } ;;
5388           esac ;;
5389         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5390 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5391    { (exit 1); exit 1; }; } ;;
5392       esac
5393   done
5394   ;;
5395 esac
5396
5397 # Check whether --enable-experimental-targets was given.
5398 if test "${enable_experimental_targets+set}" = set; then
5399   enableval=$enable_experimental_targets;
5400 else
5401   enableval=disable
5402 fi
5403
5404
5405 if test ${enableval} != "disable"
5406 then
5407   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5408 fi
5409
5410 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5411
5412
5413 for a_target in $TARGETS_TO_BUILD; do
5414   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5418 _ACEOF
5419
5420     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5421     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5422     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5423     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5424     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5425       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5426     fi
5427     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5428       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5429     fi
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5433 _ACEOF
5434
5435
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5438 _ACEOF
5439
5440
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5443 _ACEOF
5444
5445
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5448 _ACEOF
5449
5450     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5451
5452 cat >>confdefs.h <<_ACEOF
5453 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5454 _ACEOF
5455
5456     fi
5457     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5458
5459 cat >>confdefs.h <<_ACEOF
5460 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5461 _ACEOF
5462
5463     fi
5464   fi
5465 done
5466
5467 LLVM_ENUM_TARGETS=""
5468 LLVM_ENUM_ASM_PRINTERS=""
5469 LLVM_ENUM_ASM_PARSERS=""
5470 LLVM_ENUM_DISASSEMBLERS=""
5471 for target_to_build in $TARGETS_TO_BUILD; do
5472   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5473   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5474     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5475   fi
5476   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5477     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5478   fi
5479   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5480     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5481   fi
5482 done
5483
5484
5485
5486
5487
5488
5489 # Check whether --with-optimize-option was given.
5490 if test "${with_optimize_option+set}" = set; then
5491   withval=$with_optimize_option;
5492 else
5493   withval=default
5494 fi
5495
5496 { echo "$as_me:$LINENO: checking optimization flags" >&5
5497 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5498 case "$withval" in
5499   default)
5500     case "$llvm_cv_os_type" in
5501     FreeBSD) optimize_option=-O2 ;;
5502     MingW) optimize_option=-O2 ;;
5503     *)     optimize_option=-O3 ;;
5504     esac ;;
5505   *) optimize_option="$withval" ;;
5506 esac
5507 OPTIMIZE_OPTION=$optimize_option
5508
5509 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5510 echo "${ECHO_T}$optimize_option" >&6; }
5511
5512
5513 # Check whether --with-extra-options was given.
5514 if test "${with_extra_options+set}" = set; then
5515   withval=$with_extra_options;
5516 else
5517   withval=default
5518 fi
5519
5520 case "$withval" in
5521   default) EXTRA_OPTIONS= ;;
5522   *) EXTRA_OPTIONS=$withval ;;
5523 esac
5524 EXTRA_OPTIONS=$EXTRA_OPTIONS
5525
5526
5527
5528 # Check whether --with-extra-ld-options was given.
5529 if test "${with_extra_ld_options+set}" = set; then
5530   withval=$with_extra_ld_options;
5531 else
5532   withval=default
5533 fi
5534
5535 case "$withval" in
5536   default) EXTRA_LD_OPTIONS= ;;
5537   *) EXTRA_LD_OPTIONS=$withval ;;
5538 esac
5539 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5540
5541
5542 # Check whether --enable-bindings was given.
5543 if test "${enable_bindings+set}" = set; then
5544   enableval=$enable_bindings;
5545 else
5546   enableval=default
5547 fi
5548
5549 BINDINGS_TO_BUILD=""
5550 case "$enableval" in
5551   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5552   all ) BINDINGS_TO_BUILD="ocaml" ;;
5553   none | no) BINDINGS_TO_BUILD="" ;;
5554   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5555       case "$a_binding" in
5556         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5557         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5558 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5559    { (exit 1); exit 1; }; } ;;
5560       esac
5561   done
5562   ;;
5563 esac
5564
5565
5566 # Check whether --with-ocaml-libdir was given.
5567 if test "${with_ocaml_libdir+set}" = set; then
5568   withval=$with_ocaml_libdir;
5569 else
5570   withval=auto
5571 fi
5572
5573 case "$withval" in
5574   auto) with_ocaml_libdir="$withval" ;;
5575   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5576   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5577 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5578    { (exit 1); exit 1; }; } ;;
5579 esac
5580
5581
5582 # Check whether --with-clang-srcdir was given.
5583 if test "${with_clang_srcdir+set}" = set; then
5584   withval=$with_clang_srcdir;
5585 else
5586   withval="-"
5587 fi
5588
5589 case "$withval" in
5590   -) clang_src_root="" ;;
5591   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5592   *) clang_src_root="$ac_pwd/$withval" ;;
5593 esac
5594 CLANG_SRC_ROOT=$clang_src_root
5595
5596
5597
5598 # Check whether --with-clang-resource-dir was given.
5599 if test "${with_clang_resource_dir+set}" = set; then
5600   withval=$with_clang_resource_dir;
5601 else
5602   withval=""
5603 fi
5604
5605
5606 cat >>confdefs.h <<_ACEOF
5607 #define CLANG_RESOURCE_DIR "$withval"
5608 _ACEOF
5609
5610
5611
5612 # Check whether --with-c-include-dirs was given.
5613 if test "${with_c_include_dirs+set}" = set; then
5614   withval=$with_c_include_dirs;
5615 else
5616   withval=""
5617 fi
5618
5619
5620 cat >>confdefs.h <<_ACEOF
5621 #define C_INCLUDE_DIRS "$withval"
5622 _ACEOF
5623
5624
5625 # Clang normally uses the system c++ headers and libraries. With this option,
5626 # clang will use the ones provided by a gcc installation instead. This option should
5627 # be passed the same value that was used with --prefix when configuring gcc.
5628
5629 # Check whether --with-gcc-toolchain was given.
5630 if test "${with_gcc_toolchain+set}" = set; then
5631   withval=$with_gcc_toolchain;
5632 else
5633   withval=""
5634 fi
5635
5636
5637 cat >>confdefs.h <<_ACEOF
5638 #define GCC_INSTALL_PREFIX "$withval"
5639 _ACEOF
5640
5641
5642
5643 # Check whether --with-default-sysroot was given.
5644 if test "${with_default_sysroot+set}" = set; then
5645   withval=$with_default_sysroot;
5646 else
5647   withval=""
5648 fi
5649
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define DEFAULT_SYSROOT "$withval"
5653 _ACEOF
5654
5655
5656
5657 # Check whether --with-binutils-include was given.
5658 if test "${with_binutils_include+set}" = set; then
5659   withval=$with_binutils_include;
5660 else
5661   withval=default
5662 fi
5663
5664 case "$withval" in
5665   default) WITH_BINUTILS_INCDIR=default ;;
5666   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5667   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5668 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5669    { (exit 1); exit 1; }; } ;;
5670 esac
5671 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5672   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5673
5674   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5675      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5676      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5677 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5678    { (exit 1); exit 1; }; };
5679   fi
5680 fi
5681
5682
5683 # Check whether --with-bug-report-url was given.
5684 if test "${with_bug_report_url+set}" = set; then
5685   withval=$with_bug_report_url;
5686 else
5687   withval="http://llvm.org/bugs/"
5688 fi
5689
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define BUG_REPORT_URL "$withval"
5693 _ACEOF
5694
5695
5696 # Check whether --enable-terminfo was given.
5697 if test "${enable_terminfo+set}" = set; then
5698   enableval=$enable_terminfo; case "$enableval" in
5699     yes) llvm_cv_enable_terminfo="yes" ;;
5700     no)  llvm_cv_enable_terminfo="no"  ;;
5701     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5702 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5703    { (exit 1); exit 1; }; } ;;
5704   esac
5705 else
5706   llvm_cv_enable_terminfo="yes"
5707 fi
5708
5709 case "$llvm_cv_enable_terminfo" in
5710   yes) ENABLE_TERMINFO=1
5711  ;;
5712   no)  ENABLE_TERMINFO=0
5713  ;;
5714 esac
5715
5716 # Check whether --enable-libedit was given.
5717 if test "${enable_libedit+set}" = set; then
5718   enableval=$enable_libedit; case "$enableval" in
5719     yes) llvm_cv_enable_libedit="yes" ;;
5720     no)  llvm_cv_enable_libedit="no"  ;;
5721     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5722 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5723    { (exit 1); exit 1; }; } ;;
5724   esac
5725 else
5726   llvm_cv_enable_libedit="yes"
5727 fi
5728
5729
5730 # Check whether --enable-libffi was given.
5731 if test "${enable_libffi+set}" = set; then
5732   enableval=$enable_libffi; case "$enableval" in
5733     yes) llvm_cv_enable_libffi="yes" ;;
5734     no)  llvm_cv_enable_libffi="no"  ;;
5735     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5736 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5737    { (exit 1); exit 1; }; } ;;
5738   esac
5739 else
5740   llvm_cv_enable_libffi=no
5741 fi
5742
5743
5744
5745 # Check whether --with-internal-prefix was given.
5746 if test "${with_internal_prefix+set}" = set; then
5747   withval=$with_internal_prefix;
5748 else
5749   withval=""
5750 fi
5751
5752 INTERNAL_PREFIX=$withval
5753
5754
5755
5756 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5757 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$NM"; then
5762   # Let the user override the test.
5763   lt_cv_path_NM="$NM"
5764 else
5765   lt_nm_to_check="${ac_tool_prefix}nm"
5766   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767     lt_nm_to_check="$lt_nm_to_check nm"
5768   fi
5769   for lt_tmp_nm in $lt_nm_to_check; do
5770     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772       IFS="$lt_save_ifs"
5773       test -z "$ac_dir" && ac_dir=.
5774       tmp_nm="$ac_dir/$lt_tmp_nm"
5775       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776         # Check to see if the nm accepts a BSD-compat flag.
5777         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778         #   nm: unknown option "B" ignored
5779         # Tru64's nm complains that /dev/null is an invalid object file
5780         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781         */dev/null* | *'Invalid file or object type'*)
5782           lt_cv_path_NM="$tmp_nm -B"
5783           break
5784           ;;
5785         *)
5786           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787           */dev/null*)
5788             lt_cv_path_NM="$tmp_nm -p"
5789             break
5790             ;;
5791           *)
5792             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793             continue # so that we can try to find one that supports BSD flags
5794             ;;
5795           esac
5796           ;;
5797         esac
5798       fi
5799     done
5800     IFS="$lt_save_ifs"
5801   done
5802   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5803 fi
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 NM="$lt_cv_path_NM"
5808
5809
5810
5811 { echo "$as_me:$LINENO: checking for GNU make" >&5
5812 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5813 if test "${llvm_cv_gnu_make_command+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   llvm_cv_gnu_make_command=''
5817  for a in "$MAKE" make gmake gnumake ; do
5818   if test -z "$a" ; then continue ; fi ;
5819   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5820   then
5821    llvm_cv_gnu_make_command=$a ;
5822    break;
5823   fi
5824  done
5825 fi
5826 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5827 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5828  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5829    ifGNUmake='' ;
5830  else
5831    ifGNUmake='#' ;
5832    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5833 echo "${ECHO_T}\"Not found\"" >&6; };
5834  fi
5835
5836
5837 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5839 LN_S=$as_ln_s
5840 if test "$LN_S" = "ln -s"; then
5841   { echo "$as_me:$LINENO: result: yes" >&5
5842 echo "${ECHO_T}yes" >&6; }
5843 else
5844   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5845 echo "${ECHO_T}no, using $LN_S" >&6; }
5846 fi
5847
5848 # Extract the first word of "cmp", so it can be a program name with args.
5849 set dummy cmp; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_path_CMP+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   case $CMP in
5856   [\\/]* | ?:[\\/]*)
5857   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5858   ;;
5859   *)
5860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863   IFS=$as_save_IFS
5864   test -z "$as_dir" && as_dir=.
5865   for ac_exec_ext in '' $ac_executable_extensions; do
5866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5867     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869     break 2
5870   fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5876   ;;
5877 esac
5878 fi
5879 CMP=$ac_cv_path_CMP
5880 if test -n "$CMP"; then
5881   { echo "$as_me:$LINENO: result: $CMP" >&5
5882 echo "${ECHO_T}$CMP" >&6; }
5883 else
5884   { echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6; }
5886 fi
5887
5888
5889 # Extract the first word of "cp", so it can be a program name with args.
5890 set dummy cp; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_path_CP+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   case $CP in
5897   [\\/]* | ?:[\\/]*)
5898   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5899   ;;
5900   *)
5901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5917   ;;
5918 esac
5919 fi
5920 CP=$ac_cv_path_CP
5921 if test -n "$CP"; then
5922   { echo "$as_me:$LINENO: result: $CP" >&5
5923 echo "${ECHO_T}$CP" >&6; }
5924 else
5925   { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5927 fi
5928
5929
5930 # Extract the first word of "date", so it can be a program name with args.
5931 set dummy date; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_DATE+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   case $DATE in
5938   [\\/]* | ?:[\\/]*)
5939   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5940   ;;
5941   *)
5942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947   for ac_exec_ext in '' $ac_executable_extensions; do
5948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5958   ;;
5959 esac
5960 fi
5961 DATE=$ac_cv_path_DATE
5962 if test -n "$DATE"; then
5963   { echo "$as_me:$LINENO: result: $DATE" >&5
5964 echo "${ECHO_T}$DATE" >&6; }
5965 else
5966   { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5968 fi
5969
5970
5971 # Extract the first word of "find", so it can be a program name with args.
5972 set dummy find; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_FIND+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   case $FIND in
5979   [\\/]* | ?:[\\/]*)
5980   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5981   ;;
5982   *)
5983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5999   ;;
6000 esac
6001 fi
6002 FIND=$ac_cv_path_FIND
6003 if test -n "$FIND"; then
6004   { echo "$as_me:$LINENO: result: $FIND" >&5
6005 echo "${ECHO_T}$FIND" >&6; }
6006 else
6007   { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6009 fi
6010
6011
6012 # Extract the first word of "grep", so it can be a program name with args.
6013 set dummy grep; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_GREP+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019   case $GREP in
6020   [\\/]* | ?:[\\/]*)
6021   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6022   ;;
6023   *)
6024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6040   ;;
6041 esac
6042 fi
6043 GREP=$ac_cv_path_GREP
6044 if test -n "$GREP"; then
6045   { echo "$as_me:$LINENO: result: $GREP" >&5
6046 echo "${ECHO_T}$GREP" >&6; }
6047 else
6048   { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6050 fi
6051
6052
6053 # Extract the first word of "mkdir", so it can be a program name with args.
6054 set dummy mkdir; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MKDIR+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   case $MKDIR in
6061   [\\/]* | ?:[\\/]*)
6062   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6063   ;;
6064   *)
6065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6081   ;;
6082 esac
6083 fi
6084 MKDIR=$ac_cv_path_MKDIR
6085 if test -n "$MKDIR"; then
6086   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6087 echo "${ECHO_T}$MKDIR" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6091 fi
6092
6093
6094 # Extract the first word of "mv", so it can be a program name with args.
6095 set dummy mv; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_path_MV+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   case $MV in
6102   [\\/]* | ?:[\\/]*)
6103   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6104   ;;
6105   *)
6106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111   for ac_exec_ext in '' $ac_executable_extensions; do
6112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6122   ;;
6123 esac
6124 fi
6125 MV=$ac_cv_path_MV
6126 if test -n "$MV"; then
6127   { echo "$as_me:$LINENO: result: $MV" >&5
6128 echo "${ECHO_T}$MV" >&6; }
6129 else
6130   { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6132 fi
6133
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_RANLIB+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   if test -n "$RANLIB"; then
6144   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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
6160
6161 fi
6162 fi
6163 RANLIB=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6166 echo "${ECHO_T}$RANLIB" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175   ac_ct_RANLIB=$RANLIB
6176   # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   if test -n "$ac_ct_RANLIB"; then
6184   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191   for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_prog_ac_ct_RANLIB="ranlib"
6194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6206 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212   if test "x$ac_ct_RANLIB" = x; then
6213     RANLIB=":"
6214   else
6215     case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218 whose name does not start with the host triplet.  If you think this
6219 configuration is useful to you, please write to autoconf@gnu.org." >&5
6220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet.  If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225     RANLIB=$ac_ct_RANLIB
6226   fi
6227 else
6228   RANLIB="$ac_cv_prog_RANLIB"
6229 fi
6230
6231 if test -n "$ac_tool_prefix"; then
6232   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}ar; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_AR+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$AR"; then
6240   ac_cv_prog_AR="$AR" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_AR="${ac_tool_prefix}ar"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 AR=$ac_cv_prog_AR
6260 if test -n "$AR"; then
6261   { echo "$as_me:$LINENO: result: $AR" >&5
6262 echo "${ECHO_T}$AR" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269 fi
6270 if test -z "$ac_cv_prog_AR"; then
6271   ac_ct_AR=$AR
6272   # Extract the first word of "ar", so it can be a program name with args.
6273 set dummy ar; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   if test -n "$ac_ct_AR"; then
6280   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_prog_ac_ct_AR="ar"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6300 if test -n "$ac_ct_AR"; then
6301   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6302 echo "${ECHO_T}$ac_ct_AR" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308   if test "x$ac_ct_AR" = x; then
6309     AR="false"
6310   else
6311     case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6314 whose name does not start with the host triplet.  If you think this
6315 configuration is useful to you, please write to autoconf@gnu.org." >&5
6316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet.  If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6319 ac_tool_warned=yes ;;
6320 esac
6321     AR=$ac_ct_AR
6322   fi
6323 else
6324   AR="$ac_cv_prog_AR"
6325 fi
6326
6327 # Extract the first word of "rm", so it can be a program name with args.
6328 set dummy rm; ac_word=$2
6329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331 if test "${ac_cv_path_RM+set}" = set; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   case $RM in
6335   [\\/]* | ?:[\\/]*)
6336   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6337   ;;
6338   *)
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6355   ;;
6356 esac
6357 fi
6358 RM=$ac_cv_path_RM
6359 if test -n "$RM"; then
6360   { echo "$as_me:$LINENO: result: $RM" >&5
6361 echo "${ECHO_T}$RM" >&6; }
6362 else
6363   { echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6; }
6365 fi
6366
6367
6368 # Extract the first word of "sed", so it can be a program name with args.
6369 set dummy sed; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_path_SED+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   case $SED in
6376   [\\/]* | ?:[\\/]*)
6377   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6378   ;;
6379   *)
6380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385   for ac_exec_ext in '' $ac_executable_extensions; do
6386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6387     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6396   ;;
6397 esac
6398 fi
6399 SED=$ac_cv_path_SED
6400 if test -n "$SED"; then
6401   { echo "$as_me:$LINENO: result: $SED" >&5
6402 echo "${ECHO_T}$SED" >&6; }
6403 else
6404   { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6406 fi
6407
6408
6409 # Extract the first word of "tar", so it can be a program name with args.
6410 set dummy tar; ac_word=$2
6411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413 if test "${ac_cv_path_TAR+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   case $TAR in
6417   [\\/]* | ?:[\\/]*)
6418   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6419   ;;
6420   *)
6421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426   for ac_exec_ext in '' $ac_executable_extensions; do
6427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6428     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6437   ;;
6438 esac
6439 fi
6440 TAR=$ac_cv_path_TAR
6441 if test -n "$TAR"; then
6442   { echo "$as_me:$LINENO: result: $TAR" >&5
6443 echo "${ECHO_T}$TAR" >&6; }
6444 else
6445   { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6447 fi
6448
6449
6450 # Extract the first word of "pwd", so it can be a program name with args.
6451 set dummy pwd; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_BINPWD+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   case $BINPWD in
6458   [\\/]* | ?:[\\/]*)
6459   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6460   ;;
6461   *)
6462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6478   ;;
6479 esac
6480 fi
6481 BINPWD=$ac_cv_path_BINPWD
6482 if test -n "$BINPWD"; then
6483   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6484 echo "${ECHO_T}$BINPWD" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491
6492 # Extract the first word of "Graphviz", so it can be a program name with args.
6493 set dummy Graphviz; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   case $GRAPHVIZ in
6500   [\\/]* | ?:[\\/]*)
6501   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6502   ;;
6503   *)
6504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6520   ;;
6521 esac
6522 fi
6523 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6524 if test -n "$GRAPHVIZ"; then
6525   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6526 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6527 else
6528   { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6530 fi
6531
6532
6533 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6534
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_GRAPHVIZ 1
6537 _ACEOF
6538
6539     if test "$llvm_cv_os_type" = "MingW" ; then
6540     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6541   fi
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6545 _ACEOF
6546
6547 fi
6548 # Extract the first word of "dot", so it can be a program name with args.
6549 set dummy dot; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_path_DOT+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   case $DOT in
6556   [\\/]* | ?:[\\/]*)
6557   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6558   ;;
6559   *)
6560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565   for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6576   ;;
6577 esac
6578 fi
6579 DOT=$ac_cv_path_DOT
6580 if test -n "$DOT"; then
6581   { echo "$as_me:$LINENO: result: $DOT" >&5
6582 echo "${ECHO_T}$DOT" >&6; }
6583 else
6584   { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6586 fi
6587
6588
6589 if test "$DOT" != "echo dot" ; then
6590
6591 cat >>confdefs.h <<\_ACEOF
6592 #define HAVE_DOT 1
6593 _ACEOF
6594
6595     if test "$llvm_cv_os_type" = "MingW" ; then
6596     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6597   fi
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6601 _ACEOF
6602
6603 fi
6604 # Extract the first word of "fdp", so it can be a program name with args.
6605 set dummy fdp; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_FDP+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $FDP in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6632   ;;
6633 esac
6634 fi
6635 FDP=$ac_cv_path_FDP
6636 if test -n "$FDP"; then
6637   { echo "$as_me:$LINENO: result: $FDP" >&5
6638 echo "${ECHO_T}$FDP" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 if test "$FDP" != "echo fdp" ; then
6646
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_FDP 1
6649 _ACEOF
6650
6651     if test "$llvm_cv_os_type" = "MingW" ; then
6652     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653   fi
6654
6655 cat >>confdefs.h <<_ACEOF
6656 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6657 _ACEOF
6658
6659 fi
6660 # Extract the first word of "neato", so it can be a program name with args.
6661 set dummy neato; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_NEATO+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   case $NEATO in
6668   [\\/]* | ?:[\\/]*)
6669   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6670   ;;
6671   *)
6672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6688   ;;
6689 esac
6690 fi
6691 NEATO=$ac_cv_path_NEATO
6692 if test -n "$NEATO"; then
6693   { echo "$as_me:$LINENO: result: $NEATO" >&5
6694 echo "${ECHO_T}$NEATO" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700
6701 if test "$NEATO" != "echo neato" ; then
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_NEATO 1
6705 _ACEOF
6706
6707     if test "$llvm_cv_os_type" = "MingW" ; then
6708     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709   fi
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6713 _ACEOF
6714
6715 fi
6716 # Extract the first word of "twopi", so it can be a program name with args.
6717 set dummy twopi; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_TWOPI+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $TWOPI in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6744   ;;
6745 esac
6746 fi
6747 TWOPI=$ac_cv_path_TWOPI
6748 if test -n "$TWOPI"; then
6749   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6750 echo "${ECHO_T}$TWOPI" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 if test "$TWOPI" != "echo twopi" ; then
6758
6759 cat >>confdefs.h <<\_ACEOF
6760 #define HAVE_TWOPI 1
6761 _ACEOF
6762
6763     if test "$llvm_cv_os_type" = "MingW" ; then
6764     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765   fi
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6769 _ACEOF
6770
6771 fi
6772 # Extract the first word of "circo", so it can be a program name with args.
6773 set dummy circo; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_CIRCO+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   case $CIRCO in
6780   [\\/]* | ?:[\\/]*)
6781   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6782   ;;
6783   *)
6784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6800   ;;
6801 esac
6802 fi
6803 CIRCO=$ac_cv_path_CIRCO
6804 if test -n "$CIRCO"; then
6805   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6806 echo "${ECHO_T}$CIRCO" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 if test "$CIRCO" != "echo circo" ; then
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_CIRCO 1
6817 _ACEOF
6818
6819     if test "$llvm_cv_os_type" = "MingW" ; then
6820     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821   fi
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6825 _ACEOF
6826
6827 fi
6828 for ac_prog in gv gsview32
6829 do
6830   # Extract the first word of "$ac_prog", so it can be a program name with args.
6831 set dummy $ac_prog; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_GV+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   case $GV in
6838   [\\/]* | ?:[\\/]*)
6839   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6840   ;;
6841   *)
6842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857   ;;
6858 esac
6859 fi
6860 GV=$ac_cv_path_GV
6861 if test -n "$GV"; then
6862   { echo "$as_me:$LINENO: result: $GV" >&5
6863 echo "${ECHO_T}$GV" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869
6870   test -n "$GV" && break
6871 done
6872 test -n "$GV" || GV="echo gv"
6873
6874 if test "$GV" != "echo gv" ; then
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_GV 1
6878 _ACEOF
6879
6880     if test "$llvm_cv_os_type" = "MingW" ; then
6881     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882   fi
6883
6884 cat >>confdefs.h <<_ACEOF
6885 #define LLVM_PATH_GV "$GV${EXEEXT}"
6886 _ACEOF
6887
6888 fi
6889 # Extract the first word of "dotty", so it can be a program name with args.
6890 set dummy dotty; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_DOTTY+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   case $DOTTY in
6897   [\\/]* | ?:[\\/]*)
6898   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6899   ;;
6900   *)
6901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6917   ;;
6918 esac
6919 fi
6920 DOTTY=$ac_cv_path_DOTTY
6921 if test -n "$DOTTY"; then
6922   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6923 echo "${ECHO_T}$DOTTY" >&6; }
6924 else
6925   { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6927 fi
6928
6929
6930 if test "$DOTTY" != "echo dotty" ; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define HAVE_DOTTY 1
6934 _ACEOF
6935
6936     if test "$llvm_cv_os_type" = "MingW" ; then
6937     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938   fi
6939
6940 cat >>confdefs.h <<_ACEOF
6941 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6942 _ACEOF
6943
6944 fi
6945 for ac_prog in xdot xdot.py
6946 do
6947   # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy $ac_prog; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_XDOT+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   case $XDOT in
6955   [\\/]* | ?:[\\/]*)
6956   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6957   ;;
6958   *)
6959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974   ;;
6975 esac
6976 fi
6977 XDOT=$ac_cv_path_XDOT
6978 if test -n "$XDOT"; then
6979   { echo "$as_me:$LINENO: result: $XDOT" >&5
6980 echo "${ECHO_T}$XDOT" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987   test -n "$XDOT" && break
6988 done
6989 test -n "$XDOT" || XDOT="echo xdot"
6990
6991 if test "$XDOT" != "echo xdot" ; then
6992
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_XDOT 1
6995 _ACEOF
6996
6997     if test "$llvm_cv_os_type" = "MingW" ; then
6998     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6999   fi
7000
7001 cat >>confdefs.h <<_ACEOF
7002 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7003 _ACEOF
7004
7005 fi
7006
7007 # Find a good install program.  We prefer a C program (faster),
7008 # so one script is as good as another.  But avoid the broken or
7009 # incompatible versions:
7010 # SysV /etc/install, /usr/sbin/install
7011 # SunOS /usr/etc/install
7012 # IRIX /sbin/install
7013 # AIX /bin/install
7014 # AmigaOS /C/install, which installs bootblocks on floppy discs
7015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7018 # OS/2's system install, which has a completely different semantic
7019 # ./install, which can be erroneously created by make from ./install.sh.
7020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7022 if test -z "$INSTALL"; then
7023 if test "${ac_cv_path_install+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031   # Account for people who put trailing slashes in PATH elements.
7032 case $as_dir/ in
7033   ./ | .// | /cC/* | \
7034   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7035   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7036   /usr/ucb/* ) ;;
7037   *)
7038     # OSF1 and SCO ODT 3.0 have their own names for install.
7039     # Don't use installbsd from OSF since it installs stuff as root
7040     # by default.
7041     for ac_prog in ginstall scoinst install; do
7042       for ac_exec_ext in '' $ac_executable_extensions; do
7043         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7044           if test $ac_prog = install &&
7045             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7046             # AIX install.  It has an incompatible calling convention.
7047             :
7048           elif test $ac_prog = install &&
7049             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050             # program-specific install script used by HP pwplus--don't use.
7051             :
7052           else
7053             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7054             break 3
7055           fi
7056         fi
7057       done
7058     done
7059     ;;
7060 esac
7061 done
7062 IFS=$as_save_IFS
7063
7064
7065 fi
7066   if test "${ac_cv_path_install+set}" = set; then
7067     INSTALL=$ac_cv_path_install
7068   else
7069     # As a last resort, use the slow shell script.  Don't cache a
7070     # value for INSTALL within a source directory, because that will
7071     # break other packages using the cache if that directory is
7072     # removed, or if the value is a relative name.
7073     INSTALL=$ac_install_sh
7074   fi
7075 fi
7076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7077 echo "${ECHO_T}$INSTALL" >&6; }
7078
7079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7080 # It thinks the first close brace ends the variable substitution.
7081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7082
7083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7084
7085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7086
7087 case "$INSTALL" in
7088  [\\/$]* | ?:[\\/]* ) ;;
7089  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7090 esac
7091
7092 # Extract the first word of "bzip2", so it can be a program name with args.
7093 set dummy bzip2; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_BZIP2+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   case $BZIP2 in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119   ;;
7120 esac
7121 fi
7122 BZIP2=$ac_cv_path_BZIP2
7123 if test -n "$BZIP2"; then
7124   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7125 echo "${ECHO_T}$BZIP2" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132 # Extract the first word of "cat", so it can be a program name with args.
7133 set dummy cat; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_CAT+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   case $CAT in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159   ;;
7160 esac
7161 fi
7162 CAT=$ac_cv_path_CAT
7163 if test -n "$CAT"; then
7164   { echo "$as_me:$LINENO: result: $CAT" >&5
7165 echo "${ECHO_T}$CAT" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 # Extract the first word of "doxygen", so it can be a program name with args.
7173 set dummy doxygen; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $DOXYGEN in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199   ;;
7200 esac
7201 fi
7202 DOXYGEN=$ac_cv_path_DOXYGEN
7203 if test -n "$DOXYGEN"; then
7204   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7205 echo "${ECHO_T}$DOXYGEN" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212 # Extract the first word of "groff", so it can be a program name with args.
7213 set dummy groff; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GROFF+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $GROFF in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   ;;
7240 esac
7241 fi
7242 GROFF=$ac_cv_path_GROFF
7243 if test -n "$GROFF"; then
7244   { echo "$as_me:$LINENO: result: $GROFF" >&5
7245 echo "${ECHO_T}$GROFF" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251
7252 # Extract the first word of "gzip", so it can be a program name with args.
7253 set dummy gzip; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   case $GZIPBIN in
7260   [\\/]* | ?:[\\/]*)
7261   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7262   ;;
7263   *)
7264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269   for ac_exec_ext in '' $ac_executable_extensions; do
7270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279   ;;
7280 esac
7281 fi
7282 GZIPBIN=$ac_cv_path_GZIPBIN
7283 if test -n "$GZIPBIN"; then
7284   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7285 echo "${ECHO_T}$GZIPBIN" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291
7292 # Extract the first word of "pdfroff", so it can be a program name with args.
7293 set dummy pdfroff; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_PDFROFF+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   case $PDFROFF in
7300   [\\/]* | ?:[\\/]*)
7301   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7302   ;;
7303   *)
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319   ;;
7320 esac
7321 fi
7322 PDFROFF=$ac_cv_path_PDFROFF
7323 if test -n "$PDFROFF"; then
7324   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7325 echo "${ECHO_T}$PDFROFF" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329 fi
7330
7331
7332 # Extract the first word of "zip", so it can be a program name with args.
7333 set dummy zip; 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_ZIP+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   case $ZIP in
7340   [\\/]* | ?:[\\/]*)
7341   ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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
7358
7359   ;;
7360 esac
7361 fi
7362 ZIP=$ac_cv_path_ZIP
7363 if test -n "$ZIP"; then
7364   { echo "$as_me:$LINENO: result: $ZIP" >&5
7365 echo "${ECHO_T}$ZIP" >&6; }
7366 else
7367   { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369 fi
7370
7371
7372 for ac_prog in ocamlc
7373 do
7374   # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_OCAMLC+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   case $OCAMLC in
7382   [\\/]* | ?:[\\/]*)
7383   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7384   ;;
7385   *)
7386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401   ;;
7402 esac
7403 fi
7404 OCAMLC=$ac_cv_path_OCAMLC
7405 if test -n "$OCAMLC"; then
7406   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7407 echo "${ECHO_T}$OCAMLC" >&6; }
7408 else
7409   { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411 fi
7412
7413
7414   test -n "$OCAMLC" && break
7415 done
7416
7417 for ac_prog in ocamlopt
7418 do
7419   # Extract the first word of "$ac_prog", so it can be a program name with args.
7420 set dummy $ac_prog; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $OCAMLOPT in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 OCAMLOPT=$ac_cv_path_OCAMLOPT
7450 if test -n "$OCAMLOPT"; then
7451   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7452 echo "${ECHO_T}$OCAMLOPT" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458
7459   test -n "$OCAMLOPT" && break
7460 done
7461
7462 for ac_prog in ocamldep
7463 do
7464   # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $OCAMLDEP in
7472   [\\/]* | ?:[\\/]*)
7473   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7474   ;;
7475   *)
7476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   test -z "$as_dir" && as_dir=.
7481   for ac_exec_ext in '' $ac_executable_extensions; do
7482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485     break 2
7486   fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491   ;;
7492 esac
7493 fi
7494 OCAMLDEP=$ac_cv_path_OCAMLDEP
7495 if test -n "$OCAMLDEP"; then
7496   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7497 echo "${ECHO_T}$OCAMLDEP" >&6; }
7498 else
7499   { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503
7504   test -n "$OCAMLDEP" && break
7505 done
7506
7507 for ac_prog in ocamldoc
7508 do
7509   # Extract the first word of "$ac_prog", so it can be a program name with args.
7510 set dummy $ac_prog; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   case $OCAMLDOC in
7517   [\\/]* | ?:[\\/]*)
7518   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7519   ;;
7520   *)
7521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536   ;;
7537 esac
7538 fi
7539 OCAMLDOC=$ac_cv_path_OCAMLDOC
7540 if test -n "$OCAMLDOC"; then
7541   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7542 echo "${ECHO_T}$OCAMLDOC" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549   test -n "$OCAMLDOC" && break
7550 done
7551
7552 for ac_prog in gas as
7553 do
7554   # Extract the first word of "$ac_prog", so it can be a program name with args.
7555 set dummy $ac_prog; ac_word=$2
7556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558 if test "${ac_cv_path_GAS+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   case $GAS in
7562   [\\/]* | ?:[\\/]*)
7563   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7564   ;;
7565   *)
7566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571   for ac_exec_ext in '' $ac_executable_extensions; do
7572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581   ;;
7582 esac
7583 fi
7584 GAS=$ac_cv_path_GAS
7585 if test -n "$GAS"; then
7586   { echo "$as_me:$LINENO: result: $GAS" >&5
7587 echo "${ECHO_T}$GAS" >&6; }
7588 else
7589   { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7591 fi
7592
7593
7594   test -n "$GAS" && break
7595 done
7596
7597
7598 { echo "$as_me:$LINENO: checking for linker version" >&5
7599 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7600 if test "${llvm_cv_link_version+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603
7604    version_string="$(ld -v 2>&1 | head -1)"
7605
7606    # Check for ld64.
7607    if (echo "$version_string" | grep -q "ld64"); then
7608      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7609    else
7610      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7611    fi
7612
7613 fi
7614 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7615 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7616
7617 cat >>confdefs.h <<_ACEOF
7618 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7619 _ACEOF
7620
7621
7622
7623
7624 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7625 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7626 if test "${llvm_cv_link_use_r+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629    ac_ext=c
7630 ac_cpp='$CPP $CPPFLAGS'
7631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634
7635   oldcflags="$CFLAGS"
7636   CFLAGS="$CFLAGS -Wl,-R."
7637   cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643
7644 int
7645 main ()
7646 {
7647
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656   *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659   (eval "$ac_link") 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7667   { (case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672   (eval "$ac_try") 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; } &&
7676          { ac_try='test -s conftest$ac_exeext'
7677   { (case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_try") 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   llvm_cv_link_use_r=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691         llvm_cv_link_use_r=no
7692 fi
7693
7694 rm -f core conftest.err conftest.$ac_objext \
7695       conftest$ac_exeext conftest.$ac_ext
7696   CFLAGS="$oldcflags"
7697   ac_ext=c
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702
7703
7704 fi
7705 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7706 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7707 if test "$llvm_cv_link_use_r" = yes ; then
7708
7709 cat >>confdefs.h <<\_ACEOF
7710 #define HAVE_LINK_R 1
7711 _ACEOF
7712
7713   fi
7714
7715
7716 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7717 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7718 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721    ac_ext=c
7722 ac_cpp='$CPP $CPPFLAGS'
7723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7726
7727   oldcflags="$CFLAGS"
7728   CFLAGS="$CFLAGS -rdynamic"
7729   cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735
7736 int
7737 main ()
7738 {
7739
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748   *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751   (eval "$ac_link") 2>conftest.er1
7752   ac_status=$?
7753   grep -v '^ *+' conftest.er1 >conftest.err
7754   rm -f conftest.er1
7755   cat conftest.err >&5
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } &&
7758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7759   { (case "(($ac_try" in
7760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761   *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764   (eval "$ac_try") 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; } &&
7768          { ac_try='test -s conftest$ac_exeext'
7769   { (case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_try") 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); }; }; then
7778   llvm_cv_link_use_export_dynamic=yes
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783         llvm_cv_link_use_export_dynamic=no
7784 fi
7785
7786 rm -f core conftest.err conftest.$ac_objext \
7787       conftest$ac_exeext conftest.$ac_ext
7788   CFLAGS="$oldcflags"
7789   ac_ext=c
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795
7796 fi
7797 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7798 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7799 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7800
7801 cat >>confdefs.h <<\_ACEOF
7802 #define HAVE_LINK_EXPORT_DYNAMIC 1
7803 _ACEOF
7804
7805   fi
7806
7807
7808 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7809 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7810 if test "${llvm_cv_link_use_version_script+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813    ac_ext=c
7814 ac_cpp='$CPP $CPPFLAGS'
7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818
7819   oldcflags="$CFLAGS"
7820
7821   # The following code is from the autoconf manual,
7822   # "11.13: Limitations of Usual Tools".
7823   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7824   # Use mktemp if possible; otherwise fall back on mkdir,
7825   # with $RANDOM to make collisions less likely.
7826   : ${TMPDIR=/tmp}
7827   {
7828     tmp=`
7829       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7830     ` &&
7831     test -n "$tmp" && test -d "$tmp"
7832   } || {
7833     tmp=$TMPDIR/foo$$-$RANDOM
7834     (umask 077 && mkdir "$tmp")
7835   } || exit $?
7836
7837   echo "{" > "$tmp/export.map"
7838   echo "  global: main;" >> "$tmp/export.map"
7839   echo "  local: *;" >> "$tmp/export.map"
7840   echo "};" >> "$tmp/export.map"
7841
7842   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7843   cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7860 case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_link") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   llvm_cv_link_use_version_script=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897         llvm_cv_link_use_version_script=no
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902   rm "$tmp/export.map"
7903   rmdir "$tmp"
7904   CFLAGS="$oldcflags"
7905   ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911
7912 fi
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7915 if test "$llvm_cv_link_use_version_script" = yes ; then
7916   HAVE_LINK_VERSION_SCRIPT=1
7917
7918   fi
7919
7920
7921
7922
7923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7925 if test "${ac_cv_c_const+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934
7935 int
7936 main ()
7937 {
7938 /* FIXME: Include the comments suggested by Paul. */
7939 #ifndef __cplusplus
7940   /* Ultrix mips cc rejects this.  */
7941   typedef int charset[2];
7942   const charset x;
7943   /* SunOS 4.1.1 cc rejects this.  */
7944   char const *const *ccp;
7945   char **p;
7946   /* NEC SVR4.0.2 mips cc rejects this.  */
7947   struct point {int x, y;};
7948   static struct point const zero = {0,0};
7949   /* AIX XL C 1.02.0.0 rejects this.
7950      It does not let you subtract one const X* pointer from another in
7951      an arm of an if-expression whose if-part is not a constant
7952      expression */
7953   const char *g = "string";
7954   ccp = &g + (g ? g-g : 0);
7955   /* HPUX 7.0 cc rejects these. */
7956   ++ccp;
7957   p = (char**) ccp;
7958   ccp = (char const *const *) p;
7959   { /* SCO 3.2v4 cc rejects this.  */
7960     char *t;
7961     char const *s = 0 ? (char *) 0 : (char const *) 0;
7962
7963     *t++ = 0;
7964     if (s) return 0;
7965   }
7966   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7967     int x[] = {25, 17};
7968     const int *foo = &x[0];
7969     ++foo;
7970   }
7971   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7972     typedef const int *iptr;
7973     iptr p = 0;
7974     ++p;
7975   }
7976   { /* AIX XL C 1.02.0.0 rejects this saying
7977        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7978     struct s { int j; const int *ap[3]; };
7979     struct s *b; b->j = 5;
7980   }
7981   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7982     const int foo = 10;
7983     if (!foo) return 0;
7984   }
7985   return !x[0] && !zero.x;
7986 #endif
7987
7988   ;
7989   return 0;
7990 }
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999   (eval "$ac_compile") 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007   { (case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012   (eval "$ac_try") 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; } &&
8016          { ac_try='test -s conftest.$ac_objext'
8017   { (case "(($ac_try" in
8018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019   *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022   (eval "$ac_try") 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_cv_c_const=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031         ac_cv_c_const=no
8032 fi
8033
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 fi
8036 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8037 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8038 if test $ac_cv_c_const = no; then
8039
8040 cat >>confdefs.h <<\_ACEOF
8041 #define const
8042 _ACEOF
8043
8044 fi
8045
8046
8047 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8048 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_GREP+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   # Extract the first word of "grep ggrep" to use in msg output
8053 if test -z "$GREP"; then
8054 set dummy grep ggrep; ac_prog_name=$2
8055 if test "${ac_cv_path_GREP+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   ac_path_GREP_found=false
8059 # Loop through the user's path and test for each of PROGNAME-LIST
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065   for ac_prog in grep ggrep; do
8066   for ac_exec_ext in '' $ac_executable_extensions; do
8067     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8068     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8069     # Check for GNU ac_path_GREP and select it if it is found.
8070   # Check for GNU $ac_path_GREP
8071 case `"$ac_path_GREP" --version 2>&1` in
8072 *GNU*)
8073   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8074 *)
8075   ac_count=0
8076   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8077   while :
8078   do
8079     cat "conftest.in" "conftest.in" >"conftest.tmp"
8080     mv "conftest.tmp" "conftest.in"
8081     cp "conftest.in" "conftest.nl"
8082     echo 'GREP' >> "conftest.nl"
8083     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8085     ac_count=`expr $ac_count + 1`
8086     if test $ac_count -gt ${ac_path_GREP_max-0}; then
8087       # Best one so far, save it but keep looking for a better one
8088       ac_cv_path_GREP="$ac_path_GREP"
8089       ac_path_GREP_max=$ac_count
8090     fi
8091     # 10*(2^10) chars as input seems more than enough
8092     test $ac_count -gt 10 && break
8093   done
8094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8095 esac
8096
8097
8098     $ac_path_GREP_found && break 3
8099   done
8100 done
8101
8102 done
8103 IFS=$as_save_IFS
8104
8105
8106 fi
8107
8108 GREP="$ac_cv_path_GREP"
8109 if test -z "$GREP"; then
8110   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8111 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8112    { (exit 1); exit 1; }; }
8113 fi
8114
8115 else
8116   ac_cv_path_GREP=$GREP
8117 fi
8118
8119
8120 fi
8121 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8122 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8123  GREP="$ac_cv_path_GREP"
8124
8125
8126 { echo "$as_me:$LINENO: checking for egrep" >&5
8127 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8128 if test "${ac_cv_path_EGREP+set}" = set; then
8129   echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8132    then ac_cv_path_EGREP="$GREP -E"
8133    else
8134      # Extract the first word of "egrep" to use in msg output
8135 if test -z "$EGREP"; then
8136 set dummy egrep; ac_prog_name=$2
8137 if test "${ac_cv_path_EGREP+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   ac_path_EGREP_found=false
8141 # Loop through the user's path and test for each of PROGNAME-LIST
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8144 do
8145   IFS=$as_save_IFS
8146   test -z "$as_dir" && as_dir=.
8147   for ac_prog in egrep; do
8148   for ac_exec_ext in '' $ac_executable_extensions; do
8149     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8150     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8151     # Check for GNU ac_path_EGREP and select it if it is found.
8152   # Check for GNU $ac_path_EGREP
8153 case `"$ac_path_EGREP" --version 2>&1` in
8154 *GNU*)
8155   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8156 *)
8157   ac_count=0
8158   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8159   while :
8160   do
8161     cat "conftest.in" "conftest.in" >"conftest.tmp"
8162     mv "conftest.tmp" "conftest.in"
8163     cp "conftest.in" "conftest.nl"
8164     echo 'EGREP' >> "conftest.nl"
8165     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8167     ac_count=`expr $ac_count + 1`
8168     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8169       # Best one so far, save it but keep looking for a better one
8170       ac_cv_path_EGREP="$ac_path_EGREP"
8171       ac_path_EGREP_max=$ac_count
8172     fi
8173     # 10*(2^10) chars as input seems more than enough
8174     test $ac_count -gt 10 && break
8175   done
8176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8177 esac
8178
8179
8180     $ac_path_EGREP_found && break 3
8181   done
8182 done
8183
8184 done
8185 IFS=$as_save_IFS
8186
8187
8188 fi
8189
8190 EGREP="$ac_cv_path_EGREP"
8191 if test -z "$EGREP"; then
8192   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8193 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8194    { (exit 1); exit 1; }; }
8195 fi
8196
8197 else
8198   ac_cv_path_EGREP=$EGREP
8199 fi
8200
8201
8202    fi
8203 fi
8204 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8205 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8206  EGREP="$ac_cv_path_EGREP"
8207
8208
8209 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8211 if test "${ac_cv_header_stdc+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #include <stdlib.h>
8221 #include <stdarg.h>
8222 #include <string.h>
8223 #include <float.h>
8224
8225 int
8226 main ()
8227 {
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_compile") 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } &&
8247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248   { (case "(($ac_try" in
8249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250   *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253   (eval "$ac_try") 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; } &&
8257          { ac_try='test -s conftest.$ac_objext'
8258   { (case "(($ac_try" in
8259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260   *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263   (eval "$ac_try") 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   ac_cv_header_stdc=yes
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272         ac_cv_header_stdc=no
8273 fi
8274
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276
8277 if test $ac_cv_header_stdc = yes; then
8278   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8279   cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 #include <string.h>
8286
8287 _ACEOF
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289   $EGREP "memchr" >/dev/null 2>&1; then
8290   :
8291 else
8292   ac_cv_header_stdc=no
8293 fi
8294 rm -f conftest*
8295
8296 fi
8297
8298 if test $ac_cv_header_stdc = yes; then
8299   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8300   cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 #include <stdlib.h>
8307
8308 _ACEOF
8309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8310   $EGREP "free" >/dev/null 2>&1; then
8311   :
8312 else
8313   ac_cv_header_stdc=no
8314 fi
8315 rm -f conftest*
8316
8317 fi
8318
8319 if test $ac_cv_header_stdc = yes; then
8320   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8321   if test "$cross_compiling" = yes; then
8322   :
8323 else
8324   cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330 #include <ctype.h>
8331 #include <stdlib.h>
8332 #if ((' ' & 0x0FF) == 0x020)
8333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8335 #else
8336 # define ISLOWER(c) \
8337                    (('a' <= (c) && (c) <= 'i') \
8338                      || ('j' <= (c) && (c) <= 'r') \
8339                      || ('s' <= (c) && (c) <= 'z'))
8340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8341 #endif
8342
8343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8344 int
8345 main ()
8346 {
8347   int i;
8348   for (i = 0; i < 256; i++)
8349     if (XOR (islower (i), ISLOWER (i))
8350         || toupper (i) != TOUPPER (i))
8351       return 2;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8357 case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362   (eval "$ac_link") 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   :
8376 else
8377   echo "$as_me: program exited with status $ac_status" >&5
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ( exit $ac_status )
8382 ac_cv_header_stdc=no
8383 fi
8384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8385 fi
8386
8387
8388 fi
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8391 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8392 if test $ac_cv_header_stdc = yes; then
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define STDC_HEADERS 1
8396 _ACEOF
8397
8398 fi
8399
8400
8401
8402
8403
8404
8405 ac_header_dirent=no
8406 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8407   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8408 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8409 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h.  */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h.  */
8419 #include <sys/types.h>
8420 #include <$ac_hdr>
8421
8422 int
8423 main ()
8424 {
8425 if ((DIR *) 0)
8426 return 0;
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest.$ac_objext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_Header=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         eval "$as_ac_Header=no"
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476                { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 ac_header_dirent=$ac_hdr; break
8484 fi
8485
8486 done
8487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8488 if test $ac_header_dirent = dirent.h; then
8489   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char opendir ();
8509 int
8510 main ()
8511 {
8512 return opendir ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' dir; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_link") 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_try") 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_cv_search_opendir=$ac_res
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext \
8567       conftest$ac_exeext
8568   if test "${ac_cv_search_opendir+set}" = set; then
8569   break
8570 fi
8571 done
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573   :
8574 else
8575   ac_cv_search_opendir=no
8576 fi
8577 rm conftest.$ac_ext
8578 LIBS=$ac_func_search_save_LIBS
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585
8586 fi
8587
8588 else
8589   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8590 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8591 if test "${ac_cv_search_opendir+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   ac_func_search_save_LIBS=$LIBS
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 /* Override any GCC internal prototype to avoid an error.
8603    Use char because int might match the return type of a GCC
8604    builtin and then its argument prototype would still apply.  */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 char opendir ();
8609 int
8610 main ()
8611 {
8612 return opendir ();
8613   ;
8614   return 0;
8615 }
8616 _ACEOF
8617 for ac_lib in '' x; do
8618   if test -z "$ac_lib"; then
8619     ac_res="none required"
8620   else
8621     ac_res=-l$ac_lib
8622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8623   fi
8624   rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; } &&
8648          { ac_try='test -s conftest$ac_exeext'
8649   { (case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_try") 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_search_opendir=$ac_res
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext \
8667       conftest$ac_exeext
8668   if test "${ac_cv_search_opendir+set}" = set; then
8669   break
8670 fi
8671 done
8672 if test "${ac_cv_search_opendir+set}" = set; then
8673   :
8674 else
8675   ac_cv_search_opendir=no
8676 fi
8677 rm conftest.$ac_ext
8678 LIBS=$ac_func_search_save_LIBS
8679 fi
8680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8682 ac_res=$ac_cv_search_opendir
8683 if test "$ac_res" != no; then
8684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8685
8686 fi
8687
8688 fi
8689
8690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8701                   inttypes.h stdint.h unistd.h
8702 do
8703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 $ac_includes_default
8716
8717 #include <$ac_header>
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8721 case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_compile") 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } &&
8733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734   { (case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_try") 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest.$ac_objext'
8744   { (case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749   (eval "$ac_try") 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); }; }; then
8753   eval "$as_ac_Header=yes"
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758         eval "$as_ac_Header=no"
8759 fi
8760
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 ac_res=`eval echo '${'$as_ac_Header'}'`
8764                { echo "$as_me:$LINENO: result: $ac_res" >&5
8765 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767   cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8769 _ACEOF
8770
8771 fi
8772
8773 done
8774
8775
8776
8777 for ac_header in dlfcn.h
8778 do
8779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8781   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 fi
8786 ac_res=`eval echo '${'$as_ac_Header'}'`
8787                { echo "$as_me:$LINENO: result: $ac_res" >&5
8788 echo "${ECHO_T}$ac_res" >&6; }
8789 else
8790   # Is the header compilable?
8791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799 $ac_includes_default
8800 #include <$ac_header>
8801 _ACEOF
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8804 case "(($ac_try" in
8805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806   *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809   (eval "$ac_compile") 2>conftest.er1
8810   ac_status=$?
8811   grep -v '^ *+' conftest.er1 >conftest.err
8812   rm -f conftest.er1
8813   cat conftest.err >&5
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } &&
8816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8817   { (case "(($ac_try" in
8818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819   *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822   (eval "$ac_try") 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; } &&
8826          { ac_try='test -s conftest.$ac_objext'
8827   { (case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_try") 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; }; then
8836   ac_header_compiler=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841         ac_header_compiler=no
8842 fi
8843
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8846 echo "${ECHO_T}$ac_header_compiler" >&6; }
8847
8848 # Is the header present?
8849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857 #include <$ac_header>
8858 _ACEOF
8859 if { (ac_try="$ac_cpp conftest.$ac_ext"
8860 case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8866   ac_status=$?
8867   grep -v '^ *+' conftest.er1 >conftest.err
8868   rm -f conftest.er1
8869   cat conftest.err >&5
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } >/dev/null; then
8872   if test -s conftest.err; then
8873     ac_cpp_err=$ac_c_preproc_warn_flag
8874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8875   else
8876     ac_cpp_err=
8877   fi
8878 else
8879   ac_cpp_err=yes
8880 fi
8881 if test -z "$ac_cpp_err"; then
8882   ac_header_preproc=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887   ac_header_preproc=no
8888 fi
8889
8890 rm -f conftest.err conftest.$ac_ext
8891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8892 echo "${ECHO_T}$ac_header_preproc" >&6; }
8893
8894 # So?  What about this header?
8895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8896   yes:no: )
8897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8901     ac_header_preproc=yes
8902     ;;
8903   no:yes:* )
8904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8916     ( cat <<\_ASBOX
8917 ## ------------------------------------ ##
8918 ## Report this to http://llvm.org/bugs/ ##
8919 ## ------------------------------------ ##
8920 _ASBOX
8921      ) | sed "s/^/$as_me: WARNING:     /" >&2
8922     ;;
8923 esac
8924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   eval "$as_ac_Header=\$ac_header_preproc"
8930 fi
8931 ac_res=`eval echo '${'$as_ac_Header'}'`
8932                { echo "$as_me:$LINENO: result: $ac_res" >&5
8933 echo "${ECHO_T}$ac_res" >&6; }
8934
8935 fi
8936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8937   cat >>confdefs.h <<_ACEOF
8938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8939 _ACEOF
8940
8941 fi
8942
8943 done
8944
8945 # Check whether --enable-ltdl-install was given.
8946 if test "${enable_ltdl_install+set}" = set; then
8947   enableval=$enable_ltdl_install;
8948 fi
8949
8950
8951
8952
8953 if test x"${enable_ltdl_install-no}" != xno; then
8954   INSTALL_LTDL_TRUE=
8955   INSTALL_LTDL_FALSE='#'
8956 else
8957   INSTALL_LTDL_TRUE='#'
8958   INSTALL_LTDL_FALSE=
8959 fi
8960
8961
8962
8963 if test x"${enable_ltdl_convenience-no}" != xno; then
8964   CONVENIENCE_LTDL_TRUE=
8965   CONVENIENCE_LTDL_FALSE='#'
8966 else
8967   CONVENIENCE_LTDL_TRUE='#'
8968   CONVENIENCE_LTDL_FALSE=
8969 fi
8970
8971
8972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8974 library_names_spec=
8975 libname_spec='lib$name'
8976 soname_spec=
8977 shrext_cmds=".so"
8978 postinstall_cmds=
8979 postuninstall_cmds=
8980 finish_cmds=
8981 finish_eval=
8982 shlibpath_var=
8983 shlibpath_overrides_runpath=unknown
8984 version_type=none
8985 dynamic_linker="$host_os ld.so"
8986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8987 if test "$GCC" = yes; then
8988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8990     # if the path contains ";" then we assume it to be the separator
8991     # otherwise default to the standard path separator (i.e. ":") - it is
8992     # assumed that no part of a normal pathname contains ";" but that should
8993     # okay in the real world where ";" in dirpaths is itself problematic.
8994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8995   else
8996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8997   fi
8998 else
8999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9000 fi
9001 need_lib_prefix=unknown
9002 hardcode_into_libs=no
9003
9004 # when you set need_version to no, make sure it does not cause -set_version
9005 # flags to be left without arguments
9006 need_version=unknown
9007
9008 case $host_os in
9009 aix3*)
9010   version_type=linux
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012   shlibpath_var=LIBPATH
9013
9014   # AIX 3 has no versioning support, so we append a major version to the name.
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   ;;
9017
9018 aix4* | aix5*)
9019   version_type=linux
9020   need_lib_prefix=no
9021   need_version=no
9022   hardcode_into_libs=yes
9023   if test "$host_cpu" = ia64; then
9024     # AIX 5 supports IA64
9025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026     shlibpath_var=LD_LIBRARY_PATH
9027   else
9028     # With GCC up to 2.95.x, collect2 would create an import file
9029     # for dependence libraries.  The import file would start with
9030     # the line `#! .'.  This would cause the generated library to
9031     # depend on `.', always an invalid library.  This was fixed in
9032     # development snapshots of GCC prior to 3.0.
9033     case $host_os in
9034       aix4 | aix4.[01] | aix4.[01].*)
9035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9036            echo ' yes '
9037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9038         :
9039       else
9040         can_build_shared=no
9041       fi
9042       ;;
9043     esac
9044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045     # soname into executable. Probably we can add versioning support to
9046     # collect2, so additional links can be useful in future.
9047     if test "$aix_use_runtimelinking" = yes; then
9048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049       # instead of lib<name>.a to let people know that these are not
9050       # typical AIX shared libraries.
9051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052     else
9053       # We preserve .a as extension for shared libraries through AIX4.2
9054       # and later when we are not doing run time linking.
9055       library_names_spec='${libname}${release}.a $libname.a'
9056       soname_spec='${libname}${release}${shared_ext}$major'
9057     fi
9058     shlibpath_var=LIBPATH
9059   fi
9060   ;;
9061
9062 amigaos*)
9063   library_names_spec='$libname.ixlibrary $libname.a'
9064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9065   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'
9066   ;;
9067
9068 beos*)
9069   library_names_spec='${libname}${shared_ext}'
9070   dynamic_linker="$host_os ld.so"
9071   shlibpath_var=LIBRARY_PATH
9072   ;;
9073
9074 bsdi[45]*)
9075   version_type=linux
9076   need_version=no
9077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078   soname_spec='${libname}${release}${shared_ext}$major'
9079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9080   shlibpath_var=LD_LIBRARY_PATH
9081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9083   # the default ld.so.conf also contains /usr/contrib/lib and
9084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9085   # libtool to hard-code these into programs
9086   ;;
9087
9088 cygwin* | mingw* | pw32*)
9089   version_type=windows
9090   shrext_cmds=".dll"
9091   need_version=no
9092   need_lib_prefix=no
9093
9094   case $GCC,$host_os in
9095   yes,cygwin* | yes,mingw* | yes,pw32*)
9096     library_names_spec='$libname.dll.a'
9097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9098     postinstall_cmds='base_file=`basename \${file}`~
9099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9100       dldir=$destdir/`dirname \$dlpath`~
9101       test -d \$dldir || mkdir -p \$dldir~
9102       $install_prog $dir/$dlname \$dldir/$dlname~
9103       chmod a+x \$dldir/$dlname'
9104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9105       dlpath=$dir/\$dldll~
9106        $rm \$dlpath'
9107     shlibpath_overrides_runpath=yes
9108
9109     case $host_os in
9110     cygwin*)
9111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9114       ;;
9115     mingw*)
9116       # MinGW DLLs use traditional 'lib' prefix
9117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9120         # It is most probably a Windows format PATH printed by
9121         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9122         # path with ; separators, and with drive letters. We can handle the
9123         # drive letters (cygwin fileutils understands them), so leave them,
9124         # especially as we might pass files found there to a mingw objdump,
9125         # which wouldn't understand a cygwinified path. Ahh.
9126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9127       else
9128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9129       fi
9130       ;;
9131     pw32*)
9132       # pw32 DLLs use 'pw' prefix rather than 'lib'
9133       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134       ;;
9135     esac
9136     ;;
9137
9138   *)
9139     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9140     ;;
9141   esac
9142   dynamic_linker='Win32 ld.exe'
9143   # FIXME: first we should search . and the directory the executable is in
9144   shlibpath_var=PATH
9145   ;;
9146
9147 darwin* | rhapsody*)
9148   dynamic_linker="$host_os dyld"
9149   version_type=darwin
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9153   soname_spec='${libname}${release}${major}$shared_ext'
9154   shlibpath_overrides_runpath=yes
9155   shlibpath_var=DYLD_LIBRARY_PATH
9156   shrext_cmds='.dylib'
9157   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9158   if test "$GCC" = yes; then
9159     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"`
9160   else
9161     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9162   fi
9163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9164   ;;
9165
9166 dgux*)
9167   version_type=linux
9168   need_lib_prefix=no
9169   need_version=no
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   shlibpath_var=LD_LIBRARY_PATH
9173   ;;
9174
9175 freebsd1.*)
9176   dynamic_linker=no
9177   ;;
9178
9179 kfreebsd*-gnu)
9180   version_type=linux
9181   need_lib_prefix=no
9182   need_version=no
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   shlibpath_var=LD_LIBRARY_PATH
9186   shlibpath_overrides_runpath=no
9187   hardcode_into_libs=yes
9188   dynamic_linker='GNU ld.so'
9189   ;;
9190
9191 freebsd* | dragonfly*)
9192   # DragonFly does not have aout.  When/if they implement a new
9193   # versioning mechanism, adjust this.
9194   if test -x /usr/bin/objformat; then
9195     objformat=`/usr/bin/objformat`
9196   else
9197     case $host_os in
9198     freebsd[123].*) objformat=aout ;;
9199     *) objformat=elf ;;
9200     esac
9201   fi
9202   version_type=freebsd-$objformat
9203   case $version_type in
9204     freebsd-elf*)
9205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206       need_version=no
9207       need_lib_prefix=no
9208       ;;
9209     freebsd-*)
9210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9211       need_version=yes
9212       ;;
9213   esac
9214   shlibpath_var=LD_LIBRARY_PATH
9215   case $host_os in
9216   freebsd2.*)
9217     shlibpath_overrides_runpath=yes
9218     ;;
9219   freebsd3.[01]* | freebsdelf3.[01]*)
9220     shlibpath_overrides_runpath=yes
9221     hardcode_into_libs=yes
9222     ;;
9223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9225     shlibpath_overrides_runpath=no
9226     hardcode_into_libs=yes
9227     ;;
9228   freebsd*) # from 4.6 on
9229     shlibpath_overrides_runpath=yes
9230     hardcode_into_libs=yes
9231     ;;
9232   esac
9233   ;;
9234
9235 gnu*)
9236   version_type=linux
9237   need_lib_prefix=no
9238   need_version=no
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9240   soname_spec='${libname}${release}${shared_ext}$major'
9241   shlibpath_var=LD_LIBRARY_PATH
9242   hardcode_into_libs=yes
9243   ;;
9244
9245 hpux9* | hpux10* | hpux11*)
9246   # Give a soname corresponding to the major version so that dld.sl refuses to
9247   # link against other versions.
9248   version_type=sunos
9249   need_lib_prefix=no
9250   need_version=no
9251   case $host_cpu in
9252   ia64*)
9253     shrext_cmds='.so'
9254     hardcode_into_libs=yes
9255     dynamic_linker="$host_os dld.so"
9256     shlibpath_var=LD_LIBRARY_PATH
9257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259     soname_spec='${libname}${release}${shared_ext}$major'
9260     if test "X$HPUX_IA64_MODE" = X32; then
9261       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9262     else
9263       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9264     fi
9265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9266     ;;
9267    hppa*64*)
9268      shrext_cmds='.sl'
9269      hardcode_into_libs=yes
9270      dynamic_linker="$host_os dld.sl"
9271      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9272      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274      soname_spec='${libname}${release}${shared_ext}$major'
9275      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9276      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9277      ;;
9278    *)
9279     shrext_cmds='.sl'
9280     dynamic_linker="$host_os dld.sl"
9281     shlibpath_var=SHLIB_PATH
9282     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284     soname_spec='${libname}${release}${shared_ext}$major'
9285     ;;
9286   esac
9287   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9288   postinstall_cmds='chmod 555 $lib'
9289   ;;
9290
9291 interix3*)
9292   version_type=linux
9293   need_lib_prefix=no
9294   need_version=no
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   shlibpath_overrides_runpath=no
9300   hardcode_into_libs=yes
9301   ;;
9302
9303 irix5* | irix6* | nonstopux*)
9304   case $host_os in
9305     nonstopux*) version_type=nonstopux ;;
9306     *)
9307         if test "$lt_cv_prog_gnu_ld" = yes; then
9308                 version_type=linux
9309         else
9310                 version_type=irix
9311         fi ;;
9312   esac
9313   need_lib_prefix=no
9314   need_version=no
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9317   case $host_os in
9318   irix5* | nonstopux*)
9319     libsuff= shlibsuff=
9320     ;;
9321   *)
9322     case $LD in # libtool.m4 will add one of these switches to LD
9323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9324       libsuff= shlibsuff= libmagic=32-bit;;
9325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9326       libsuff=32 shlibsuff=N32 libmagic=N32;;
9327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9329     *) libsuff= shlibsuff= libmagic=never-match;;
9330     esac
9331     ;;
9332   esac
9333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9334   shlibpath_overrides_runpath=no
9335   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9336   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9337   hardcode_into_libs=yes
9338   ;;
9339
9340 # No shared lib support for Linux oldld, aout, or coff.
9341 linux*oldld* | linux*aout* | linux*coff*)
9342   dynamic_linker=no
9343   ;;
9344
9345 # This must be Linux ELF.
9346 linux*)
9347   version_type=linux
9348   need_lib_prefix=no
9349   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   shlibpath_overrides_runpath=no
9355   # This implies no fast_install, which is unacceptable.
9356   # Some rework will be needed to allow for fast_install
9357   # before this can be enabled.
9358   hardcode_into_libs=yes
9359
9360   # Append ld.so.conf contents to the search path
9361   if test -f /etc/ld.so.conf; then
9362     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' ' '`
9363     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9364   fi
9365
9366   # We used to test for /lib/ld.so.1 and disable shared libraries on
9367   # powerpc, because MkLinux only supported shared libraries with the
9368   # GNU dynamic linker.  Since this was broken with cross compilers,
9369   # most powerpc-linux boxes support dynamic linking these days and
9370   # people can always --disable-shared, the test was removed, and we
9371   # assume the GNU/Linux dynamic linker is in use.
9372   dynamic_linker='GNU/Linux ld.so'
9373   ;;
9374
9375 knetbsd*-gnu)
9376   version_type=linux
9377   need_lib_prefix=no
9378   need_version=no
9379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380   soname_spec='${libname}${release}${shared_ext}$major'
9381   shlibpath_var=LD_LIBRARY_PATH
9382   shlibpath_overrides_runpath=no
9383   hardcode_into_libs=yes
9384   dynamic_linker='GNU ld.so'
9385   ;;
9386
9387 netbsd*)
9388   version_type=sunos
9389   need_lib_prefix=no
9390   need_version=no
9391   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394     dynamic_linker='NetBSD (a.out) ld.so'
9395   else
9396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9397     soname_spec='${libname}${release}${shared_ext}$major'
9398     dynamic_linker='NetBSD ld.elf_so'
9399   fi
9400   shlibpath_var=LD_LIBRARY_PATH
9401   shlibpath_overrides_runpath=yes
9402   hardcode_into_libs=yes
9403   ;;
9404
9405 newsos6)
9406   version_type=linux
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   shlibpath_overrides_runpath=yes
9410   ;;
9411
9412 nto-qnx*)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   shlibpath_overrides_runpath=yes
9420   ;;
9421
9422 openbsd* | bitrig*)
9423   version_type=sunos
9424   sys_lib_dlsearch_path_spec="/usr/lib"
9425   need_lib_prefix=no
9426   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9427   case $host_os in
9428     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9429     *)                         need_version=no  ;;
9430   esac
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9432   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9435     case $host_os in
9436       openbsd2.[89] | openbsd2.[89].*)
9437         shlibpath_overrides_runpath=no
9438         ;;
9439       *)
9440         shlibpath_overrides_runpath=yes
9441         ;;
9442       esac
9443   else
9444     shlibpath_overrides_runpath=yes
9445   fi
9446   ;;
9447
9448 os2*)
9449   libname_spec='$name'
9450   shrext_cmds=".dll"
9451   need_lib_prefix=no
9452   library_names_spec='$libname${shared_ext} $libname.a'
9453   dynamic_linker='OS/2 ld.exe'
9454   shlibpath_var=LIBPATH
9455   ;;
9456
9457 osf3* | osf4* | osf5*)
9458   version_type=osf
9459   need_lib_prefix=no
9460   need_version=no
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9465   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9466   ;;
9467
9468 solaris*)
9469   version_type=linux
9470   need_lib_prefix=no
9471   need_version=no
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473   soname_spec='${libname}${release}${shared_ext}$major'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=yes
9476   hardcode_into_libs=yes
9477   # ldd complains unless libraries are executable
9478   postinstall_cmds='chmod +x $lib'
9479   ;;
9480
9481 sunos4*)
9482   version_type=sunos
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9484   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   shlibpath_overrides_runpath=yes
9487   if test "$with_gnu_ld" = yes; then
9488     need_lib_prefix=no
9489   fi
9490   need_version=yes
9491   ;;
9492
9493 sysv4 | sysv4.3*)
9494   version_type=linux
9495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496   soname_spec='${libname}${release}${shared_ext}$major'
9497   shlibpath_var=LD_LIBRARY_PATH
9498   case $host_vendor in
9499     sni)
9500       shlibpath_overrides_runpath=no
9501       need_lib_prefix=no
9502       export_dynamic_flag_spec='${wl}-Blargedynsym'
9503       runpath_var=LD_RUN_PATH
9504       ;;
9505     siemens)
9506       need_lib_prefix=no
9507       ;;
9508     motorola)
9509       need_lib_prefix=no
9510       need_version=no
9511       shlibpath_overrides_runpath=no
9512       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9513       ;;
9514   esac
9515   ;;
9516
9517 sysv4*MP*)
9518   if test -d /usr/nec ;then
9519     version_type=linux
9520     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9521     soname_spec='$libname${shared_ext}.$major'
9522     shlibpath_var=LD_LIBRARY_PATH
9523   fi
9524   ;;
9525
9526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9527   version_type=freebsd-elf
9528   need_lib_prefix=no
9529   need_version=no
9530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9531   soname_spec='${libname}${release}${shared_ext}$major'
9532   shlibpath_var=LD_LIBRARY_PATH
9533   hardcode_into_libs=yes
9534   if test "$with_gnu_ld" = yes; then
9535     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9536     shlibpath_overrides_runpath=no
9537   else
9538     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9539     shlibpath_overrides_runpath=yes
9540     case $host_os in
9541       sco3.2v5*)
9542         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9543         ;;
9544     esac
9545   fi
9546   sys_lib_dlsearch_path_spec='/usr/lib'
9547   ;;
9548
9549 uts4*)
9550   version_type=linux
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   soname_spec='${libname}${release}${shared_ext}$major'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   ;;
9555
9556 *)
9557   dynamic_linker=no
9558   ;;
9559 esac
9560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9561 echo "${ECHO_T}$dynamic_linker" >&6; }
9562 test "$dynamic_linker" = no && can_build_shared=no
9563
9564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9565 if test "$GCC" = yes; then
9566   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9567 fi
9568
9569
9570 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9571 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9572 if test "${libltdl_cv_shlibext+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575
9576 module=yes
9577 eval libltdl_cv_shlibext=$shrext_cmds
9578
9579 fi
9580 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9581 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9582 if test -n "$libltdl_cv_shlibext"; then
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9586 _ACEOF
9587
9588 fi
9589
9590
9591 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9592 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9593 if test "${libltdl_cv_sys_search_path+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9597 fi
9598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9599 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9600 if test -n "$libltdl_cv_sys_search_path"; then
9601   sys_search_path=
9602   for dir in $libltdl_cv_sys_search_path; do
9603     if test -z "$sys_search_path"; then
9604       sys_search_path="$dir"
9605     else
9606       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9607     fi
9608   done
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9612 _ACEOF
9613
9614 fi
9615
9616 { echo "$as_me:$LINENO: checking for objdir" >&5
9617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9618 if test "${libltdl_cv_objdir+set}" = set; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621   libltdl_cv_objdir="$objdir"
9622   if test -n "$objdir"; then
9623     :
9624   else
9625     rm -f .libs 2>/dev/null
9626     mkdir .libs 2>/dev/null
9627     if test -d .libs; then
9628       libltdl_cv_objdir=.libs
9629     else
9630       # MS-DOS does not allow filenames that begin with a dot.
9631       libltdl_cv_objdir=_libs
9632     fi
9633   rmdir .libs 2>/dev/null
9634   fi
9635
9636 fi
9637 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9638 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9639
9640 cat >>confdefs.h <<_ACEOF
9641 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9642 _ACEOF
9643
9644
9645
9646
9647
9648
9649 # Check for command to grab the raw symbol name followed by C symbol from nm.
9650 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9651 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9652 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655
9656 # These are sane defaults that work on at least a few old systems.
9657 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9658
9659 # Character class describing NM global symbol codes.
9660 symcode='[BCDEGRST]'
9661
9662 # Regexp to match symbols that can be accessed directly from C.
9663 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9664
9665 # Transform an extracted symbol line into a proper C declaration
9666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9667
9668 # Transform an extracted symbol line into symbol name and symbol address
9669 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'"
9670
9671 # Define system-specific variables.
9672 case $host_os in
9673 aix*)
9674   symcode='[BCDT]'
9675   ;;
9676 cygwin* | mingw* | pw32*)
9677   symcode='[ABCDGISTW]'
9678   ;;
9679 hpux*) # Its linker distinguishes data from code symbols
9680   if test "$host_cpu" = ia64; then
9681     symcode='[ABCDEGRST]'
9682   fi
9683   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9684   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'"
9685   ;;
9686 linux*)
9687   if test "$host_cpu" = ia64; then
9688     symcode='[ABCDGIRSTW]'
9689     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9690     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'"
9691   fi
9692   ;;
9693 irix* | nonstopux*)
9694   symcode='[BCDEGRST]'
9695   ;;
9696 osf*)
9697   symcode='[BCDEGQRST]'
9698   ;;
9699 solaris*)
9700   symcode='[BDRT]'
9701   ;;
9702 sco3.2v5*)
9703   symcode='[DT]'
9704   ;;
9705 sysv4.2uw2*)
9706   symcode='[DT]'
9707   ;;
9708 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9709   symcode='[ABDT]'
9710   ;;
9711 sysv4)
9712   symcode='[DFNSTU]'
9713   ;;
9714 esac
9715
9716 # Handle CRLF in mingw tool chain
9717 opt_cr=
9718 case $build_os in
9719 mingw*)
9720   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9721   ;;
9722 esac
9723
9724 # If we're using GNU nm, then use its standard symbol codes.
9725 case `$NM -V 2>&1` in
9726 *GNU* | *'with BFD'*)
9727   symcode='[ABCDGIRSTW]' ;;
9728 esac
9729
9730 # Try without a prefix undercore, then with it.
9731 for ac_symprfx in "" "_"; do
9732
9733   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9734   symxfrm="\\1 $ac_symprfx\\2 \\2"
9735
9736   # Write the raw and C identifiers.
9737   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9738
9739   # Check to see that the pipe works correctly.
9740   pipe_works=no
9741
9742   rm -f conftest*
9743   cat > conftest.$ac_ext <<EOF
9744 #ifdef __cplusplus
9745 extern "C" {
9746 #endif
9747 char nm_test_var;
9748 void nm_test_func(){}
9749 #ifdef __cplusplus
9750 }
9751 #endif
9752 int main(){nm_test_var='a';nm_test_func();return(0);}
9753 EOF
9754
9755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756   (eval $ac_compile) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; then
9760     # Now try to grab the symbols.
9761     nlist=conftest.nm
9762     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9763   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } && test -s "$nlist"; then
9767       # Try sorting and uniquifying the output.
9768       if sort "$nlist" | uniq > "$nlist"T; then
9769         mv -f "$nlist"T "$nlist"
9770       else
9771         rm -f "$nlist"T
9772       fi
9773
9774       # Make sure that we snagged all the symbols we need.
9775       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9776         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9777           cat <<EOF > conftest.$ac_ext
9778 #ifdef __cplusplus
9779 extern "C" {
9780 #endif
9781
9782 EOF
9783           # Now generate the symbol file.
9784           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9785
9786           cat <<EOF >> conftest.$ac_ext
9787 #if defined (__STDC__) && __STDC__
9788 # define lt_ptr_t void *
9789 #else
9790 # define lt_ptr_t char *
9791 # define const
9792 #endif
9793
9794 /* The mapping between symbol names and symbols. */
9795 const struct {
9796   const char *name;
9797   lt_ptr_t address;
9798 }
9799 lt_preloaded_symbols[] =
9800 {
9801 EOF
9802           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9803           cat <<\EOF >> conftest.$ac_ext
9804   {0, (lt_ptr_t) 0}
9805 };
9806
9807 #ifdef __cplusplus
9808 }
9809 #endif
9810 EOF
9811           # Now try linking the two files.
9812           mv conftest.$ac_objext conftstm.$ac_objext
9813           lt_save_LIBS="$LIBS"
9814           lt_save_CFLAGS="$CFLAGS"
9815           LIBS="conftstm.$ac_objext"
9816           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9817           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818   (eval $ac_link) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9822             pipe_works=yes
9823           fi
9824           LIBS="$lt_save_LIBS"
9825           CFLAGS="$lt_save_CFLAGS"
9826         else
9827           echo "cannot find nm_test_func in $nlist" >&5
9828         fi
9829       else
9830         echo "cannot find nm_test_var in $nlist" >&5
9831       fi
9832     else
9833       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9834     fi
9835   else
9836     echo "$progname: failed program was:" >&5
9837     cat conftest.$ac_ext >&5
9838   fi
9839   rm -f conftest* conftst*
9840
9841   # Do not use the global_symbol_pipe unless it works.
9842   if test "$pipe_works" = yes; then
9843     break
9844   else
9845     lt_cv_sys_global_symbol_pipe=
9846   fi
9847 done
9848
9849 fi
9850
9851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9852   lt_cv_sys_global_symbol_to_cdecl=
9853 fi
9854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9855   { echo "$as_me:$LINENO: result: failed" >&5
9856 echo "${ECHO_T}failed" >&6; }
9857 else
9858   { echo "$as_me:$LINENO: result: ok" >&5
9859 echo "${ECHO_T}ok" >&6; }
9860 fi
9861
9862
9863 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9864 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9865 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9869     libltdl_cv_preloaded_symbols=yes
9870   else
9871     libltdl_cv_preloaded_symbols=no
9872   fi
9873
9874 fi
9875 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9876 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9877 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_PRELOADED_SYMBOLS 1
9881 _ACEOF
9882
9883 fi
9884
9885 LIBADD_DL=
9886
9887 ac_ext=c
9888 ac_cpp='$CPP $CPPFLAGS'
9889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9892
9893
9894 { echo "$as_me:$LINENO: checking for shl_load" >&5
9895 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9896 if test "${ac_cv_func_shl_load+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9907 #define shl_load innocuous_shl_load
9908
9909 /* System header to define __stub macros and hopefully few prototypes,
9910     which can conflict with char shl_load (); below.
9911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9912     <limits.h> exists even on freestanding compilers.  */
9913
9914 #ifdef __STDC__
9915 # include <limits.h>
9916 #else
9917 # include <assert.h>
9918 #endif
9919
9920 #undef shl_load
9921
9922 /* Override any GCC internal prototype to avoid an error.
9923    Use char because int might match the return type of a GCC
9924    builtin and then its argument prototype would still apply.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 char shl_load ();
9929 /* The GNU C library defines this for functions which it implements
9930     to always fail with ENOSYS.  Some functions are actually named
9931     something starting with __ and the normal name is an alias.  */
9932 #if defined __stub_shl_load || defined __stub___shl_load
9933 choke me
9934 #endif
9935
9936 int
9937 main ()
9938 {
9939 return shl_load ();
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9946 case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_link") 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959   { (case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_try") 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; } &&
9968          { ac_try='test -s conftest$ac_exeext'
9969   { (case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_try") 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_func_shl_load=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         ac_cv_func_shl_load=no
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 fi
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9990 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9991 if test $ac_cv_func_shl_load = yes; then
9992
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_SHL_LOAD 1
9995 _ACEOF
9996
9997 else
9998   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9999 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003   ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-ldld  $LIBS"
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013    Use char because int might match the return type of a GCC
10014    builtin and then its argument prototype would still apply.  */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char shl_load ();
10019 int
10020 main ()
10021 {
10022 return shl_load ();
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_link") 2>conftest.er1
10035   ac_status=$?
10036   grep -v '^ *+' conftest.er1 >conftest.err
10037   rm -f conftest.er1
10038   cat conftest.err >&5
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042   { (case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_try") 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; } &&
10051          { ac_try='test -s conftest$ac_exeext'
10052   { (case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_try") 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   ac_cv_lib_dld_shl_load=yes
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066         ac_cv_lib_dld_shl_load=no
10067 fi
10068
10069 rm -f core conftest.err conftest.$ac_objext \
10070       conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10072 fi
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10074 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10075 if test $ac_cv_lib_dld_shl_load = yes; then
10076
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_SHL_LOAD 1
10079 _ACEOF
10080
10081         LIBADD_DL="$LIBADD_DL -ldld"
10082 else
10083   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088   ac_check_lib_save_LIBS=$LIBS
10089 LIBS="-ldl  $LIBS"
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096
10097 /* Override any GCC internal prototype to avoid an error.
10098    Use char because int might match the return type of a GCC
10099    builtin and then its argument prototype would still apply.  */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char dlopen ();
10104 int
10105 main ()
10106 {
10107 return dlopen ();
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_link") 2>conftest.er1
10120   ac_status=$?
10121   grep -v '^ *+' conftest.er1 >conftest.err
10122   rm -f conftest.er1
10123   cat conftest.err >&5
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } &&
10126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10127   { (case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_try") 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; } &&
10136          { ac_try='test -s conftest$ac_exeext'
10137   { (case "(($ac_try" in
10138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139   *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142   (eval "$ac_try") 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; }; then
10146   ac_cv_lib_dl_dlopen=yes
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151         ac_cv_lib_dl_dlopen=no
10152 fi
10153
10154 rm -f core conftest.err conftest.$ac_objext \
10155       conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10157 fi
10158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10160 if test $ac_cv_lib_dl_dlopen = yes; then
10161
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_LIBDL 1
10164 _ACEOF
10165
10166                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10167 else
10168   cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h.  */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h.  */
10174 #if HAVE_DLFCN_H
10175 #  include <dlfcn.h>
10176 #endif
10177
10178 int
10179 main ()
10180 {
10181 dlopen(0, 0);
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_link") 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201   { (case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_try") 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; } &&
10210          { ac_try='test -s conftest$ac_exeext'
10211   { (case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216   (eval "$ac_try") 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_LIBDL 1
10223 _ACEOF
10224  libltdl_cv_func_dlopen="yes"
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10230 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-lsvld  $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 /* Override any GCC internal prototype to avoid an error.
10244    Use char because int might match the return type of a GCC
10245    builtin and then its argument prototype would still apply.  */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char dlopen ();
10250 int
10251 main ()
10252 {
10253 return dlopen ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_lib_svld_dlopen=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         ac_cv_lib_svld_dlopen=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext \
10301       conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10303 fi
10304 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10305 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10306 if test $ac_cv_lib_svld_dlopen = yes; then
10307
10308 cat >>confdefs.h <<\_ACEOF
10309 #define HAVE_LIBDL 1
10310 _ACEOF
10311
10312                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10313 else
10314   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10315 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10316 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_check_lib_save_LIBS=$LIBS
10320 LIBS="-ldld  $LIBS"
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327
10328 /* Override any GCC internal prototype to avoid an error.
10329    Use char because int might match the return type of a GCC
10330    builtin and then its argument prototype would still apply.  */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char dld_link ();
10335 int
10336 main ()
10337 {
10338 return dld_link ();
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (ac_try="$ac_link"
10345 case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350   (eval "$ac_link") 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358   { (case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_try") 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest$ac_exeext'
10368   { (case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_try") 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_cv_lib_dld_dld_link=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382         ac_cv_lib_dld_dld_link=no
10383 fi
10384
10385 rm -f core conftest.err conftest.$ac_objext \
10386       conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10388 fi
10389 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10390 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10391 if test $ac_cv_lib_dld_dld_link = yes; then
10392
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_DLD 1
10395 _ACEOF
10396
10397                 LIBADD_DL="$LIBADD_DL -ldld"
10398 else
10399   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10400 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10401 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10412 #define _dyld_func_lookup innocuous__dyld_func_lookup
10413
10414 /* System header to define __stub macros and hopefully few prototypes,
10415     which can conflict with char _dyld_func_lookup (); below.
10416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417     <limits.h> exists even on freestanding compilers.  */
10418
10419 #ifdef __STDC__
10420 # include <limits.h>
10421 #else
10422 # include <assert.h>
10423 #endif
10424
10425 #undef _dyld_func_lookup
10426
10427 /* Override any GCC internal prototype to avoid an error.
10428    Use char because int might match the return type of a GCC
10429    builtin and then its argument prototype would still apply.  */
10430 #ifdef __cplusplus
10431 extern "C"
10432 #endif
10433 char _dyld_func_lookup ();
10434 /* The GNU C library defines this for functions which it implements
10435     to always fail with ENOSYS.  Some functions are actually named
10436     something starting with __ and the normal name is an alias.  */
10437 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10438 choke me
10439 #endif
10440
10441 int
10442 main ()
10443 {
10444 return _dyld_func_lookup ();
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } &&
10463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464   { (case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_try") 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; } &&
10473          { ac_try='test -s conftest$ac_exeext'
10474   { (case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_try") 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_cv_func__dyld_func_lookup=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488         ac_cv_func__dyld_func_lookup=no
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext \
10492       conftest$ac_exeext conftest.$ac_ext
10493 fi
10494 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10495 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10496 if test $ac_cv_func__dyld_func_lookup = yes; then
10497
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_DYLD 1
10500 _ACEOF
10501
10502 fi
10503
10504
10505 fi
10506
10507
10508 fi
10509
10510
10511 fi
10512
10513 rm -f core conftest.err conftest.$ac_objext \
10514       conftest$ac_exeext conftest.$ac_ext
10515
10516 fi
10517
10518
10519 fi
10520
10521
10522 fi
10523
10524
10525 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10526 then
10527   lt_save_LIBS="$LIBS"
10528   LIBS="$LIBS $LIBADD_DL"
10529
10530 for ac_func in dlerror
10531 do
10532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538   cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10546 #define $ac_func innocuous_$ac_func
10547
10548 /* System header to define __stub macros and hopefully few prototypes,
10549     which can conflict with char $ac_func (); below.
10550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551     <limits.h> exists even on freestanding compilers.  */
10552
10553 #ifdef __STDC__
10554 # include <limits.h>
10555 #else
10556 # include <assert.h>
10557 #endif
10558
10559 #undef $ac_func
10560
10561 /* Override any GCC internal prototype to avoid an error.
10562    Use char because int might match the return type of a GCC
10563    builtin and then its argument prototype would still apply.  */
10564 #ifdef __cplusplus
10565 extern "C"
10566 #endif
10567 char $ac_func ();
10568 /* The GNU C library defines this for functions which it implements
10569     to always fail with ENOSYS.  Some functions are actually named
10570     something starting with __ and the normal name is an alias.  */
10571 #if defined __stub_$ac_func || defined __stub___$ac_func
10572 choke me
10573 #endif
10574
10575 int
10576 main ()
10577 {
10578 return $ac_func ();
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587   *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590   (eval "$ac_link") 2>conftest.er1
10591   ac_status=$?
10592   grep -v '^ *+' conftest.er1 >conftest.err
10593   rm -f conftest.er1
10594   cat conftest.err >&5
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } &&
10597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598   { (case "(($ac_try" in
10599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600   *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603   (eval "$ac_try") 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }; } &&
10607          { ac_try='test -s conftest$ac_exeext'
10608   { (case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_try") 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   eval "$as_ac_var=yes"
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622         eval "$as_ac_var=no"
10623 fi
10624
10625 rm -f core conftest.err conftest.$ac_objext \
10626       conftest$ac_exeext conftest.$ac_ext
10627 fi
10628 ac_res=`eval echo '${'$as_ac_var'}'`
10629                { echo "$as_me:$LINENO: result: $ac_res" >&5
10630 echo "${ECHO_T}$ac_res" >&6; }
10631 if test `eval echo '${'$as_ac_var'}'` = yes; then
10632   cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10634 _ACEOF
10635
10636 fi
10637 done
10638
10639   LIBS="$lt_save_LIBS"
10640 fi
10641 ac_ext=c
10642 ac_cpp='$CPP $CPPFLAGS'
10643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10646
10647
10648
10649 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10650 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10651 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   ac_cv_sys_symbol_underscore=no
10655   cat > conftest.$ac_ext <<EOF
10656 void nm_test_func(){}
10657 int main(){nm_test_func;return 0;}
10658 EOF
10659   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660   (eval $ac_compile) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; then
10664     # Now try to grab the symbols.
10665     ac_nlist=conftest.nm
10666     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10667   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } && test -s "$ac_nlist"; then
10671       # See whether the symbols have a leading underscore.
10672       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10673         ac_cv_sys_symbol_underscore=yes
10674       else
10675         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10676           :
10677         else
10678           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10679         fi
10680       fi
10681     else
10682       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10683     fi
10684   else
10685     echo "configure: failed program was:" >&5
10686     cat conftest.c >&5
10687   fi
10688   rm -rf conftest*
10689
10690 fi
10691 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10692 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10693
10694
10695 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10696   if test x"$libltdl_cv_func_dlopen" = xyes ||
10697      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10698         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10699 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10700 if test "${libltdl_cv_need_uscore+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   libltdl_cv_need_uscore=unknown
10704           save_LIBS="$LIBS"
10705           LIBS="$LIBS $LIBADD_DL"
10706           if test "$cross_compiling" = yes; then :
10707   libltdl_cv_need_uscore=cross
10708 else
10709   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10710   lt_status=$lt_dlunknown
10711   cat > conftest.$ac_ext <<EOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10714
10715 #if HAVE_DLFCN_H
10716 #include <dlfcn.h>
10717 #endif
10718
10719 #include <stdio.h>
10720
10721 #ifdef RTLD_GLOBAL
10722 #  define LT_DLGLOBAL           RTLD_GLOBAL
10723 #else
10724 #  ifdef DL_GLOBAL
10725 #    define LT_DLGLOBAL         DL_GLOBAL
10726 #  else
10727 #    define LT_DLGLOBAL         0
10728 #  endif
10729 #endif
10730
10731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10732    find out it does not work in some platform. */
10733 #ifndef LT_DLLAZY_OR_NOW
10734 #  ifdef RTLD_LAZY
10735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10736 #  else
10737 #    ifdef DL_LAZY
10738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10739 #    else
10740 #      ifdef RTLD_NOW
10741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10742 #      else
10743 #        ifdef DL_NOW
10744 #          define LT_DLLAZY_OR_NOW      DL_NOW
10745 #        else
10746 #          define LT_DLLAZY_OR_NOW      0
10747 #        endif
10748 #      endif
10749 #    endif
10750 #  endif
10751 #endif
10752
10753 #ifdef __cplusplus
10754 extern "C" void exit (int);
10755 #endif
10756
10757 void fnord() { int i=42;}
10758 int main ()
10759 {
10760   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10761   int status = $lt_dlunknown;
10762
10763   if (self)
10764     {
10765       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10766       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10767       /* dlclose (self); */
10768     }
10769   else
10770     puts (dlerror ());
10771
10772     exit (status);
10773 }
10774 EOF
10775   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776   (eval $ac_link) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10780     (./conftest; exit; ) >&5 2>/dev/null
10781     lt_status=$?
10782     case x$lt_status in
10783       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10784       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10785       x$lt_dlunknown|x*)  ;;
10786     esac
10787   else :
10788     # compilation failed
10789
10790   fi
10791 fi
10792 rm -fr conftest*
10793
10794           LIBS="$save_LIBS"
10795
10796 fi
10797 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10798 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10799   fi
10800 fi
10801
10802 if test x"$libltdl_cv_need_uscore" = xyes; then
10803
10804 cat >>confdefs.h <<\_ACEOF
10805 #define NEED_USCORE 1
10806 _ACEOF
10807
10808 fi
10809
10810
10811 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10812 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10813 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816   # PORTME does your system automatically load deplibs for dlopen?
10817   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10818   # For now, we just catch OSes we know something about -- in the
10819   # future, we'll try test this programmatically.
10820   libltdl_cv_sys_dlopen_deplibs=unknown
10821   case "$host_os" in
10822   aix3*|aix4.1.*|aix4.2.*)
10823     # Unknown whether this is true for these versions of AIX, but
10824     # we want this `case' here to explicitly catch those versions.
10825     libltdl_cv_sys_dlopen_deplibs=unknown
10826     ;;
10827   aix[45]*)
10828     libltdl_cv_sys_dlopen_deplibs=yes
10829     ;;
10830   darwin*)
10831     # Assuming the user has installed a libdl from somewhere, this is true
10832     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10833     libltdl_cv_sys_dlopen_deplibs=yes
10834     ;;
10835   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10836     # GNU and its variants, using gnu ld.so (Glibc)
10837     libltdl_cv_sys_dlopen_deplibs=yes
10838     ;;
10839   hpux10*|hpux11*)
10840     libltdl_cv_sys_dlopen_deplibs=yes
10841     ;;
10842   interix*)
10843     libltdl_cv_sys_dlopen_deplibs=yes
10844     ;;
10845   irix[12345]*|irix6.[01]*)
10846     # Catch all versions of IRIX before 6.2, and indicate that we don't
10847     # know how it worked for any of those versions.
10848     libltdl_cv_sys_dlopen_deplibs=unknown
10849     ;;
10850   irix*)
10851     # The case above catches anything before 6.2, and it's known that
10852     # at 6.2 and later dlopen does load deplibs.
10853     libltdl_cv_sys_dlopen_deplibs=yes
10854     ;;
10855   netbsd*)
10856     libltdl_cv_sys_dlopen_deplibs=yes
10857     ;;
10858   openbsd*)
10859     libltdl_cv_sys_dlopen_deplibs=yes
10860     ;;
10861   osf[1234]*)
10862     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10863     # it did *not* use an RPATH in a shared library to find objects the
10864     # library depends on, so we explicitly say `no'.
10865     libltdl_cv_sys_dlopen_deplibs=no
10866     ;;
10867   osf5.0|osf5.0a|osf5.1)
10868     # dlopen *does* load deplibs and with the right loader patch applied
10869     # it even uses RPATH in a shared library to search for shared objects
10870     # that the library depends on, but there's no easy way to know if that
10871     # patch is installed.  Since this is the case, all we can really
10872     # say is unknown -- it depends on the patch being installed.  If
10873     # it is, this changes to `yes'.  Without it, it would be `no'.
10874     libltdl_cv_sys_dlopen_deplibs=unknown
10875     ;;
10876   osf*)
10877     # the two cases above should catch all versions of osf <= 5.1.  Read
10878     # the comments above for what we know about them.
10879     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10880     # is used to find them so we can finally say `yes'.
10881     libltdl_cv_sys_dlopen_deplibs=yes
10882     ;;
10883   solaris*)
10884     libltdl_cv_sys_dlopen_deplibs=yes
10885     ;;
10886   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10887     libltdl_cv_sys_dlopen_deplibs=yes
10888     ;;
10889   esac
10890
10891 fi
10892 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10893 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10894 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10895
10896 cat >>confdefs.h <<\_ACEOF
10897 #define LTDL_DLOPEN_DEPLIBS 1
10898 _ACEOF
10899
10900 fi
10901
10902
10903 for ac_header in argz.h
10904 do
10905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 fi
10912 ac_res=`eval echo '${'$as_ac_Header'}'`
10913                { echo "$as_me:$LINENO: result: $ac_res" >&5
10914 echo "${ECHO_T}$ac_res" >&6; }
10915 else
10916   # Is the header compilable?
10917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925 $ac_includes_default
10926 #include <$ac_header>
10927 _ACEOF
10928 rm -f conftest.$ac_objext
10929 if { (ac_try="$ac_compile"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935   (eval "$ac_compile") 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; } &&
10952          { ac_try='test -s conftest.$ac_objext'
10953   { (case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958   (eval "$ac_try") 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962   ac_header_compiler=yes
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967         ac_header_compiler=no
10968 fi
10969
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10972 echo "${ECHO_T}$ac_header_compiler" >&6; }
10973
10974 # Is the header present?
10975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <$ac_header>
10984 _ACEOF
10985 if { (ac_try="$ac_cpp conftest.$ac_ext"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } >/dev/null; then
10998   if test -s conftest.err; then
10999     ac_cpp_err=$ac_c_preproc_warn_flag
11000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11001   else
11002     ac_cpp_err=
11003   fi
11004 else
11005   ac_cpp_err=yes
11006 fi
11007 if test -z "$ac_cpp_err"; then
11008   ac_header_preproc=yes
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013   ac_header_preproc=no
11014 fi
11015
11016 rm -f conftest.err conftest.$ac_ext
11017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11018 echo "${ECHO_T}$ac_header_preproc" >&6; }
11019
11020 # So?  What about this header?
11021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11022   yes:no: )
11023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11027     ac_header_preproc=yes
11028     ;;
11029   no:yes:* )
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11042     ( cat <<\_ASBOX
11043 ## ------------------------------------ ##
11044 ## Report this to http://llvm.org/bugs/ ##
11045 ## ------------------------------------ ##
11046 _ASBOX
11047      ) | sed "s/^/$as_me: WARNING:     /" >&2
11048     ;;
11049 esac
11050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   eval "$as_ac_Header=\$ac_header_preproc"
11056 fi
11057 ac_res=`eval echo '${'$as_ac_Header'}'`
11058                { echo "$as_me:$LINENO: result: $ac_res" >&5
11059 echo "${ECHO_T}$ac_res" >&6; }
11060
11061 fi
11062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11063   cat >>confdefs.h <<_ACEOF
11064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065 _ACEOF
11066
11067 fi
11068
11069 done
11070
11071
11072 { echo "$as_me:$LINENO: checking for error_t" >&5
11073 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11074 if test "${ac_cv_type_error_t+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083 #if HAVE_ARGZ_H
11084 #  include <argz.h>
11085 #endif
11086
11087 typedef error_t ac__type_new_;
11088 int
11089 main ()
11090 {
11091 if ((ac__type_new_ *) 0)
11092   return 0;
11093 if (sizeof (ac__type_new_))
11094   return 0;
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103   *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106   (eval "$ac_compile") 2>conftest.er1
11107   ac_status=$?
11108   grep -v '^ *+' conftest.er1 >conftest.err
11109   rm -f conftest.er1
11110   cat conftest.err >&5
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11114   { (case "(($ac_try" in
11115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116   *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119   (eval "$ac_try") 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); }; } &&
11123          { ac_try='test -s conftest.$ac_objext'
11124   { (case "(($ac_try" in
11125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126   *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129   (eval "$ac_try") 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; }; then
11133   ac_cv_type_error_t=yes
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138         ac_cv_type_error_t=no
11139 fi
11140
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 fi
11143 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11144 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11145 if test $ac_cv_type_error_t = yes; then
11146
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE_ERROR_T 1
11149 _ACEOF
11150
11151
11152 else
11153
11154 cat >>confdefs.h <<\_ACEOF
11155 #define error_t int
11156 _ACEOF
11157
11158 fi
11159
11160
11161
11162
11163
11164
11165
11166 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11167 do
11168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11172   echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174   cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h.  */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h.  */
11180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11182 #define $ac_func innocuous_$ac_func
11183
11184 /* System header to define __stub macros and hopefully few prototypes,
11185     which can conflict with char $ac_func (); below.
11186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11187     <limits.h> exists even on freestanding compilers.  */
11188
11189 #ifdef __STDC__
11190 # include <limits.h>
11191 #else
11192 # include <assert.h>
11193 #endif
11194
11195 #undef $ac_func
11196
11197 /* Override any GCC internal prototype to avoid an error.
11198    Use char because int might match the return type of a GCC
11199    builtin and then its argument prototype would still apply.  */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char $ac_func ();
11204 /* The GNU C library defines this for functions which it implements
11205     to always fail with ENOSYS.  Some functions are actually named
11206     something starting with __ and the normal name is an alias.  */
11207 #if defined __stub_$ac_func || defined __stub___$ac_func
11208 choke me
11209 #endif
11210
11211 int
11212 main ()
11213 {
11214 return $ac_func ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (ac_try="$ac_link"
11221 case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_link") 2>conftest.er1
11227   ac_status=$?
11228   grep -v '^ *+' conftest.er1 >conftest.err
11229   rm -f conftest.er1
11230   cat conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234   { (case "(($ac_try" in
11235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236   *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239   (eval "$ac_try") 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; } &&
11243          { ac_try='test -s conftest$ac_exeext'
11244   { (case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_try") 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   eval "$as_ac_var=yes"
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258         eval "$as_ac_var=no"
11259 fi
11260
11261 rm -f core conftest.err conftest.$ac_objext \
11262       conftest$ac_exeext conftest.$ac_ext
11263 fi
11264 ac_res=`eval echo '${'$as_ac_var'}'`
11265                { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268   cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270 _ACEOF
11271
11272 fi
11273 done
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297 for ac_header in errno.h malloc.h memory.h unistd.h
11298 do
11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 fi
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307                { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11309 else
11310   # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 $ac_includes_default
11320 #include <$ac_header>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326   *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329   (eval "$ac_compile") 2>conftest.er1
11330   ac_status=$?
11331   grep -v '^ *+' conftest.er1 >conftest.err
11332   rm -f conftest.er1
11333   cat conftest.err >&5
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); } &&
11336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11337   { (case "(($ac_try" in
11338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339   *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342   (eval "$ac_try") 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_try") 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }; then
11356   ac_header_compiler=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361         ac_header_compiler=no
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11366 echo "${ECHO_T}$ac_header_compiler" >&6; }
11367
11368 # Is the header present?
11369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377 #include <$ac_header>
11378 _ACEOF
11379 if { (ac_try="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382   *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11386   ac_status=$?
11387   grep -v '^ *+' conftest.er1 >conftest.err
11388   rm -f conftest.er1
11389   cat conftest.err >&5
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } >/dev/null; then
11392   if test -s conftest.err; then
11393     ac_cpp_err=$ac_c_preproc_warn_flag
11394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11395   else
11396     ac_cpp_err=
11397   fi
11398 else
11399   ac_cpp_err=yes
11400 fi
11401 if test -z "$ac_cpp_err"; then
11402   ac_header_preproc=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407   ac_header_preproc=no
11408 fi
11409
11410 rm -f conftest.err conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11412 echo "${ECHO_T}$ac_header_preproc" >&6; }
11413
11414 # So?  What about this header?
11415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11416   yes:no: )
11417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11421     ac_header_preproc=yes
11422     ;;
11423   no:yes:* )
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11436     ( cat <<\_ASBOX
11437 ## ------------------------------------ ##
11438 ## Report this to http://llvm.org/bugs/ ##
11439 ## ------------------------------------ ##
11440 _ASBOX
11441      ) | sed "s/^/$as_me: WARNING:     /" >&2
11442     ;;
11443 esac
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   eval "$as_ac_Header=\$ac_header_preproc"
11450 fi
11451 ac_res=`eval echo '${'$as_ac_Header'}'`
11452                { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11454
11455 fi
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457   cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 _ACEOF
11460
11461 fi
11462
11463 done
11464
11465
11466 for ac_header in mach-o/dyld.h
11467 do
11468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 fi
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476                { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11478 else
11479   # Is the header compilable?
11480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 $ac_includes_default
11489 #include <$ac_header>
11490 _ACEOF
11491 rm -f conftest.$ac_objext
11492 if { (ac_try="$ac_compile"
11493 case "(($ac_try" in
11494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495   *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498   (eval "$ac_compile") 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11506   { (case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_try") 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; } &&
11515          { ac_try='test -s conftest.$ac_objext'
11516   { (case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_try") 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); }; }; then
11525   ac_header_compiler=yes
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530         ac_header_compiler=no
11531 fi
11532
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11536
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11555   ac_status=$?
11556   grep -v '^ *+' conftest.er1 >conftest.err
11557   rm -f conftest.er1
11558   cat conftest.err >&5
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } >/dev/null; then
11561   if test -s conftest.err; then
11562     ac_cpp_err=$ac_c_preproc_warn_flag
11563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11564   else
11565     ac_cpp_err=
11566   fi
11567 else
11568   ac_cpp_err=yes
11569 fi
11570 if test -z "$ac_cpp_err"; then
11571   ac_header_preproc=yes
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576   ac_header_preproc=no
11577 fi
11578
11579 rm -f conftest.err conftest.$ac_ext
11580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581 echo "${ECHO_T}$ac_header_preproc" >&6; }
11582
11583 # So?  What about this header?
11584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585   yes:no: )
11586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11590     ac_header_preproc=yes
11591     ;;
11592   no:yes:* )
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605     ( cat <<\_ASBOX
11606 ## ------------------------------------ ##
11607 ## Report this to http://llvm.org/bugs/ ##
11608 ## ------------------------------------ ##
11609 _ASBOX
11610      ) | sed "s/^/$as_me: WARNING:     /" >&2
11611     ;;
11612 esac
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   eval "$as_ac_Header=\$ac_header_preproc"
11619 fi
11620 ac_res=`eval echo '${'$as_ac_Header'}'`
11621                { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623
11624 fi
11625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11626   cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11628 _ACEOF
11629
11630 fi
11631
11632 done
11633
11634
11635
11636
11637
11638 for ac_func in closedir opendir readdir
11639 do
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11654 #define $ac_func innocuous_$ac_func
11655
11656 /* System header to define __stub macros and hopefully few prototypes,
11657     which can conflict with char $ac_func (); below.
11658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659     <limits.h> exists even on freestanding compilers.  */
11660
11661 #ifdef __STDC__
11662 # include <limits.h>
11663 #else
11664 # include <assert.h>
11665 #endif
11666
11667 #undef $ac_func
11668
11669 /* Override any GCC internal prototype to avoid an error.
11670    Use char because int might match the return type of a GCC
11671    builtin and then its argument prototype would still apply.  */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char $ac_func ();
11676 /* The GNU C library defines this for functions which it implements
11677     to always fail with ENOSYS.  Some functions are actually named
11678     something starting with __ and the normal name is an alias.  */
11679 #if defined __stub_$ac_func || defined __stub___$ac_func
11680 choke me
11681 #endif
11682
11683 int
11684 main ()
11685 {
11686 return $ac_func ();
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (ac_try="$ac_link"
11693 case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698   (eval "$ac_link") 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } &&
11705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706   { (case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_try") 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (case "(($ac_try" in
11717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718   *) ac_try_echo=$ac_try;;
11719 esac
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721   (eval "$ac_try") 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   eval "$as_ac_var=yes"
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         eval "$as_ac_var=no"
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext \
11734       conftest$ac_exeext conftest.$ac_ext
11735 fi
11736 ac_res=`eval echo '${'$as_ac_var'}'`
11737                { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740   cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11743
11744 fi
11745 done
11746
11747
11748
11749 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11750 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11751
11752 ICC=no
11753 IXX=no
11754 case $CC in
11755   icc*|icpc*)
11756     ICC=yes
11757     IXX=yes
11758     ;;
11759    *)
11760     ;;
11761 esac
11762
11763 if test "$GCC" != "yes" && test "$ICC" != "yes"
11764 then
11765   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11766 echo "$as_me: error: gcc|icc required but not found" >&2;}
11767    { (exit 1); exit 1; }; }
11768 fi
11769
11770 if test "$GXX" != "yes" && test "$IXX" != "yes"
11771 then
11772   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11773 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11774    { (exit 1); exit 1; }; }
11775 fi
11776
11777 if test "$GCC" = "yes"
11778 then
11779   cat >conftest.$ac_ext <<_ACEOF
11780
11781   /* confdefs.h.  */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h.  */
11786
11787     #if !defined(__GNUC__) || __GNUC__ < 3
11788     #error Unsupported GCC version
11789     #endif
11790
11791
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_compile") 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808   { (case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_try") 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; } &&
11817          { ac_try='test -s conftest.$ac_objext'
11818   { (case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_try") 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   :
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11833 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11834    { (exit 1); exit 1; }; }
11835 fi
11836
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839
11840 if test -z "$llvm_cv_gnu_make_command"
11841 then
11842   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11843 echo "$as_me: error: GNU Make required but not found" >&2;}
11844    { (exit 1); exit 1; }; }
11845 fi
11846
11847 { echo "$as_me:$LINENO: result: ok" >&5
11848 echo "${ECHO_T}ok" >&6; }
11849
11850 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11851 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11852 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11853
11854 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11855
11856 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11857
11858
11859 NO_UNINITIALIZED=
11860 NO_MAYBE_UNINITIALIZED=
11861 if test "$GXX" = "yes"
11862 then
11863   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11864
11865         if test -z "$NO_MAYBE_UNINITIALIZED"
11866   then
11867     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11868
11869   fi
11870 fi
11871 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11872 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11873
11874
11875 # Check whether --with-python was given.
11876 if test "${with_python+set}" = set; then
11877   withval=$with_python; PYTHON="$withval"
11878 fi
11879
11880
11881 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11882   { echo "$as_me:$LINENO: checking for python" >&5
11883 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11884   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11885 echo "${ECHO_T}user defined: $with_python" >&6; }
11886 else
11887   if test -n "$PYTHON" ; then
11888     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11889 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11890   fi
11891
11892   # Extract the first word of "python python2 python26", so it can be a program name with args.
11893 set dummy python python2 python26; ac_word=$2
11894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11896 if test "${ac_cv_path_PYTHON+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   case $PYTHON in
11900   [\\/]* | ?:[\\/]*)
11901   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11902   ;;
11903   *)
11904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11906 do
11907   IFS=$as_save_IFS
11908   test -z "$as_dir" && as_dir=.
11909   for ac_exec_ext in '' $ac_executable_extensions; do
11910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11911     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11913     break 2
11914   fi
11915 done
11916 done
11917 IFS=$as_save_IFS
11918
11919   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11920 echo "${ECHO_T}not found" >&6; }
11921                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11922 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11923    { (exit 1); exit 1; }; }"
11924   ;;
11925 esac
11926 fi
11927 PYTHON=$ac_cv_path_PYTHON
11928 if test -n "$PYTHON"; then
11929   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11930 echo "${ECHO_T}$PYTHON" >&6; }
11931 else
11932   { echo "$as_me:$LINENO: result: no" >&5
11933 echo "${ECHO_T}no" >&6; }
11934 fi
11935
11936
11937 fi
11938
11939 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11940 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11941 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11942 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11943 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11944 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11945 if test "$ac_python_version_major" -gt "2" || \
11946    (test "$ac_python_version_major" -eq "2" && \
11947     test "$ac_python_version_minor" -ge "5") ; then
11948   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11949 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11950 else
11951   { echo "$as_me:$LINENO: result: not found" >&5
11952 echo "${ECHO_T}not found" >&6; }
11953   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11954 See \`config.log' for more details." >&5
11955 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11956 See \`config.log' for more details." >&2;}
11957    { (exit 1); exit 1; }; }
11958 fi
11959
11960
11961
11962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11964 if test "${ac_cv_lib_m_sin+set}" = set; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967   ac_check_lib_save_LIBS=$LIBS
11968 LIBS="-lm  $LIBS"
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975
11976 /* Override any GCC internal prototype to avoid an error.
11977    Use char because int might match the return type of a GCC
11978    builtin and then its argument prototype would still apply.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char sin ();
11983 int
11984 main ()
11985 {
11986 return sin ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_link") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006   { (case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_try") 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   ac_cv_lib_m_sin=yes
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         ac_cv_lib_m_sin=no
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext \
12034       conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12036 fi
12037 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12038 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12039 if test $ac_cv_lib_m_sin = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define HAVE_LIBM 1
12042 _ACEOF
12043
12044   LIBS="-lm $LIBS"
12045
12046 fi
12047
12048 if test "$llvm_cv_os_type" = "MingW" ; then
12049
12050 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12051 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12052 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-limagehlp  $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063
12064
12065 int
12066 main ()
12067 {
12068 return main ();
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (ac_try="$ac_link"
12075 case "(($ac_try" in
12076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077   *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080   (eval "$ac_link") 2>conftest.er1
12081   ac_status=$?
12082   grep -v '^ *+' conftest.er1 >conftest.err
12083   rm -f conftest.er1
12084   cat conftest.err >&5
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); } &&
12087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088   { (case "(($ac_try" in
12089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090   *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093   (eval "$ac_try") 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; } &&
12097          { ac_try='test -s conftest$ac_exeext'
12098   { (case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103   (eval "$ac_try") 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   ac_cv_lib_imagehlp_main=yes
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112         ac_cv_lib_imagehlp_main=no
12113 fi
12114
12115 rm -f core conftest.err conftest.$ac_objext \
12116       conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12118 fi
12119 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12120 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12121 if test $ac_cv_lib_imagehlp_main = yes; then
12122   cat >>confdefs.h <<_ACEOF
12123 #define HAVE_LIBIMAGEHLP 1
12124 _ACEOF
12125
12126   LIBS="-limagehlp $LIBS"
12127
12128 fi
12129
12130
12131 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12132 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_psapi_main+set}" = set; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136   ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lpsapi  $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h.  */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h.  */
12144
12145
12146 int
12147 main ()
12148 {
12149 return main ();
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169   { (case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_try") 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_try") 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   ac_cv_lib_psapi_main=yes
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193         ac_cv_lib_psapi_main=no
12194 fi
12195
12196 rm -f core conftest.err conftest.$ac_objext \
12197       conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12199 fi
12200 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12201 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12202 if test $ac_cv_lib_psapi_main = yes; then
12203   cat >>confdefs.h <<_ACEOF
12204 #define HAVE_LIBPSAPI 1
12205 _ACEOF
12206
12207   LIBS="-lpsapi $LIBS"
12208
12209 fi
12210
12211
12212 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12213 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12214 if test "${ac_cv_lib_shell32_main+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lshell32  $LIBS"
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h.  */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h.  */
12225
12226
12227 int
12228 main ()
12229 {
12230 return main ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_link") 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250   { (case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_try") 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; } &&
12259          { ac_try='test -s conftest$ac_exeext'
12260   { (case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_try") 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   ac_cv_lib_shell32_main=yes
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274         ac_cv_lib_shell32_main=no
12275 fi
12276
12277 rm -f core conftest.err conftest.$ac_objext \
12278       conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12282 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12283 if test $ac_cv_lib_shell32_main = yes; then
12284   cat >>confdefs.h <<_ACEOF
12285 #define HAVE_LIBSHELL32 1
12286 _ACEOF
12287
12288   LIBS="-lshell32 $LIBS"
12289
12290 fi
12291
12292 fi
12293
12294 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12295 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12296 if test "${ac_cv_search_dlopen+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   ac_func_search_save_LIBS=$LIBS
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308    Use char because int might match the return type of a GCC
12309    builtin and then its argument prototype would still apply.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char dlopen ();
12314 int
12315 main ()
12316 {
12317 return dlopen ();
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 for ac_lib in '' dl; do
12323   if test -z "$ac_lib"; then
12324     ac_res="none required"
12325   else
12326     ac_res=-l$ac_lib
12327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12328   fi
12329   rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_link") 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } &&
12343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12344   { (case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_try") 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; } &&
12353          { ac_try='test -s conftest$ac_exeext'
12354   { (case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_search_dlopen=$ac_res
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368
12369 fi
12370
12371 rm -f core conftest.err conftest.$ac_objext \
12372       conftest$ac_exeext
12373   if test "${ac_cv_search_dlopen+set}" = set; then
12374   break
12375 fi
12376 done
12377 if test "${ac_cv_search_dlopen+set}" = set; then
12378   :
12379 else
12380   ac_cv_search_dlopen=no
12381 fi
12382 rm conftest.$ac_ext
12383 LIBS=$ac_func_search_save_LIBS
12384 fi
12385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12387 ac_res=$ac_cv_search_dlopen
12388 if test "$ac_res" != no; then
12389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12390
12391
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_DLOPEN 1
12394 _ACEOF
12395
12396 HAVE_DLOPEN='1'
12397
12398
12399 else
12400   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12401 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12402 fi
12403
12404
12405 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12406 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12407 if test "${ac_cv_search_clock_gettime+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   ac_func_search_save_LIBS=$LIBS
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419    Use char because int might match the return type of a GCC
12420    builtin and then its argument prototype would still apply.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char clock_gettime ();
12425 int
12426 main ()
12427 {
12428 return clock_gettime ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 for ac_lib in '' rt; do
12434   if test -z "$ac_lib"; then
12435     ac_res="none required"
12436   else
12437     ac_res=-l$ac_lib
12438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12439   fi
12440   rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_link") 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } &&
12454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12464          { ac_try='test -s conftest$ac_exeext'
12465   { (case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_try") 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474   ac_cv_search_clock_gettime=$ac_res
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479
12480 fi
12481
12482 rm -f core conftest.err conftest.$ac_objext \
12483       conftest$ac_exeext
12484   if test "${ac_cv_search_clock_gettime+set}" = set; then
12485   break
12486 fi
12487 done
12488 if test "${ac_cv_search_clock_gettime+set}" = set; then
12489   :
12490 else
12491   ac_cv_search_clock_gettime=no
12492 fi
12493 rm conftest.$ac_ext
12494 LIBS=$ac_func_search_save_LIBS
12495 fi
12496 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12497 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12498 ac_res=$ac_cv_search_clock_gettime
12499 if test "$ac_res" != no; then
12500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12501
12502 fi
12503
12504
12505 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12506     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12507 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12508 if test "${ac_cv_search_setupterm+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   ac_func_search_save_LIBS=$LIBS
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520    Use char because int might match the return type of a GCC
12521    builtin and then its argument prototype would still apply.  */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char setupterm ();
12526 int
12527 main ()
12528 {
12529 return setupterm ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12535   if test -z "$ac_lib"; then
12536     ac_res="none required"
12537   else
12538     ac_res=-l$ac_lib
12539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12540   fi
12541   rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_link") 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } &&
12555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556   { (case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_try") 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_try") 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   ac_cv_search_setupterm=$ac_res
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext \
12584       conftest$ac_exeext
12585   if test "${ac_cv_search_setupterm+set}" = set; then
12586   break
12587 fi
12588 done
12589 if test "${ac_cv_search_setupterm+set}" = set; then
12590   :
12591 else
12592   ac_cv_search_setupterm=no
12593 fi
12594 rm conftest.$ac_ext
12595 LIBS=$ac_func_search_save_LIBS
12596 fi
12597 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12598 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12599 ac_res=$ac_cv_search_setupterm
12600 if test "$ac_res" != no; then
12601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12602
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_TERMINFO 1
12606 _ACEOF
12607
12608 HAVE_TERMINFO='1'
12609
12610
12611 fi
12612
12613 fi
12614
12615 if test "$llvm_cv_enable_libedit" = "yes" ; then
12616   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12617 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12618 if test "${ac_cv_search_el_init+set}" = set; then
12619   echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621   ac_func_search_save_LIBS=$LIBS
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628
12629 /* Override any GCC internal prototype to avoid an error.
12630    Use char because int might match the return type of a GCC
12631    builtin and then its argument prototype would still apply.  */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char el_init ();
12636 int
12637 main ()
12638 {
12639 return el_init ();
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 for ac_lib in '' edit; do
12645   if test -z "$ac_lib"; then
12646     ac_res="none required"
12647   else
12648     ac_res=-l$ac_lib
12649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12650   fi
12651   rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_link") 2>conftest.er1
12659   ac_status=$?
12660   grep -v '^ *+' conftest.er1 >conftest.err
12661   rm -f conftest.er1
12662   cat conftest.err >&5
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); } &&
12665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12666   { (case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_try") 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; } &&
12675          { ac_try='test -s conftest$ac_exeext'
12676   { (case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_try") 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ac_cv_search_el_init=$ac_res
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690
12691 fi
12692
12693 rm -f core conftest.err conftest.$ac_objext \
12694       conftest$ac_exeext
12695   if test "${ac_cv_search_el_init+set}" = set; then
12696   break
12697 fi
12698 done
12699 if test "${ac_cv_search_el_init+set}" = set; then
12700   :
12701 else
12702   ac_cv_search_el_init=no
12703 fi
12704 rm conftest.$ac_ext
12705 LIBS=$ac_func_search_save_LIBS
12706 fi
12707 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12708 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12709 ac_res=$ac_cv_search_el_init
12710 if test "$ac_res" != no; then
12711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12712
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_LIBEDIT 1
12715 _ACEOF
12716
12717 fi
12718
12719 fi
12720
12721 if test "$llvm_cv_enable_libffi" = "yes" ; then
12722   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12723 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12724 if test "${ac_cv_search_ffi_call+set}" = set; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727   ac_func_search_save_LIBS=$LIBS
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h.  */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h.  */
12734
12735 /* Override any GCC internal prototype to avoid an error.
12736    Use char because int might match the return type of a GCC
12737    builtin and then its argument prototype would still apply.  */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 char ffi_call ();
12742 int
12743 main ()
12744 {
12745 return ffi_call ();
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 for ac_lib in '' ffi; do
12751   if test -z "$ac_lib"; then
12752     ac_res="none required"
12753   else
12754     ac_res=-l$ac_lib
12755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12756   fi
12757   rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (ac_try="$ac_link"
12759 case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764   (eval "$ac_link") 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772   { (case "(($ac_try" in
12773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774   *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777   (eval "$ac_try") 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; } &&
12781          { ac_try='test -s conftest$ac_exeext'
12782   { (case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_try") 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; }; then
12791   ac_cv_search_ffi_call=$ac_res
12792 else
12793   echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796
12797 fi
12798
12799 rm -f core conftest.err conftest.$ac_objext \
12800       conftest$ac_exeext
12801   if test "${ac_cv_search_ffi_call+set}" = set; then
12802   break
12803 fi
12804 done
12805 if test "${ac_cv_search_ffi_call+set}" = set; then
12806   :
12807 else
12808   ac_cv_search_ffi_call=no
12809 fi
12810 rm conftest.$ac_ext
12811 LIBS=$ac_func_search_save_LIBS
12812 fi
12813 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12814 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12815 ac_res=$ac_cv_search_ffi_call
12816 if test "$ac_res" != no; then
12817   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12818
12819 cat >>confdefs.h <<\_ACEOF
12820 #define HAVE_FFI_CALL 1
12821 _ACEOF
12822
12823 else
12824   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12825 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12826    { (exit 1); exit 1; }; }
12827 fi
12828
12829 fi
12830
12831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_mallinfo+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char mallinfo ();
12851 int
12852 main ()
12853 {
12854 return mallinfo ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 for ac_lib in '' malloc; do
12860   if test -z "$ac_lib"; then
12861     ac_res="none required"
12862   else
12863     ac_res=-l$ac_lib
12864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12865   fi
12866   rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_link") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } &&
12880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881   { (case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_try") 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest$ac_exeext'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   ac_cv_search_mallinfo=$ac_res
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext \
12909       conftest$ac_exeext
12910   if test "${ac_cv_search_mallinfo+set}" = set; then
12911   break
12912 fi
12913 done
12914 if test "${ac_cv_search_mallinfo+set}" = set; then
12915   :
12916 else
12917   ac_cv_search_mallinfo=no
12918 fi
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12921 fi
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12924 ac_res=$ac_cv_search_mallinfo
12925 if test "$ac_res" != no; then
12926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_MALLINFO 1
12930 _ACEOF
12931
12932 fi
12933
12934
12935 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12936
12937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12940   echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942   ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lpthread  $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952    Use char because int might match the return type of a GCC
12953    builtin and then its argument prototype would still apply.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char pthread_mutex_init ();
12958 int
12959 main ()
12960 {
12961 return pthread_mutex_init ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (ac_try="$ac_link"
12968 case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_link") 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } &&
12980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12981   { (case "(($ac_try" in
12982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983   *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986   (eval "$ac_try") 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } &&
12990          { ac_try='test -s conftest$ac_exeext'
12991   { (case "(($ac_try" in
12992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993   *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996   (eval "$ac_try") 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; }; then
13000   ac_cv_lib_pthread_pthread_mutex_init=yes
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005         ac_cv_lib_pthread_pthread_mutex_init=no
13006 fi
13007
13008 rm -f core conftest.err conftest.$ac_objext \
13009       conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13011 fi
13012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13015   cat >>confdefs.h <<_ACEOF
13016 #define HAVE_LIBPTHREAD 1
13017 _ACEOF
13018
13019   LIBS="-lpthread $LIBS"
13020
13021 fi
13022
13023   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   ac_func_search_save_LIBS=$LIBS
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035
13036 /* Override any GCC internal prototype to avoid an error.
13037    Use char because int might match the return type of a GCC
13038    builtin and then its argument prototype would still apply.  */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 char pthread_mutex_lock ();
13043 int
13044 main ()
13045 {
13046 return pthread_mutex_lock ();
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 for ac_lib in '' pthread; do
13052   if test -z "$ac_lib"; then
13053     ac_res="none required"
13054   else
13055     ac_res=-l$ac_lib
13056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13057   fi
13058   rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_link") 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } &&
13072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13073   { (case "(($ac_try" in
13074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075   *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078   (eval "$ac_try") 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); }; } &&
13082          { ac_try='test -s conftest$ac_exeext'
13083   { (case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088   (eval "$ac_try") 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; }; then
13092   ac_cv_search_pthread_mutex_lock=$ac_res
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097
13098 fi
13099
13100 rm -f core conftest.err conftest.$ac_objext \
13101       conftest$ac_exeext
13102   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13103   break
13104 fi
13105 done
13106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13107   :
13108 else
13109   ac_cv_search_pthread_mutex_lock=no
13110 fi
13111 rm conftest.$ac_ext
13112 LIBS=$ac_func_search_save_LIBS
13113 fi
13114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13116 ac_res=$ac_cv_search_pthread_mutex_lock
13117 if test "$ac_res" != no; then
13118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13119
13120 cat >>confdefs.h <<\_ACEOF
13121 #define HAVE_PTHREAD_MUTEX_LOCK 1
13122 _ACEOF
13123
13124 fi
13125
13126   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   ac_func_search_save_LIBS=$LIBS
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140    Use char because int might match the return type of a GCC
13141    builtin and then its argument prototype would still apply.  */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char pthread_rwlock_init ();
13146 int
13147 main ()
13148 {
13149 return pthread_rwlock_init ();
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 for ac_lib in '' pthread; do
13155   if test -z "$ac_lib"; then
13156     ac_res="none required"
13157   else
13158     ac_res=-l$ac_lib
13159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13160   fi
13161   rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (ac_try="$ac_link"
13163 case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_link") 2>conftest.er1
13169   ac_status=$?
13170   grep -v '^ *+' conftest.er1 >conftest.err
13171   rm -f conftest.er1
13172   cat conftest.err >&5
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } &&
13175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176   { (case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_try") 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; } &&
13185          { ac_try='test -s conftest$ac_exeext'
13186   { (case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_try") 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   ac_cv_search_pthread_rwlock_init=$ac_res
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext \
13204       conftest$ac_exeext
13205   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13206   break
13207 fi
13208 done
13209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13210   :
13211 else
13212   ac_cv_search_pthread_rwlock_init=no
13213 fi
13214 rm conftest.$ac_ext
13215 LIBS=$ac_func_search_save_LIBS
13216 fi
13217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13219 ac_res=$ac_cv_search_pthread_rwlock_init
13220 if test "$ac_res" != no; then
13221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13222
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_PTHREAD_RWLOCK_INIT 1
13225 _ACEOF
13226
13227 fi
13228
13229   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13232   echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234   ac_func_search_save_LIBS=$LIBS
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241
13242 /* Override any GCC internal prototype to avoid an error.
13243    Use char because int might match the return type of a GCC
13244    builtin and then its argument prototype would still apply.  */
13245 #ifdef __cplusplus
13246 extern "C"
13247 #endif
13248 char pthread_getspecific ();
13249 int
13250 main ()
13251 {
13252 return pthread_getspecific ();
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 for ac_lib in '' pthread; do
13258   if test -z "$ac_lib"; then
13259     ac_res="none required"
13260   else
13261     ac_res=-l$ac_lib
13262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13263   fi
13264   rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_link") 2>conftest.er1
13272   ac_status=$?
13273   grep -v '^ *+' conftest.er1 >conftest.err
13274   rm -f conftest.er1
13275   cat conftest.err >&5
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } &&
13278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13279   { (case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284   (eval "$ac_try") 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; } &&
13288          { ac_try='test -s conftest$ac_exeext'
13289   { (case "(($ac_try" in
13290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291   *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294   (eval "$ac_try") 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_cv_search_pthread_getspecific=$ac_res
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303
13304 fi
13305
13306 rm -f core conftest.err conftest.$ac_objext \
13307       conftest$ac_exeext
13308   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13309   break
13310 fi
13311 done
13312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13313   :
13314 else
13315   ac_cv_search_pthread_getspecific=no
13316 fi
13317 rm conftest.$ac_ext
13318 LIBS=$ac_func_search_save_LIBS
13319 fi
13320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13322 ac_res=$ac_cv_search_pthread_getspecific
13323 if test "$ac_res" != no; then
13324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13325
13326 cat >>confdefs.h <<\_ACEOF
13327 #define HAVE_PTHREAD_GETSPECIFIC 1
13328 _ACEOF
13329
13330 fi
13331
13332 fi
13333
13334 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13335
13336 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13337 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13338 if test "${ac_cv_lib_z_compress2+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-lz  $LIBS"
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 /* Override any GCC internal prototype to avoid an error.
13351    Use char because int might match the return type of a GCC
13352    builtin and then its argument prototype would still apply.  */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char compress2 ();
13357 int
13358 main ()
13359 {
13360 return compress2 ();
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_link") 2>conftest.er1
13373   ac_status=$?
13374   grep -v '^ *+' conftest.er1 >conftest.err
13375   rm -f conftest.er1
13376   cat conftest.err >&5
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } &&
13379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_try") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; } &&
13389          { ac_try='test -s conftest$ac_exeext'
13390   { (case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_try") 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   ac_cv_lib_z_compress2=yes
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404         ac_cv_lib_z_compress2=no
13405 fi
13406
13407 rm -f core conftest.err conftest.$ac_objext \
13408       conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13410 fi
13411 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13412 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13413 if test $ac_cv_lib_z_compress2 = yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define HAVE_LIBZ 1
13416 _ACEOF
13417
13418   LIBS="-lz $LIBS"
13419
13420 fi
13421
13422 fi
13423
13424
13425 # Check whether --with-udis86 was given.
13426 if test "${with_udis86+set}" = set; then
13427   withval=$with_udis86;
13428       USE_UDIS86=1
13429
13430       case "$withval" in
13431         /usr/lib|yes) ;;
13432         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13433       esac
13434
13435 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13436 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13437 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440   ac_check_lib_save_LIBS=$LIBS
13441 LIBS="-ludis86  $LIBS"
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448
13449 /* Override any GCC internal prototype to avoid an error.
13450    Use char because int might match the return type of a GCC
13451    builtin and then its argument prototype would still apply.  */
13452 #ifdef __cplusplus
13453 extern "C"
13454 #endif
13455 char ud_init ();
13456 int
13457 main ()
13458 {
13459 return ud_init ();
13460   ;
13461   return 0;
13462 }
13463 _ACEOF
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_link") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479   { (case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484   (eval "$ac_try") 2>&5
13485   ac_status=$?
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); }; } &&
13488          { ac_try='test -s conftest$ac_exeext'
13489   { (case "(($ac_try" in
13490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491   *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494   (eval "$ac_try") 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_cv_lib_udis86_ud_init=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503         ac_cv_lib_udis86_ud_init=no
13504 fi
13505
13506 rm -f core conftest.err conftest.$ac_objext \
13507       conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13509 fi
13510 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13511 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13512 if test $ac_cv_lib_udis86_ud_init = yes; then
13513   cat >>confdefs.h <<_ACEOF
13514 #define HAVE_LIBUDIS86 1
13515 _ACEOF
13516
13517   LIBS="-ludis86 $LIBS"
13518
13519 else
13520
13521         echo "Error! You need to have libudis86 around."
13522         exit -1
13523
13524 fi
13525
13526
13527 else
13528   USE_UDIS86=0
13529
13530 fi
13531
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define USE_UDIS86 $USE_UDIS86
13535 _ACEOF
13536
13537
13538
13539 # Check whether --with-oprofile was given.
13540 if test "${with_oprofile+set}" = set; then
13541   withval=$with_oprofile;
13542       USE_OPROFILE=1
13543
13544       case "$withval" in
13545         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13546         no) llvm_cv_oppath=
13547             USE_OPROFILE=0
13548  ;;
13549         *) llvm_cv_oppath="${withval}/lib/oprofile"
13550            CPPFLAGS="-I${withval}/include";;
13551       esac
13552       case $llvm_cv_os_type in
13553         Linux)
13554           if test -n "$llvm_cv_oppath" ; then
13555             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13556                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13557 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_bfd_init+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570    Use char because int might match the return type of a GCC
13571    builtin and then its argument prototype would still apply.  */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char bfd_init ();
13576 int
13577 main ()
13578 {
13579 return bfd_init ();
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 for ac_lib in '' bfd; do
13585   if test -z "$ac_lib"; then
13586     ac_res="none required"
13587   else
13588     ac_res=-l$ac_lib
13589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13590   fi
13591   rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_link") 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } &&
13605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606   { (case "(($ac_try" in
13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608   *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611   (eval "$ac_try") 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest$ac_exeext'
13616   { (case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_try") 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   ac_cv_search_bfd_init=$ac_res
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630
13631 fi
13632
13633 rm -f core conftest.err conftest.$ac_objext \
13634       conftest$ac_exeext
13635   if test "${ac_cv_search_bfd_init+set}" = set; then
13636   break
13637 fi
13638 done
13639 if test "${ac_cv_search_bfd_init+set}" = set; then
13640   :
13641 else
13642   ac_cv_search_bfd_init=no
13643 fi
13644 rm conftest.$ac_ext
13645 LIBS=$ac_func_search_save_LIBS
13646 fi
13647 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13648 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13649 ac_res=$ac_cv_search_bfd_init
13650 if test "$ac_res" != no; then
13651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13652
13653 fi
13654
13655             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13656 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_op_open_agent+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660   ac_func_search_save_LIBS=$LIBS
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667
13668 /* Override any GCC internal prototype to avoid an error.
13669    Use char because int might match the return type of a GCC
13670    builtin and then its argument prototype would still apply.  */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 char op_open_agent ();
13675 int
13676 main ()
13677 {
13678 return op_open_agent ();
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 for ac_lib in '' opagent; do
13684   if test -z "$ac_lib"; then
13685     ac_res="none required"
13686   else
13687     ac_res=-l$ac_lib
13688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13689   fi
13690   rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697   (eval "$ac_link") 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705   { (case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_try") 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest$ac_exeext'
13715   { (case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_try") 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_cv_search_op_open_agent=$ac_res
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729
13730 fi
13731
13732 rm -f core conftest.err conftest.$ac_objext \
13733       conftest$ac_exeext
13734   if test "${ac_cv_search_op_open_agent+set}" = set; then
13735   break
13736 fi
13737 done
13738 if test "${ac_cv_search_op_open_agent+set}" = set; then
13739   :
13740 else
13741   ac_cv_search_op_open_agent=no
13742 fi
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13745 fi
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13747 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13748 ac_res=$ac_cv_search_op_open_agent
13749 if test "$ac_res" != no; then
13750   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13751
13752 else
13753
13754               echo "Error! You need to have libopagent around."
13755               exit -1
13756
13757 fi
13758
13759             if test "${ac_cv_header_opagent_h+set}" = set; then
13760   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13761 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13762 if test "${ac_cv_header_opagent_h+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 fi
13765 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13766 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13767 else
13768   # Is the header compilable?
13769 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13770 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13771 cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h.  */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h.  */
13777 $ac_includes_default
13778 #include <opagent.h>
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (ac_try="$ac_compile"
13782 case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787   (eval "$ac_compile") 2>conftest.er1
13788   ac_status=$?
13789   grep -v '^ *+' conftest.er1 >conftest.err
13790   rm -f conftest.er1
13791   cat conftest.err >&5
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } &&
13794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13795   { (case "(($ac_try" in
13796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797   *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800   (eval "$ac_try") 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_try") 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_header_compiler=yes
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819         ac_header_compiler=no
13820 fi
13821
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13824 echo "${ECHO_T}$ac_header_compiler" >&6; }
13825
13826 # Is the header present?
13827 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13828 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 #include <opagent.h>
13836 _ACEOF
13837 if { (ac_try="$ac_cpp conftest.$ac_ext"
13838 case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13844   ac_status=$?
13845   grep -v '^ *+' conftest.er1 >conftest.err
13846   rm -f conftest.er1
13847   cat conftest.err >&5
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); } >/dev/null; then
13850   if test -s conftest.err; then
13851     ac_cpp_err=$ac_c_preproc_warn_flag
13852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13853   else
13854     ac_cpp_err=
13855   fi
13856 else
13857   ac_cpp_err=yes
13858 fi
13859 if test -z "$ac_cpp_err"; then
13860   ac_header_preproc=yes
13861 else
13862   echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865   ac_header_preproc=no
13866 fi
13867
13868 rm -f conftest.err conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870 echo "${ECHO_T}$ac_header_preproc" >&6; }
13871
13872 # So?  What about this header?
13873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874   yes:no: )
13875     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13876 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13877     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13878 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13879     ac_header_preproc=yes
13880     ;;
13881   no:yes:* )
13882     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13883 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13884     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13885 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13886     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13887 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13888     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13889 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13890     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13891 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13892     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13893 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13894     ( cat <<\_ASBOX
13895 ## ------------------------------------ ##
13896 ## Report this to http://llvm.org/bugs/ ##
13897 ## ------------------------------------ ##
13898 _ASBOX
13899      ) | sed "s/^/$as_me: WARNING:     /" >&2
13900     ;;
13901 esac
13902 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13903 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13904 if test "${ac_cv_header_opagent_h+set}" = set; then
13905   echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907   ac_cv_header_opagent_h=$ac_header_preproc
13908 fi
13909 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13910 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13911
13912 fi
13913 if test $ac_cv_header_opagent_h = yes; then
13914   :
13915 else
13916
13917               echo "Error! You need to have opagent.h around."
13918               exit -1
13919
13920 fi
13921
13922
13923           fi ;;
13924         *)
13925           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13926 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13927    { (exit 1); exit 1; }; } ;;
13928       esac
13929
13930 else
13931
13932       USE_OPROFILE=0
13933
13934
13935 fi
13936
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define LLVM_USE_OPROFILE $USE_OPROFILE
13940 _ACEOF
13941
13942
13943
13944 # Check whether --with-intel-jitevents was given.
13945 if test "${with_intel_jitevents+set}" = set; then
13946   withval=$with_intel_jitevents;
13947        case "$withval" in
13948           yes) USE_INTEL_JITEVENTS=1
13949 ;;
13950           no)  USE_INTEL_JITEVENTS=0
13951 ;;
13952           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13953 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13954    { (exit 1); exit 1; }; };;
13955        esac
13956
13957       case $llvm_cv_os_type in
13958         Linux|Win32|Cygwin|MingW) ;;
13959         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13960 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13961    { (exit 1); exit 1; }; };;
13962       esac
13963
13964       case "$llvm_cv_target_arch" in
13965         x86|x86_64) ;;
13966         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13967 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13968    { (exit 1); exit 1; }; };;
13969       esac
13970
13971 else
13972
13973       USE_INTEL_JITEVENTS=0
13974
13975
13976 fi
13977
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13981 _ACEOF
13982
13983
13984 for ac_prog in xml2-config
13985 do
13986   # Extract the first word of "$ac_prog", so it can be a program name with args.
13987 set dummy $ac_prog; ac_word=$2
13988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13990 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993   if test -n "$XML2CONFIG"; then
13994   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13995 else
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
13998 do
13999   IFS=$as_save_IFS
14000   test -z "$as_dir" && as_dir=.
14001   for ac_exec_ext in '' $ac_executable_extensions; do
14002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14003     ac_cv_prog_XML2CONFIG="$ac_prog"
14004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14005     break 2
14006   fi
14007 done
14008 done
14009 IFS=$as_save_IFS
14010
14011 fi
14012 fi
14013 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14014 if test -n "$XML2CONFIG"; then
14015   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14016 echo "${ECHO_T}$XML2CONFIG" >&6; }
14017 else
14018   { echo "$as_me:$LINENO: result: no" >&5
14019 echo "${ECHO_T}no" >&6; }
14020 fi
14021
14022
14023   test -n "$XML2CONFIG" && break
14024 done
14025
14026
14027 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14028 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14029 if test "x$XML2CONFIG" = "x"; then
14030  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14031 echo "${ECHO_T}xml2-config not found" >&6; }
14032 else
14033  LIBXML2_INC=`$XML2CONFIG --cflags`
14034  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14035 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14036  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14037 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14038 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lxml2  $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049
14050 /* Override any GCC internal prototype to avoid an error.
14051    Use char because int might match the return type of a GCC
14052    builtin and then its argument prototype would still apply.  */
14053 #ifdef __cplusplus
14054 extern "C"
14055 #endif
14056 char xmlReadFile ();
14057 int
14058 main ()
14059 {
14060 return xmlReadFile ();
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (ac_try="$ac_link"
14067 case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_link") 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14080   { (case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_try") 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; } &&
14089          { ac_try='test -s conftest$ac_exeext'
14090   { (case "(($ac_try" in
14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092   *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095   (eval "$ac_try") 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; }; then
14099   ac_cv_lib_xml2_xmlReadFile=yes
14100 else
14101   echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14103
14104         ac_cv_lib_xml2_xmlReadFile=no
14105 fi
14106
14107 rm -f core conftest.err conftest.$ac_objext \
14108       conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14110 fi
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14112 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14113 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define CLANG_HAVE_LIBXML 1
14117 _ACEOF
14118
14119                                 LIBXML2_LIBS="-lxml2"
14120 fi
14121
14122 fi
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132 ac_header_dirent=no
14133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14134   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14135 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146 #include <sys/types.h>
14147 #include <$ac_hdr>
14148
14149 int
14150 main ()
14151 {
14152 if ((DIR *) 0)
14153 return 0;
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165   (eval "$ac_compile") 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } &&
14172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173   { (case "(($ac_try" in
14174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175   *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178   (eval "$ac_try") 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; } &&
14182          { ac_try='test -s conftest.$ac_objext'
14183   { (case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_try") 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   eval "$as_ac_Header=yes"
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197         eval "$as_ac_Header=no"
14198 fi
14199
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 fi
14202 ac_res=`eval echo '${'$as_ac_Header'}'`
14203                { echo "$as_me:$LINENO: result: $ac_res" >&5
14204 echo "${ECHO_T}$ac_res" >&6; }
14205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14206   cat >>confdefs.h <<_ACEOF
14207 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14208 _ACEOF
14209
14210 ac_header_dirent=$ac_hdr; break
14211 fi
14212
14213 done
14214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14215 if test $ac_header_dirent = dirent.h; then
14216   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14218 if test "${ac_cv_search_opendir+set}" = set; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221   ac_func_search_save_LIBS=$LIBS
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228
14229 /* Override any GCC internal prototype to avoid an error.
14230    Use char because int might match the return type of a GCC
14231    builtin and then its argument prototype would still apply.  */
14232 #ifdef __cplusplus
14233 extern "C"
14234 #endif
14235 char opendir ();
14236 int
14237 main ()
14238 {
14239 return opendir ();
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 for ac_lib in '' dir; do
14245   if test -z "$ac_lib"; then
14246     ac_res="none required"
14247   else
14248     ac_res=-l$ac_lib
14249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14250   fi
14251   rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (ac_try="$ac_link"
14253 case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258   (eval "$ac_link") 2>conftest.er1
14259   ac_status=$?
14260   grep -v '^ *+' conftest.er1 >conftest.err
14261   rm -f conftest.er1
14262   cat conftest.err >&5
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } &&
14265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14266   { (case "(($ac_try" in
14267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268   *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271   (eval "$ac_try") 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; } &&
14275          { ac_try='test -s conftest$ac_exeext'
14276   { (case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_try") 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   ac_cv_search_opendir=$ac_res
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290
14291 fi
14292
14293 rm -f core conftest.err conftest.$ac_objext \
14294       conftest$ac_exeext
14295   if test "${ac_cv_search_opendir+set}" = set; then
14296   break
14297 fi
14298 done
14299 if test "${ac_cv_search_opendir+set}" = set; then
14300   :
14301 else
14302   ac_cv_search_opendir=no
14303 fi
14304 rm conftest.$ac_ext
14305 LIBS=$ac_func_search_save_LIBS
14306 fi
14307 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14308 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14309 ac_res=$ac_cv_search_opendir
14310 if test "$ac_res" != no; then
14311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14312
14313 fi
14314
14315 else
14316   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14317 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14318 if test "${ac_cv_search_opendir+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   ac_func_search_save_LIBS=$LIBS
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h.  */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h.  */
14328
14329 /* Override any GCC internal prototype to avoid an error.
14330    Use char because int might match the return type of a GCC
14331    builtin and then its argument prototype would still apply.  */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 char opendir ();
14336 int
14337 main ()
14338 {
14339 return opendir ();
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 for ac_lib in '' x; do
14345   if test -z "$ac_lib"; then
14346     ac_res="none required"
14347   else
14348     ac_res=-l$ac_lib
14349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14350   fi
14351   rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_link") 2>conftest.er1
14359   ac_status=$?
14360   grep -v '^ *+' conftest.er1 >conftest.err
14361   rm -f conftest.er1
14362   cat conftest.err >&5
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14366   { (case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_try") 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; } &&
14375          { ac_try='test -s conftest$ac_exeext'
14376   { (case "(($ac_try" in
14377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378   *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381   (eval "$ac_try") 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   ac_cv_search_opendir=$ac_res
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390
14391 fi
14392
14393 rm -f core conftest.err conftest.$ac_objext \
14394       conftest$ac_exeext
14395   if test "${ac_cv_search_opendir+set}" = set; then
14396   break
14397 fi
14398 done
14399 if test "${ac_cv_search_opendir+set}" = set; then
14400   :
14401 else
14402   ac_cv_search_opendir=no
14403 fi
14404 rm conftest.$ac_ext
14405 LIBS=$ac_func_search_save_LIBS
14406 fi
14407 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14408 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14409 ac_res=$ac_cv_search_opendir
14410 if test "$ac_res" != no; then
14411   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14412
14413 fi
14414
14415 fi
14416
14417 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14418 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14419 if test "${ac_cv_header_mmap_anon+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422    ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428   cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 #include <sys/mman.h>
14435 #include <unistd.h>
14436 #include <fcntl.h>
14437 int
14438 main ()
14439 {
14440 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 rm -f conftest.$ac_objext
14446 if { (ac_try="$ac_compile"
14447 case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_compile") 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } &&
14459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14460   { (case "(($ac_try" in
14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462   *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465   (eval "$ac_try") 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; } &&
14469          { ac_try='test -s conftest.$ac_objext'
14470   { (case "(($ac_try" in
14471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472   *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475   (eval "$ac_try") 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   ac_cv_header_mmap_anon=yes
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484         ac_cv_header_mmap_anon=no
14485 fi
14486
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488   ac_ext=c
14489 ac_cpp='$CPP $CPPFLAGS'
14490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14493
14494
14495 fi
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14497 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14498 if test "$ac_cv_header_mmap_anon" = yes; then
14499
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_MMAP_ANONYMOUS 1
14502 _ACEOF
14503
14504 fi
14505
14506 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14507 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14508 if test "${ac_cv_header_stat_broken+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 #include <sys/types.h>
14518 #include <sys/stat.h>
14519
14520 #if defined S_ISBLK && defined S_IFDIR
14521 # if S_ISBLK (S_IFDIR)
14522 You lose.
14523 # endif
14524 #endif
14525
14526 #if defined S_ISBLK && defined S_IFCHR
14527 # if S_ISBLK (S_IFCHR)
14528 You lose.
14529 # endif
14530 #endif
14531
14532 #if defined S_ISLNK && defined S_IFREG
14533 # if S_ISLNK (S_IFREG)
14534 You lose.
14535 # endif
14536 #endif
14537
14538 #if defined S_ISSOCK && defined S_IFREG
14539 # if S_ISSOCK (S_IFREG)
14540 You lose.
14541 # endif
14542 #endif
14543
14544 _ACEOF
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546   $EGREP "You lose" >/dev/null 2>&1; then
14547   ac_cv_header_stat_broken=yes
14548 else
14549   ac_cv_header_stat_broken=no
14550 fi
14551 rm -f conftest*
14552
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14556 if test $ac_cv_header_stat_broken = yes; then
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define STAT_MACROS_BROKEN 1
14560 _ACEOF
14561
14562 fi
14563
14564 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 #include <sys/types.h>
14576 #include <sys/wait.h>
14577 #ifndef WEXITSTATUS
14578 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14579 #endif
14580 #ifndef WIFEXITED
14581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14582 #endif
14583
14584 int
14585 main ()
14586 {
14587   int s;
14588   wait (&s);
14589   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14590   ;
14591   return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609   { (case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_try") 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; } &&
14618          { ac_try='test -s conftest.$ac_objext'
14619   { (case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_try") 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_cv_header_sys_wait_h=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         ac_cv_header_sys_wait_h=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 fi
14638 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14639 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14640 if test $ac_cv_header_sys_wait_h = yes; then
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_SYS_WAIT_H 1
14644 _ACEOF
14645
14646 fi
14647
14648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14650 if test "${ac_cv_header_time+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653   cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 #include <sys/types.h>
14660 #include <sys/time.h>
14661 #include <time.h>
14662
14663 int
14664 main ()
14665 {
14666 if ((struct tm *) 0)
14667 return 0;
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest.$ac_objext
14673 if { (ac_try="$ac_compile"
14674 case "(($ac_try" in
14675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676   *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679   (eval "$ac_compile") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } &&
14686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14687   { (case "(($ac_try" in
14688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689   *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692   (eval "$ac_try") 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; } &&
14696          { ac_try='test -s conftest.$ac_objext'
14697   { (case "(($ac_try" in
14698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699   *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702   (eval "$ac_try") 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_cv_header_time=yes
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711         ac_cv_header_time=no
14712 fi
14713
14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715 fi
14716 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14717 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14718 if test $ac_cv_header_time = yes; then
14719
14720 cat >>confdefs.h <<\_ACEOF
14721 #define TIME_WITH_SYS_TIME 1
14722 _ACEOF
14723
14724 fi
14725
14726
14727 ac_ext=cpp
14728 ac_cpp='$CXXCPP $CPPFLAGS'
14729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14732
14733 ac_ext=cpp
14734 ac_cpp='$CXXCPP $CPPFLAGS'
14735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14738 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14739 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14740 if test -z "$CXXCPP"; then
14741   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744       # Double quotes because CXXCPP needs to be expanded
14745     for CXXCPP in "$CXX -E" "/lib/cpp"
14746     do
14747       ac_preproc_ok=false
14748 for ac_cxx_preproc_warn_flag in '' yes
14749 do
14750   # Use a header file that comes with gcc, so configuring glibc
14751   # with a fresh cross-compiler works.
14752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14753   # <limits.h> exists even on freestanding compilers.
14754   # On the NeXT, cc -E runs the code through the compiler's parser,
14755   # not just through cpp. "Syntax error" is here to catch this case.
14756   cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h.  */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h.  */
14762 #ifdef __STDC__
14763 # include <limits.h>
14764 #else
14765 # include <assert.h>
14766 #endif
14767                      Syntax error
14768 _ACEOF
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14776   ac_status=$?
14777   grep -v '^ *+' conftest.er1 >conftest.err
14778   rm -f conftest.er1
14779   cat conftest.err >&5
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } >/dev/null; then
14782   if test -s conftest.err; then
14783     ac_cpp_err=$ac_cxx_preproc_warn_flag
14784     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14785   else
14786     ac_cpp_err=
14787   fi
14788 else
14789   ac_cpp_err=yes
14790 fi
14791 if test -z "$ac_cpp_err"; then
14792   :
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797   # Broken: fails on valid input.
14798 continue
14799 fi
14800
14801 rm -f conftest.err conftest.$ac_ext
14802
14803   # OK, works on sane cases.  Now check whether nonexistent headers
14804   # can be detected and how.
14805   cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 #include <ac_nonexistent.h>
14812 _ACEOF
14813 if { (ac_try="$ac_cpp conftest.$ac_ext"
14814 case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } >/dev/null; then
14826   if test -s conftest.err; then
14827     ac_cpp_err=$ac_cxx_preproc_warn_flag
14828     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14829   else
14830     ac_cpp_err=
14831   fi
14832 else
14833   ac_cpp_err=yes
14834 fi
14835 if test -z "$ac_cpp_err"; then
14836   # Broken: success on invalid input.
14837 continue
14838 else
14839   echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842   # Passes both tests.
14843 ac_preproc_ok=:
14844 break
14845 fi
14846
14847 rm -f conftest.err conftest.$ac_ext
14848
14849 done
14850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14851 rm -f conftest.err conftest.$ac_ext
14852 if $ac_preproc_ok; then
14853   break
14854 fi
14855
14856     done
14857     ac_cv_prog_CXXCPP=$CXXCPP
14858
14859 fi
14860   CXXCPP=$ac_cv_prog_CXXCPP
14861 else
14862   ac_cv_prog_CXXCPP=$CXXCPP
14863 fi
14864 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14865 echo "${ECHO_T}$CXXCPP" >&6; }
14866 ac_preproc_ok=false
14867 for ac_cxx_preproc_warn_flag in '' yes
14868 do
14869   # Use a header file that comes with gcc, so configuring glibc
14870   # with a fresh cross-compiler works.
14871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872   # <limits.h> exists even on freestanding compilers.
14873   # On the NeXT, cc -E runs the code through the compiler's parser,
14874   # not just through cpp. "Syntax error" is here to catch this case.
14875   cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h.  */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h.  */
14881 #ifdef __STDC__
14882 # include <limits.h>
14883 #else
14884 # include <assert.h>
14885 #endif
14886                      Syntax error
14887 _ACEOF
14888 if { (ac_try="$ac_cpp conftest.$ac_ext"
14889 case "(($ac_try" in
14890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891   *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14895   ac_status=$?
14896   grep -v '^ *+' conftest.er1 >conftest.err
14897   rm -f conftest.er1
14898   cat conftest.err >&5
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); } >/dev/null; then
14901   if test -s conftest.err; then
14902     ac_cpp_err=$ac_cxx_preproc_warn_flag
14903     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14904   else
14905     ac_cpp_err=
14906   fi
14907 else
14908   ac_cpp_err=yes
14909 fi
14910 if test -z "$ac_cpp_err"; then
14911   :
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916   # Broken: fails on valid input.
14917 continue
14918 fi
14919
14920 rm -f conftest.err conftest.$ac_ext
14921
14922   # OK, works on sane cases.  Now check whether nonexistent headers
14923   # can be detected and how.
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 #include <ac_nonexistent.h>
14931 _ACEOF
14932 if { (ac_try="$ac_cpp conftest.$ac_ext"
14933 case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } >/dev/null; then
14945   if test -s conftest.err; then
14946     ac_cpp_err=$ac_cxx_preproc_warn_flag
14947     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14948   else
14949     ac_cpp_err=
14950   fi
14951 else
14952   ac_cpp_err=yes
14953 fi
14954 if test -z "$ac_cpp_err"; then
14955   # Broken: success on invalid input.
14956 continue
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961   # Passes both tests.
14962 ac_preproc_ok=:
14963 break
14964 fi
14965
14966 rm -f conftest.err conftest.$ac_ext
14967
14968 done
14969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14970 rm -f conftest.err conftest.$ac_ext
14971 if $ac_preproc_ok; then
14972   :
14973 else
14974   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14975 See \`config.log' for more details." >&5
14976 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14977 See \`config.log' for more details." >&2;}
14978    { (exit 1); exit 1; }; }
14979 fi
14980
14981 ac_ext=cpp
14982 ac_cpp='$CXXCPP $CPPFLAGS'
14983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14986
14987
14988
14989 for ac_header in cxxabi.h
14990 do
14991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 fi
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999                { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001 else
15002   # Is the header compilable?
15003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011 $ac_includes_default
15012 #include <$ac_header>
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (ac_try="$ac_compile"
15016 case "(($ac_try" in
15017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018   *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021   (eval "$ac_compile") 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15029   { (case "(($ac_try" in
15030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031   *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034   (eval "$ac_try") 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; } &&
15038          { ac_try='test -s conftest.$ac_objext'
15039   { (case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_try") 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; }; then
15048   ac_header_compiler=yes
15049 else
15050   echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053         ac_header_compiler=no
15054 fi
15055
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15058 echo "${ECHO_T}$ac_header_compiler" >&6; }
15059
15060 # Is the header present?
15061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15063 cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069 #include <$ac_header>
15070 _ACEOF
15071 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15084   if test -s conftest.err; then
15085     ac_cpp_err=$ac_cxx_preproc_warn_flag
15086     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15087   else
15088     ac_cpp_err=
15089   fi
15090 else
15091   ac_cpp_err=yes
15092 fi
15093 if test -z "$ac_cpp_err"; then
15094   ac_header_preproc=yes
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099   ac_header_preproc=no
15100 fi
15101
15102 rm -f conftest.err conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15104 echo "${ECHO_T}$ac_header_preproc" >&6; }
15105
15106 # So?  What about this header?
15107 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15108   yes:no: )
15109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15113     ac_header_preproc=yes
15114     ;;
15115   no:yes:* )
15116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15128     ( cat <<\_ASBOX
15129 ## ------------------------------------ ##
15130 ## Report this to http://llvm.org/bugs/ ##
15131 ## ------------------------------------ ##
15132 _ASBOX
15133      ) | sed "s/^/$as_me: WARNING:     /" >&2
15134     ;;
15135 esac
15136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139   echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141   eval "$as_ac_Header=\$ac_header_preproc"
15142 fi
15143 ac_res=`eval echo '${'$as_ac_Header'}'`
15144                { echo "$as_me:$LINENO: result: $ac_res" >&5
15145 echo "${ECHO_T}$ac_res" >&6; }
15146
15147 fi
15148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15149   cat >>confdefs.h <<_ACEOF
15150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15151 _ACEOF
15152
15153 fi
15154
15155 done
15156
15157 ac_ext=c
15158 ac_cpp='$CPP $CPPFLAGS'
15159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15162
15163
15164
15165
15166
15167
15168 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15169 do
15170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 fi
15177 ac_res=`eval echo '${'$as_ac_Header'}'`
15178                { echo "$as_me:$LINENO: result: $ac_res" >&5
15179 echo "${ECHO_T}$ac_res" >&6; }
15180 else
15181   # Is the header compilable?
15182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h.  */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h.  */
15190 $ac_includes_default
15191 #include <$ac_header>
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200   (eval "$ac_compile") 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } &&
15207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15208   { (case "(($ac_try" in
15209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210   *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213   (eval "$ac_try") 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; } &&
15217          { ac_try='test -s conftest.$ac_objext'
15218   { (case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_try") 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; }; then
15227   ac_header_compiler=yes
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232         ac_header_compiler=no
15233 fi
15234
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15237 echo "${ECHO_T}$ac_header_compiler" >&6; }
15238
15239 # Is the header present?
15240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <$ac_header>
15249 _ACEOF
15250 if { (ac_try="$ac_cpp conftest.$ac_ext"
15251 case "(($ac_try" in
15252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253   *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15257   ac_status=$?
15258   grep -v '^ *+' conftest.er1 >conftest.err
15259   rm -f conftest.er1
15260   cat conftest.err >&5
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } >/dev/null; then
15263   if test -s conftest.err; then
15264     ac_cpp_err=$ac_c_preproc_warn_flag
15265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15266   else
15267     ac_cpp_err=
15268   fi
15269 else
15270   ac_cpp_err=yes
15271 fi
15272 if test -z "$ac_cpp_err"; then
15273   ac_header_preproc=yes
15274 else
15275   echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278   ac_header_preproc=no
15279 fi
15280
15281 rm -f conftest.err conftest.$ac_ext
15282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15283 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284
15285 # So?  What about this header?
15286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287   yes:no: )
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15292     ac_header_preproc=yes
15293     ;;
15294   no:yes:* )
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15307     ( cat <<\_ASBOX
15308 ## ------------------------------------ ##
15309 ## Report this to http://llvm.org/bugs/ ##
15310 ## ------------------------------------ ##
15311 _ASBOX
15312      ) | sed "s/^/$as_me: WARNING:     /" >&2
15313     ;;
15314 esac
15315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15318   echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320   eval "$as_ac_Header=\$ac_header_preproc"
15321 fi
15322 ac_res=`eval echo '${'$as_ac_Header'}'`
15323                { echo "$as_me:$LINENO: result: $ac_res" >&5
15324 echo "${ECHO_T}$ac_res" >&6; }
15325
15326 fi
15327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15328   cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15330 _ACEOF
15331
15332 fi
15333
15334 done
15335
15336
15337
15338
15339
15340
15341
15342 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15343 do
15344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 fi
15351 ac_res=`eval echo '${'$as_ac_Header'}'`
15352                { echo "$as_me:$LINENO: result: $ac_res" >&5
15353 echo "${ECHO_T}$ac_res" >&6; }
15354 else
15355   # Is the header compilable?
15356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364 $ac_includes_default
15365 #include <$ac_header>
15366 _ACEOF
15367 rm -f conftest.$ac_objext
15368 if { (ac_try="$ac_compile"
15369 case "(($ac_try" in
15370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371   *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374   (eval "$ac_compile") 2>conftest.er1
15375   ac_status=$?
15376   grep -v '^ *+' conftest.er1 >conftest.err
15377   rm -f conftest.er1
15378   cat conftest.err >&5
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } &&
15381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15382   { (case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_try") 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; } &&
15391          { ac_try='test -s conftest.$ac_objext'
15392   { (case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_try") 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; }; then
15401   ac_header_compiler=yes
15402 else
15403   echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406         ac_header_compiler=no
15407 fi
15408
15409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15411 echo "${ECHO_T}$ac_header_compiler" >&6; }
15412
15413 # Is the header present?
15414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15416 cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h.  */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h.  */
15422 #include <$ac_header>
15423 _ACEOF
15424 if { (ac_try="$ac_cpp conftest.$ac_ext"
15425 case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } >/dev/null; then
15437   if test -s conftest.err; then
15438     ac_cpp_err=$ac_c_preproc_warn_flag
15439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15440   else
15441     ac_cpp_err=
15442   fi
15443 else
15444   ac_cpp_err=yes
15445 fi
15446 if test -z "$ac_cpp_err"; then
15447   ac_header_preproc=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452   ac_header_preproc=no
15453 fi
15454
15455 rm -f conftest.err conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 echo "${ECHO_T}$ac_header_preproc" >&6; }
15458
15459 # So?  What about this header?
15460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15461   yes:no: )
15462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15466     ac_header_preproc=yes
15467     ;;
15468   no:yes:* )
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15481     ( cat <<\_ASBOX
15482 ## ------------------------------------ ##
15483 ## Report this to http://llvm.org/bugs/ ##
15484 ## ------------------------------------ ##
15485 _ASBOX
15486      ) | sed "s/^/$as_me: WARNING:     /" >&2
15487     ;;
15488 esac
15489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   eval "$as_ac_Header=\$ac_header_preproc"
15495 fi
15496 ac_res=`eval echo '${'$as_ac_Header'}'`
15497                { echo "$as_me:$LINENO: result: $ac_res" >&5
15498 echo "${ECHO_T}$ac_res" >&6; }
15499
15500 fi
15501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15502   cat >>confdefs.h <<_ACEOF
15503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15504 _ACEOF
15505
15506 fi
15507
15508 done
15509
15510
15511 for ac_header in utime.h
15512 do
15513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 fi
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521                { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15523 else
15524   # Is the header compilable?
15525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h.  */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h.  */
15533 $ac_includes_default
15534 #include <$ac_header>
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_compile") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551   { (case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_try") 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; } &&
15560          { ac_try='test -s conftest.$ac_objext'
15561   { (case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_try") 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   ac_header_compiler=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_header_compiler=no
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15580 echo "${ECHO_T}$ac_header_compiler" >&6; }
15581
15582 # Is the header present?
15583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591 #include <$ac_header>
15592 _ACEOF
15593 if { (ac_try="$ac_cpp conftest.$ac_ext"
15594 case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } >/dev/null; then
15606   if test -s conftest.err; then
15607     ac_cpp_err=$ac_c_preproc_warn_flag
15608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15609   else
15610     ac_cpp_err=
15611   fi
15612 else
15613   ac_cpp_err=yes
15614 fi
15615 if test -z "$ac_cpp_err"; then
15616   ac_header_preproc=yes
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621   ac_header_preproc=no
15622 fi
15623
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15627
15628 # So?  What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630   yes:no: )
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635     ac_header_preproc=yes
15636     ;;
15637   no:yes:* )
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15650     ( cat <<\_ASBOX
15651 ## ------------------------------------ ##
15652 ## Report this to http://llvm.org/bugs/ ##
15653 ## ------------------------------------ ##
15654 _ASBOX
15655      ) | sed "s/^/$as_me: WARNING:     /" >&2
15656     ;;
15657 esac
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   eval "$as_ac_Header=\$ac_header_preproc"
15664 fi
15665 ac_res=`eval echo '${'$as_ac_Header'}'`
15666                { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15668
15669 fi
15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671   cat >>confdefs.h <<_ACEOF
15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673 _ACEOF
15674
15675 fi
15676
15677 done
15678
15679
15680
15681
15682
15683
15684 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15685 do
15686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15688   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15691   echo $ECHO_N "(cached) $ECHO_C" >&6
15692 fi
15693 ac_res=`eval echo '${'$as_ac_Header'}'`
15694                { echo "$as_me:$LINENO: result: $ac_res" >&5
15695 echo "${ECHO_T}$ac_res" >&6; }
15696 else
15697   # Is the header compilable?
15698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 $ac_includes_default
15707 #include <$ac_header>
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (ac_try="$ac_compile"
15711 case "(($ac_try" in
15712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713   *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716   (eval "$ac_compile") 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15724   { (case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_try") 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest.$ac_objext'
15734   { (case "(($ac_try" in
15735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736   *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739   (eval "$ac_try") 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743   ac_header_compiler=yes
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748         ac_header_compiler=no
15749 fi
15750
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15753 echo "${ECHO_T}$ac_header_compiler" >&6; }
15754
15755 # Is the header present?
15756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h.  */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h.  */
15764 #include <$ac_header>
15765 _ACEOF
15766 if { (ac_try="$ac_cpp conftest.$ac_ext"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } >/dev/null; then
15779   if test -s conftest.err; then
15780     ac_cpp_err=$ac_c_preproc_warn_flag
15781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15782   else
15783     ac_cpp_err=
15784   fi
15785 else
15786   ac_cpp_err=yes
15787 fi
15788 if test -z "$ac_cpp_err"; then
15789   ac_header_preproc=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794   ac_header_preproc=no
15795 fi
15796
15797 rm -f conftest.err conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6; }
15800
15801 # So?  What about this header?
15802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15803   yes:no: )
15804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15808     ac_header_preproc=yes
15809     ;;
15810   no:yes:* )
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15823     ( cat <<\_ASBOX
15824 ## ------------------------------------ ##
15825 ## Report this to http://llvm.org/bugs/ ##
15826 ## ------------------------------------ ##
15827 _ASBOX
15828      ) | sed "s/^/$as_me: WARNING:     /" >&2
15829     ;;
15830 esac
15831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   eval "$as_ac_Header=\$ac_header_preproc"
15837 fi
15838 ac_res=`eval echo '${'$as_ac_Header'}'`
15839                { echo "$as_me:$LINENO: result: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15841
15842 fi
15843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15844   cat >>confdefs.h <<_ACEOF
15845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15846 _ACEOF
15847
15848 fi
15849
15850 done
15851
15852
15853
15854
15855 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15856 do
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 fi
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865                { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867 else
15868   # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h.  */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h.  */
15877 $ac_includes_default
15878 #include <$ac_header>
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884   *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887   (eval "$ac_compile") 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895   { (case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900   (eval "$ac_try") 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_try") 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; }; then
15914   ac_header_compiler=yes
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15918
15919         ac_header_compiler=no
15920 fi
15921
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15925
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 #include <$ac_header>
15936 _ACEOF
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } >/dev/null; then
15950   if test -s conftest.err; then
15951     ac_cpp_err=$ac_c_preproc_warn_flag
15952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953   else
15954     ac_cpp_err=
15955   fi
15956 else
15957   ac_cpp_err=yes
15958 fi
15959 if test -z "$ac_cpp_err"; then
15960   ac_header_preproc=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965   ac_header_preproc=no
15966 fi
15967
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15971
15972 # So?  What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15974   yes:no: )
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979     ac_header_preproc=yes
15980     ;;
15981   no:yes:* )
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15994     ( cat <<\_ASBOX
15995 ## ------------------------------------ ##
15996 ## Report this to http://llvm.org/bugs/ ##
15997 ## ------------------------------------ ##
15998 _ASBOX
15999      ) | sed "s/^/$as_me: WARNING:     /" >&2
16000     ;;
16001 esac
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005   echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007   eval "$as_ac_Header=\$ac_header_preproc"
16008 fi
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010                { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16012
16013 fi
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015   cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 _ACEOF
16018
16019 fi
16020
16021 done
16022
16023
16024 for ac_header in valgrind/valgrind.h
16025 do
16026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 fi
16033 ac_res=`eval echo '${'$as_ac_Header'}'`
16034                { echo "$as_me:$LINENO: result: $ac_res" >&5
16035 echo "${ECHO_T}$ac_res" >&6; }
16036 else
16037   # Is the header compilable?
16038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046 $ac_includes_default
16047 #include <$ac_header>
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_compile") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064   { (case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_try") 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest.$ac_objext'
16074   { (case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079   (eval "$ac_try") 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_header_compiler=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088         ac_header_compiler=no
16089 fi
16090
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16093 echo "${ECHO_T}$ac_header_compiler" >&6; }
16094
16095 # Is the header present?
16096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 #include <$ac_header>
16105 _ACEOF
16106 if { (ac_try="$ac_cpp conftest.$ac_ext"
16107 case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } >/dev/null; then
16119   if test -s conftest.err; then
16120     ac_cpp_err=$ac_c_preproc_warn_flag
16121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16122   else
16123     ac_cpp_err=
16124   fi
16125 else
16126   ac_cpp_err=yes
16127 fi
16128 if test -z "$ac_cpp_err"; then
16129   ac_header_preproc=yes
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134   ac_header_preproc=no
16135 fi
16136
16137 rm -f conftest.err conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16139 echo "${ECHO_T}$ac_header_preproc" >&6; }
16140
16141 # So?  What about this header?
16142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16143   yes:no: )
16144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16148     ac_header_preproc=yes
16149     ;;
16150   no:yes:* )
16151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16163     ( cat <<\_ASBOX
16164 ## ------------------------------------ ##
16165 ## Report this to http://llvm.org/bugs/ ##
16166 ## ------------------------------------ ##
16167 _ASBOX
16168      ) | sed "s/^/$as_me: WARNING:     /" >&2
16169     ;;
16170 esac
16171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16174   echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176   eval "$as_ac_Header=\$ac_header_preproc"
16177 fi
16178 ac_res=`eval echo '${'$as_ac_Header'}'`
16179                { echo "$as_me:$LINENO: result: $ac_res" >&5
16180 echo "${ECHO_T}$ac_res" >&6; }
16181
16182 fi
16183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16184   cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16186 _ACEOF
16187
16188 fi
16189
16190 done
16191
16192
16193 for ac_header in fenv.h
16194 do
16195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 fi
16202 ac_res=`eval echo '${'$as_ac_Header'}'`
16203                { echo "$as_me:$LINENO: result: $ac_res" >&5
16204 echo "${ECHO_T}$ac_res" >&6; }
16205 else
16206   # Is the header compilable?
16207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16209 cat >conftest.$ac_ext <<_ACEOF
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215 $ac_includes_default
16216 #include <$ac_header>
16217 _ACEOF
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225   (eval "$ac_compile") 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233   { (case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_try") 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; } &&
16242          { ac_try='test -s conftest.$ac_objext'
16243   { (case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_try") 2>&5
16249   ac_status=$?
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); }; }; then
16252   ac_header_compiler=yes
16253 else
16254   echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257         ac_header_compiler=no
16258 fi
16259
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16262 echo "${ECHO_T}$ac_header_compiler" >&6; }
16263
16264 # Is the header present?
16265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h.  */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h.  */
16273 #include <$ac_header>
16274 _ACEOF
16275 if { (ac_try="$ac_cpp conftest.$ac_ext"
16276 case "(($ac_try" in
16277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278   *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16282   ac_status=$?
16283   grep -v '^ *+' conftest.er1 >conftest.err
16284   rm -f conftest.er1
16285   cat conftest.err >&5
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } >/dev/null; then
16288   if test -s conftest.err; then
16289     ac_cpp_err=$ac_c_preproc_warn_flag
16290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16291   else
16292     ac_cpp_err=
16293   fi
16294 else
16295   ac_cpp_err=yes
16296 fi
16297 if test -z "$ac_cpp_err"; then
16298   ac_header_preproc=yes
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303   ac_header_preproc=no
16304 fi
16305
16306 rm -f conftest.err conftest.$ac_ext
16307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16308 echo "${ECHO_T}$ac_header_preproc" >&6; }
16309
16310 # So?  What about this header?
16311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16312   yes:no: )
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16317     ac_header_preproc=yes
16318     ;;
16319   no:yes:* )
16320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16332     ( cat <<\_ASBOX
16333 ## ------------------------------------ ##
16334 ## Report this to http://llvm.org/bugs/ ##
16335 ## ------------------------------------ ##
16336 _ASBOX
16337      ) | sed "s/^/$as_me: WARNING:     /" >&2
16338     ;;
16339 esac
16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345   eval "$as_ac_Header=\$ac_header_preproc"
16346 fi
16347 ac_res=`eval echo '${'$as_ac_Header'}'`
16348                { echo "$as_me:$LINENO: result: $ac_res" >&5
16349 echo "${ECHO_T}$ac_res" >&6; }
16350
16351 fi
16352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16353   cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16355 _ACEOF
16356
16357 fi
16358
16359 done
16360
16361 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16362 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16363 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372 #include <fenv.h>
16373
16374 int
16375 main ()
16376 {
16377 #ifndef FE_ALL_EXCEPT
16378   char *p = (char *) FE_ALL_EXCEPT;
16379   return !p;
16380 #endif
16381
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393   (eval "$ac_compile") 2>conftest.er1
16394   ac_status=$?
16395   grep -v '^ *+' conftest.er1 >conftest.err
16396   rm -f conftest.er1
16397   cat conftest.err >&5
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } &&
16400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401   { (case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_try") 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; } &&
16410          { ac_try='test -s conftest.$ac_objext'
16411   { (case "(($ac_try" in
16412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413   *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416   (eval "$ac_try") 2>&5
16417   ac_status=$?
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); }; }; then
16420   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16421 else
16422   echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425         ac_cv_have_decl_FE_ALL_EXCEPT=no
16426 fi
16427
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16429 fi
16430 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16431 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16432 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16433
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_DECL_FE_ALL_EXCEPT 1
16436 _ACEOF
16437
16438
16439 else
16440   cat >>confdefs.h <<_ACEOF
16441 #define HAVE_DECL_FE_ALL_EXCEPT 0
16442 _ACEOF
16443
16444
16445 fi
16446 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16447 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16448 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16449   echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451   cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 #include <fenv.h>
16458
16459 int
16460 main ()
16461 {
16462 #ifndef FE_INEXACT
16463   char *p = (char *) FE_INEXACT;
16464   return !p;
16465 #endif
16466
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext
16472 if { (ac_try="$ac_compile"
16473 case "(($ac_try" in
16474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475   *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478   (eval "$ac_compile") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } &&
16485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486   { (case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_try") 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (case "(($ac_try" in
16497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498   *) ac_try_echo=$ac_try;;
16499 esac
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501   (eval "$ac_try") 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   ac_cv_have_decl_FE_INEXACT=yes
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510         ac_cv_have_decl_FE_INEXACT=no
16511 fi
16512
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 fi
16515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16516 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16517 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16518
16519 cat >>confdefs.h <<_ACEOF
16520 #define HAVE_DECL_FE_INEXACT 1
16521 _ACEOF
16522
16523
16524 else
16525   cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DECL_FE_INEXACT 0
16527 _ACEOF
16528
16529
16530 fi
16531
16532
16533 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16534
16535 for ac_header in pthread.h
16536 do
16537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 fi
16544 ac_res=`eval echo '${'$as_ac_Header'}'`
16545                { echo "$as_me:$LINENO: result: $ac_res" >&5
16546 echo "${ECHO_T}$ac_res" >&6; }
16547 else
16548   # Is the header compilable?
16549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557 $ac_includes_default
16558 #include <$ac_header>
16559 _ACEOF
16560 rm -f conftest.$ac_objext
16561 if { (ac_try="$ac_compile"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_compile") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575   { (case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_try") 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; } &&
16584          { ac_try='test -s conftest.$ac_objext'
16585   { (case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_try") 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; }; then
16594   ac_header_compiler=yes
16595 else
16596   echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599         ac_header_compiler=no
16600 fi
16601
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16604 echo "${ECHO_T}$ac_header_compiler" >&6; }
16605
16606 # Is the header present?
16607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 #include <$ac_header>
16616 _ACEOF
16617 if { (ac_try="$ac_cpp conftest.$ac_ext"
16618 case "(($ac_try" in
16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620   *) ac_try_echo=$ac_try;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16624   ac_status=$?
16625   grep -v '^ *+' conftest.er1 >conftest.err
16626   rm -f conftest.er1
16627   cat conftest.err >&5
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); } >/dev/null; then
16630   if test -s conftest.err; then
16631     ac_cpp_err=$ac_c_preproc_warn_flag
16632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16633   else
16634     ac_cpp_err=
16635   fi
16636 else
16637   ac_cpp_err=yes
16638 fi
16639 if test -z "$ac_cpp_err"; then
16640   ac_header_preproc=yes
16641 else
16642   echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645   ac_header_preproc=no
16646 fi
16647
16648 rm -f conftest.err conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16650 echo "${ECHO_T}$ac_header_preproc" >&6; }
16651
16652 # So?  What about this header?
16653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16654   yes:no: )
16655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16659     ac_header_preproc=yes
16660     ;;
16661   no:yes:* )
16662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16674     ( cat <<\_ASBOX
16675 ## ------------------------------------ ##
16676 ## Report this to http://llvm.org/bugs/ ##
16677 ## ------------------------------------ ##
16678 _ASBOX
16679      ) | sed "s/^/$as_me: WARNING:     /" >&2
16680     ;;
16681 esac
16682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   eval "$as_ac_Header=\$ac_header_preproc"
16688 fi
16689 ac_res=`eval echo '${'$as_ac_Header'}'`
16690                { echo "$as_me:$LINENO: result: $ac_res" >&5
16691 echo "${ECHO_T}$ac_res" >&6; }
16692
16693 fi
16694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16695   cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16697 _ACEOF
16698  HAVE_PTHREAD=1
16699
16700 else
16701   HAVE_PTHREAD=0
16702
16703 fi
16704
16705 done
16706
16707 else
16708   HAVE_PTHREAD=0
16709
16710 fi
16711 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16712
16713 for ac_header in zlib.h
16714 do
16715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16720   echo $ECHO_N "(cached) $ECHO_C" >&6
16721 fi
16722 ac_res=`eval echo '${'$as_ac_Header'}'`
16723                { echo "$as_me:$LINENO: result: $ac_res" >&5
16724 echo "${ECHO_T}$ac_res" >&6; }
16725 else
16726   # Is the header compilable?
16727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 $ac_includes_default
16736 #include <$ac_header>
16737 _ACEOF
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745   (eval "$ac_compile") 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753   { (case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_try") 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; } &&
16762          { ac_try='test -s conftest.$ac_objext'
16763   { (case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_try") 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); }; }; then
16772   ac_header_compiler=yes
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777         ac_header_compiler=no
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16782 echo "${ECHO_T}$ac_header_compiler" >&6; }
16783
16784 # Is the header present?
16785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h.  */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h.  */
16793 #include <$ac_header>
16794 _ACEOF
16795 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16808   if test -s conftest.err; then
16809     ac_cpp_err=$ac_c_preproc_warn_flag
16810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16811   else
16812     ac_cpp_err=
16813   fi
16814 else
16815   ac_cpp_err=yes
16816 fi
16817 if test -z "$ac_cpp_err"; then
16818   ac_header_preproc=yes
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823   ac_header_preproc=no
16824 fi
16825
16826 rm -f conftest.err conftest.$ac_ext
16827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16828 echo "${ECHO_T}$ac_header_preproc" >&6; }
16829
16830 # So?  What about this header?
16831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16832   yes:no: )
16833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16837     ac_header_preproc=yes
16838     ;;
16839   no:yes:* )
16840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16852     ( cat <<\_ASBOX
16853 ## ------------------------------------ ##
16854 ## Report this to http://llvm.org/bugs/ ##
16855 ## ------------------------------------ ##
16856 _ASBOX
16857      ) | sed "s/^/$as_me: WARNING:     /" >&2
16858     ;;
16859 esac
16860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   eval "$as_ac_Header=\$ac_header_preproc"
16866 fi
16867 ac_res=`eval echo '${'$as_ac_Header'}'`
16868                { echo "$as_me:$LINENO: result: $ac_res" >&5
16869 echo "${ECHO_T}$ac_res" >&6; }
16870
16871 fi
16872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16873   cat >>confdefs.h <<_ACEOF
16874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16875 _ACEOF
16876  HAVE_LIBZ=1
16877
16878 else
16879   HAVE_LIBZ=0
16880
16881 fi
16882
16883 done
16884
16885 else
16886   HAVE_LIBZ=0
16887
16888 fi
16889
16890 if test "$llvm_cv_enable_libffi" = "yes" ; then
16891
16892
16893 for ac_header in ffi.h ffi/ffi.h
16894 do
16895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 fi
16902 ac_res=`eval echo '${'$as_ac_Header'}'`
16903                { echo "$as_me:$LINENO: result: $ac_res" >&5
16904 echo "${ECHO_T}$ac_res" >&6; }
16905 else
16906   # Is the header compilable?
16907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915 $ac_includes_default
16916 #include <$ac_header>
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (ac_try="$ac_compile"
16920 case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_compile") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } &&
16932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933   { (case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_try") 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest.$ac_objext'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_header_compiler=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957         ac_header_compiler=no
16958 fi
16959
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16962 echo "${ECHO_T}$ac_header_compiler" >&6; }
16963
16964 # Is the header present?
16965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973 #include <$ac_header>
16974 _ACEOF
16975 if { (ac_try="$ac_cpp conftest.$ac_ext"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } >/dev/null; then
16988   if test -s conftest.err; then
16989     ac_cpp_err=$ac_c_preproc_warn_flag
16990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16991   else
16992     ac_cpp_err=
16993   fi
16994 else
16995   ac_cpp_err=yes
16996 fi
16997 if test -z "$ac_cpp_err"; then
16998   ac_header_preproc=yes
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003   ac_header_preproc=no
17004 fi
17005
17006 rm -f conftest.err conftest.$ac_ext
17007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17008 echo "${ECHO_T}$ac_header_preproc" >&6; }
17009
17010 # So?  What about this header?
17011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17012   yes:no: )
17013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17017     ac_header_preproc=yes
17018     ;;
17019   no:yes:* )
17020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17032     ( cat <<\_ASBOX
17033 ## ------------------------------------ ##
17034 ## Report this to http://llvm.org/bugs/ ##
17035 ## ------------------------------------ ##
17036 _ASBOX
17037      ) | sed "s/^/$as_me: WARNING:     /" >&2
17038     ;;
17039 esac
17040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   eval "$as_ac_Header=\$ac_header_preproc"
17046 fi
17047 ac_res=`eval echo '${'$as_ac_Header'}'`
17048                { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050
17051 fi
17052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17053   cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17055 _ACEOF
17056
17057 fi
17058
17059 done
17060
17061 fi
17062
17063
17064 for ac_header in CrashReporterClient.h
17065 do
17066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17068   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 fi
17073 ac_res=`eval echo '${'$as_ac_Header'}'`
17074                { echo "$as_me:$LINENO: result: $ac_res" >&5
17075 echo "${ECHO_T}$ac_res" >&6; }
17076 else
17077   # Is the header compilable?
17078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086 $ac_includes_default
17087 #include <$ac_header>
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (ac_try="$ac_compile"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_compile") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } &&
17103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104   { (case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_try") 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; } &&
17113          { ac_try='test -s conftest.$ac_objext'
17114   { (case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_try") 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; }; then
17123   ac_header_compiler=yes
17124 else
17125   echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17127
17128         ac_header_compiler=no
17129 fi
17130
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17133 echo "${ECHO_T}$ac_header_compiler" >&6; }
17134
17135 # Is the header present?
17136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144 #include <$ac_header>
17145 _ACEOF
17146 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
17153   ac_status=$?
17154   grep -v '^ *+' conftest.er1 >conftest.err
17155   rm -f conftest.er1
17156   cat conftest.err >&5
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } >/dev/null; then
17159   if test -s conftest.err; then
17160     ac_cpp_err=$ac_c_preproc_warn_flag
17161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17162   else
17163     ac_cpp_err=
17164   fi
17165 else
17166   ac_cpp_err=yes
17167 fi
17168 if test -z "$ac_cpp_err"; then
17169   ac_header_preproc=yes
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174   ac_header_preproc=no
17175 fi
17176
17177 rm -f conftest.err conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17179 echo "${ECHO_T}$ac_header_preproc" >&6; }
17180
17181 # So?  What about this header?
17182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17183   yes:no: )
17184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17188     ac_header_preproc=yes
17189     ;;
17190   no:yes:* )
17191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17203     ( cat <<\_ASBOX
17204 ## ------------------------------------ ##
17205 ## Report this to http://llvm.org/bugs/ ##
17206 ## ------------------------------------ ##
17207 _ASBOX
17208      ) | sed "s/^/$as_me: WARNING:     /" >&2
17209     ;;
17210 esac
17211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17214   echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216   eval "$as_ac_Header=\$ac_header_preproc"
17217 fi
17218 ac_res=`eval echo '${'$as_ac_Header'}'`
17219                { echo "$as_me:$LINENO: result: $ac_res" >&5
17220 echo "${ECHO_T}$ac_res" >&6; }
17221
17222 fi
17223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17224   cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17226 _ACEOF
17227
17228 fi
17229
17230 done
17231
17232
17233 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17234 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17235 cat >conftest.$ac_ext <<_ACEOF
17236
17237   /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242
17243     extern const char *__crashreporter_info__;
17244     int main() {
17245       __crashreporter_info__ = "test";
17246       return 0;
17247     }
17248
17249
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_link") 2>conftest.er1
17259   ac_status=$?
17260   grep -v '^ *+' conftest.er1 >conftest.err
17261   rm -f conftest.er1
17262   cat conftest.err >&5
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); } &&
17265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266   { (case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_try") 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_try") 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; }; then
17285
17286   { echo "$as_me:$LINENO: result: yes" >&5
17287 echo "${ECHO_T}yes" >&6; }
17288
17289 cat >>confdefs.h <<\_ACEOF
17290 #define HAVE_CRASHREPORTER_INFO 1
17291 _ACEOF
17292
17293
17294 else
17295   echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298
17299   { echo "$as_me:$LINENO: result: no" >&5
17300 echo "${ECHO_T}no" >&6; }
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_CRASHREPORTER_INFO 0
17304 _ACEOF
17305
17306
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext \
17310       conftest$ac_exeext conftest.$ac_ext
17311
17312
17313
17314   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17315 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17316 if test "${ac_cv_huge_val_sanity+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319
17320     ac_ext=cpp
17321 ac_cpp='$CXXCPP $CPPFLAGS'
17322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17325
17326     ac_save_CXXFLAGS=$CXXFLAGS
17327     CXXFLAGS="$CXXFLAGS -pedantic"
17328     if test "$cross_compiling" = yes; then
17329   ac_cv_huge_val_sanity=yes
17330 else
17331   cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h.  */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h.  */
17337 #include <math.h>
17338 int
17339 main ()
17340 {
17341 double x = HUGE_VAL; return x != x;
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353   (eval "$ac_link") 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17357   { (case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_try") 2>&5
17363   ac_status=$?
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); }; }; then
17366   ac_cv_huge_val_sanity=yes
17367 else
17368   echo "$as_me: program exited with status $ac_status" >&5
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ( exit $ac_status )
17373 ac_cv_huge_val_sanity=no
17374 fi
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17376 fi
17377
17378
17379     CXXFLAGS=$ac_save_CXXFLAGS
17380     ac_ext=c
17381 ac_cpp='$CPP $CPPFLAGS'
17382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17385
17386
17387 fi
17388 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17389 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17390   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17391
17392
17393 { echo "$as_me:$LINENO: checking for pid_t" >&5
17394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17395 if test "${ac_cv_type_pid_t+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 $ac_includes_default
17405 typedef pid_t ac__type_new_;
17406 int
17407 main ()
17408 {
17409 if ((ac__type_new_ *) 0)
17410   return 0;
17411 if (sizeof (ac__type_new_))
17412   return 0;
17413   ;
17414   return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_compile") 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432   { (case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_try") 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; } &&
17441          { ac_try='test -s conftest.$ac_objext'
17442   { (case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447   (eval "$ac_try") 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451   ac_cv_type_pid_t=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         ac_cv_type_pid_t=no
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17462 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17463 if test $ac_cv_type_pid_t = yes; then
17464   :
17465 else
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define pid_t int
17469 _ACEOF
17470
17471 fi
17472
17473 { echo "$as_me:$LINENO: checking for size_t" >&5
17474 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17475 if test "${ac_cv_type_size_t+set}" = set; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478   cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 $ac_includes_default
17485 typedef size_t ac__type_new_;
17486 int
17487 main ()
17488 {
17489 if ((ac__type_new_ *) 0)
17490   return 0;
17491 if (sizeof (ac__type_new_))
17492   return 0;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (ac_try="$ac_compile"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_compile") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; } &&
17521          { ac_try='test -s conftest.$ac_objext'
17522   { (case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_try") 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   ac_cv_type_size_t=yes
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536         ac_cv_type_size_t=no
17537 fi
17538
17539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17540 fi
17541 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17542 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17543 if test $ac_cv_type_size_t = yes; then
17544   :
17545 else
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define size_t unsigned int
17549 _ACEOF
17550
17551 fi
17552
17553
17554 cat >>confdefs.h <<_ACEOF
17555 #define RETSIGTYPE void
17556 _ACEOF
17557
17558 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17559 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17560 if test "${ac_cv_struct_tm+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569 #include <sys/types.h>
17570 #include <time.h>
17571
17572 int
17573 main ()
17574 {
17575 struct tm *tp; tp->tm_sec;
17576   ;
17577   return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest.$ac_objext
17581 if { (ac_try="$ac_compile"
17582 case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_compile") 2>conftest.er1
17588   ac_status=$?
17589   grep -v '^ *+' conftest.er1 >conftest.err
17590   rm -f conftest.er1
17591   cat conftest.err >&5
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); } &&
17594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595   { (case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_try") 2>&5
17601   ac_status=$?
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); }; } &&
17604          { ac_try='test -s conftest.$ac_objext'
17605   { (case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610   (eval "$ac_try") 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ac_cv_struct_tm=time.h
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619         ac_cv_struct_tm=sys/time.h
17620 fi
17621
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 fi
17624 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17625 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17626 if test $ac_cv_struct_tm = sys/time.h; then
17627
17628 cat >>confdefs.h <<\_ACEOF
17629 #define TM_IN_SYS_TIME 1
17630 _ACEOF
17631
17632 fi
17633
17634 { echo "$as_me:$LINENO: checking for int64_t" >&5
17635 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17636 if test "${ac_cv_type_int64_t+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 $ac_includes_default
17646 typedef int64_t ac__type_new_;
17647 int
17648 main ()
17649 {
17650 if ((ac__type_new_ *) 0)
17651   return 0;
17652 if (sizeof (ac__type_new_))
17653   return 0;
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext
17659 if { (ac_try="$ac_compile"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_compile") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } &&
17672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; } &&
17682          { ac_try='test -s conftest.$ac_objext'
17683   { (case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688   (eval "$ac_try") 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   ac_cv_type_int64_t=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697         ac_cv_type_int64_t=no
17698 fi
17699
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 fi
17702 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17703 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17704 if test $ac_cv_type_int64_t = yes; then
17705
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_INT64_T 1
17708 _ACEOF
17709
17710
17711 else
17712   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17713 echo "$as_me: error: Type int64_t required but not found" >&2;}
17714    { (exit 1); exit 1; }; }
17715 fi
17716
17717 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17718 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17719 if test "${ac_cv_type_uint64_t+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728 $ac_includes_default
17729 typedef uint64_t ac__type_new_;
17730 int
17731 main ()
17732 {
17733 if ((ac__type_new_ *) 0)
17734   return 0;
17735 if (sizeof (ac__type_new_))
17736   return 0;
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_compile") 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } &&
17765          { ac_try='test -s conftest.$ac_objext'
17766   { (case "(($ac_try" in
17767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768   *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771   (eval "$ac_try") 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; }; then
17775   ac_cv_type_uint64_t=yes
17776 else
17777   echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780         ac_cv_type_uint64_t=no
17781 fi
17782
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 fi
17785 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17786 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17787 if test $ac_cv_type_uint64_t = yes; then
17788
17789 cat >>confdefs.h <<_ACEOF
17790 #define HAVE_UINT64_T 1
17791 _ACEOF
17792
17793
17794 else
17795   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17796 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17797 if test "${ac_cv_type_u_int64_t+set}" = set; then
17798   echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800   cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h.  */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h.  */
17806 $ac_includes_default
17807 typedef u_int64_t ac__type_new_;
17808 int
17809 main ()
17810 {
17811 if ((ac__type_new_ *) 0)
17812   return 0;
17813 if (sizeof (ac__type_new_))
17814   return 0;
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826   (eval "$ac_compile") 2>conftest.er1
17827   ac_status=$?
17828   grep -v '^ *+' conftest.er1 >conftest.err
17829   rm -f conftest.er1
17830   cat conftest.err >&5
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } &&
17833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17834   { (case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_try") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; } &&
17843          { ac_try='test -s conftest.$ac_objext'
17844   { (case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_try") 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; }; then
17853   ac_cv_type_u_int64_t=yes
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858         ac_cv_type_u_int64_t=no
17859 fi
17860
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 fi
17863 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17864 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17865 if test $ac_cv_type_u_int64_t = yes; then
17866
17867 cat >>confdefs.h <<_ACEOF
17868 #define HAVE_U_INT64_T 1
17869 _ACEOF
17870
17871
17872 else
17873   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17874 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17875    { (exit 1); exit 1; }; }
17876 fi
17877
17878 fi
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17890 do
17891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17905 #define $ac_func innocuous_$ac_func
17906
17907 /* System header to define __stub macros and hopefully few prototypes,
17908     which can conflict with char $ac_func (); below.
17909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17910     <limits.h> exists even on freestanding compilers.  */
17911
17912 #ifdef __STDC__
17913 # include <limits.h>
17914 #else
17915 # include <assert.h>
17916 #endif
17917
17918 #undef $ac_func
17919
17920 /* Override any GCC internal prototype to avoid an error.
17921    Use char because int might match the return type of a GCC
17922    builtin and then its argument prototype would still apply.  */
17923 #ifdef __cplusplus
17924 extern "C"
17925 #endif
17926 char $ac_func ();
17927 /* The GNU C library defines this for functions which it implements
17928     to always fail with ENOSYS.  Some functions are actually named
17929     something starting with __ and the normal name is an alias.  */
17930 #if defined __stub_$ac_func || defined __stub___$ac_func
17931 choke me
17932 #endif
17933
17934 int
17935 main ()
17936 {
17937 return $ac_func ();
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (ac_try="$ac_link"
17944 case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_link") 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; } &&
17966          { ac_try='test -s conftest$ac_exeext'
17967   { (case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976   eval "$as_ac_var=yes"
17977 else
17978   echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17980
17981         eval "$as_ac_var=no"
17982 fi
17983
17984 rm -f core conftest.err conftest.$ac_objext \
17985       conftest$ac_exeext conftest.$ac_ext
17986 fi
17987 ac_res=`eval echo '${'$as_ac_var'}'`
17988                { echo "$as_me:$LINENO: result: $ac_res" >&5
17989 echo "${ECHO_T}$ac_res" >&6; }
17990 if test `eval echo '${'$as_ac_var'}'` = yes; then
17991   cat >>confdefs.h <<_ACEOF
17992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17993 _ACEOF
17994
17995 fi
17996 done
17997
17998
17999
18000
18001
18002 for ac_func in powf fmodf strtof round
18003 do
18004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18018 #define $ac_func innocuous_$ac_func
18019
18020 /* System header to define __stub macros and hopefully few prototypes,
18021     which can conflict with char $ac_func (); below.
18022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18023     <limits.h> exists even on freestanding compilers.  */
18024
18025 #ifdef __STDC__
18026 # include <limits.h>
18027 #else
18028 # include <assert.h>
18029 #endif
18030
18031 #undef $ac_func
18032
18033 /* Override any GCC internal prototype to avoid an error.
18034    Use char because int might match the return type of a GCC
18035    builtin and then its argument prototype would still apply.  */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 char $ac_func ();
18040 /* The GNU C library defines this for functions which it implements
18041     to always fail with ENOSYS.  Some functions are actually named
18042     something starting with __ and the normal name is an alias.  */
18043 #if defined __stub_$ac_func || defined __stub___$ac_func
18044 choke me
18045 #endif
18046
18047 int
18048 main ()
18049 {
18050 return $ac_func ();
18051   ;
18052   return 0;
18053 }
18054 _ACEOF
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (ac_try="$ac_link"
18057 case "(($ac_try" in
18058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059   *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062   (eval "$ac_link") 2>conftest.er1
18063   ac_status=$?
18064   grep -v '^ *+' conftest.er1 >conftest.err
18065   rm -f conftest.er1
18066   cat conftest.err >&5
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } &&
18069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18070   { (case "(($ac_try" in
18071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072   *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075   (eval "$ac_try") 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; } &&
18079          { ac_try='test -s conftest$ac_exeext'
18080   { (case "(($ac_try" in
18081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082   *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085   (eval "$ac_try") 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); }; }; then
18089   eval "$as_ac_var=yes"
18090 else
18091   echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094         eval "$as_ac_var=no"
18095 fi
18096
18097 rm -f core conftest.err conftest.$ac_objext \
18098       conftest$ac_exeext conftest.$ac_ext
18099 fi
18100 ac_res=`eval echo '${'$as_ac_var'}'`
18101                { echo "$as_me:$LINENO: result: $ac_res" >&5
18102 echo "${ECHO_T}$ac_res" >&6; }
18103 if test `eval echo '${'$as_ac_var'}'` = yes; then
18104   cat >>confdefs.h <<_ACEOF
18105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18106 _ACEOF
18107
18108 fi
18109 done
18110
18111
18112
18113
18114
18115
18116 for ac_func in log log2 log10 exp exp2
18117 do
18118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18122   echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124   cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18132 #define $ac_func innocuous_$ac_func
18133
18134 /* System header to define __stub macros and hopefully few prototypes,
18135     which can conflict with char $ac_func (); below.
18136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18137     <limits.h> exists even on freestanding compilers.  */
18138
18139 #ifdef __STDC__
18140 # include <limits.h>
18141 #else
18142 # include <assert.h>
18143 #endif
18144
18145 #undef $ac_func
18146
18147 /* Override any GCC internal prototype to avoid an error.
18148    Use char because int might match the return type of a GCC
18149    builtin and then its argument prototype would still apply.  */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char $ac_func ();
18154 /* The GNU C library defines this for functions which it implements
18155     to always fail with ENOSYS.  Some functions are actually named
18156     something starting with __ and the normal name is an alias.  */
18157 #if defined __stub_$ac_func || defined __stub___$ac_func
18158 choke me
18159 #endif
18160
18161 int
18162 main ()
18163 {
18164 return $ac_func ();
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_link") 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } &&
18183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184   { (case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_try") 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; } &&
18193          { ac_try='test -s conftest$ac_exeext'
18194   { (case "(($ac_try" in
18195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196   *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199   (eval "$ac_try") 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; }; then
18203   eval "$as_ac_var=yes"
18204 else
18205   echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18207
18208         eval "$as_ac_var=no"
18209 fi
18210
18211 rm -f core conftest.err conftest.$ac_objext \
18212       conftest$ac_exeext conftest.$ac_ext
18213 fi
18214 ac_res=`eval echo '${'$as_ac_var'}'`
18215                { echo "$as_me:$LINENO: result: $ac_res" >&5
18216 echo "${ECHO_T}$ac_res" >&6; }
18217 if test `eval echo '${'$as_ac_var'}'` = yes; then
18218   cat >>confdefs.h <<_ACEOF
18219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18220 _ACEOF
18221
18222 fi
18223 done
18224
18225
18226
18227
18228
18229
18230 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18231 do
18232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18236   echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238   cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18246 #define $ac_func innocuous_$ac_func
18247
18248 /* System header to define __stub macros and hopefully few prototypes,
18249     which can conflict with char $ac_func (); below.
18250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18251     <limits.h> exists even on freestanding compilers.  */
18252
18253 #ifdef __STDC__
18254 # include <limits.h>
18255 #else
18256 # include <assert.h>
18257 #endif
18258
18259 #undef $ac_func
18260
18261 /* Override any GCC internal prototype to avoid an error.
18262    Use char because int might match the return type of a GCC
18263    builtin and then its argument prototype would still apply.  */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 char $ac_func ();
18268 /* The GNU C library defines this for functions which it implements
18269     to always fail with ENOSYS.  Some functions are actually named
18270     something starting with __ and the normal name is an alias.  */
18271 #if defined __stub_$ac_func || defined __stub___$ac_func
18272 choke me
18273 #endif
18274
18275 int
18276 main ()
18277 {
18278 return $ac_func ();
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_link") 2>conftest.er1
18291   ac_status=$?
18292   grep -v '^ *+' conftest.er1 >conftest.err
18293   rm -f conftest.er1
18294   cat conftest.err >&5
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); } &&
18297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18298   { (case "(($ac_try" in
18299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300   *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303   (eval "$ac_try") 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; } &&
18307          { ac_try='test -s conftest$ac_exeext'
18308   { (case "(($ac_try" in
18309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310   *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313   (eval "$ac_try") 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   eval "$as_ac_var=yes"
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322         eval "$as_ac_var=no"
18323 fi
18324
18325 rm -f core conftest.err conftest.$ac_objext \
18326       conftest$ac_exeext conftest.$ac_ext
18327 fi
18328 ac_res=`eval echo '${'$as_ac_var'}'`
18329                { echo "$as_me:$LINENO: result: $ac_res" >&5
18330 echo "${ECHO_T}$ac_res" >&6; }
18331 if test `eval echo '${'$as_ac_var'}'` = yes; then
18332   cat >>confdefs.h <<_ACEOF
18333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18334 _ACEOF
18335
18336 fi
18337 done
18338
18339
18340
18341
18342 for ac_func in isatty mkdtemp mkstemp
18343 do
18344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18358 #define $ac_func innocuous_$ac_func
18359
18360 /* System header to define __stub macros and hopefully few prototypes,
18361     which can conflict with char $ac_func (); below.
18362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363     <limits.h> exists even on freestanding compilers.  */
18364
18365 #ifdef __STDC__
18366 # include <limits.h>
18367 #else
18368 # include <assert.h>
18369 #endif
18370
18371 #undef $ac_func
18372
18373 /* Override any GCC internal prototype to avoid an error.
18374    Use char because int might match the return type of a GCC
18375    builtin and then its argument prototype would still apply.  */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char $ac_func ();
18380 /* The GNU C library defines this for functions which it implements
18381     to always fail with ENOSYS.  Some functions are actually named
18382     something starting with __ and the normal name is an alias.  */
18383 #if defined __stub_$ac_func || defined __stub___$ac_func
18384 choke me
18385 #endif
18386
18387 int
18388 main ()
18389 {
18390 return $ac_func ();
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_link") 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410   { (case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_try") 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; } &&
18419          { ac_try='test -s conftest$ac_exeext'
18420   { (case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_try") 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; }; then
18429   eval "$as_ac_var=yes"
18430 else
18431   echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434         eval "$as_ac_var=no"
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext \
18438       conftest$ac_exeext conftest.$ac_ext
18439 fi
18440 ac_res=`eval echo '${'$as_ac_var'}'`
18441                { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444   cat >>confdefs.h <<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18446 _ACEOF
18447
18448 fi
18449 done
18450
18451
18452
18453
18454
18455
18456
18457 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18458 do
18459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18463   echo $ECHO_N "(cached) $ECHO_C" >&6
18464 else
18465   cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h.  */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h.  */
18471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18473 #define $ac_func innocuous_$ac_func
18474
18475 /* System header to define __stub macros and hopefully few prototypes,
18476     which can conflict with char $ac_func (); below.
18477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18478     <limits.h> exists even on freestanding compilers.  */
18479
18480 #ifdef __STDC__
18481 # include <limits.h>
18482 #else
18483 # include <assert.h>
18484 #endif
18485
18486 #undef $ac_func
18487
18488 /* Override any GCC internal prototype to avoid an error.
18489    Use char because int might match the return type of a GCC
18490    builtin and then its argument prototype would still apply.  */
18491 #ifdef __cplusplus
18492 extern "C"
18493 #endif
18494 char $ac_func ();
18495 /* The GNU C library defines this for functions which it implements
18496     to always fail with ENOSYS.  Some functions are actually named
18497     something starting with __ and the normal name is an alias.  */
18498 #if defined __stub_$ac_func || defined __stub___$ac_func
18499 choke me
18500 #endif
18501
18502 int
18503 main ()
18504 {
18505 return $ac_func ();
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517   (eval "$ac_link") 2>conftest.er1
18518   ac_status=$?
18519   grep -v '^ *+' conftest.er1 >conftest.err
18520   rm -f conftest.er1
18521   cat conftest.err >&5
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); } &&
18524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525   { (case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_try") 2>&5
18531   ac_status=$?
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); }; } &&
18534          { ac_try='test -s conftest$ac_exeext'
18535   { (case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540   (eval "$ac_try") 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); }; }; then
18544   eval "$as_ac_var=yes"
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549         eval "$as_ac_var=no"
18550 fi
18551
18552 rm -f core conftest.err conftest.$ac_objext \
18553       conftest$ac_exeext conftest.$ac_ext
18554 fi
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556                { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559   cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18561 _ACEOF
18562
18563 fi
18564 done
18565
18566
18567
18568
18569 for ac_func in strerror strerror_r setenv
18570 do
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18585 #define $ac_func innocuous_$ac_func
18586
18587 /* System header to define __stub macros and hopefully few prototypes,
18588     which can conflict with char $ac_func (); below.
18589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590     <limits.h> exists even on freestanding compilers.  */
18591
18592 #ifdef __STDC__
18593 # include <limits.h>
18594 #else
18595 # include <assert.h>
18596 #endif
18597
18598 #undef $ac_func
18599
18600 /* Override any GCC internal prototype to avoid an error.
18601    Use char because int might match the return type of a GCC
18602    builtin and then its argument prototype would still apply.  */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char $ac_func ();
18607 /* The GNU C library defines this for functions which it implements
18608     to always fail with ENOSYS.  Some functions are actually named
18609     something starting with __ and the normal name is an alias.  */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18611 choke me
18612 #endif
18613
18614 int
18615 main ()
18616 {
18617 return $ac_func ();
18618   ;
18619   return 0;
18620 }
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629   (eval "$ac_link") 2>conftest.er1
18630   ac_status=$?
18631   grep -v '^ *+' conftest.er1 >conftest.err
18632   rm -f conftest.er1
18633   cat conftest.err >&5
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637   { (case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_try") 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; } &&
18646          { ac_try='test -s conftest$ac_exeext'
18647   { (case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_try") 2>&5
18653   ac_status=$?
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); }; }; then
18656   eval "$as_ac_var=yes"
18657 else
18658   echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661         eval "$as_ac_var=no"
18662 fi
18663
18664 rm -f core conftest.err conftest.$ac_objext \
18665       conftest$ac_exeext conftest.$ac_ext
18666 fi
18667 ac_res=`eval echo '${'$as_ac_var'}'`
18668                { echo "$as_me:$LINENO: result: $ac_res" >&5
18669 echo "${ECHO_T}$ac_res" >&6; }
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671   cat >>confdefs.h <<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18673 _ACEOF
18674
18675 fi
18676 done
18677
18678
18679
18680
18681
18682 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18683 do
18684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18688   echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690   cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18698 #define $ac_func innocuous_$ac_func
18699
18700 /* System header to define __stub macros and hopefully few prototypes,
18701     which can conflict with char $ac_func (); below.
18702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18703     <limits.h> exists even on freestanding compilers.  */
18704
18705 #ifdef __STDC__
18706 # include <limits.h>
18707 #else
18708 # include <assert.h>
18709 #endif
18710
18711 #undef $ac_func
18712
18713 /* Override any GCC internal prototype to avoid an error.
18714    Use char because int might match the return type of a GCC
18715    builtin and then its argument prototype would still apply.  */
18716 #ifdef __cplusplus
18717 extern "C"
18718 #endif
18719 char $ac_func ();
18720 /* The GNU C library defines this for functions which it implements
18721     to always fail with ENOSYS.  Some functions are actually named
18722     something starting with __ and the normal name is an alias.  */
18723 #if defined __stub_$ac_func || defined __stub___$ac_func
18724 choke me
18725 #endif
18726
18727 int
18728 main ()
18729 {
18730 return $ac_func ();
18731   ;
18732   return 0;
18733 }
18734 _ACEOF
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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   eval "$as_ac_var=yes"
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774         eval "$as_ac_var=no"
18775 fi
18776
18777 rm -f core conftest.err conftest.$ac_objext \
18778       conftest$ac_exeext conftest.$ac_ext
18779 fi
18780 ac_res=`eval echo '${'$as_ac_var'}'`
18781                { echo "$as_me:$LINENO: result: $ac_res" >&5
18782 echo "${ECHO_T}$ac_res" >&6; }
18783 if test `eval echo '${'$as_ac_var'}'` = yes; then
18784   cat >>confdefs.h <<_ACEOF
18785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18786 _ACEOF
18787
18788 fi
18789 done
18790
18791
18792
18793
18794
18795
18796 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18797 do
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18812 #define $ac_func innocuous_$ac_func
18813
18814 /* System header to define __stub macros and hopefully few prototypes,
18815     which can conflict with char $ac_func (); below.
18816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817     <limits.h> exists even on freestanding compilers.  */
18818
18819 #ifdef __STDC__
18820 # include <limits.h>
18821 #else
18822 # include <assert.h>
18823 #endif
18824
18825 #undef $ac_func
18826
18827 /* Override any GCC internal prototype to avoid an error.
18828    Use char because int might match the return type of a GCC
18829    builtin and then its argument prototype would still apply.  */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 char $ac_func ();
18834 /* The GNU C library defines this for functions which it implements
18835     to always fail with ENOSYS.  Some functions are actually named
18836     something starting with __ and the normal name is an alias.  */
18837 #if defined __stub_$ac_func || defined __stub___$ac_func
18838 choke me
18839 #endif
18840
18841 int
18842 main ()
18843 {
18844 return $ac_func ();
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } &&
18863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864   { (case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_try") 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; } &&
18873          { ac_try='test -s conftest$ac_exeext'
18874   { (case "(($ac_try" in
18875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876   *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879   (eval "$ac_try") 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   eval "$as_ac_var=yes"
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         eval "$as_ac_var=no"
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext \
18892       conftest$ac_exeext conftest.$ac_ext
18893 fi
18894 ac_res=`eval echo '${'$as_ac_var'}'`
18895                { echo "$as_me:$LINENO: result: $ac_res" >&5
18896 echo "${ECHO_T}$ac_res" >&6; }
18897 if test `eval echo '${'$as_ac_var'}'` = yes; then
18898   cat >>confdefs.h <<_ACEOF
18899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18900 _ACEOF
18901
18902 fi
18903 done
18904
18905
18906
18907 for ac_func in futimes futimens
18908 do
18909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18913   echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915   cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h.  */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h.  */
18921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18923 #define $ac_func innocuous_$ac_func
18924
18925 /* System header to define __stub macros and hopefully few prototypes,
18926     which can conflict with char $ac_func (); below.
18927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18928     <limits.h> exists even on freestanding compilers.  */
18929
18930 #ifdef __STDC__
18931 # include <limits.h>
18932 #else
18933 # include <assert.h>
18934 #endif
18935
18936 #undef $ac_func
18937
18938 /* Override any GCC internal prototype to avoid an error.
18939    Use char because int might match the return type of a GCC
18940    builtin and then its argument prototype would still apply.  */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char $ac_func ();
18945 /* The GNU C library defines this for functions which it implements
18946     to always fail with ENOSYS.  Some functions are actually named
18947     something starting with __ and the normal name is an alias.  */
18948 #if defined __stub_$ac_func || defined __stub___$ac_func
18949 choke me
18950 #endif
18951
18952 int
18953 main ()
18954 {
18955 return $ac_func ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } &&
18974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_try") 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   eval "$as_ac_var=yes"
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999         eval "$as_ac_var=no"
19000 fi
19001
19002 rm -f core conftest.err conftest.$ac_objext \
19003       conftest$ac_exeext conftest.$ac_ext
19004 fi
19005 ac_res=`eval echo '${'$as_ac_var'}'`
19006                { echo "$as_me:$LINENO: result: $ac_res" >&5
19007 echo "${ECHO_T}$ac_res" >&6; }
19008 if test `eval echo '${'$as_ac_var'}'` = yes; then
19009   cat >>confdefs.h <<_ACEOF
19010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19011 _ACEOF
19012
19013 fi
19014 done
19015
19016 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19017 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19018 if test "${llvm_cv_c_printf_a+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   ac_ext=c
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027  if test "$cross_compiling" = yes; then
19028   llvmac_cv_c_printf_a=no
19029 else
19030   cat >conftest.$ac_ext <<_ACEOF
19031
19032   /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037
19038 #include <stdio.h>
19039 #include <stdlib.h>
19040
19041 int
19042 main ()
19043 {
19044
19045 volatile double A, B;
19046 char Buffer[100];
19047 A = 1;
19048 A /= 10.0;
19049 sprintf(Buffer, "%a", A);
19050 B = atof(Buffer);
19051 if (A != B)
19052   return (1);
19053 if (A != 0x1.999999999999ap-4)
19054   return (1);
19055 return (0);
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064   *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067   (eval "$ac_link") 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071   { (case "(($ac_try" in
19072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073   *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076   (eval "$ac_try") 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; }; then
19080   llvm_cv_c_printf_a=yes
19081 else
19082   echo "$as_me: program exited with status $ac_status" >&5
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 ( exit $ac_status )
19087 llvmac_cv_c_printf_a=no
19088 fi
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19090 fi
19091
19092
19093  ac_ext=c
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099 fi
19100 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19101 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19102  if test "$llvm_cv_c_printf_a" = "yes"; then
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_PRINTF_A 1
19106 _ACEOF
19107
19108  fi
19109
19110
19111
19112   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19113 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_rand48+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117
19118     ac_ext=cpp
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123
19124     cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h.  */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h.  */
19130 #include <stdlib.h>
19131 int
19132 main ()
19133 {
19134 srand48(0);lrand48();drand48();
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_compile") 2>conftest.er1
19147   ac_status=$?
19148   grep -v '^ *+' conftest.er1 >conftest.err
19149   rm -f conftest.er1
19150   cat conftest.err >&5
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); } &&
19153          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19154   { (case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159   (eval "$ac_try") 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; } &&
19163          { ac_try='test -s conftest.$ac_objext'
19164   { (case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_try") 2>&5
19170   ac_status=$?
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); }; }; then
19173   ac_cv_func_rand48=yes
19174 else
19175   echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178         ac_cv_func_rand48=no
19179 fi
19180
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182     ac_ext=c
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19187
19188
19189 fi
19190 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19191 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19192
19193 if test "$ac_cv_func_rand48" = "yes" ; then
19194
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_RAND48 1
19197 _ACEOF
19198
19199 fi
19200
19201
19202 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19203 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19204 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207   cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213 $ac_includes_default
19214 int
19215 main ()
19216 {
19217 #ifndef arc4random
19218   char *p = (char *) arc4random;
19219   return !p;
19220 #endif
19221
19222   ;
19223   return 0;
19224 }
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (ac_try="$ac_compile"
19228 case "(($ac_try" in
19229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230   *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233   (eval "$ac_compile") 2>conftest.er1
19234   ac_status=$?
19235   grep -v '^ *+' conftest.er1 >conftest.err
19236   rm -f conftest.er1
19237   cat conftest.err >&5
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } &&
19240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241   { (case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_try") 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; } &&
19250          { ac_try='test -s conftest.$ac_objext'
19251   { (case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_try") 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; }; then
19260   ac_cv_have_decl_arc4random=yes
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265         ac_cv_have_decl_arc4random=no
19266 fi
19267
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 fi
19270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19271 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19272 if test $ac_cv_have_decl_arc4random = yes; then
19273
19274 cat >>confdefs.h <<_ACEOF
19275 #define HAVE_DECL_ARC4RANDOM 1
19276 _ACEOF
19277
19278
19279 else
19280   cat >>confdefs.h <<_ACEOF
19281 #define HAVE_DECL_ARC4RANDOM 0
19282 _ACEOF
19283
19284
19285 fi
19286
19287
19288
19289 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19290 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19291 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 $ac_includes_default
19301 int
19302 main ()
19303 {
19304 #ifndef strerror_s
19305   char *p = (char *) strerror_s;
19306   return !p;
19307 #endif
19308
19309   ;
19310   return 0;
19311 }
19312 _ACEOF
19313 rm -f conftest.$ac_objext
19314 if { (ac_try="$ac_compile"
19315 case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320   (eval "$ac_compile") 2>conftest.er1
19321   ac_status=$?
19322   grep -v '^ *+' conftest.er1 >conftest.err
19323   rm -f conftest.er1
19324   cat conftest.err >&5
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } &&
19327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_try") 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; } &&
19337          { ac_try='test -s conftest.$ac_objext'
19338   { (case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_try") 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347   ac_cv_have_decl_strerror_s=yes
19348 else
19349   echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352         ac_cv_have_decl_strerror_s=no
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356 fi
19357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19358 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19359 if test $ac_cv_have_decl_strerror_s = yes; then
19360
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_DECL_STRERROR_S 1
19363 _ACEOF
19364
19365
19366 else
19367   cat >>confdefs.h <<_ACEOF
19368 #define HAVE_DECL_STRERROR_S 0
19369 _ACEOF
19370
19371
19372 fi
19373
19374
19375
19376 if test "$llvm_cv_os_type" = "MingW" ; then
19377   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19378 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lgcc  $LIBS"
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390
19391 /* Override any GCC internal prototype to avoid an error.
19392    Use char because int might match the return type of a GCC
19393    builtin and then its argument prototype would still apply.  */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char _alloca ();
19398 int
19399 main ()
19400 {
19401 return _alloca ();
19402   ;
19403   return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_link") 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } &&
19420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421   { (case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_try") 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; } &&
19430          { ac_try='test -s conftest$ac_exeext'
19431   { (case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_try") 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; }; then
19440   ac_cv_lib_gcc__alloca=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_cv_lib_gcc__alloca=no
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19453 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19454 if test $ac_cv_lib_gcc__alloca = yes; then
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE__ALLOCA 1
19458 _ACEOF
19459
19460 fi
19461
19462   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19463 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19464 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19465   echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467   ac_check_lib_save_LIBS=$LIBS
19468 LIBS="-lgcc  $LIBS"
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475
19476 /* Override any GCC internal prototype to avoid an error.
19477    Use char because int might match the return type of a GCC
19478    builtin and then its argument prototype would still apply.  */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char __alloca ();
19483 int
19484 main ()
19485 {
19486 return __alloca ();
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_link") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; } &&
19515          { ac_try='test -s conftest$ac_exeext'
19516   { (case "(($ac_try" in
19517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518   *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521   (eval "$ac_try") 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_lib_gcc___alloca=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530         ac_cv_lib_gcc___alloca=no
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext \
19534       conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19536 fi
19537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19538 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19539 if test $ac_cv_lib_gcc___alloca = yes; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE___ALLOCA 1
19543 _ACEOF
19544
19545 fi
19546
19547   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19548 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19549 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lgcc  $LIBS"
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560
19561 /* Override any GCC internal prototype to avoid an error.
19562    Use char because int might match the return type of a GCC
19563    builtin and then its argument prototype would still apply.  */
19564 #ifdef __cplusplus
19565 extern "C"
19566 #endif
19567 char __chkstk ();
19568 int
19569 main ()
19570 {
19571 return __chkstk ();
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_link") 2>conftest.er1
19584   ac_status=$?
19585   grep -v '^ *+' conftest.er1 >conftest.err
19586   rm -f conftest.er1
19587   cat conftest.err >&5
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); } &&
19590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19591   { (case "(($ac_try" in
19592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593   *) ac_try_echo=$ac_try;;
19594 esac
19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596   (eval "$ac_try") 2>&5
19597   ac_status=$?
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); }; } &&
19600          { ac_try='test -s conftest$ac_exeext'
19601   { (case "(($ac_try" in
19602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603   *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606   (eval "$ac_try") 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; }; then
19610   ac_cv_lib_gcc___chkstk=yes
19611 else
19612   echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615         ac_cv_lib_gcc___chkstk=no
19616 fi
19617
19618 rm -f core conftest.err conftest.$ac_objext \
19619       conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19621 fi
19622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19623 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19624 if test $ac_cv_lib_gcc___chkstk = yes; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE___CHKSTK 1
19628 _ACEOF
19629
19630 fi
19631
19632   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19633 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19634 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   ac_check_lib_save_LIBS=$LIBS
19638 LIBS="-lgcc  $LIBS"
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h.  */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h.  */
19645
19646 /* Override any GCC internal prototype to avoid an error.
19647    Use char because int might match the return type of a GCC
19648    builtin and then its argument prototype would still apply.  */
19649 #ifdef __cplusplus
19650 extern "C"
19651 #endif
19652 char ___chkstk ();
19653 int
19654 main ()
19655 {
19656 return ___chkstk ();
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_link") 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } &&
19675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19676   { (case "(($ac_try" in
19677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678   *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681   (eval "$ac_try") 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; } &&
19685          { ac_try='test -s conftest$ac_exeext'
19686   { (case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_try") 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_cv_lib_gcc____chkstk=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700         ac_cv_lib_gcc____chkstk=no
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext \
19704       conftest$ac_exeext conftest.$ac_ext
19705 LIBS=$ac_check_lib_save_LIBS
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19708 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19709 if test $ac_cv_lib_gcc____chkstk = yes; then
19710
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE____CHKSTK 1
19713 _ACEOF
19714
19715 fi
19716
19717
19718   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19719 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19720 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723   ac_check_lib_save_LIBS=$LIBS
19724 LIBS="-lgcc  $LIBS"
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h.  */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h.  */
19731
19732 /* Override any GCC internal prototype to avoid an error.
19733    Use char because int might match the return type of a GCC
19734    builtin and then its argument prototype would still apply.  */
19735 #ifdef __cplusplus
19736 extern "C"
19737 #endif
19738 char __ashldi3 ();
19739 int
19740 main ()
19741 {
19742 return __ashldi3 ();
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_link") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } &&
19761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19762   { (case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_try") 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; } &&
19771          { ac_try='test -s conftest$ac_exeext'
19772   { (case "(($ac_try" in
19773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774   *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777   (eval "$ac_try") 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   ac_cv_lib_gcc___ashldi3=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786         ac_cv_lib_gcc___ashldi3=no
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext \
19790       conftest$ac_exeext conftest.$ac_ext
19791 LIBS=$ac_check_lib_save_LIBS
19792 fi
19793 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19794 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19795 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define HAVE___ASHLDI3 1
19799 _ACEOF
19800
19801 fi
19802
19803   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19804 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19805 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19806   echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808   ac_check_lib_save_LIBS=$LIBS
19809 LIBS="-lgcc  $LIBS"
19810 cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816
19817 /* Override any GCC internal prototype to avoid an error.
19818    Use char because int might match the return type of a GCC
19819    builtin and then its argument prototype would still apply.  */
19820 #ifdef __cplusplus
19821 extern "C"
19822 #endif
19823 char __ashrdi3 ();
19824 int
19825 main ()
19826 {
19827 return __ashrdi3 ();
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (ac_try="$ac_link"
19834 case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_link") 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } &&
19846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19847   { (case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_try") 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); }; } &&
19856          { ac_try='test -s conftest$ac_exeext'
19857   { (case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_try") 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_lib_gcc___ashrdi3=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871         ac_cv_lib_gcc___ashrdi3=no
19872 fi
19873
19874 rm -f core conftest.err conftest.$ac_objext \
19875       conftest$ac_exeext conftest.$ac_ext
19876 LIBS=$ac_check_lib_save_LIBS
19877 fi
19878 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19879 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19880 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19881
19882 cat >>confdefs.h <<\_ACEOF
19883 #define HAVE___ASHRDI3 1
19884 _ACEOF
19885
19886 fi
19887
19888   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19889 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19890 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   ac_check_lib_save_LIBS=$LIBS
19894 LIBS="-lgcc  $LIBS"
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901
19902 /* Override any GCC internal prototype to avoid an error.
19903    Use char because int might match the return type of a GCC
19904    builtin and then its argument prototype would still apply.  */
19905 #ifdef __cplusplus
19906 extern "C"
19907 #endif
19908 char __divdi3 ();
19909 int
19910 main ()
19911 {
19912 return __divdi3 ();
19913   ;
19914   return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext conftest$ac_exeext
19918 if { (ac_try="$ac_link"
19919 case "(($ac_try" in
19920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921   *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924   (eval "$ac_link") 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } &&
19931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19932   { (case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_try") 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; } &&
19941          { ac_try='test -s conftest$ac_exeext'
19942   { (case "(($ac_try" in
19943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944   *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947   (eval "$ac_try") 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   ac_cv_lib_gcc___divdi3=yes
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956         ac_cv_lib_gcc___divdi3=no
19957 fi
19958
19959 rm -f core conftest.err conftest.$ac_objext \
19960       conftest$ac_exeext conftest.$ac_ext
19961 LIBS=$ac_check_lib_save_LIBS
19962 fi
19963 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19964 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19965 if test $ac_cv_lib_gcc___divdi3 = yes; then
19966
19967 cat >>confdefs.h <<\_ACEOF
19968 #define HAVE___DIVDI3 1
19969 _ACEOF
19970
19971 fi
19972
19973   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19974 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19975 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   ac_check_lib_save_LIBS=$LIBS
19979 LIBS="-lgcc  $LIBS"
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986
19987 /* Override any GCC internal prototype to avoid an error.
19988    Use char because int might match the return type of a GCC
19989    builtin and then its argument prototype would still apply.  */
19990 #ifdef __cplusplus
19991 extern "C"
19992 #endif
19993 char __fixdfdi ();
19994 int
19995 main ()
19996 {
19997 return __fixdfdi ();
19998   ;
19999   return 0;
20000 }
20001 _ACEOF
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (ac_try="$ac_link"
20004 case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_link") 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } &&
20016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20017   { (case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022   (eval "$ac_try") 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }; } &&
20026          { ac_try='test -s conftest$ac_exeext'
20027   { (case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_try") 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_cv_lib_gcc___fixdfdi=yes
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041         ac_cv_lib_gcc___fixdfdi=no
20042 fi
20043
20044 rm -f core conftest.err conftest.$ac_objext \
20045       conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20047 fi
20048 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20049 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20050 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20051
20052 cat >>confdefs.h <<\_ACEOF
20053 #define HAVE___FIXDFDI 1
20054 _ACEOF
20055
20056 fi
20057
20058   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20059 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20060 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   ac_check_lib_save_LIBS=$LIBS
20064 LIBS="-lgcc  $LIBS"
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073    Use char because int might match the return type of a GCC
20074    builtin and then its argument prototype would still apply.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char __fixsfdi ();
20079 int
20080 main ()
20081 {
20082 return __fixsfdi ();
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091   *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094   (eval "$ac_link") 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } &&
20101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102   { (case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_try") 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; } &&
20111          { ac_try='test -s conftest$ac_exeext'
20112   { (case "(($ac_try" in
20113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114   *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117   (eval "$ac_try") 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_cv_lib_gcc___fixsfdi=yes
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126         ac_cv_lib_gcc___fixsfdi=no
20127 fi
20128
20129 rm -f core conftest.err conftest.$ac_objext \
20130       conftest$ac_exeext conftest.$ac_ext
20131 LIBS=$ac_check_lib_save_LIBS
20132 fi
20133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20134 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20135 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20136
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE___FIXSFDI 1
20139 _ACEOF
20140
20141 fi
20142
20143   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20144 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20145 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lgcc  $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156
20157 /* Override any GCC internal prototype to avoid an error.
20158    Use char because int might match the return type of a GCC
20159    builtin and then its argument prototype would still apply.  */
20160 #ifdef __cplusplus
20161 extern "C"
20162 #endif
20163 char __floatdidf ();
20164 int
20165 main ()
20166 {
20167 return __floatdidf ();
20168   ;
20169   return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176   *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179   (eval "$ac_link") 2>conftest.er1
20180   ac_status=$?
20181   grep -v '^ *+' conftest.er1 >conftest.err
20182   rm -f conftest.er1
20183   cat conftest.err >&5
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); } &&
20186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20187   { (case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_try") 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; } &&
20196          { ac_try='test -s conftest$ac_exeext'
20197   { (case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_try") 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; }; then
20206   ac_cv_lib_gcc___floatdidf=yes
20207 else
20208   echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211         ac_cv_lib_gcc___floatdidf=no
20212 fi
20213
20214 rm -f core conftest.err conftest.$ac_objext \
20215       conftest$ac_exeext conftest.$ac_ext
20216 LIBS=$ac_check_lib_save_LIBS
20217 fi
20218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20219 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20220 if test $ac_cv_lib_gcc___floatdidf = yes; then
20221
20222 cat >>confdefs.h <<\_ACEOF
20223 #define HAVE___FLOATDIDF 1
20224 _ACEOF
20225
20226 fi
20227
20228   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20229 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20230 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   ac_check_lib_save_LIBS=$LIBS
20234 LIBS="-lgcc  $LIBS"
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241
20242 /* Override any GCC internal prototype to avoid an error.
20243    Use char because int might match the return type of a GCC
20244    builtin and then its argument prototype would still apply.  */
20245 #ifdef __cplusplus
20246 extern "C"
20247 #endif
20248 char __lshrdi3 ();
20249 int
20250 main ()
20251 {
20252 return __lshrdi3 ();
20253   ;
20254   return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext conftest$ac_exeext
20258 if { (ac_try="$ac_link"
20259 case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_link") 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272   { (case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_try") 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; } &&
20281          { ac_try='test -s conftest$ac_exeext'
20282   { (case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_try") 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; }; then
20291   ac_cv_lib_gcc___lshrdi3=yes
20292 else
20293   echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296         ac_cv_lib_gcc___lshrdi3=no
20297 fi
20298
20299 rm -f core conftest.err conftest.$ac_objext \
20300       conftest$ac_exeext conftest.$ac_ext
20301 LIBS=$ac_check_lib_save_LIBS
20302 fi
20303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20304 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20305 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20306
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE___LSHRDI3 1
20309 _ACEOF
20310
20311 fi
20312
20313   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20314 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20315 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20316   echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318   ac_check_lib_save_LIBS=$LIBS
20319 LIBS="-lgcc  $LIBS"
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326
20327 /* Override any GCC internal prototype to avoid an error.
20328    Use char because int might match the return type of a GCC
20329    builtin and then its argument prototype would still apply.  */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char __moddi3 ();
20334 int
20335 main ()
20336 {
20337 return __moddi3 ();
20338   ;
20339   return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (ac_try="$ac_link"
20344 case "(($ac_try" in
20345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346   *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349   (eval "$ac_link") 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357   { (case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_try") 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; } &&
20366          { ac_try='test -s conftest$ac_exeext'
20367   { (case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_try") 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; }; then
20376   ac_cv_lib_gcc___moddi3=yes
20377 else
20378   echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381         ac_cv_lib_gcc___moddi3=no
20382 fi
20383
20384 rm -f core conftest.err conftest.$ac_objext \
20385       conftest$ac_exeext conftest.$ac_ext
20386 LIBS=$ac_check_lib_save_LIBS
20387 fi
20388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20389 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20390 if test $ac_cv_lib_gcc___moddi3 = yes; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE___MODDI3 1
20394 _ACEOF
20395
20396 fi
20397
20398   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20399 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20400 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   ac_check_lib_save_LIBS=$LIBS
20404 LIBS="-lgcc  $LIBS"
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411
20412 /* Override any GCC internal prototype to avoid an error.
20413    Use char because int might match the return type of a GCC
20414    builtin and then its argument prototype would still apply.  */
20415 #ifdef __cplusplus
20416 extern "C"
20417 #endif
20418 char __udivdi3 ();
20419 int
20420 main ()
20421 {
20422 return __udivdi3 ();
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_link") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } &&
20441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442   { (case "(($ac_try" in
20443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444   *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447   (eval "$ac_try") 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; } &&
20451          { ac_try='test -s conftest$ac_exeext'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_cv_lib_gcc___udivdi3=yes
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466         ac_cv_lib_gcc___udivdi3=no
20467 fi
20468
20469 rm -f core conftest.err conftest.$ac_objext \
20470       conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20472 fi
20473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20474 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20475 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE___UDIVDI3 1
20479 _ACEOF
20480
20481 fi
20482
20483   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20484 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20485 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lgcc  $LIBS"
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496
20497 /* Override any GCC internal prototype to avoid an error.
20498    Use char because int might match the return type of a GCC
20499    builtin and then its argument prototype would still apply.  */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 char __umoddi3 ();
20504 int
20505 main ()
20506 {
20507 return __umoddi3 ();
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_link") 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } &&
20526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20527   { (case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_try") 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest$ac_exeext'
20537   { (case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_try") 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546   ac_cv_lib_gcc___umoddi3=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551         ac_cv_lib_gcc___umoddi3=no
20552 fi
20553
20554 rm -f core conftest.err conftest.$ac_objext \
20555       conftest$ac_exeext conftest.$ac_ext
20556 LIBS=$ac_check_lib_save_LIBS
20557 fi
20558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20559 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20560 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20561
20562 cat >>confdefs.h <<\_ACEOF
20563 #define HAVE___UMODDI3 1
20564 _ACEOF
20565
20566 fi
20567
20568
20569   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20570 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20571 if test "${ac_cv_lib_gcc___main+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   ac_check_lib_save_LIBS=$LIBS
20575 LIBS="-lgcc  $LIBS"
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582
20583 /* Override any GCC internal prototype to avoid an error.
20584    Use char because int might match the return type of a GCC
20585    builtin and then its argument prototype would still apply.  */
20586 #ifdef __cplusplus
20587 extern "C"
20588 #endif
20589 char __main ();
20590 int
20591 main ()
20592 {
20593 return __main ();
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_link") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } &&
20612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613   { (case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618   (eval "$ac_try") 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; } &&
20622          { ac_try='test -s conftest$ac_exeext'
20623   { (case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_try") 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); }; }; then
20632   ac_cv_lib_gcc___main=yes
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         ac_cv_lib_gcc___main=no
20638 fi
20639
20640 rm -f core conftest.err conftest.$ac_objext \
20641       conftest$ac_exeext conftest.$ac_ext
20642 LIBS=$ac_check_lib_save_LIBS
20643 fi
20644 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20645 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20646 if test $ac_cv_lib_gcc___main = yes; then
20647
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE___MAIN 1
20650 _ACEOF
20651
20652 fi
20653
20654   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20655 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20656 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20657   echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659   ac_check_lib_save_LIBS=$LIBS
20660 LIBS="-lgcc  $LIBS"
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667
20668 /* Override any GCC internal prototype to avoid an error.
20669    Use char because int might match the return type of a GCC
20670    builtin and then its argument prototype would still apply.  */
20671 #ifdef __cplusplus
20672 extern "C"
20673 #endif
20674 char __cmpdi2 ();
20675 int
20676 main ()
20677 {
20678 return __cmpdi2 ();
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687   *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690   (eval "$ac_link") 2>conftest.er1
20691   ac_status=$?
20692   grep -v '^ *+' conftest.er1 >conftest.err
20693   rm -f conftest.er1
20694   cat conftest.err >&5
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } &&
20697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20698   { (case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_try") 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; } &&
20707          { ac_try='test -s conftest$ac_exeext'
20708   { (case "(($ac_try" in
20709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710   *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713   (eval "$ac_try") 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   ac_cv_lib_gcc___cmpdi2=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722         ac_cv_lib_gcc___cmpdi2=no
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext \
20726       conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20728 fi
20729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20730 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20731 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20732
20733 cat >>confdefs.h <<\_ACEOF
20734 #define HAVE___CMPDI2 1
20735 _ACEOF
20736
20737 fi
20738
20739 fi
20740
20741 if test "$llvm_cv_os_type" = "MingW" ; then
20742   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20743 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20744   cat >conftest.$ac_ext <<_ACEOF
20745
20746   /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751
20752     #include <windows.h>
20753     #include <imagehlp.h>
20754     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20755     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20756
20757
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (ac_try="$ac_compile"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_compile") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774   { (case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_try") 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; } &&
20783          { ac_try='test -s conftest.$ac_objext'
20784   { (case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_try") 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); }; }; then
20793
20794   { echo "$as_me:$LINENO: result: yes" >&5
20795 echo "${ECHO_T}yes" >&6; }
20796   llvm_cv_win32_elmcb_pcstr="PCSTR"
20797
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802
20803   { echo "$as_me:$LINENO: result: no" >&5
20804 echo "${ECHO_T}no" >&6; }
20805   llvm_cv_win32_elmcb_pcstr="PSTR"
20806
20807 fi
20808
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810
20811 cat >>confdefs.h <<_ACEOF
20812 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20813 _ACEOF
20814
20815 fi
20816
20817
20818
20819   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20820 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20821 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824
20825     ac_ext=cpp
20826 ac_cpp='$CXXCPP $CPPFLAGS'
20827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831     cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 #include <math.h>
20838 int
20839 main ()
20840 {
20841 float f; isnan(f);
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_compile") 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } &&
20860          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20861   { (case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_try") 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; } &&
20870          { ac_try='test -s conftest.$ac_objext'
20871   { (case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_try") 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; }; then
20880   ac_cv_func_isnan_in_math_h=yes
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885         ac_cv_func_isnan_in_math_h=no
20886 fi
20887
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889     ac_ext=c
20890 ac_cpp='$CPP $CPPFLAGS'
20891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894
20895
20896 fi
20897 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20898 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20899
20900
20901 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20902
20903 cat >>confdefs.h <<\_ACEOF
20904 #define HAVE_ISNAN_IN_MATH_H 1
20905 _ACEOF
20906
20907 fi
20908
20909
20910   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20911 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20912 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20913   echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915
20916     ac_ext=cpp
20917 ac_cpp='$CXXCPP $CPPFLAGS'
20918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20921
20922     cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <cmath>
20929 int
20930 main ()
20931 {
20932 float f; isnan(f);
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944   (eval "$ac_compile") 2>conftest.er1
20945   ac_status=$?
20946   grep -v '^ *+' conftest.er1 >conftest.err
20947   rm -f conftest.er1
20948   cat conftest.err >&5
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); } &&
20951          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20952   { (case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_try") 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); }; } &&
20961          { ac_try='test -s conftest.$ac_objext'
20962   { (case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_try") 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_cv_func_isnan_in_cmath=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976         ac_cv_func_isnan_in_cmath=no
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980     ac_ext=c
20981 ac_cpp='$CPP $CPPFLAGS'
20982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20985
20986
20987 fi
20988 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20989 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20990
20991 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_ISNAN_IN_CMATH 1
20995 _ACEOF
20996
20997 fi
20998
20999
21000   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21001 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21002 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005
21006     ac_ext=cpp
21007 ac_cpp='$CXXCPP $CPPFLAGS'
21008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21011
21012     cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 #include <cmath>
21019 int
21020 main ()
21021 {
21022 float f; std::isnan(f);
21023   ;
21024   return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_compile") 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } &&
21041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21042   { (case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_try") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; } &&
21051          { ac_try='test -s conftest.$ac_objext'
21052   { (case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_try") 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ac_cv_func_std_isnan_in_cmath=yes
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066         ac_cv_func_std_isnan_in_cmath=no
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21070     ac_ext=c
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075
21076
21077 fi
21078 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21079 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21080
21081 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21082
21083 cat >>confdefs.h <<\_ACEOF
21084 #define HAVE_STD_ISNAN_IN_CMATH 1
21085 _ACEOF
21086
21087 fi
21088
21089
21090
21091
21092   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21093 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21094 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21095   echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097
21098     ac_ext=cpp
21099 ac_cpp='$CXXCPP $CPPFLAGS'
21100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21103
21104     cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110 #include <math.h>
21111 int
21112 main ()
21113 {
21114 float f; isinf(f);
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_compile") 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } &&
21133          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21134   { (case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_try") 2>&5
21140   ac_status=$?
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); }; } &&
21143          { ac_try='test -s conftest.$ac_objext'
21144   { (case "(($ac_try" in
21145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146   *) ac_try_echo=$ac_try;;
21147 esac
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149   (eval "$ac_try") 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_func_isinf_in_math_h=yes
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158         ac_cv_func_isinf_in_math_h=no
21159 fi
21160
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162     ac_ext=c
21163 ac_cpp='$CPP $CPPFLAGS'
21164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167
21168
21169 fi
21170 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21171 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21172
21173 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21174
21175 cat >>confdefs.h <<\_ACEOF
21176 #define HAVE_ISINF_IN_MATH_H 1
21177 _ACEOF
21178
21179 fi
21180
21181
21182   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21183 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21184 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187
21188     ac_ext=cpp
21189 ac_cpp='$CXXCPP $CPPFLAGS'
21190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21193
21194     cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 #include <cmath>
21201 int
21202 main ()
21203 {
21204 float f; isinf(f);
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_compile") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } &&
21223          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21224   { (case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229   (eval "$ac_try") 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; } &&
21233          { ac_try='test -s conftest.$ac_objext'
21234   { (case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_try") 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; }; then
21243   ac_cv_func_isinf_in_cmath=yes
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248         ac_cv_func_isinf_in_cmath=no
21249 fi
21250
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252     ac_ext=c
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259 fi
21260 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21261 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21262
21263 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21264
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_ISINF_IN_CMATH 1
21267 _ACEOF
21268
21269 fi
21270
21271
21272   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21273 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21274 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277
21278     ac_ext=cpp
21279 ac_cpp='$CXXCPP $CPPFLAGS'
21280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284     cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <cmath>
21291 int
21292 main ()
21293 {
21294 float f; std::isinf(f);
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306   (eval "$ac_compile") 2>conftest.er1
21307   ac_status=$?
21308   grep -v '^ *+' conftest.er1 >conftest.err
21309   rm -f conftest.er1
21310   cat conftest.err >&5
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } &&
21313          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21314   { (case "(($ac_try" in
21315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316   *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319   (eval "$ac_try") 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); }; } &&
21323          { ac_try='test -s conftest.$ac_objext'
21324   { (case "(($ac_try" in
21325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326   *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329   (eval "$ac_try") 2>&5
21330   ac_status=$?
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); }; }; then
21333   ac_cv_func_std_isinf_in_cmath=yes
21334 else
21335   echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338         ac_cv_func_std_isinf_in_cmath=no
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342     ac_ext=c
21343 ac_cpp='$CPP $CPPFLAGS'
21344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21347
21348
21349 fi
21350 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21351 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21352
21353 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21354
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_STD_ISINF_IN_CMATH 1
21357 _ACEOF
21358
21359 fi
21360
21361
21362   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21363 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21364 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21365   echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367
21368     ac_ext=cpp
21369 ac_cpp='$CXXCPP $CPPFLAGS'
21370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21373
21374     cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 #include <ieeefp.h>
21381 int
21382 main ()
21383 {
21384 float f; finite(f);
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393   *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396   (eval "$ac_compile") 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } &&
21403          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21404   { (case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_try") 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; } &&
21413          { ac_try='test -s conftest.$ac_objext'
21414   { (case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419   (eval "$ac_try") 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   ac_cv_func_finite_in_ieeefp_h=yes
21424 else
21425   echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428         ac_cv_func_finite_in_ieeefp_h=no
21429 fi
21430
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432     ac_ext=c
21433 ac_cpp='$CPP $CPPFLAGS'
21434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21437
21438
21439 fi
21440 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21441 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21442
21443 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21444
21445 cat >>confdefs.h <<\_ACEOF
21446 #define HAVE_FINITE_IN_IEEEFP_H 1
21447 _ACEOF
21448
21449 fi
21450
21451
21452
21453 if test "$llvm_cv_platform_type" = "Unix" ; then
21454
21455
21456 for ac_header in stdlib.h unistd.h
21457 do
21458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 fi
21465 ac_res=`eval echo '${'$as_ac_Header'}'`
21466                { echo "$as_me:$LINENO: result: $ac_res" >&5
21467 echo "${ECHO_T}$ac_res" >&6; }
21468 else
21469   # Is the header compilable?
21470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 $ac_includes_default
21479 #include <$ac_header>
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485   *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488   (eval "$ac_compile") 2>conftest.er1
21489   ac_status=$?
21490   grep -v '^ *+' conftest.er1 >conftest.err
21491   rm -f conftest.er1
21492   cat conftest.err >&5
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); } &&
21495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21496   { (case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_try") 2>&5
21502   ac_status=$?
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); }; } &&
21505          { ac_try='test -s conftest.$ac_objext'
21506   { (case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_try") 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; }; then
21515   ac_header_compiler=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520         ac_header_compiler=no
21521 fi
21522
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21525 echo "${ECHO_T}$ac_header_compiler" >&6; }
21526
21527 # Is the header present?
21528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h.  */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h.  */
21536 #include <$ac_header>
21537 _ACEOF
21538 if { (ac_try="$ac_cpp conftest.$ac_ext"
21539 case "(($ac_try" in
21540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541   *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21545   ac_status=$?
21546   grep -v '^ *+' conftest.er1 >conftest.err
21547   rm -f conftest.er1
21548   cat conftest.err >&5
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); } >/dev/null; then
21551   if test -s conftest.err; then
21552     ac_cpp_err=$ac_c_preproc_warn_flag
21553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21554   else
21555     ac_cpp_err=
21556   fi
21557 else
21558   ac_cpp_err=yes
21559 fi
21560 if test -z "$ac_cpp_err"; then
21561   ac_header_preproc=yes
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566   ac_header_preproc=no
21567 fi
21568
21569 rm -f conftest.err conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21571 echo "${ECHO_T}$ac_header_preproc" >&6; }
21572
21573 # So?  What about this header?
21574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21575   yes:no: )
21576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21580     ac_header_preproc=yes
21581     ;;
21582   no:yes:* )
21583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21595     ( cat <<\_ASBOX
21596 ## ------------------------------------ ##
21597 ## Report this to http://llvm.org/bugs/ ##
21598 ## ------------------------------------ ##
21599 _ASBOX
21600      ) | sed "s/^/$as_me: WARNING:     /" >&2
21601     ;;
21602 esac
21603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608   eval "$as_ac_Header=\$ac_header_preproc"
21609 fi
21610 ac_res=`eval echo '${'$as_ac_Header'}'`
21611                { echo "$as_me:$LINENO: result: $ac_res" >&5
21612 echo "${ECHO_T}$ac_res" >&6; }
21613
21614 fi
21615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21616   cat >>confdefs.h <<_ACEOF
21617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21618 _ACEOF
21619
21620 fi
21621
21622 done
21623
21624
21625 for ac_func in getpagesize
21626 do
21627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21641 #define $ac_func innocuous_$ac_func
21642
21643 /* System header to define __stub macros and hopefully few prototypes,
21644     which can conflict with char $ac_func (); below.
21645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646     <limits.h> exists even on freestanding compilers.  */
21647
21648 #ifdef __STDC__
21649 # include <limits.h>
21650 #else
21651 # include <assert.h>
21652 #endif
21653
21654 #undef $ac_func
21655
21656 /* Override any GCC internal prototype to avoid an error.
21657    Use char because int might match the return type of a GCC
21658    builtin and then its argument prototype would still apply.  */
21659 #ifdef __cplusplus
21660 extern "C"
21661 #endif
21662 char $ac_func ();
21663 /* The GNU C library defines this for functions which it implements
21664     to always fail with ENOSYS.  Some functions are actually named
21665     something starting with __ and the normal name is an alias.  */
21666 #if defined __stub_$ac_func || defined __stub___$ac_func
21667 choke me
21668 #endif
21669
21670 int
21671 main ()
21672 {
21673 return $ac_func ();
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 rm -f conftest.$ac_objext conftest$ac_exeext
21679 if { (ac_try="$ac_link"
21680 case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685   (eval "$ac_link") 2>conftest.er1
21686   ac_status=$?
21687   grep -v '^ *+' conftest.er1 >conftest.err
21688   rm -f conftest.er1
21689   cat conftest.err >&5
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); } &&
21692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21693   { (case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_try") 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; } &&
21702          { ac_try='test -s conftest$ac_exeext'
21703   { (case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708   (eval "$ac_try") 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; }; then
21712   eval "$as_ac_var=yes"
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         eval "$as_ac_var=no"
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext \
21721       conftest$ac_exeext conftest.$ac_ext
21722 fi
21723 ac_res=`eval echo '${'$as_ac_var'}'`
21724                { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727   cat >>confdefs.h <<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21729 _ACEOF
21730
21731 fi
21732 done
21733
21734 { echo "$as_me:$LINENO: checking for working mmap" >&5
21735 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21736 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21737   echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739   if test "$cross_compiling" = yes; then
21740   ac_cv_func_mmap_fixed_mapped=no
21741 else
21742   cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748 $ac_includes_default
21749 /* malloc might have been renamed as rpl_malloc. */
21750 #undef malloc
21751
21752 /* Thanks to Mike Haertel and Jim Avera for this test.
21753    Here is a matrix of mmap possibilities:
21754         mmap private not fixed
21755         mmap private fixed at somewhere currently unmapped
21756         mmap private fixed at somewhere already mapped
21757         mmap shared not fixed
21758         mmap shared fixed at somewhere currently unmapped
21759         mmap shared fixed at somewhere already mapped
21760    For private mappings, we should verify that changes cannot be read()
21761    back from the file, nor mmap's back from the file at a different
21762    address.  (There have been systems where private was not correctly
21763    implemented like the infamous i386 svr4.0, and systems where the
21764    VM page cache was not coherent with the file system buffer cache
21765    like early versions of FreeBSD and possibly contemporary NetBSD.)
21766    For shared mappings, we should conversely verify that changes get
21767    propagated back to all the places they're supposed to be.
21768
21769    Grep wants private fixed already mapped.
21770    The main things grep needs to know about mmap are:
21771    * does it exist and is it safe to write into the mmap'd area
21772    * how to use it (BSD variants)  */
21773
21774 #include <fcntl.h>
21775 #include <sys/mman.h>
21776
21777 #if !STDC_HEADERS && !HAVE_STDLIB_H
21778 char *malloc ();
21779 #endif
21780
21781 /* This mess was copied from the GNU getpagesize.h.  */
21782 #if !HAVE_GETPAGESIZE
21783 /* Assume that all systems that can run configure have sys/param.h.  */
21784 # if !HAVE_SYS_PARAM_H
21785 #  define HAVE_SYS_PARAM_H 1
21786 # endif
21787
21788 # ifdef _SC_PAGESIZE
21789 #  define getpagesize() sysconf(_SC_PAGESIZE)
21790 # else /* no _SC_PAGESIZE */
21791 #  if HAVE_SYS_PARAM_H
21792 #   include <sys/param.h>
21793 #   ifdef EXEC_PAGESIZE
21794 #    define getpagesize() EXEC_PAGESIZE
21795 #   else /* no EXEC_PAGESIZE */
21796 #    ifdef NBPG
21797 #     define getpagesize() NBPG * CLSIZE
21798 #     ifndef CLSIZE
21799 #      define CLSIZE 1
21800 #     endif /* no CLSIZE */
21801 #    else /* no NBPG */
21802 #     ifdef NBPC
21803 #      define getpagesize() NBPC
21804 #     else /* no NBPC */
21805 #      ifdef PAGESIZE
21806 #       define getpagesize() PAGESIZE
21807 #      endif /* PAGESIZE */
21808 #     endif /* no NBPC */
21809 #    endif /* no NBPG */
21810 #   endif /* no EXEC_PAGESIZE */
21811 #  else /* no HAVE_SYS_PARAM_H */
21812 #   define getpagesize() 8192   /* punt totally */
21813 #  endif /* no HAVE_SYS_PARAM_H */
21814 # endif /* no _SC_PAGESIZE */
21815
21816 #endif /* no HAVE_GETPAGESIZE */
21817
21818 int
21819 main ()
21820 {
21821   char *data, *data2, *data3;
21822   int i, pagesize;
21823   int fd;
21824
21825   pagesize = getpagesize ();
21826
21827   /* First, make a file with some known garbage in it. */
21828   data = (char *) malloc (pagesize);
21829   if (!data)
21830     return 1;
21831   for (i = 0; i < pagesize; ++i)
21832     *(data + i) = rand ();
21833   umask (0);
21834   fd = creat ("conftest.mmap", 0600);
21835   if (fd < 0)
21836     return 1;
21837   if (write (fd, data, pagesize) != pagesize)
21838     return 1;
21839   close (fd);
21840
21841   /* Next, try to mmap the file at a fixed address which already has
21842      something else allocated at it.  If we can, also make sure that
21843      we see the same garbage.  */
21844   fd = open ("conftest.mmap", O_RDWR);
21845   if (fd < 0)
21846     return 1;
21847   data2 = (char *) malloc (2 * pagesize);
21848   if (!data2)
21849     return 1;
21850   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21851   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21852                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21853     return 1;
21854   for (i = 0; i < pagesize; ++i)
21855     if (*(data + i) != *(data2 + i))
21856       return 1;
21857
21858   /* Finally, make sure that changes to the mapped area do not
21859      percolate back to the file as seen by read().  (This is a bug on
21860      some variants of i386 svr4.0.)  */
21861   for (i = 0; i < pagesize; ++i)
21862     *(data2 + i) = *(data2 + i) + 1;
21863   data3 = (char *) malloc (pagesize);
21864   if (!data3)
21865     return 1;
21866   if (read (fd, data3, pagesize) != pagesize)
21867     return 1;
21868   for (i = 0; i < pagesize; ++i)
21869     if (*(data + i) != *(data3 + i))
21870       return 1;
21871   close (fd);
21872   return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_link") 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21886   { (case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_try") 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); }; }; then
21895   ac_cv_func_mmap_fixed_mapped=yes
21896 else
21897   echo "$as_me: program exited with status $ac_status" >&5
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ( exit $ac_status )
21902 ac_cv_func_mmap_fixed_mapped=no
21903 fi
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21905 fi
21906
21907
21908 fi
21909 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21910 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21911 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21912
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_MMAP 1
21915 _ACEOF
21916
21917 fi
21918 rm -f conftest.mmap
21919
21920   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21921 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21922 if test "${ac_cv_func_mmap_file+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925    ac_ext=c
21926 ac_cpp='$CPP $CPPFLAGS'
21927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21930
21931   if test "$cross_compiling" = yes; then
21932   ac_cv_func_mmap_file=no
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935
21936     /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941
21942 #include <sys/types.h>
21943 #include <sys/mman.h>
21944 #include <fcntl.h>
21945
21946 int
21947 main ()
21948 {
21949
21950   int fd;
21951   fd = creat ("foo",0777);
21952   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21953   unlink ("foo");
21954   return (fd != (int) MAP_FAILED);
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963   *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966   (eval "$ac_link") 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970   { (case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_try") 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   ac_cv_func_mmap_file=yes
21980 else
21981   echo "$as_me: program exited with status $ac_status" >&5
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 ( exit $ac_status )
21986 ac_cv_func_mmap_file=no
21987 fi
21988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21989 fi
21990
21991
21992   ac_ext=c
21993 ac_cpp='$CPP $CPPFLAGS'
21994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21997
21998
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22001 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22002 if test "$ac_cv_func_mmap_file" = yes; then
22003
22004 cat >>confdefs.h <<\_ACEOF
22005 #define HAVE_MMAP_FILE
22006 _ACEOF
22007
22008    MMAP_FILE=yes
22009
22010 fi
22011
22012   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22013 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22014 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22015   echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017   if test "$llvm_cv_os_type" = "Interix" ; then
22018    ac_cv_need_dev_zero_for_mmap=yes
22019  else
22020    ac_cv_need_dev_zero_for_mmap=no
22021  fi
22022
22023 fi
22024 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22025 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22026 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22027
22028 cat >>confdefs.h <<\_ACEOF
22029 #define NEED_DEV_ZERO_FOR_MMAP 1
22030 _ACEOF
22031
22032 fi
22033
22034   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22035   then
22036     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22037 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22038   fi
22039   if test "$ac_cv_func_mmap_file" = "no"
22040   then
22041     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22042 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22043   fi
22044 fi
22045
22046 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22047 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22048 ac_ext=cpp
22049 ac_cpp='$CXXCPP $CPPFLAGS'
22050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22053
22054 cat >conftest.$ac_ext <<_ACEOF
22055
22056   /* confdefs.h.  */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h.  */
22061
22062     int main() {
22063       volatile unsigned long val = 1;
22064       __sync_synchronize();
22065       __sync_val_compare_and_swap(&val, 1, 0);
22066       __sync_add_and_fetch(&val, 1);
22067       __sync_sub_and_fetch(&val, 1);
22068       return 0;
22069     }
22070
22071
22072 _ACEOF
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_link") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } &&
22087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22088   { (case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_try") 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; } &&
22097          { ac_try='test -s conftest$ac_exeext'
22098   { (case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_try") 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107
22108   { echo "$as_me:$LINENO: result: yes" >&5
22109 echo "${ECHO_T}yes" >&6; }
22110
22111 cat >>confdefs.h <<\_ACEOF
22112 #define LLVM_HAS_ATOMICS 1
22113 _ACEOF
22114
22115
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120
22121   { echo "$as_me:$LINENO: result: no" >&5
22122 echo "${ECHO_T}no" >&6; }
22123
22124 cat >>confdefs.h <<\_ACEOF
22125 #define LLVM_HAS_ATOMICS 0
22126 _ACEOF
22127
22128   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22129 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22130
22131 fi
22132
22133 rm -f core conftest.err conftest.$ac_objext \
22134       conftest$ac_exeext conftest.$ac_ext
22135 ac_ext=c
22136 ac_cpp='$CPP $CPPFLAGS'
22137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22140
22141
22142
22143 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22144   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22145 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22146 if test "${llvm_cv_linux_mixed+set}" = set; then
22147   echo $ECHO_N "(cached) $ECHO_C" >&6
22148 else
22149    ac_ext=c
22150 ac_cpp='$CPP $CPPFLAGS'
22151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22154
22155   cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 #ifndef __x86_64__
22162        error: Not x86-64 even if uname says so!
22163       #endif
22164
22165 int
22166 main ()
22167 {
22168
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_compile") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } &&
22187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22188   { (case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193   (eval "$ac_try") 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); }; } &&
22197          { ac_try='test -s conftest.$ac_objext'
22198   { (case "(($ac_try" in
22199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200   *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203   (eval "$ac_try") 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   llvm_cv_linux_mixed=no
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212         llvm_cv_linux_mixed=yes
22213 fi
22214
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216   ac_ext=c
22217 ac_cpp='$CPP $CPPFLAGS'
22218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22221
22222
22223 fi
22224 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22225 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22226
22227   if test "$llvm_cv_linux_mixed" = "yes"; then
22228     llvm_cv_target_arch="x86"
22229     ARCH="x86"
22230   fi
22231 fi
22232
22233
22234 for ac_func in __dso_handle
22235 do
22236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22250 #define $ac_func innocuous_$ac_func
22251
22252 /* System header to define __stub macros and hopefully few prototypes,
22253     which can conflict with char $ac_func (); below.
22254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255     <limits.h> exists even on freestanding compilers.  */
22256
22257 #ifdef __STDC__
22258 # include <limits.h>
22259 #else
22260 # include <assert.h>
22261 #endif
22262
22263 #undef $ac_func
22264
22265 /* Override any GCC internal prototype to avoid an error.
22266    Use char because int might match the return type of a GCC
22267    builtin and then its argument prototype would still apply.  */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273     to always fail with ENOSYS.  Some functions are actually named
22274     something starting with __ and the normal name is an alias.  */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22276 choke me
22277 #endif
22278
22279 int
22280 main ()
22281 {
22282 return $ac_func ();
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_link") 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } &&
22301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22302   { (case "(($ac_try" in
22303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304   *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307   (eval "$ac_try") 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; } &&
22311          { ac_try='test -s conftest$ac_exeext'
22312   { (case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317   (eval "$ac_try") 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; }; then
22321   eval "$as_ac_var=yes"
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326         eval "$as_ac_var=no"
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext \
22330       conftest$ac_exeext conftest.$ac_ext
22331 fi
22332 ac_res=`eval echo '${'$as_ac_var'}'`
22333                { echo "$as_me:$LINENO: result: $ac_res" >&5
22334 echo "${ECHO_T}$ac_res" >&6; }
22335 if test `eval echo '${'$as_ac_var'}'` = yes; then
22336   cat >>confdefs.h <<_ACEOF
22337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22338 _ACEOF
22339
22340 fi
22341 done
22342
22343
22344 SHLIBEXT=$libltdl_cv_shlibext
22345
22346
22347 if test "${prefix}" = "NONE" ; then
22348   prefix="/usr/local"
22349 fi
22350 eval LLVM_PREFIX="${prefix}";
22351 eval LLVM_BINDIR="${prefix}/bin";
22352 eval LLVM_DATADIR="${prefix}/share/llvm";
22353 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22354 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22355 eval LLVM_INCLUDEDIR="${prefix}/include";
22356 eval LLVM_INFODIR="${prefix}/info";
22357 eval LLVM_MANDIR="${prefix}/man";
22358 LLVM_CONFIGTIME=`date`
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22370   LLVM_CONFIGTIME="(timestamp not enabled)"
22371 fi
22372
22373
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_PREFIX "$LLVM_PREFIX"
22376 _ACEOF
22377
22378
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_BINDIR "$LLVM_BINDIR"
22381 _ACEOF
22382
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DATADIR "$LLVM_DATADIR"
22386 _ACEOF
22387
22388
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22391 _ACEOF
22392
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22396 _ACEOF
22397
22398
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22401 _ACEOF
22402
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_INFODIR "$LLVM_INFODIR"
22406 _ACEOF
22407
22408
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_MANDIR "$LLVM_MANDIR"
22411 _ACEOF
22412
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22416 _ACEOF
22417
22418
22419 cat >>confdefs.h <<_ACEOF
22420 #define LLVM_HOST_TRIPLE "$host"
22421 _ACEOF
22422
22423
22424 cat >>confdefs.h <<_ACEOF
22425 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22426 _ACEOF
22427
22428
22429 if test "$BINDINGS_TO_BUILD" = auto ; then
22430   BINDINGS_TO_BUILD=""
22431   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22432     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22433   fi
22434 fi
22435 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22436
22437
22438 ALL_BINDINGS=ocaml
22439
22440
22441 binding_prereqs_failed=0
22442 for a_binding in $BINDINGS_TO_BUILD ; do
22443   case "$a_binding" in
22444   ocaml)
22445     if test "x$OCAMLC" = x ; then
22446       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22447 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22448       binding_prereqs_failed=1
22449     fi
22450     if test "x$OCAMLDEP" = x ; then
22451       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22452 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22453       binding_prereqs_failed=1
22454     fi
22455     if test "x$OCAMLOPT" = x ; then
22456       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22457 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22458           fi
22459     if test "x$with_ocaml_libdir" != xauto ; then
22460       OCAML_LIBDIR=$with_ocaml_libdir
22461
22462     else
22463       ocaml_stdlib="`"$OCAMLC" -where`"
22464       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22465       then
22466         # ocaml stdlib is beneath our prefix; use stdlib
22467         OCAML_LIBDIR=$ocaml_stdlib
22468
22469       else
22470         # ocaml stdlib is outside our prefix; use libdir/ocaml
22471         OCAML_LIBDIR=${prefix}/lib/ocaml
22472
22473       fi
22474     fi
22475     ;;
22476   esac
22477 done
22478 if test "$binding_prereqs_failed" = 1 ; then
22479   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22480 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22481    { (exit 1); exit 1; }; }
22482 fi
22483
22484 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22485 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22486 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22487   echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489    ac_ext=cpp
22490 ac_cpp='$CXXCPP $CPPFLAGS'
22491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22494
22495   oldcxxflags="$CXXFLAGS"
22496   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22497   cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22504 int
22505 main ()
22506 {
22507 X<int>().f();
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_compile") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } &&
22526          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22527   { (case "(($ac_try" in
22528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529   *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532   (eval "$ac_try") 2>&5
22533   ac_status=$?
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); }; } &&
22536          { ac_try='test -s conftest.$ac_objext'
22537   { (case "(($ac_try" in
22538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539   *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542   (eval "$ac_try") 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; }; then
22546   llvm_cv_cxx_visibility_inlines_hidden=yes
22547 else
22548   echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22550
22551         llvm_cv_cxx_visibility_inlines_hidden=no
22552 fi
22553
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555   CXXFLAGS="$oldcxxflags"
22556   ac_ext=c
22557 ac_cpp='$CPP $CPPFLAGS'
22558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22561
22562
22563 fi
22564 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22565 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22566 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22567   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22568
22569 else
22570   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22571
22572 fi
22573
22574
22575 if test "$llvm_cv_link_use_r" = "yes" ; then
22576   RPATH="-Wl,-R"
22577 else
22578   RPATH="-Wl,-rpath"
22579 fi
22580
22581
22582 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22583   RDYNAMIC="-rdynamic"
22584 else
22585   RDYNAMIC=""
22586 fi
22587
22588
22589
22590 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22591
22592
22593
22594
22595
22596
22597 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22598
22599 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22600
22601 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22602
22603 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22604
22605 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22606
22607
22608 ac_config_files="$ac_config_files Makefile.config"
22609
22610
22611 ac_config_files="$ac_config_files llvm.spec"
22612
22613
22614 ac_config_files="$ac_config_files docs/doxygen.cfg"
22615
22616
22617 if test "${clang_src_root}" = ""; then
22618   clang_src_root="$srcdir/tools/clang"
22619 fi
22620 if test -f ${clang_src_root}/README.txt; then
22621     configh="include/clang/Config/config.h"
22622   doxy="docs/doxygen.cfg"
22623   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22624
22625   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22626
22627 fi
22628
22629 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22630
22631
22632 test "x$program_prefix" = "xNONE" && program_prefix=""
22633
22634
22635
22636 ac_config_commands="$ac_config_commands setup"
22637
22638 ac_config_commands="$ac_config_commands Makefile"
22639
22640
22641 ac_config_commands="$ac_config_commands Makefile.common"
22642
22643
22644 ac_config_commands="$ac_config_commands examples/Makefile"
22645
22646
22647 ac_config_commands="$ac_config_commands lib/Makefile"
22648
22649
22650 ac_config_commands="$ac_config_commands test/Makefile"
22651
22652
22653 ac_config_commands="$ac_config_commands test/Makefile.tests"
22654
22655
22656 ac_config_commands="$ac_config_commands unittests/Makefile"
22657
22658
22659 ac_config_commands="$ac_config_commands tools/Makefile"
22660
22661
22662 ac_config_commands="$ac_config_commands utils/Makefile"
22663
22664
22665 ac_config_commands="$ac_config_commands projects/Makefile"
22666
22667
22668 ac_config_commands="$ac_config_commands bindings/Makefile"
22669
22670
22671 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22672
22673
22674
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option --config-cache.
22679 # It is not useful on other systems.  If it contains results you don't
22680 # want to keep, you may remove or edit it.
22681 #
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22684 #
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22688
22689 _ACEOF
22690
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22696 (
22697   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698     eval ac_val=\$$ac_var
22699     case $ac_val in #(
22700     *${as_nl}*)
22701       case $ac_var in #(
22702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22704       esac
22705       case $ac_var in #(
22706       _ | IFS | as_nl) ;; #(
22707       *) $as_unset $ac_var ;;
22708       esac ;;
22709     esac
22710   done
22711
22712   (set) 2>&1 |
22713     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714     *${as_nl}ac_space=\ *)
22715       # `set' does not quote correctly, so add quotes (double-quote
22716       # substitution turns \\\\ into \\, and sed turns \\ into \).
22717       sed -n \
22718         "s/'/'\\\\''/g;
22719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720       ;; #(
22721     *)
22722       # `set' quotes correctly as required by POSIX, so do not add quotes.
22723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22724       ;;
22725     esac |
22726     sort
22727 ) |
22728   sed '
22729      /^ac_cv_env_/b end
22730      t clear
22731      :clear
22732      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733      t end
22734      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735      :end' >>confcache
22736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737   if test -w "$cache_file"; then
22738     test "x$cache_file" != "x/dev/null" &&
22739       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741     cat confcache >$cache_file
22742   else
22743     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22745   fi
22746 fi
22747 rm -f confcache
22748
22749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752
22753 DEFS=-DHAVE_CONFIG_H
22754
22755 ac_libobjs=
22756 ac_ltlibobjs=
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758   # 1. Remove the extension, and $U if already installed.
22759   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760   ac_i=`echo "$ac_i" | sed "$ac_script"`
22761   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22762   #    will be set to the directory where LIBOBJS objects are built.
22763   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22765 done
22766 LIBOBJS=$ac_libobjs
22767
22768 LTLIBOBJS=$ac_ltlibobjs
22769
22770
22771 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22772   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&5
22774 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22775 Usually this means the macro was only invoked conditionally." >&2;}
22776    { (exit 1); exit 1; }; }
22777 fi
22778 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22779   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&5
22781 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22782 Usually this means the macro was only invoked conditionally." >&2;}
22783    { (exit 1); exit 1; }; }
22784 fi
22785
22786 : ${CONFIG_STATUS=./config.status}
22787 ac_clean_files_save=$ac_clean_files
22788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22791 cat >$CONFIG_STATUS <<_ACEOF
22792 #! $SHELL
22793 # Generated by $as_me.
22794 # Run this file to recreate the current configuration.
22795 # Compiler output produced by configure, useful for debugging
22796 # configure, is in config.log if it exists.
22797
22798 debug=false
22799 ac_cs_recheck=false
22800 ac_cs_silent=false
22801 SHELL=\${CONFIG_SHELL-$SHELL}
22802 _ACEOF
22803
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 ## --------------------- ##
22806 ## M4sh Initialization.  ##
22807 ## --------------------- ##
22808
22809 # Be Bourne compatible
22810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22811   emulate sh
22812   NULLCMD=:
22813   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22814   # is contrary to our usage.  Disable this feature.
22815   alias -g '${1+"$@"}'='"$@"'
22816   setopt NO_GLOB_SUBST
22817 else
22818   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22819 fi
22820 BIN_SH=xpg4; export BIN_SH # for Tru64
22821 DUALCASE=1; export DUALCASE # for MKS sh
22822
22823
22824 # PATH needs CR
22825 # Avoid depending upon Character Ranges.
22826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829 as_cr_digits='0123456789'
22830 as_cr_alnum=$as_cr_Letters$as_cr_digits
22831
22832 # The user is always right.
22833 if test "${PATH_SEPARATOR+set}" != set; then
22834   echo "#! /bin/sh" >conf$$.sh
22835   echo  "exit 0"   >>conf$$.sh
22836   chmod +x conf$$.sh
22837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22838     PATH_SEPARATOR=';'
22839   else
22840     PATH_SEPARATOR=:
22841   fi
22842   rm -f conf$$.sh
22843 fi
22844
22845 # Support unset when possible.
22846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22847   as_unset=unset
22848 else
22849   as_unset=false
22850 fi
22851
22852
22853 # IFS
22854 # We need space, tab and new line, in precisely that order.  Quoting is
22855 # there to prevent editors from complaining about space-tab.
22856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22857 # splitting by setting IFS to empty value.)
22858 as_nl='
22859 '
22860 IFS=" ""        $as_nl"
22861
22862 # Find who we are.  Look in the path if we contain no directory separator.
22863 case $0 in
22864   *[\\/]* ) as_myself=$0 ;;
22865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22867 do
22868   IFS=$as_save_IFS
22869   test -z "$as_dir" && as_dir=.
22870   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22871 done
22872 IFS=$as_save_IFS
22873
22874      ;;
22875 esac
22876 # We did not find ourselves, most probably we were run as `sh COMMAND'
22877 # in which case we are not to be found in the path.
22878 if test "x$as_myself" = x; then
22879   as_myself=$0
22880 fi
22881 if test ! -f "$as_myself"; then
22882   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22883   { (exit 1); exit 1; }
22884 fi
22885
22886 # Work around bugs in pre-3.0 UWIN ksh.
22887 for as_var in ENV MAIL MAILPATH
22888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22889 done
22890 PS1='$ '
22891 PS2='> '
22892 PS4='+ '
22893
22894 # NLS nuisances.
22895 for as_var in \
22896   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22897   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22898   LC_TELEPHONE LC_TIME
22899 do
22900   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22901     eval $as_var=C; export $as_var
22902   else
22903     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22904   fi
22905 done
22906
22907 # Required to use basename.
22908 if expr a : '\(a\)' >/dev/null 2>&1 &&
22909    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22910   as_expr=expr
22911 else
22912   as_expr=false
22913 fi
22914
22915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22916   as_basename=basename
22917 else
22918   as_basename=false
22919 fi
22920
22921
22922 # Name of the executable.
22923 as_me=`$as_basename -- "$0" ||
22924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22925          X"$0" : 'X\(//\)$' \| \
22926          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22927 echo X/"$0" |
22928     sed '/^.*\/\([^/][^/]*\)\/*$/{
22929             s//\1/
22930             q
22931           }
22932           /^X\/\(\/\/\)$/{
22933             s//\1/
22934             q
22935           }
22936           /^X\/\(\/\).*/{
22937             s//\1/
22938             q
22939           }
22940           s/.*/./; q'`
22941
22942 # CDPATH.
22943 $as_unset CDPATH
22944
22945
22946
22947   as_lineno_1=$LINENO
22948   as_lineno_2=$LINENO
22949   test "x$as_lineno_1" != "x$as_lineno_2" &&
22950   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22951
22952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953   # uniformly replaced by the line number.  The first 'sed' inserts a
22954   # line-number line after each line using $LINENO; the second 'sed'
22955   # does the real work.  The second script uses 'N' to pair each
22956   # line-number line with the line containing $LINENO, and appends
22957   # trailing '-' during substitution so that $LINENO is not a special
22958   # case at line end.
22959   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22960   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22961   # E. McMahon (1931-1989) for sed's syntax.  :-)
22962   sed -n '
22963     p
22964     /[$]LINENO/=
22965   ' <$as_myself |
22966     sed '
22967       s/[$]LINENO.*/&-/
22968       t lineno
22969       b
22970       :lineno
22971       N
22972       :loop
22973       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22974       t loop
22975       s/-\n.*//
22976     ' >$as_me.lineno &&
22977   chmod +x "$as_me.lineno" ||
22978     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22979    { (exit 1); exit 1; }; }
22980
22981   # Don't try to exec as it changes $[0], causing all sort of problems
22982   # (the dirname of $[0] is not the place where we might find the
22983   # original and so on.  Autoconf is especially sensitive to this).
22984   . "./$as_me.lineno"
22985   # Exit status is that of the last command.
22986   exit
22987 }
22988
22989
22990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22991   as_dirname=dirname
22992 else
22993   as_dirname=false
22994 fi
22995
22996 ECHO_C= ECHO_N= ECHO_T=
22997 case `echo -n x` in
22998 -n*)
22999   case `echo 'x\c'` in
23000   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23001   *)   ECHO_C='\c';;
23002   esac;;
23003 *)
23004   ECHO_N='-n';;
23005 esac
23006
23007 if expr a : '\(a\)' >/dev/null 2>&1 &&
23008    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23009   as_expr=expr
23010 else
23011   as_expr=false
23012 fi
23013
23014 rm -f conf$$ conf$$.exe conf$$.file
23015 if test -d conf$$.dir; then
23016   rm -f conf$$.dir/conf$$.file
23017 else
23018   rm -f conf$$.dir
23019   mkdir conf$$.dir
23020 fi
23021 echo >conf$$.file
23022 if ln -s conf$$.file conf$$ 2>/dev/null; then
23023   as_ln_s='ln -s'
23024   # ... but there are two gotchas:
23025   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23026   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23027   # In both cases, we have to default to `cp -p'.
23028   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23029     as_ln_s='cp -p'
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23031   as_ln_s=ln
23032 else
23033   as_ln_s='cp -p'
23034 fi
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23037
23038 if mkdir -p . 2>/dev/null; then
23039   as_mkdir_p=:
23040 else
23041   test -d ./-p && rmdir ./-p
23042   as_mkdir_p=false
23043 fi
23044
23045 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23046 # systems may use methods other than mode bits to determine executability.
23047 cat >conf$$.file <<_ASEOF
23048 #! /bin/sh
23049 exit 0
23050 _ASEOF
23051 chmod +x conf$$.file
23052 if test -x conf$$.file >/dev/null 2>&1; then
23053   as_executable_p="test -x"
23054 else
23055   as_executable_p=:
23056 fi
23057 rm -f conf$$.file
23058
23059 # Sed expression to map a string onto a valid CPP name.
23060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23061
23062 # Sed expression to map a string onto a valid variable name.
23063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23064
23065
23066 exec 6>&1
23067
23068 # Save the log message, to keep $[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling.
23071 ac_log="
23072 This file was extended by LLVM $as_me 3.5svn, which was
23073 generated by GNU Autoconf 2.60.  Invocation command line was
23074
23075   CONFIG_FILES    = $CONFIG_FILES
23076   CONFIG_HEADERS  = $CONFIG_HEADERS
23077   CONFIG_LINKS    = $CONFIG_LINKS
23078   CONFIG_COMMANDS = $CONFIG_COMMANDS
23079   $ $0 $@
23080
23081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23082 "
23083
23084 _ACEOF
23085
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 # Files that config.status was made for.
23088 config_files="$ac_config_files"
23089 config_headers="$ac_config_headers"
23090 config_commands="$ac_config_commands"
23091
23092 _ACEOF
23093
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23095 ac_cs_usage="\
23096 \`$as_me' instantiates files from templates according to the
23097 current configuration.
23098
23099 Usage: $0 [OPTIONS] [FILE]...
23100
23101   -h, --help       print this help, then exit
23102   -V, --version    print version number, then exit
23103   -q, --quiet      do not print progress messages
23104   -d, --debug      don't remove temporary files
23105       --recheck    update $as_me by reconfiguring in the same conditions
23106   --file=FILE[:TEMPLATE]
23107                    instantiate the configuration file FILE
23108   --header=FILE[:TEMPLATE]
23109                    instantiate the configuration header FILE
23110
23111 Configuration files:
23112 $config_files
23113
23114 Configuration headers:
23115 $config_headers
23116
23117 Configuration commands:
23118 $config_commands
23119
23120 Report bugs to <bug-autoconf@gnu.org>."
23121
23122 _ACEOF
23123 cat >>$CONFIG_STATUS <<_ACEOF
23124 ac_cs_version="\\
23125 LLVM config.status 3.5svn
23126 configured by $0, generated by GNU Autoconf 2.60,
23127   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23128
23129 Copyright (C) 2006 Free Software Foundation, Inc.
23130 This config.status script is free software; the Free Software Foundation
23131 gives unlimited permission to copy, distribute and modify it."
23132
23133 ac_pwd='$ac_pwd'
23134 srcdir='$srcdir'
23135 INSTALL='$INSTALL'
23136 _ACEOF
23137
23138 cat >>$CONFIG_STATUS <<\_ACEOF
23139 # If no file are specified by the user, then we need to provide default
23140 # value.  By we need to know if files were specified by the user.
23141 ac_need_defaults=:
23142 while test $# != 0
23143 do
23144   case $1 in
23145   --*=*)
23146     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23147     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23148     ac_shift=:
23149     ;;
23150   *)
23151     ac_option=$1
23152     ac_optarg=$2
23153     ac_shift=shift
23154     ;;
23155   esac
23156
23157   case $ac_option in
23158   # Handling of the options.
23159   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23160     ac_cs_recheck=: ;;
23161   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23162     echo "$ac_cs_version"; exit ;;
23163   --debug | --debu | --deb | --de | --d | -d )
23164     debug=: ;;
23165   --file | --fil | --fi | --f )
23166     $ac_shift
23167     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23168     ac_need_defaults=false;;
23169   --header | --heade | --head | --hea )
23170     $ac_shift
23171     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23172     ac_need_defaults=false;;
23173   --he | --h)
23174     # Conflict between --help and --header
23175     { echo "$as_me: error: ambiguous option: $1
23176 Try \`$0 --help' for more information." >&2
23177    { (exit 1); exit 1; }; };;
23178   --help | --hel | -h )
23179     echo "$ac_cs_usage"; exit ;;
23180   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23181   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23182     ac_cs_silent=: ;;
23183
23184   # This is an error.
23185   -*) { echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2
23187    { (exit 1); exit 1; }; } ;;
23188
23189   *) ac_config_targets="$ac_config_targets $1"
23190      ac_need_defaults=false ;;
23191
23192   esac
23193   shift
23194 done
23195
23196 ac_configure_extra_args=
23197
23198 if $ac_cs_silent; then
23199   exec 6>/dev/null
23200   ac_configure_extra_args="$ac_configure_extra_args --silent"
23201 fi
23202
23203 _ACEOF
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 if \$ac_cs_recheck; then
23206   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23207   CONFIG_SHELL=$SHELL
23208   export CONFIG_SHELL
23209   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23210 fi
23211
23212 _ACEOF
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23214 exec 5>>config.log
23215 {
23216   echo
23217   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23218 ## Running $as_me. ##
23219 _ASBOX
23220   echo "$ac_log"
23221 } >&5
23222
23223 _ACEOF
23224 cat >>$CONFIG_STATUS <<_ACEOF
23225 #
23226 # INIT-COMMANDS
23227 #
23228 llvm_src="${srcdir}"
23229
23230 _ACEOF
23231
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233
23234 # Handling of arguments.
23235 for ac_config_target in $ac_config_targets
23236 do
23237   case $ac_config_target in
23238     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23239     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23240     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23241     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23242     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23243     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23244     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23245     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23246     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23247     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23248     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23249     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23250     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23251     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23252     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23253     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23254     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23255     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23256     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23257     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23258     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23259     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23260     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23261     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23262     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23263     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23264
23265   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23267    { (exit 1); exit 1; }; };;
23268   esac
23269 done
23270
23271
23272 # If the user did not use the arguments to specify the items to instantiate,
23273 # then the envvar interface is used.  Set only those that are not.
23274 # We use the long form for the default assignment because of an extremely
23275 # bizarre bug on SunOS 4.1.3.
23276 if $ac_need_defaults; then
23277   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23278   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23279   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23280 fi
23281
23282 # Have a temporary directory for convenience.  Make it in the build tree
23283 # simply because there is no reason against having it here, and in addition,
23284 # creating and moving files from /tmp can sometimes cause problems.
23285 # Hook for its removal unless debugging.
23286 # Note that there is a small window in which the directory will not be cleaned:
23287 # after its creation but before its name has been assigned to `$tmp'.
23288 $debug ||
23289 {
23290   tmp=
23291   trap 'exit_status=$?
23292   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23293 ' 0
23294   trap '{ (exit 1); exit 1; }' 1 2 13 15
23295 }
23296 # Create a (secure) tmp directory for tmp files.
23297
23298 {
23299   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23300   test -n "$tmp" && test -d "$tmp"
23301 }  ||
23302 {
23303   tmp=./conf$$-$RANDOM
23304   (umask 077 && mkdir "$tmp")
23305 } ||
23306 {
23307    echo "$me: cannot create a temporary directory in ." >&2
23308    { (exit 1); exit 1; }
23309 }
23310
23311 #
23312 # Set up the sed scripts for CONFIG_FILES section.
23313 #
23314
23315 # No need to generate the scripts if there are no CONFIG_FILES.
23316 # This happens for instance when ./config.status config.h
23317 if test -n "$CONFIG_FILES"; then
23318
23319 _ACEOF
23320
23321
23322
23323 ac_delim='%!_!# '
23324 for ac_last_try in false false false false false :; do
23325   cat >conf$$subs.sed <<_ACEOF
23326 SHELL!$SHELL$ac_delim
23327 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23328 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23329 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23330 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23331 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23332 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23333 exec_prefix!$exec_prefix$ac_delim
23334 prefix!$prefix$ac_delim
23335 program_transform_name!$program_transform_name$ac_delim
23336 bindir!$bindir$ac_delim
23337 sbindir!$sbindir$ac_delim
23338 libexecdir!$libexecdir$ac_delim
23339 datarootdir!$datarootdir$ac_delim
23340 datadir!$datadir$ac_delim
23341 sysconfdir!$sysconfdir$ac_delim
23342 sharedstatedir!$sharedstatedir$ac_delim
23343 localstatedir!$localstatedir$ac_delim
23344 includedir!$includedir$ac_delim
23345 oldincludedir!$oldincludedir$ac_delim
23346 docdir!$docdir$ac_delim
23347 infodir!$infodir$ac_delim
23348 htmldir!$htmldir$ac_delim
23349 dvidir!$dvidir$ac_delim
23350 pdfdir!$pdfdir$ac_delim
23351 psdir!$psdir$ac_delim
23352 libdir!$libdir$ac_delim
23353 localedir!$localedir$ac_delim
23354 mandir!$mandir$ac_delim
23355 DEFS!$DEFS$ac_delim
23356 ECHO_C!$ECHO_C$ac_delim
23357 ECHO_N!$ECHO_N$ac_delim
23358 ECHO_T!$ECHO_T$ac_delim
23359 LIBS!$LIBS$ac_delim
23360 build_alias!$build_alias$ac_delim
23361 host_alias!$host_alias$ac_delim
23362 target_alias!$target_alias$ac_delim
23363 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
23364 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
23365 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23366 CC!$CC$ac_delim
23367 CFLAGS!$CFLAGS$ac_delim
23368 LDFLAGS!$LDFLAGS$ac_delim
23369 CPPFLAGS!$CPPFLAGS$ac_delim
23370 ac_ct_CC!$ac_ct_CC$ac_delim
23371 EXEEXT!$EXEEXT$ac_delim
23372 OBJEXT!$OBJEXT$ac_delim
23373 CXX!$CXX$ac_delim
23374 CXXFLAGS!$CXXFLAGS$ac_delim
23375 ac_ct_CXX!$ac_ct_CXX$ac_delim
23376 CPP!$CPP$ac_delim
23377 subdirs!$subdirs$ac_delim
23378 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23379 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23380 build!$build$ac_delim
23381 build_cpu!$build_cpu$ac_delim
23382 build_vendor!$build_vendor$ac_delim
23383 build_os!$build_os$ac_delim
23384 host!$host$ac_delim
23385 host_cpu!$host_cpu$ac_delim
23386 host_vendor!$host_vendor$ac_delim
23387 host_os!$host_os$ac_delim
23388 target!$target$ac_delim
23389 target_cpu!$target_cpu$ac_delim
23390 target_vendor!$target_vendor$ac_delim
23391 target_os!$target_os$ac_delim
23392 OS!$OS$ac_delim
23393 HOST_OS!$HOST_OS$ac_delim
23394 TARGET_OS!$TARGET_OS$ac_delim
23395 LINKALL!$LINKALL$ac_delim
23396 NOLINKALL!$NOLINKALL$ac_delim
23397 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23398 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23399 ARCH!$ARCH$ac_delim
23400 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
23401 HOST_ARCH!$HOST_ARCH$ac_delim
23402 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23403 BUILD_CC!$BUILD_CC$ac_delim
23404 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23405 BUILD_CXX!$BUILD_CXX$ac_delim
23406 CVSBUILD!$CVSBUILD$ac_delim
23407 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23408 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23409 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23410 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23411 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23412 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23413 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23414 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23415 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23416 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23417 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23418 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23419 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23420 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23421 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23422 JIT!$JIT$ac_delim
23423 _ACEOF
23424
23425   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23426     break
23427   elif $ac_last_try; then
23428     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23430    { (exit 1); exit 1; }; }
23431   else
23432     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23433   fi
23434 done
23435
23436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23437 if test -n "$ac_eof"; then
23438   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23439   ac_eof=`expr $ac_eof + 1`
23440 fi
23441
23442 cat >>$CONFIG_STATUS <<_ACEOF
23443 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23445 _ACEOF
23446 sed '
23447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23448 s/^/s,@/; s/!/@,|#_!!_#|/
23449 :n
23450 t n
23451 s/'"$ac_delim"'$/,g/; t
23452 s/$/\\/; p
23453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23454 ' >>$CONFIG_STATUS <conf$$subs.sed
23455 rm -f conf$$subs.sed
23456 cat >>$CONFIG_STATUS <<_ACEOF
23457 CEOF$ac_eof
23458 _ACEOF
23459
23460
23461 ac_delim='%!_!# '
23462 for ac_last_try in false false false false false :; do
23463   cat >conf$$subs.sed <<_ACEOF
23464 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23465 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
23466 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23467 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23468 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23469 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23470 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23471 ENABLE_PIC!$ENABLE_PIC$ac_delim
23472 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23473 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23474 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23475 ALL_TARGETS!$ALL_TARGETS$ac_delim
23476 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23477 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23478 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23479 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23480 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23481 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23482 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23483 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23484 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23485 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23486 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
23487 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23488 NM!$NM$ac_delim
23489 ifGNUmake!$ifGNUmake$ac_delim
23490 LN_S!$LN_S$ac_delim
23491 CMP!$CMP$ac_delim
23492 CP!$CP$ac_delim
23493 DATE!$DATE$ac_delim
23494 FIND!$FIND$ac_delim
23495 GREP!$GREP$ac_delim
23496 MKDIR!$MKDIR$ac_delim
23497 MV!$MV$ac_delim
23498 RANLIB!$RANLIB$ac_delim
23499 AR!$AR$ac_delim
23500 RM!$RM$ac_delim
23501 SED!$SED$ac_delim
23502 TAR!$TAR$ac_delim
23503 BINPWD!$BINPWD$ac_delim
23504 GRAPHVIZ!$GRAPHVIZ$ac_delim
23505 DOT!$DOT$ac_delim
23506 FDP!$FDP$ac_delim
23507 NEATO!$NEATO$ac_delim
23508 TWOPI!$TWOPI$ac_delim
23509 CIRCO!$CIRCO$ac_delim
23510 GV!$GV$ac_delim
23511 DOTTY!$DOTTY$ac_delim
23512 XDOT!$XDOT$ac_delim
23513 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23514 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23515 INSTALL_DATA!$INSTALL_DATA$ac_delim
23516 BZIP2!$BZIP2$ac_delim
23517 CAT!$CAT$ac_delim
23518 DOXYGEN!$DOXYGEN$ac_delim
23519 GROFF!$GROFF$ac_delim
23520 GZIPBIN!$GZIPBIN$ac_delim
23521 PDFROFF!$PDFROFF$ac_delim
23522 ZIP!$ZIP$ac_delim
23523 OCAMLC!$OCAMLC$ac_delim
23524 OCAMLOPT!$OCAMLOPT$ac_delim
23525 OCAMLDEP!$OCAMLDEP$ac_delim
23526 OCAMLDOC!$OCAMLDOC$ac_delim
23527 GAS!$GAS$ac_delim
23528 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23529 EGREP!$EGREP$ac_delim
23530 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23531 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23532 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23533 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23534 LIBADD_DL!$LIBADD_DL$ac_delim
23535 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23536 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23537 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23538 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23539 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23540 PYTHON!$PYTHON$ac_delim
23541 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
23542 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
23543 USE_UDIS86!$USE_UDIS86$ac_delim
23544 USE_OPROFILE!$USE_OPROFILE$ac_delim
23545 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23546 XML2CONFIG!$XML2CONFIG$ac_delim
23547 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23548 LIBXML2_INC!$LIBXML2_INC$ac_delim
23549 CXXCPP!$CXXCPP$ac_delim
23550 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23551 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23552 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23553 MMAP_FILE!$MMAP_FILE$ac_delim
23554 SHLIBEXT!$SHLIBEXT$ac_delim
23555 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23556 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23557 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23558 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23559 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23560 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23561 _ACEOF
23562
23563   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23564     break
23565   elif $ac_last_try; then
23566     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23568    { (exit 1); exit 1; }; }
23569   else
23570     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23571   fi
23572 done
23573
23574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23575 if test -n "$ac_eof"; then
23576   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23577   ac_eof=`expr $ac_eof + 1`
23578 fi
23579
23580 cat >>$CONFIG_STATUS <<_ACEOF
23581 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23583 _ACEOF
23584 sed '
23585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23586 s/^/s,@/; s/!/@,|#_!!_#|/
23587 :n
23588 t n
23589 s/'"$ac_delim"'$/,g/; t
23590 s/$/\\/; p
23591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23592 ' >>$CONFIG_STATUS <conf$$subs.sed
23593 rm -f conf$$subs.sed
23594 cat >>$CONFIG_STATUS <<_ACEOF
23595 CEOF$ac_eof
23596 _ACEOF
23597
23598
23599 ac_delim='%!_!# '
23600 for ac_last_try in false false false false false :; do
23601   cat >conf$$subs.sed <<_ACEOF
23602 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23603 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23604 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23605 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23606 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23607 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23608 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23609 RPATH!$RPATH$ac_delim
23610 RDYNAMIC!$RDYNAMIC$ac_delim
23611 program_prefix!$program_prefix$ac_delim
23612 LIBOBJS!$LIBOBJS$ac_delim
23613 LTLIBOBJS!$LTLIBOBJS$ac_delim
23614 _ACEOF
23615
23616   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
23617     break
23618   elif $ac_last_try; then
23619     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23620 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23621    { (exit 1); exit 1; }; }
23622   else
23623     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23624   fi
23625 done
23626
23627 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23628 if test -n "$ac_eof"; then
23629   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23630   ac_eof=`expr $ac_eof + 1`
23631 fi
23632
23633 cat >>$CONFIG_STATUS <<_ACEOF
23634 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23636 _ACEOF
23637 sed '
23638 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23639 s/^/s,@/; s/!/@,|#_!!_#|/
23640 :n
23641 t n
23642 s/'"$ac_delim"'$/,g/; t
23643 s/$/\\/; p
23644 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23645 ' >>$CONFIG_STATUS <conf$$subs.sed
23646 rm -f conf$$subs.sed
23647 cat >>$CONFIG_STATUS <<_ACEOF
23648 :end
23649 s/|#_!!_#|//g
23650 CEOF$ac_eof
23651 _ACEOF
23652
23653
23654 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23655 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23656 # trailing colons and then remove the whole line if VPATH becomes empty
23657 # (actually we leave an empty line to preserve line numbers).
23658 if test "x$srcdir" = x.; then
23659   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23660 s/:*\$(srcdir):*/:/
23661 s/:*\${srcdir}:*/:/
23662 s/:*@srcdir@:*/:/
23663 s/^\([^=]*=[     ]*\):*/\1/
23664 s/:*$//
23665 s/^[^=]*=[       ]*$//
23666 }'
23667 fi
23668
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 fi # test -n "$CONFIG_FILES"
23671
23672
23673 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23674 do
23675   case $ac_tag in
23676   :[FHLC]) ac_mode=$ac_tag; continue;;
23677   esac
23678   case $ac_mode$ac_tag in
23679   :[FHL]*:*);;
23680   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23681 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23682    { (exit 1); exit 1; }; };;
23683   :[FH]-) ac_tag=-:-;;
23684   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23685   esac
23686   ac_save_IFS=$IFS
23687   IFS=:
23688   set x $ac_tag
23689   IFS=$ac_save_IFS
23690   shift
23691   ac_file=$1
23692   shift
23693
23694   case $ac_mode in
23695   :L) ac_source=$1;;
23696   :[FH])
23697     ac_file_inputs=
23698     for ac_f
23699     do
23700       case $ac_f in
23701       -) ac_f="$tmp/stdin";;
23702       *) # Look for the file first in the build tree, then in the source tree
23703          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23704          # because $ac_f cannot contain `:'.
23705          test -f "$ac_f" ||
23706            case $ac_f in
23707            [\\/$]*) false;;
23708            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23709            esac ||
23710            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23711 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23712    { (exit 1); exit 1; }; };;
23713       esac
23714       ac_file_inputs="$ac_file_inputs $ac_f"
23715     done
23716
23717     # Let's still pretend it is `configure' which instantiates (i.e., don't
23718     # use $as_me), people would be surprised to read:
23719     #    /* config.h.  Generated by config.status.  */
23720     configure_input="Generated from "`IFS=:
23721           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23722     if test x"$ac_file" != x-; then
23723       configure_input="$ac_file.  $configure_input"
23724       { echo "$as_me:$LINENO: creating $ac_file" >&5
23725 echo "$as_me: creating $ac_file" >&6;}
23726     fi
23727
23728     case $ac_tag in
23729     *:-:* | *:-) cat >"$tmp/stdin";;
23730     esac
23731     ;;
23732   esac
23733
23734   ac_dir=`$as_dirname -- "$ac_file" ||
23735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736          X"$ac_file" : 'X\(//\)[^/]' \| \
23737          X"$ac_file" : 'X\(//\)$' \| \
23738          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23739 echo X"$ac_file" |
23740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741             s//\1/
23742             q
23743           }
23744           /^X\(\/\/\)[^/].*/{
23745             s//\1/
23746             q
23747           }
23748           /^X\(\/\/\)$/{
23749             s//\1/
23750             q
23751           }
23752           /^X\(\/\).*/{
23753             s//\1/
23754             q
23755           }
23756           s/.*/./; q'`
23757   { as_dir="$ac_dir"
23758   case $as_dir in #(
23759   -*) as_dir=./$as_dir;;
23760   esac
23761   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23762     as_dirs=
23763     while :; do
23764       case $as_dir in #(
23765       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23766       *) as_qdir=$as_dir;;
23767       esac
23768       as_dirs="'$as_qdir' $as_dirs"
23769       as_dir=`$as_dirname -- "$as_dir" ||
23770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23771          X"$as_dir" : 'X\(//\)[^/]' \| \
23772          X"$as_dir" : 'X\(//\)$' \| \
23773          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23774 echo X"$as_dir" |
23775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23776             s//\1/
23777             q
23778           }
23779           /^X\(\/\/\)[^/].*/{
23780             s//\1/
23781             q
23782           }
23783           /^X\(\/\/\)$/{
23784             s//\1/
23785             q
23786           }
23787           /^X\(\/\).*/{
23788             s//\1/
23789             q
23790           }
23791           s/.*/./; q'`
23792       test -d "$as_dir" && break
23793     done
23794     test -z "$as_dirs" || eval "mkdir $as_dirs"
23795   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23796 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23797    { (exit 1); exit 1; }; }; }
23798   ac_builddir=.
23799
23800 case "$ac_dir" in
23801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802 *)
23803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23804   # A ".." for each directory in $ac_dir_suffix.
23805   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23806   case $ac_top_builddir_sub in
23807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23809   esac ;;
23810 esac
23811 ac_abs_top_builddir=$ac_pwd
23812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23813 # for backward compatibility:
23814 ac_top_builddir=$ac_top_build_prefix
23815
23816 case $srcdir in
23817   .)  # We are building in place.
23818     ac_srcdir=.
23819     ac_top_srcdir=$ac_top_builddir_sub
23820     ac_abs_top_srcdir=$ac_pwd ;;
23821   [\\/]* | ?:[\\/]* )  # Absolute name.
23822     ac_srcdir=$srcdir$ac_dir_suffix;
23823     ac_top_srcdir=$srcdir
23824     ac_abs_top_srcdir=$srcdir ;;
23825   *) # Relative name.
23826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23827     ac_top_srcdir=$ac_top_build_prefix$srcdir
23828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23829 esac
23830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23831
23832
23833   case $ac_mode in
23834   :F)
23835   #
23836   # CONFIG_FILE
23837   #
23838
23839   case $INSTALL in
23840   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23841   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23842   esac
23843 _ACEOF
23844
23845 cat >>$CONFIG_STATUS <<\_ACEOF
23846 # If the template does not know about datarootdir, expand it.
23847 # FIXME: This hack should be removed a few years after 2.60.
23848 ac_datarootdir_hack=; ac_datarootdir_seen=
23849
23850 case `sed -n '/datarootdir/ {
23851   p
23852   q
23853 }
23854 /@datadir@/p
23855 /@docdir@/p
23856 /@infodir@/p
23857 /@localedir@/p
23858 /@mandir@/p
23859 ' $ac_file_inputs` in
23860 *datarootdir*) ac_datarootdir_seen=yes;;
23861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23862   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23863 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23864 _ACEOF
23865 cat >>$CONFIG_STATUS <<_ACEOF
23866   ac_datarootdir_hack='
23867   s&@datadir@&$datadir&g
23868   s&@docdir@&$docdir&g
23869   s&@infodir@&$infodir&g
23870   s&@localedir@&$localedir&g
23871   s&@mandir@&$mandir&g
23872     s&\\\${datarootdir}&$datarootdir&g' ;;
23873 esac
23874 _ACEOF
23875
23876 # Neutralize VPATH when `$srcdir' = `.'.
23877 # Shell code in configure.ac might set extrasub.
23878 # FIXME: do we really want to maintain this feature?
23879 cat >>$CONFIG_STATUS <<_ACEOF
23880   sed "$ac_vpsub
23881 $extrasub
23882 _ACEOF
23883 cat >>$CONFIG_STATUS <<\_ACEOF
23884 :t
23885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23886 s&@configure_input@&$configure_input&;t t
23887 s&@top_builddir@&$ac_top_builddir_sub&;t t
23888 s&@srcdir@&$ac_srcdir&;t t
23889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23890 s&@top_srcdir@&$ac_top_srcdir&;t t
23891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23892 s&@builddir@&$ac_builddir&;t t
23893 s&@abs_builddir@&$ac_abs_builddir&;t t
23894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23895 s&@INSTALL@&$ac_INSTALL&;t t
23896 $ac_datarootdir_hack
23897 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23898
23899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23900   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23901   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23902   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23903 which seems to be undefined.  Please make sure it is defined." >&5
23904 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23905 which seems to be undefined.  Please make sure it is defined." >&2;}
23906
23907   rm -f "$tmp/stdin"
23908   case $ac_file in
23909   -) cat "$tmp/out"; rm -f "$tmp/out";;
23910   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23911   esac
23912  ;;
23913   :H)
23914   #
23915   # CONFIG_HEADER
23916   #
23917 _ACEOF
23918
23919 # Transform confdefs.h into a sed script `conftest.defines', that
23920 # substitutes the proper values into config.h.in to produce config.h.
23921 rm -f conftest.defines conftest.tail
23922 # First, append a space to every undef/define line, to ease matching.
23923 echo 's/$/ /' >conftest.defines
23924 # Then, protect against being on the right side of a sed subst, or in
23925 # an unquoted here document, in config.status.  If some macros were
23926 # called several times there might be several #defines for the same
23927 # symbol, which is useless.  But do not sort them, since the last
23928 # AC_DEFINE must be honored.
23929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23930 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23931 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23932 # PARAMS is the parameter list in the macro definition--in most cases, it's
23933 # just an empty string.
23934 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23935 ac_dB='\\)[      (].*,\\1define\\2'
23936 ac_dC=' '
23937 ac_dD=' ,'
23938
23939 uniq confdefs.h |
23940   sed -n '
23941         t rset
23942         :rset
23943         s/^[     ]*#[    ]*define[       ][      ]*//
23944         t ok
23945         d
23946         :ok
23947         s/[\\&,]/\\&/g
23948         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23949         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23950   ' >>conftest.defines
23951
23952 # Remove the space that was appended to ease matching.
23953 # Then replace #undef with comments.  This is necessary, for
23954 # example, in the case of _POSIX_SOURCE, which is predefined and required
23955 # on some systems where configure will not decide to define it.
23956 # (The regexp can be short, since the line contains either #define or #undef.)
23957 echo 's/ $//
23958 s,^[     #]*u.*,/* & */,' >>conftest.defines
23959
23960 # Break up conftest.defines:
23961 ac_max_sed_lines=50
23962
23963 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23964 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23965 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23966 # et cetera.
23967 ac_in='$ac_file_inputs'
23968 ac_out='"$tmp/out1"'
23969 ac_nxt='"$tmp/out2"'
23970
23971 while :
23972 do
23973   # Write a here document:
23974     cat >>$CONFIG_STATUS <<_ACEOF
23975     # First, check the format of the line:
23976     cat >"\$tmp/defines.sed" <<\\CEOF
23977 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23978 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23979 b
23980 :def
23981 _ACEOF
23982   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23983   echo 'CEOF
23984     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23985   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23986   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23987   grep . conftest.tail >/dev/null || break
23988   rm -f conftest.defines
23989   mv conftest.tail conftest.defines
23990 done
23991 rm -f conftest.defines conftest.tail
23992
23993 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23995   if test x"$ac_file" != x-; then
23996     echo "/* $configure_input  */" >"$tmp/config.h"
23997     cat "$ac_result" >>"$tmp/config.h"
23998     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23999       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24000 echo "$as_me: $ac_file is unchanged" >&6;}
24001     else
24002       rm -f $ac_file
24003       mv "$tmp/config.h" $ac_file
24004     fi
24005   else
24006     echo "/* $configure_input  */"
24007     cat "$ac_result"
24008   fi
24009   rm -f "$tmp/out12"
24010  ;;
24011
24012   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24013 echo "$as_me: executing $ac_file commands" >&6;}
24014  ;;
24015   esac
24016
24017
24018   case $ac_file$ac_mode in
24019     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24020    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24021     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24022    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24023     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24024    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24025     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24026    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24027     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24028    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24029     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24030    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24031     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24032    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24033     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24034    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24035     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24036    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24037     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24038    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24039     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24040    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24041     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24042    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24043
24044   esac
24045 done # for ac_tag
24046
24047
24048 { (exit 0); exit 0; }
24049 _ACEOF
24050 chmod +x $CONFIG_STATUS
24051 ac_clean_files=$ac_clean_files_save
24052
24053
24054 # configure is writing to config.log, and then calls config.status.
24055 # config.status does its own redirection, appending to config.log.
24056 # Unfortunately, on DOS this fails, as config.log is still kept open
24057 # by configure, so config.status won't be able to write to it; its
24058 # output is simply discarded.  So we exec the FD to /dev/null,
24059 # effectively closing config.log, so it can be properly (re)opened and
24060 # appended to by config.status.  When coming back to configure, we
24061 # need to make the FD available again.
24062 if test "$no_create" != yes; then
24063   ac_cs_success=:
24064   ac_config_status_args=
24065   test "$silent" = yes &&
24066     ac_config_status_args="$ac_config_status_args --quiet"
24067   exec 5>/dev/null
24068   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24069   exec 5>>config.log
24070   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24071   # would make configure fail if this is the last instruction.
24072   $ac_cs_success || { (exit 1); exit 1; }
24073 fi
24074
24075 #
24076 # CONFIG_SUBDIRS section.
24077 #
24078 if test "$no_recursion" != yes; then
24079
24080   # Remove --cache-file and --srcdir arguments so they do not pile up.
24081   ac_sub_configure_args=
24082   ac_prev=
24083   eval "set x $ac_configure_args"
24084   shift
24085   for ac_arg
24086   do
24087     if test -n "$ac_prev"; then
24088       ac_prev=
24089       continue
24090     fi
24091     case $ac_arg in
24092     -cache-file | --cache-file | --cache-fil | --cache-fi \
24093     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24094       ac_prev=cache_file ;;
24095     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24096     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24097     | --c=*)
24098       ;;
24099     --config-cache | -C)
24100       ;;
24101     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24102       ac_prev=srcdir ;;
24103     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24104       ;;
24105     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24106       ac_prev=prefix ;;
24107     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24108       ;;
24109     *)
24110       case $ac_arg in
24111       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24112       esac
24113       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24114     esac
24115   done
24116
24117   # Always prepend --prefix to ensure using the same prefix
24118   # in subdir configurations.
24119   ac_arg="--prefix=$prefix"
24120   case $ac_arg in
24121   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24122   esac
24123   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24124
24125   ac_popdir=`pwd`
24126   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24127
24128     # Do not complain, so a configure script can configure whichever
24129     # parts of a large source tree are present.
24130     test -d "$srcdir/$ac_dir" || continue
24131
24132     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24133     echo "$as_me:$LINENO: $ac_msg" >&5
24134     echo "$ac_msg" >&6
24135     { as_dir="$ac_dir"
24136   case $as_dir in #(
24137   -*) as_dir=./$as_dir;;
24138   esac
24139   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24140     as_dirs=
24141     while :; do
24142       case $as_dir in #(
24143       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24144       *) as_qdir=$as_dir;;
24145       esac
24146       as_dirs="'$as_qdir' $as_dirs"
24147       as_dir=`$as_dirname -- "$as_dir" ||
24148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24149          X"$as_dir" : 'X\(//\)[^/]' \| \
24150          X"$as_dir" : 'X\(//\)$' \| \
24151          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24152 echo X"$as_dir" |
24153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24154             s//\1/
24155             q
24156           }
24157           /^X\(\/\/\)[^/].*/{
24158             s//\1/
24159             q
24160           }
24161           /^X\(\/\/\)$/{
24162             s//\1/
24163             q
24164           }
24165           /^X\(\/\).*/{
24166             s//\1/
24167             q
24168           }
24169           s/.*/./; q'`
24170       test -d "$as_dir" && break
24171     done
24172     test -z "$as_dirs" || eval "mkdir $as_dirs"
24173   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24174 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24175    { (exit 1); exit 1; }; }; }
24176     ac_builddir=.
24177
24178 case "$ac_dir" in
24179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24180 *)
24181   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24182   # A ".." for each directory in $ac_dir_suffix.
24183   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24184   case $ac_top_builddir_sub in
24185   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24186   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24187   esac ;;
24188 esac
24189 ac_abs_top_builddir=$ac_pwd
24190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24191 # for backward compatibility:
24192 ac_top_builddir=$ac_top_build_prefix
24193
24194 case $srcdir in
24195   .)  # We are building in place.
24196     ac_srcdir=.
24197     ac_top_srcdir=$ac_top_builddir_sub
24198     ac_abs_top_srcdir=$ac_pwd ;;
24199   [\\/]* | ?:[\\/]* )  # Absolute name.
24200     ac_srcdir=$srcdir$ac_dir_suffix;
24201     ac_top_srcdir=$srcdir
24202     ac_abs_top_srcdir=$srcdir ;;
24203   *) # Relative name.
24204     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24205     ac_top_srcdir=$ac_top_build_prefix$srcdir
24206     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24207 esac
24208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24209
24210
24211     cd "$ac_dir"
24212
24213     # Check for guested configure; otherwise get Cygnus style configure.
24214     if test -f "$ac_srcdir/configure.gnu"; then
24215       ac_sub_configure=$ac_srcdir/configure.gnu
24216     elif test -f "$ac_srcdir/configure"; then
24217       ac_sub_configure=$ac_srcdir/configure
24218     elif test -f "$ac_srcdir/configure.in"; then
24219       # This should be Cygnus configure.
24220       ac_sub_configure=$ac_aux_dir/configure
24221     else
24222       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24223 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24224       ac_sub_configure=
24225     fi
24226
24227     # The recursion is here.
24228     if test -n "$ac_sub_configure"; then
24229       # Make the cache file name correct relative to the subdirectory.
24230       case $cache_file in
24231       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24232       *) # Relative name.
24233         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24234       esac
24235
24236       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24237 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24238       # The eval makes quoting arguments work.
24239       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24240            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24241         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24242 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24243    { (exit 1); exit 1; }; }
24244     fi
24245
24246     cd "$ac_popdir"
24247   done
24248 fi
24249