Add support for the OpenBSD for Bitrig.
[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.2svn.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_WERROR
692 ENABLE_EXPENSIVE_CHECKS
693 EXPENSIVE_CHECKS
694 DEBUG_RUNTIME
695 DEBUG_SYMBOLS
696 JIT
697 TARGET_HAS_JIT
698 ENABLE_DOCS
699 ENABLE_DOXYGEN
700 LLVM_ENABLE_THREADS
701 ENABLE_PTHREADS
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 CLANG_SRC_ROOT
715 BINUTILS_INCDIR
716 INTERNAL_PREFIX
717 NM
718 ifGNUmake
719 LN_S
720 CMP
721 CP
722 DATE
723 FIND
724 MKDIR
725 MV
726 RANLIB
727 AR
728 RM
729 SED
730 TAR
731 BINPWD
732 GRAPHVIZ
733 DOT
734 FDP
735 NEATO
736 TWOPI
737 CIRCO
738 GV
739 DOTTY
740 XDOT_PY
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 PDFROFF
750 ZIP
751 OCAMLC
752 OCAMLOPT
753 OCAMLDEP
754 OCAMLDOC
755 GAS
756 HAVE_LINK_VERSION_SCRIPT
757 INSTALL_LTDL_TRUE
758 INSTALL_LTDL_FALSE
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
761 LIBADD_DL
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 USE_UDIS86
766 USE_OPROFILE
767 USE_INTEL_JITEVENTS
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
770 XML2CONFIG
771 LIBXML2_LIBS
772 LIBXML2_INC
773 HAVE_PTHREAD
774 HUGE_VAL_SANITY
775 MMAP_FILE
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CXX
805 CXXFLAGS
806 CCC
807 CPP'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel
821 tools/polly'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947    { (exit 1); exit 1; }; }
948     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949     eval enable_$ac_feature=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143       { echo "$as_me: error: invalid package name: $ac_package" >&2
1144    { (exit 1); exit 1; }; }
1145     ac_package=`echo $ac_package| sed 's/-/_/g'`
1146     eval with_$ac_package=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1156
1157   --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160
1161   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162   | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167
1168   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174
1175   -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177    { (exit 1); exit 1; }; }
1178     ;;
1179
1180   *=*)
1181     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185    { (exit 1); exit 1; }; }
1186     eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188
1189   *)
1190     # FIXME: should be removed in autoconf 3.0.
1191     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195     ;;
1196
1197   esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202   { echo "$as_me: error: missing argument to $ac_option" >&2
1203    { (exit 1); exit 1; }; }
1204 fi
1205
1206 # Be sure to have absolute directory names.
1207 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208                 datadir sysconfdir sharedstatedir localstatedir includedir \
1209                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210                 libdir localedir mandir
1211 do
1212   eval ac_val=\$$ac_var
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218    { (exit 1); exit 1; }; }
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233     If a cross compiler is detected then cross compile mode will be used." >&2
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   { echo "$as_me: error: Working directory cannot be determined" >&2
1249    { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   { echo "$as_me: error: pwd does not report name of working directory" >&2
1252    { (exit 1); exit 1; }; }
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$0" : 'X\(//\)[^/]' \| \
1262          X"$0" : 'X\(//\)$' \| \
1263          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297    { (exit 1); exit 1; }; }
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR           user executables [EPREFIX/bin]
1358   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR       program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR           object code libraries [EPREFIX/lib]
1364   --includedir=DIR       C header files [PREFIX/include]
1365   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR          info documentation [DATAROOTDIR/info]
1369   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR           man documentation [DATAROOTDIR/man]
1371   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1372   --htmldir=DIR          html documentation [DOCDIR]
1373   --dvidir=DIR           dvi documentation [DOCDIR]
1374   --pdfdir=DIR           pdf documentation [DOCDIR]
1375   --psdir=DIR            ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-polly          Use polly if available (default is YES)
1397   --enable-libcpp         Use libc++ if available (default is NO)
1398   --enable-cxx11          Use c++11 if available (default is NO)
1399   --enable-optimized      Compile with optimizations enabled (default is NO)
1400   --enable-profiling      Compile with profiling enabled (default is NO)
1401   --enable-assertions     Compile with assertion checks enabled (default is
1402                           YES)
1403   --enable-werror         Compile with -Werror enabled (default is NO)
1404   --enable-expensive-checks
1405                           Compile with expensive debug checks enabled (default
1406                           is NO)
1407   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1408                           NO)
1409   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1410                           optimization is on and YES if it's off)
1411   --enable-jit            Enable Just In Time Compiling (default is YES)
1412   --enable-docs           Build documents (default is YES)
1413   --enable-doxygen        Build doxygen documentation (default is NO)
1414   --enable-threads        Use threads if available (default is YES)
1415   --enable-pthreads       Use pthreads if available (default is YES)
1416   --enable-pic            Build LLVM with Position Independent Code (default
1417                           is YES)
1418   --enable-shared         Build a shared library and link tools against it
1419                           (default is NO)
1420   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1421                           Win32 DLL (default is NO)
1422   --enable-timestamps     Enable embedding timestamp information in build
1423                           (default is YES)
1424   --enable-targets        Build specific host targets: all or
1425                           target1,target2,... Valid targets are: host, x86,
1426                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1427                           xcore, msp430, nvptx, and cpp (default=all)
1428   --enable-bindings       Build specific language bindings:
1429                           all,auto,none,{binding-name} (default=auto)
1430   --enable-libffi         Check for the presence of libffi (default is NO)
1431   --enable-ltdl-install   install libltdl
1432
1433 Optional Packages:
1434   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1435   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1436   --with-optimize-option  Select the compiler options to use for optimized
1437                           builds
1438   --with-extra-options    Specify additional options to compile LLVM with
1439   --with-extra-ld-options Specify additional options to link LLVM with
1440   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1441                           is stdlib)
1442   --with-clang-srcdir     Directory to the out-of-tree Clang source
1443   --with-clang-resource-dir
1444                           Relative directory from the Clang binary for
1445                           resource files
1446   --with-c-include-dirs   Colon separated list of directories clang will
1447                           search for headers
1448   --with-gcc-toolchain    Directory where gcc is installed.
1449   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1450   --with-binutils-include Specify path to binutils/include/ containing
1451                           plugin-api.h file for gold plugin.
1452   --with-bug-report-url   Specify the URL where bug reports should be
1453                           submitted (default=http://llvm.org/bugs/)
1454   --with-internal-prefix  Installation directory for internal files
1455   --with-udis86=<path>    Use udis86 external x86 disassembler library
1456   --with-oprofile=<prefix>
1457                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1458   --with-intel-jitevents=<vtune-amplifier-dir>
1459                           Specify location of run-time support library for
1460                           Intel JIT API
1461                           (default=/opt/intel/vtune_amplifier_xe_2011)
1462
1463 Some influential environment variables:
1464   CC          C compiler command
1465   CFLAGS      C compiler flags
1466   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1467               nonstandard directory <lib dir>
1468   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469               you have headers in a nonstandard directory <include dir>
1470   CXX         C++ compiler command
1471   CXXFLAGS    C++ compiler flags
1472   CPP         C preprocessor
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <http://llvm.org/bugs/>.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483   # If there are subdirs, report their specific --help.
1484   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485     test -d "$ac_dir" || continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 LLVM configure 3.2svn
1539 generated by GNU Autoconf 2.60
1540
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545
1546 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1547 _ACEOF
1548   exit
1549 fi
1550 cat >config.log <<_ACEOF
1551 This file contains any messages produced by compilers while
1552 running configure, to aid debugging if configure makes a mistake.
1553
1554 It was created by LLVM $as_me 3.2svn, which was
1555 generated by GNU Autoconf 2.60.  Invocation command line was
1556
1557   $ $0 $@
1558
1559 _ACEOF
1560 exec 5>>config.log
1561 {
1562 cat <<_ASUNAME
1563 ## --------- ##
1564 ## Platform. ##
1565 ## --------- ##
1566
1567 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1568 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1569 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1570 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1571 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572
1573 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1574 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1575
1576 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1577 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1578 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1579 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1580 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1581 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1582 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1583
1584 _ASUNAME
1585
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   echo "PATH: $as_dir"
1592 done
1593 IFS=$as_save_IFS
1594
1595 } >&5
1596
1597 cat >&5 <<_ACEOF
1598
1599
1600 ## ----------- ##
1601 ## Core tests. ##
1602 ## ----------- ##
1603
1604 _ACEOF
1605
1606
1607 # Keep a trace of the command line.
1608 # Strip out --no-create and --no-recursion so they do not pile up.
1609 # Strip out --silent because we don't want to record it for future runs.
1610 # Also quote any args containing shell meta-characters.
1611 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_configure_args=
1613 ac_configure_args0=
1614 ac_configure_args1=
1615 ac_must_keep_next=false
1616 for ac_pass in 1 2
1617 do
1618   for ac_arg
1619   do
1620     case $ac_arg in
1621     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1622     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623     | -silent | --silent | --silen | --sile | --sil)
1624       continue ;;
1625     *\'*)
1626       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627     esac
1628     case $ac_pass in
1629     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630     2)
1631       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1632       if test $ac_must_keep_next = true; then
1633         ac_must_keep_next=false # Got value, back to normal.
1634       else
1635         case $ac_arg in
1636           *=* | --config-cache | -C | -disable-* | --disable-* \
1637           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1638           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1639           | -with-* | --with-* | -without-* | --without-* | --x)
1640             case "$ac_configure_args0 " in
1641               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642             esac
1643             ;;
1644           -* ) ac_must_keep_next=true ;;
1645         esac
1646       fi
1647       ac_configure_args="$ac_configure_args '$ac_arg'"
1648       ;;
1649     esac
1650   done
1651 done
1652 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1653 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654
1655 # When interrupted or exit'd, cleanup temporary files, and complete
1656 # config.log.  We remove comments because anyway the quotes in there
1657 # would cause problems or look ugly.
1658 # WARNING: Use '\'' to represent an apostrophe within the trap.
1659 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1660 trap 'exit_status=$?
1661   # Save into config.log some information that might help in debugging.
1662   {
1663     echo
1664
1665     cat <<\_ASBOX
1666 ## ---------------- ##
1667 ## Cache variables. ##
1668 ## ---------------- ##
1669 _ASBOX
1670     echo
1671     # The following way of writing the cache mishandles newlines in values,
1672 (
1673   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1674     eval ac_val=\$$ac_var
1675     case $ac_val in #(
1676     *${as_nl}*)
1677       case $ac_var in #(
1678       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680       esac
1681       case $ac_var in #(
1682       _ | IFS | as_nl) ;; #(
1683       *) $as_unset $ac_var ;;
1684       esac ;;
1685     esac
1686   done
1687   (set) 2>&1 |
1688     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1689     *${as_nl}ac_space=\ *)
1690       sed -n \
1691         "s/'\''/'\''\\\\'\'''\''/g;
1692           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693       ;; #(
1694     *)
1695       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696       ;;
1697     esac |
1698     sort
1699 )
1700     echo
1701
1702     cat <<\_ASBOX
1703 ## ----------------- ##
1704 ## Output variables. ##
1705 ## ----------------- ##
1706 _ASBOX
1707     echo
1708     for ac_var in $ac_subst_vars
1709     do
1710       eval ac_val=\$$ac_var
1711       case $ac_val in
1712       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713       esac
1714       echo "$ac_var='\''$ac_val'\''"
1715     done | sort
1716     echo
1717
1718     if test -n "$ac_subst_files"; then
1719       cat <<\_ASBOX
1720 ## ------------------- ##
1721 ## File substitutions. ##
1722 ## ------------------- ##
1723 _ASBOX
1724       echo
1725       for ac_var in $ac_subst_files
1726       do
1727         eval ac_val=\$$ac_var
1728         case $ac_val in
1729         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730         esac
1731         echo "$ac_var='\''$ac_val'\''"
1732       done | sort
1733       echo
1734     fi
1735
1736     if test -s confdefs.h; then
1737       cat <<\_ASBOX
1738 ## ----------- ##
1739 ## confdefs.h. ##
1740 ## ----------- ##
1741 _ASBOX
1742       echo
1743       cat confdefs.h
1744       echo
1745     fi
1746     test "$ac_signal" != 0 &&
1747       echo "$as_me: caught signal $ac_signal"
1748     echo "$as_me: exit $exit_status"
1749   } >&5
1750   rm -f core *.core core.conftest.* &&
1751     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752     exit $exit_status
1753 ' 0
1754 for ac_signal in 1 2 13 15; do
1755   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 done
1757 ac_signal=0
1758
1759 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1760 rm -f -r conftest* confdefs.h
1761
1762 # Predefined preprocessor variables.
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 _ACEOF
1787
1788
1789 # Let the site file select an alternate cache file if it wants to.
1790 # Prefer explicitly selected file to automatically selected ones.
1791 if test -n "$CONFIG_SITE"; then
1792   set x "$CONFIG_SITE"
1793 elif test "x$prefix" != xNONE; then
1794   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1795 else
1796   set x "$ac_default_prefix/share/config.site" \
1797         "$ac_default_prefix/etc/config.site"
1798 fi
1799 shift
1800 for ac_site_file
1801 do
1802   if test -r "$ac_site_file"; then
1803     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 echo "$as_me: loading site script $ac_site_file" >&6;}
1805     sed 's/^/| /' "$ac_site_file" >&5
1806     . "$ac_site_file"
1807   fi
1808 done
1809
1810 if test -r "$cache_file"; then
1811   # Some versions of bash will fail to source /dev/null (special
1812   # files actually), so we avoid doing that.
1813   if test -f "$cache_file"; then
1814     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 echo "$as_me: loading cache $cache_file" >&6;}
1816     case $cache_file in
1817       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818       *)                      . "./$cache_file";;
1819     esac
1820   fi
1821 else
1822   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 echo "$as_me: creating cache $cache_file" >&6;}
1824   >$cache_file
1825 fi
1826
1827 # Check that the precious variables saved in the cache have kept the same
1828 # value.
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832   eval ac_new_set=\$ac_env_${ac_var}_set
1833   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834   eval ac_new_val=\$ac_env_${ac_var}_value
1835   case $ac_old_set,$ac_new_set in
1836     set,)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,set)
1841       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,);;
1845     *)
1846       if test "x$ac_old_val" != "x$ac_new_val"; then
1847         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1850 echo "$as_me:   former value:  $ac_old_val" >&2;}
1851         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1852 echo "$as_me:   current value: $ac_new_val" >&2;}
1853         ac_cache_corrupted=:
1854       fi;;
1855   esac
1856   # Pass precious variables to config.status.
1857   if test "$ac_new_set" = set; then
1858     case $ac_new_val in
1859     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1860     *) ac_arg=$ac_var=$ac_new_val ;;
1861     esac
1862     case " $ac_configure_args " in
1863       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1864       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865     esac
1866   fi
1867 done
1868 if $ac_cache_corrupted; then
1869   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873    { (exit 1); exit 1; }; }
1874 fi
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907
1908 cat >>confdefs.h <<\_ACEOF
1909 #define LLVM_VERSION_MAJOR 3
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<\_ACEOF
1914 #define LLVM_VERSION_MINOR 2
1915 _ACEOF
1916
1917
1918 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1919
1920
1921
1922
1923
1924
1925
1926 ac_aux_dir=
1927 for ac_dir in autoconf "$srcdir"/autoconf; do
1928   if test -f "$ac_dir/install-sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install-sh -c"
1931     break
1932   elif test -f "$ac_dir/install.sh"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/install.sh -c"
1935     break
1936   elif test -f "$ac_dir/shtool"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/shtool install -c"
1939     break
1940   fi
1941 done
1942 if test -z "$ac_aux_dir"; then
1943   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1944 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 # These three variables are undocumented and unsupported,
1949 # and are intended to be withdrawn in a future Autoconf release.
1950 # They can cause serious problems if a builder's source tree is in a directory
1951 # whose full name contains unusual characters.
1952 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1953 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1954 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1955
1956
1957
1958 if test ${srcdir} != "." ; then
1959   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1960     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1961 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1962    { (exit 1); exit 1; }; }
1963   fi
1964 fi
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972   for ac_prog in clang llvm-gcc gcc
1973   do
1974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$CC"; then
1982   ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997 IFS=$as_save_IFS
1998
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003   { echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6; }
2005 else
2006   { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2008 fi
2009
2010
2011     test -n "$CC" && break
2012   done
2013 fi
2014 if test -z "$CC"; then
2015   ac_ct_CC=$CC
2016   for ac_prog in clang llvm-gcc gcc
2017 do
2018   # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   if test -n "$ac_ct_CC"; then
2026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031   IFS=$as_save_IFS
2032   test -z "$as_dir" && as_dir=.
2033   for ac_exec_ext in '' $ac_executable_extensions; do
2034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035     ac_cv_prog_ac_ct_CC="$ac_prog"
2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037     break 2
2038   fi
2039 done
2040 done
2041 IFS=$as_save_IFS
2042
2043 fi
2044 fi
2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
2049 else
2050   { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2052 fi
2053
2054
2055   test -n "$ac_ct_CC" && break
2056 done
2057
2058   if test "x$ac_ct_CC" = x; then
2059     CC=""
2060   else
2061     case $cross_compiling:$ac_tool_warned in
2062 yes:)
2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet.  If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&5
2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet.  If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069 ac_tool_warned=yes ;;
2070 esac
2071     CC=$ac_ct_CC
2072   fi
2073 fi
2074
2075
2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: no acceptable C compiler found in \$PATH
2079 See \`config.log' for more details." >&2;}
2080    { (exit 1); exit 1; }; }
2081
2082 # Provide some information about the compiler.
2083 echo "$as_me:$LINENO: checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (ac_try="$ac_compiler --version >&5"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091   (eval "$ac_compiler --version >&5") 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }
2095 { (ac_try="$ac_compiler -v >&5"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101   (eval "$ac_compiler -v >&5") 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (ac_try="$ac_compiler -V >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler -V >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115
2116 cat >conftest.$ac_ext <<_ACEOF
2117 /* confdefs.h.  */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h.  */
2122
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 ac_clean_files_save=$ac_clean_files
2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133 # Try to create an executable without -o first, disregard a.out.
2134 # It will help us diagnose broken compilers, and finding out an intuition
2135 # of exeext.
2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139 #
2140 # List of possible output files, starting from the most likely.
2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142 # only as a last resort.  b.out is created by i960 compilers.
2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144 #
2145 # The IRIX 6 linker writes into existing files which may not be
2146 # executable, retaining their permissions.  Remove them first so a
2147 # subsequent execution test works.
2148 ac_rmfiles=
2149 for ac_file in $ac_files
2150 do
2151   case $ac_file in
2152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154   esac
2155 done
2156 rm -f $ac_rmfiles
2157
2158 if { (ac_try="$ac_link_default"
2159 case "(($ac_try" in
2160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161   *) ac_try_echo=$ac_try;;
2162 esac
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164   (eval "$ac_link_default") 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; then
2168   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2171 # so that the user can short-circuit this test for compilers unknown to
2172 # Autoconf.
2173 for ac_file in $ac_files
2174 do
2175   test -f "$ac_file" || continue
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178         ;;
2179     [ab].out )
2180         # We found the default executable, but exeext='' is most
2181         # certainly right.
2182         break;;
2183     *.* )
2184         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185         then :; else
2186            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187         fi
2188         # We set ac_cv_exeext here because the later test for it is not
2189         # safe: cross compilers may not add the suffix if given an `-o'
2190         # argument, so we may need to know it at that point already.
2191         # Even if this section looks crufty: it has the advantage of
2192         # actually working.
2193         break;;
2194     * )
2195         break;;
2196   esac
2197 done
2198 test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200 else
2201   echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&2;}
2208    { (exit 77); exit 77; }; }
2209 fi
2210
2211 ac_exeext=$ac_cv_exeext
2212 { echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6; }
2214
2215 # Check that the compiler produces executables we can run.  If not, either
2216 # the compiler is broken, or we cross compile.
2217 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222   if { ac_try='./$ac_file'
2223   { (case "(($ac_try" in
2224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225   *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228   (eval "$ac_try") 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232     cross_compiling=no
2233   else
2234     if test "$cross_compiling" = maybe; then
2235         cross_compiling=yes
2236     else
2237         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243    { (exit 1); exit 1; }; }
2244     fi
2245   fi
2246 fi
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check that the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261 if { (ac_try="$ac_link"
2262 case "(($ac_try" in
2263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264   *) ac_try_echo=$ac_try;;
2265 esac
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267   (eval "$ac_link") 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276   test -f "$ac_file" || continue
2277   case $ac_file in
2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280           break;;
2281     * ) break;;
2282   esac
2283 done
2284 else
2285   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288 See \`config.log' for more details." >&2;}
2289    { (exit 1); exit 1; }; }
2290 fi
2291
2292 rm -f conftest$ac_cv_exeext
2293 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295
2296 rm -f conftest.$ac_ext
2297 EXEEXT=$ac_cv_exeext
2298 ac_exeext=$EXEEXT
2299 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301 if test "${ac_cv_objext+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.o conftest.obj
2320 if { (ac_try="$ac_compile"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326   (eval "$ac_compile") 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; then
2330   for ac_file in conftest.o conftest.obj conftest.*; do
2331   test -f "$ac_file" || continue;
2332   case $ac_file in
2333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335        break;;
2336   esac
2337 done
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346    { (exit 1); exit 1; }; }
2347 fi
2348
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350 fi
2351 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6; }
2353 OBJEXT=$ac_cv_objext
2354 ac_objext=$OBJEXT
2355 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366
2367 int
2368 main ()
2369 {
2370 #ifndef __GNUC__
2371        choke me
2372 #endif
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (ac_try="$ac_compile"
2380 case "(($ac_try" in
2381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382   *) ac_try_echo=$ac_try;;
2383 esac
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385   (eval "$ac_compile") 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393   { (case "(($ac_try" in
2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395   *) ac_try_echo=$ac_try;;
2396 esac
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398   (eval "$ac_try") 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; }; then
2412   ac_compiler_gnu=yes
2413 else
2414   echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417         ac_compiler_gnu=no
2418 fi
2419
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423 fi
2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   ac_save_c_werror_flag=$ac_c_werror_flag
2435    ac_c_werror_flag=yes
2436    ac_cv_prog_cc_g=no
2437    CFLAGS="-g"
2438    cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h.  */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h.  */
2444
2445 int
2446 main ()
2447 {
2448
2449   ;
2450   return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compile") 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468   { (case "(($ac_try" in
2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470   *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473   (eval "$ac_try") 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; } &&
2477          { ac_try='test -s conftest.$ac_objext'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   ac_cv_prog_cc_g=yes
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492         CFLAGS=""
2493       cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499
2500 int
2501 main ()
2502 {
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 rm -f conftest.$ac_objext
2509 if { (ac_try="$ac_compile"
2510 case "(($ac_try" in
2511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512   *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515   (eval "$ac_compile") 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523   { (case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_try") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; } &&
2532          { ac_try='test -s conftest.$ac_objext'
2533   { (case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_try") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   :
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547         ac_c_werror_flag=$ac_save_c_werror_flag
2548          CFLAGS="-g"
2549          cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2572   ac_status=$?
2573   grep -v '^ *+' conftest.er1 >conftest.err
2574   rm -f conftest.er1
2575   cat conftest.err >&5
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } &&
2578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579   { (case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_try") 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   ac_cv_prog_cc_g=yes
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
2604 fi
2605
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613    ac_c_werror_flag=$ac_save_c_werror_flag
2614 fi
2615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617 if test "$ac_test_CFLAGS" = set; then
2618   CFLAGS=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620   if test "$GCC" = yes; then
2621     CFLAGS="-g -O2"
2622   else
2623     CFLAGS="-g"
2624   fi
2625 else
2626   if test "$GCC" = yes; then
2627     CFLAGS="-O2"
2628   else
2629     CFLAGS=
2630   fi
2631 fi
2632 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_cc_c89+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   ac_cv_prog_cc_c89=no
2638 ac_save_CC=$CC
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645 #include <stdarg.h>
2646 #include <stdio.h>
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2653      char **p;
2654      int i;
2655 {
2656   return p[i];
2657 }
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2659 {
2660   char *s;
2661   va_list v;
2662   va_start (v,p);
2663   s = g (p, va_arg (v,int));
2664   va_end (v);
2665   return s;
2666 }
2667
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2669    function prototypes and stuff, but not '\xHH' hex character constants.
2670    These don't provoke an error unfortunately, instead are silently treated
2671    as 'x'.  The following induces an error, until -std is added to get
2672    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2673    array size at least.  It's necessary to write '\x00'==0 to get something
2674    that's true only with -std.  */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678    inside strings and character constants.  */
2679 #define FOO(x) 'x'
2680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
2682 int test (int i, double x);
2683 struct s1 {int (*f) (int a);};
2684 struct s2 {int (*f) (double a);};
2685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 int argc;
2687 char **argv;
2688 int
2689 main ()
2690 {
2691 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698 do
2699   CC="$ac_save_CC $ac_arg"
2700   rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compile") 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715   { (case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_try") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_prog_cc_c89=$ac_arg
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext
2743   test "x$ac_cv_prog_cc_c89" != "xno" && break
2744 done
2745 rm -f conftest.$ac_ext
2746 CC=$ac_save_CC
2747
2748 fi
2749 # AC_CACHE_VAL
2750 case "x$ac_cv_prog_cc_c89" in
2751   x)
2752     { echo "$as_me:$LINENO: result: none needed" >&5
2753 echo "${ECHO_T}none needed" >&6; } ;;
2754   xno)
2755     { echo "$as_me:$LINENO: result: unsupported" >&5
2756 echo "${ECHO_T}unsupported" >&6; } ;;
2757   *)
2758     CC="$CC $ac_cv_prog_cc_c89"
2759     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761 esac
2762
2763
2764 ac_ext=c
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770 ac_ext=cpp
2771 ac_cpp='$CXXCPP $CPPFLAGS'
2772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775 if test -z "$CXX"; then
2776   if test -n "$CCC"; then
2777     CXX=$CCC
2778   else
2779     if test -n "$ac_tool_prefix"; then
2780   for ac_prog in clang++ llvm-g++ g++
2781   do
2782     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_CXX+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$CXX"; then
2790   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 CXX=$ac_cv_prog_CXX
2810 if test -n "$CXX"; then
2811   { echo "$as_me:$LINENO: result: $CXX" >&5
2812 echo "${ECHO_T}$CXX" >&6; }
2813 else
2814   { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2816 fi
2817
2818
2819     test -n "$CXX" && break
2820   done
2821 fi
2822 if test -z "$CXX"; then
2823   ac_ct_CXX=$CXX
2824   for ac_prog in clang++ llvm-g++ g++
2825 do
2826   # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   if test -n "$ac_ct_CXX"; then
2834   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841   for ac_exec_ext in '' $ac_executable_extensions; do
2842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843     ac_cv_prog_ac_ct_CXX="$ac_prog"
2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854 if test -n "$ac_ct_CXX"; then
2855   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857 else
2858   { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 fi
2861
2862
2863   test -n "$ac_ct_CXX" && break
2864 done
2865
2866   if test "x$ac_ct_CXX" = x; then
2867     CXX="g++"
2868   else
2869     case $cross_compiling:$ac_tool_warned in
2870 yes:)
2871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet.  If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&5
2874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879     CXX=$ac_ct_CXX
2880   fi
2881 fi
2882
2883   fi
2884 fi
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (ac_try="$ac_compiler --version >&5"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_compiler --version >&5") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }
2898 { (ac_try="$ac_compiler -v >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler -v >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -V >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -V >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918
2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934 #ifndef __GNUC__
2935        choke me
2936 #endif
2937
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949   (eval "$ac_compile") 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } &&
2956          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957   { (case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_try") 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; } &&
2966          { ac_try='test -s conftest.$ac_objext'
2967   { (case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_try") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; }; then
2976   ac_compiler_gnu=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981         ac_compiler_gnu=no
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990 GXX=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CXXFLAGS=${CXXFLAGS+set}
2992 ac_save_CXXFLAGS=$CXXFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cxx_g+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999    ac_cxx_werror_flag=yes
3000    ac_cv_prog_cxx_g=no
3001    CXXFLAGS="-g"
3002    cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032   { (case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_try") 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; }; then
3051   ac_cv_prog_cxx_g=yes
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056         CXXFLAGS=""
3057       cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079   (eval "$ac_compile") 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } &&
3086          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087   { (case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_try") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; } &&
3096          { ac_try='test -s conftest.$ac_objext'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; }; then
3106   :
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112          CXXFLAGS="-g"
3113          cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } &&
3142          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143   { (case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_try") 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; } &&
3152          { ac_try='test -s conftest.$ac_objext'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; }; then
3162   ac_cv_prog_cxx_g=yes
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168 fi
3169
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178 fi
3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181 if test "$ac_test_CXXFLAGS" = set; then
3182   CXXFLAGS=$ac_save_CXXFLAGS
3183 elif test $ac_cv_prog_cxx_g = yes; then
3184   if test "$GXX" = yes; then
3185     CXXFLAGS="-g -O2"
3186   else
3187     CXXFLAGS="-g"
3188   fi
3189 else
3190   if test "$GXX" = yes; then
3191     CXXFLAGS="-O2"
3192   else
3193     CXXFLAGS=
3194   fi
3195 fi
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3211   CPP=
3212 fi
3213 if test -z "$CPP"; then
3214   if test "${ac_cv_prog_CPP+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217       # Double quotes because CPP needs to be expanded
3218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219     do
3220       ac_preproc_ok=false
3221 for ac_c_preproc_warn_flag in '' yes
3222 do
3223   # Use a header file that comes with gcc, so configuring glibc
3224   # with a fresh cross-compiler works.
3225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226   # <limits.h> exists even on freestanding compilers.
3227   # On the NeXT, cc -E runs the code through the compiler's parser,
3228   # not just through cpp. "Syntax error" is here to catch this case.
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3240                      Syntax error
3241 _ACEOF
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } >/dev/null; then
3255   if test -s conftest.err; then
3256     ac_cpp_err=$ac_c_preproc_warn_flag
3257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258   else
3259     ac_cpp_err=
3260   fi
3261 else
3262   ac_cpp_err=yes
3263 fi
3264 if test -z "$ac_cpp_err"; then
3265   :
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270   # Broken: fails on valid input.
3271 continue
3272 fi
3273
3274 rm -f conftest.err conftest.$ac_ext
3275
3276   # OK, works on sane cases.  Now check whether nonexistent headers
3277   # can be detected and how.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <ac_nonexistent.h>
3285 _ACEOF
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } >/dev/null; then
3299   if test -s conftest.err; then
3300     ac_cpp_err=$ac_c_preproc_warn_flag
3301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302   else
3303     ac_cpp_err=
3304   fi
3305 else
3306   ac_cpp_err=yes
3307 fi
3308 if test -z "$ac_cpp_err"; then
3309   # Broken: success on invalid input.
3310 continue
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315   # Passes both tests.
3316 ac_preproc_ok=:
3317 break
3318 fi
3319
3320 rm -f conftest.err conftest.$ac_ext
3321
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3326   break
3327 fi
3328
3329     done
3330     ac_cv_prog_CPP=$CPP
3331
3332 fi
3333   CPP=$ac_cv_prog_CPP
3334 else
3335   ac_cv_prog_CPP=$CPP
3336 fi
3337 { echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6; }
3339 ac_preproc_ok=false
3340 for ac_c_preproc_warn_flag in '' yes
3341 do
3342   # Use a header file that comes with gcc, so configuring glibc
3343   # with a fresh cross-compiler works.
3344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345   # <limits.h> exists even on freestanding compilers.
3346   # On the NeXT, cc -E runs the code through the compiler's parser,
3347   # not just through cpp. "Syntax error" is here to catch this case.
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #ifdef __STDC__
3355 # include <limits.h>
3356 #else
3357 # include <assert.h>
3358 #endif
3359                      Syntax error
3360 _ACEOF
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } >/dev/null; then
3374   if test -s conftest.err; then
3375     ac_cpp_err=$ac_c_preproc_warn_flag
3376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377   else
3378     ac_cpp_err=
3379   fi
3380 else
3381   ac_cpp_err=yes
3382 fi
3383 if test -z "$ac_cpp_err"; then
3384   :
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Broken: fails on valid input.
3390 continue
3391 fi
3392
3393 rm -f conftest.err conftest.$ac_ext
3394
3395   # OK, works on sane cases.  Now check whether nonexistent headers
3396   # can be detected and how.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <ac_nonexistent.h>
3404 _ACEOF
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   # Broken: success on invalid input.
3429 continue
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3438
3439 rm -f conftest.err conftest.$ac_ext
3440
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3445   :
3446 else
3447   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451    { (exit 1); exit 1; }; }
3452 fi
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462
3463 if test -d ${srcdir}/projects/llvm-gcc ; then
3464   subdirs="$subdirs projects/llvm-gcc"
3465
3466 fi
3467
3468 if test -d ${srcdir}/projects/test-suite ; then
3469   subdirs="$subdirs projects/test-suite"
3470
3471 fi
3472
3473 if test -d ${srcdir}/projects/llvm-test ; then
3474   subdirs="$subdirs projects/llvm-test"
3475
3476 fi
3477
3478 if test -d ${srcdir}/projects/poolalloc ; then
3479   subdirs="$subdirs projects/poolalloc"
3480
3481 fi
3482
3483 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3484   subdirs="$subdirs projects/llvm-poolalloc"
3485
3486 fi
3487
3488 for i in `ls ${srcdir}/projects`
3489 do
3490   if test -d ${srcdir}/projects/${i} ; then
3491     case ${i} in
3492       sample)       subdirs="$subdirs projects/sample"
3493     ;;
3494       privbracket)  subdirs="$subdirs projects/privbracket"
3495  ;;
3496       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3497  ;;
3498       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3499 ;;
3500       llvm-java)    subdirs="$subdirs projects/llvm-java"
3501  ;;
3502       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3503    ;;
3504       safecode)     subdirs="$subdirs projects/safecode"
3505  ;;
3506       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3507  ;;
3508       compiler-rt)       ;;
3509       llvm-gcc)       ;;
3510       test-suite)     ;;
3511       llvm-test)      ;;
3512       poolalloc)      ;;
3513       llvm-poolalloc) ;;
3514       *)
3515         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3516 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3517         ;;
3518     esac
3519   fi
3520 done
3521
3522 # Check whether --enable-polly was given.
3523 if test "${enable_polly+set}" = set; then
3524   enableval=$enable_polly;
3525 else
3526   enableval=default
3527 fi
3528
3529 case "$enableval" in
3530   yes) ENABLE_POLLY=1
3531  ;;
3532   no)  ENABLE_POLLY=0
3533  ;;
3534   default) ENABLE_POLLY=1
3535  ;;
3536   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3537 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3538    { (exit 1); exit 1; }; } ;;
3539 esac
3540
3541
3542 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3543   LLVM_HAS_POLLY=1
3544
3545   subdirs="$subdirs tools/polly"
3546
3547 fi
3548
3549
3550 # Make sure we can run config.sub.
3551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3552   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3553 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3554    { (exit 1); exit 1; }; }
3555
3556 { echo "$as_me:$LINENO: checking build system type" >&5
3557 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3558 if test "${ac_cv_build+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   ac_build_alias=$build_alias
3562 test "x$ac_build_alias" = x &&
3563   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3564 test "x$ac_build_alias" = x &&
3565   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3567    { (exit 1); exit 1; }; }
3568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3569   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3570 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3571    { (exit 1); exit 1; }; }
3572
3573 fi
3574 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3575 echo "${ECHO_T}$ac_cv_build" >&6; }
3576 case $ac_cv_build in
3577 *-*-*) ;;
3578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3579 echo "$as_me: error: invalid value of canonical build" >&2;}
3580    { (exit 1); exit 1; }; };;
3581 esac
3582 build=$ac_cv_build
3583 ac_save_IFS=$IFS; IFS='-'
3584 set x $ac_cv_build
3585 shift
3586 build_cpu=$1
3587 build_vendor=$2
3588 shift; shift
3589 # Remember, the first character of IFS is used to create $*,
3590 # except with old shells:
3591 build_os=$*
3592 IFS=$ac_save_IFS
3593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3594
3595
3596 { echo "$as_me:$LINENO: checking host system type" >&5
3597 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3598 if test "${ac_cv_host+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test "x$host_alias" = x; then
3602   ac_cv_host=$ac_cv_build
3603 else
3604   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3607    { (exit 1); exit 1; }; }
3608 fi
3609
3610 fi
3611 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3612 echo "${ECHO_T}$ac_cv_host" >&6; }
3613 case $ac_cv_host in
3614 *-*-*) ;;
3615 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3616 echo "$as_me: error: invalid value of canonical host" >&2;}
3617    { (exit 1); exit 1; }; };;
3618 esac
3619 host=$ac_cv_host
3620 ac_save_IFS=$IFS; IFS='-'
3621 set x $ac_cv_host
3622 shift
3623 host_cpu=$1
3624 host_vendor=$2
3625 shift; shift
3626 # Remember, the first character of IFS is used to create $*,
3627 # except with old shells:
3628 host_os=$*
3629 IFS=$ac_save_IFS
3630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3631
3632
3633 { echo "$as_me:$LINENO: checking target system type" >&5
3634 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3635 if test "${ac_cv_target+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   if test "x$target_alias" = x; then
3639   ac_cv_target=$ac_cv_host
3640 else
3641   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3642     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3643 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3644    { (exit 1); exit 1; }; }
3645 fi
3646
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3649 echo "${ECHO_T}$ac_cv_target" >&6; }
3650 case $ac_cv_target in
3651 *-*-*) ;;
3652 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3653 echo "$as_me: error: invalid value of canonical target" >&2;}
3654    { (exit 1); exit 1; }; };;
3655 esac
3656 target=$ac_cv_target
3657 ac_save_IFS=$IFS; IFS='-'
3658 set x $ac_cv_target
3659 shift
3660 target_cpu=$1
3661 target_vendor=$2
3662 shift; shift
3663 # Remember, the first character of IFS is used to create $*,
3664 # except with old shells:
3665 target_os=$*
3666 IFS=$ac_save_IFS
3667 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3668
3669
3670 # The aliases save the names the user supplied, while $host etc.
3671 # will get canonicalized.
3672 test -n "$target_alias" &&
3673   test "$program_prefix$program_suffix$program_transform_name" = \
3674     NONENONEs,x,x, &&
3675   program_prefix=${target_alias}-
3676
3677 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3678 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3679 if test "${llvm_cv_os_type+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   case $host in
3683   *-*-aix*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="AIX"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-irix*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="IRIX"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-cygwin*)
3694     llvm_cv_link_all_option="-Wl,--whole-archive"
3695     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696     llvm_cv_os_type="Cygwin"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-darwin*)
3699     llvm_cv_link_all_option="-Wl,-all_load"
3700     llvm_cv_no_link_all_option="-Wl,-noall_load"
3701     llvm_cv_os_type="Darwin"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-minix*)
3704     llvm_cv_link_all_option="-Wl,-all_load"
3705     llvm_cv_no_link_all_option="-Wl,-noall_load"
3706     llvm_cv_os_type="Minix"
3707     llvm_cv_platform_type="Unix" ;;
3708   *-*-freebsd* | *-*-kfreebsd-gnu)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="FreeBSD"
3712     llvm_cv_platform_type="Unix" ;;
3713   *-*-openbsd*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="OpenBSD"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-*-netbsd*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="NetBSD"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-*-dragonfly*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="DragonFly"
3727     llvm_cv_platform_type="Unix" ;;
3728   *-*-hpux*)
3729     llvm_cv_link_all_option="-Wl,--whole-archive"
3730     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731     llvm_cv_os_type="HP-UX"
3732     llvm_cv_platform_type="Unix" ;;
3733   *-*-interix*)
3734     llvm_cv_link_all_option="-Wl,--whole-archive"
3735     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736     llvm_cv_os_type="Interix"
3737     llvm_cv_platform_type="Unix" ;;
3738   *-*-linux*)
3739     llvm_cv_link_all_option="-Wl,--whole-archive"
3740     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741     llvm_cv_os_type="Linux"
3742     llvm_cv_platform_type="Unix" ;;
3743   *-*-gnu*)
3744     llvm_cv_link_all_option="-Wl,--whole-archive"
3745     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746     llvm_cv_os_type="GNU"
3747     llvm_cv_platform_type="Unix" ;;
3748   *-*-solaris*)
3749     llvm_cv_link_all_option="-Wl,-z,allextract"
3750     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3751     llvm_cv_os_type="SunOS"
3752     llvm_cv_platform_type="Unix" ;;
3753   *-*-auroraux*)
3754     llvm_cv_link_all_option="-Wl,-z,allextract"
3755     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3756     llvm_cv_os_type="AuroraUX"
3757     llvm_cv_platform_type="Unix" ;;
3758   *-*-win32*)
3759     llvm_cv_link_all_option="-Wl,--whole-archive"
3760     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761     llvm_cv_os_type="Win32"
3762     llvm_cv_platform_type="Win32" ;;
3763   *-*-mingw*)
3764     llvm_cv_link_all_option="-Wl,--whole-archive"
3765     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766     llvm_cv_os_type="MingW"
3767     llvm_cv_platform_type="Win32" ;;
3768   *-*-haiku*)
3769     llvm_cv_link_all_option="-Wl,--whole-archive"
3770     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771     llvm_cv_os_type="Haiku"
3772     llvm_cv_platform_type="Unix" ;;
3773   *-unknown-eabi*)
3774     llvm_cv_link_all_option="-Wl,--whole-archive"
3775     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776     llvm_cv_os_type="Freestanding"
3777     llvm_cv_platform_type="Unix" ;;
3778   *-unknown-elf*)
3779     llvm_cv_link_all_option="-Wl,--whole-archive"
3780     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781     llvm_cv_os_type="Freestanding"
3782     llvm_cv_platform_type="Unix" ;;
3783   *)
3784     llvm_cv_link_all_option=""
3785     llvm_cv_no_link_all_option=""
3786     llvm_cv_os_type="Unknown"
3787     llvm_cv_platform_type="Unknown" ;;
3788 esac
3789 fi
3790 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3792
3793 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3794 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3795 if test "${llvm_cv_target_os_type+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   case $target in
3799   *-*-aix*)
3800     llvm_cv_target_os_type="AIX" ;;
3801   *-*-irix*)
3802     llvm_cv_target_os_type="IRIX" ;;
3803   *-*-cygwin*)
3804     llvm_cv_target_os_type="Cygwin" ;;
3805   *-*-darwin*)
3806     llvm_cv_target_os_type="Darwin" ;;
3807   *-*-minix*)
3808     llvm_cv_target_os_type="Minix" ;;
3809   *-*-freebsd* | *-*-kfreebsd-gnu)
3810     llvm_cv_target_os_type="FreeBSD" ;;
3811   *-*-openbsd*)
3812     llvm_cv_target_os_type="OpenBSD" ;;
3813   *-*-netbsd*)
3814     llvm_cv_target_os_type="NetBSD" ;;
3815   *-*-dragonfly*)
3816     llvm_cv_target_os_type="DragonFly" ;;
3817   *-*-hpux*)
3818     llvm_cv_target_os_type="HP-UX" ;;
3819   *-*-interix*)
3820     llvm_cv_target_os_type="Interix" ;;
3821   *-*-linux*)
3822     llvm_cv_target_os_type="Linux" ;;
3823   *-*-gnu*)
3824     llvm_cv_target_os_type="GNU" ;;
3825   *-*-solaris*)
3826     llvm_cv_target_os_type="SunOS" ;;
3827   *-*-auroraux*)
3828     llvm_cv_target_os_type="AuroraUX" ;;
3829   *-*-win32*)
3830     llvm_cv_target_os_type="Win32" ;;
3831   *-*-mingw*)
3832     llvm_cv_target_os_type="MingW" ;;
3833   *-*-haiku*)
3834     llvm_cv_target_os_type="Haiku" ;;
3835   *-*-rtems*)
3836     llvm_cv_target_os_type="RTEMS" ;;
3837   *-*-nacl*)
3838     llvm_cv_target_os_type="NativeClient" ;;
3839   *-unknown-eabi*)
3840     llvm_cv_target_os_type="Freestanding" ;;
3841   *)
3842     llvm_cv_target_os_type="Unknown" ;;
3843 esac
3844 fi
3845 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3846 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3847
3848 if test "$llvm_cv_os_type" = "Unknown" ; then
3849   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3850 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3851    { (exit 1); exit 1; }; }
3852 fi
3853
3854 OS=$llvm_cv_os_type
3855
3856 HOST_OS=$llvm_cv_os_type
3857
3858 TARGET_OS=$llvm_cv_target_os_type
3859
3860
3861 LINKALL=$llvm_cv_link_all_option
3862
3863 NOLINKALL=$llvm_cv_no_link_all_option
3864
3865
3866 case $llvm_cv_platform_type in
3867   Unix)
3868
3869 cat >>confdefs.h <<\_ACEOF
3870 #define LLVM_ON_UNIX 1
3871 _ACEOF
3872
3873     LLVM_ON_UNIX=1
3874
3875     LLVM_ON_WIN32=0
3876
3877     ;;
3878   Win32)
3879
3880 cat >>confdefs.h <<\_ACEOF
3881 #define LLVM_ON_WIN32 1
3882 _ACEOF
3883
3884     LLVM_ON_UNIX=0
3885
3886     LLVM_ON_WIN32=1
3887
3888     ;;
3889 esac
3890
3891 { echo "$as_me:$LINENO: checking target architecture" >&5
3892 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3893 if test "${llvm_cv_target_arch+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   case $target in
3897   i?86-*)                 llvm_cv_target_arch="x86" ;;
3898   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3899   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3900   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3901   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3902   mips-*)                 llvm_cv_target_arch="Mips" ;;
3903   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3904   xcore-*)                llvm_cv_target_arch="XCore" ;;
3905   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3906   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3907   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3908   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3909   *)                      llvm_cv_target_arch="Unknown" ;;
3910 esac
3911 fi
3912 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3913 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3914
3915 if test "$llvm_cv_target_arch" = "Unknown" ; then
3916   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3917 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3918 fi
3919
3920 case "$llvm_cv_target_arch" in
3921     x86)     LLVM_NATIVE_ARCH="X86" ;;
3922     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3923     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3924 esac
3925
3926 ARCH=$llvm_cv_target_arch
3927
3928
3929 case $host in
3930   i?86-*)                 host_arch="x86" ;;
3931   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3932   sparc*-*)               host_arch="Sparc" ;;
3933   powerpc*-*)             host_arch="PowerPC" ;;
3934   arm*-*)                 host_arch="ARM" ;;
3935   mips-*)                 host_arch="Mips" ;;
3936   mipsel-*)               host_arch="Mips" ;;
3937   xcore-*)                host_arch="XCore" ;;
3938   msp430-*)               host_arch="MSP430" ;;
3939   hexagon-*)              host_arch="Hexagon" ;;
3940   mblaze-*)               host_arch="MBlaze" ;;
3941   *)                      host_arch="Unknown" ;;
3942 esac
3943
3944 if test "$host_arch" = "Unknown" ; then
3945   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3946 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3947 fi
3948
3949 HOST_ARCH=$host_arch
3950
3951
3952
3953
3954 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3955 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3956 if test "${ac_cv_path_GREP+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   # Extract the first word of "grep ggrep" to use in msg output
3960 if test -z "$GREP"; then
3961 set dummy grep ggrep; ac_prog_name=$2
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   ac_path_GREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_prog in grep ggrep; do
3973   for ac_exec_ext in '' $ac_executable_extensions; do
3974     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3975     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3976     # Check for GNU ac_path_GREP and select it if it is found.
3977   # Check for GNU $ac_path_GREP
3978 case `"$ac_path_GREP" --version 2>&1` in
3979 *GNU*)
3980   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981 *)
3982   ac_count=0
3983   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984   while :
3985   do
3986     cat "conftest.in" "conftest.in" >"conftest.tmp"
3987     mv "conftest.tmp" "conftest.in"
3988     cp "conftest.in" "conftest.nl"
3989     echo 'GREP' >> "conftest.nl"
3990     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992     ac_count=`expr $ac_count + 1`
3993     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3994       # Best one so far, save it but keep looking for a better one
3995       ac_cv_path_GREP="$ac_path_GREP"
3996       ac_path_GREP_max=$ac_count
3997     fi
3998     # 10*(2^10) chars as input seems more than enough
3999     test $ac_count -gt 10 && break
4000   done
4001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002 esac
4003
4004
4005     $ac_path_GREP_found && break 3
4006   done
4007 done
4008
4009 done
4010 IFS=$as_save_IFS
4011
4012
4013 fi
4014
4015 GREP="$ac_cv_path_GREP"
4016 if test -z "$GREP"; then
4017   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019    { (exit 1); exit 1; }; }
4020 fi
4021
4022 else
4023   ac_cv_path_GREP=$GREP
4024 fi
4025
4026
4027 fi
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4030  GREP="$ac_cv_path_GREP"
4031
4032
4033 { echo "$as_me:$LINENO: checking for egrep" >&5
4034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4035 if test "${ac_cv_path_EGREP+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039    then ac_cv_path_EGREP="$GREP -E"
4040    else
4041      # Extract the first word of "egrep" to use in msg output
4042 if test -z "$EGREP"; then
4043 set dummy egrep; ac_prog_name=$2
4044 if test "${ac_cv_path_EGREP+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   ac_path_EGREP_found=false
4048 # Loop through the user's path and test for each of PROGNAME-LIST
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_prog in egrep; do
4055   for ac_exec_ext in '' $ac_executable_extensions; do
4056     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4058     # Check for GNU ac_path_EGREP and select it if it is found.
4059   # Check for GNU $ac_path_EGREP
4060 case `"$ac_path_EGREP" --version 2>&1` in
4061 *GNU*)
4062   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4063 *)
4064   ac_count=0
4065   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4066   while :
4067   do
4068     cat "conftest.in" "conftest.in" >"conftest.tmp"
4069     mv "conftest.tmp" "conftest.in"
4070     cp "conftest.in" "conftest.nl"
4071     echo 'EGREP' >> "conftest.nl"
4072     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074     ac_count=`expr $ac_count + 1`
4075     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4076       # Best one so far, save it but keep looking for a better one
4077       ac_cv_path_EGREP="$ac_path_EGREP"
4078       ac_path_EGREP_max=$ac_count
4079     fi
4080     # 10*(2^10) chars as input seems more than enough
4081     test $ac_count -gt 10 && break
4082   done
4083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 esac
4085
4086
4087     $ac_path_EGREP_found && break 3
4088   done
4089 done
4090
4091 done
4092 IFS=$as_save_IFS
4093
4094
4095 fi
4096
4097 EGREP="$ac_cv_path_EGREP"
4098 if test -z "$EGREP"; then
4099   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4100 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4101    { (exit 1); exit 1; }; }
4102 fi
4103
4104 else
4105   ac_cv_path_EGREP=$EGREP
4106 fi
4107
4108
4109    fi
4110 fi
4111 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4112 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4113  EGREP="$ac_cv_path_EGREP"
4114
4115
4116 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4118 if test "${ac_cv_header_stdc+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <stdlib.h>
4128 #include <stdarg.h>
4129 #include <string.h>
4130 #include <float.h>
4131
4132 int
4133 main ()
4134 {
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_compile") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; } &&
4164          { ac_try='test -s conftest.$ac_objext'
4165   { (case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_try") 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   ac_cv_header_stdc=yes
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         ac_cv_header_stdc=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <string.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196   $EGREP "memchr" >/dev/null 2>&1; then
4197   :
4198 else
4199   ac_cv_header_stdc=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204
4205 if test $ac_cv_header_stdc = yes; then
4206   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 #include <stdlib.h>
4214
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   $EGREP "free" >/dev/null 2>&1; then
4218   :
4219 else
4220   ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest*
4223
4224 fi
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228   if test "$cross_compiling" = yes; then
4229   :
4230 else
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #include <ctype.h>
4238 #include <stdlib.h>
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4242 #else
4243 # define ISLOWER(c) \
4244                    (('a' <= (c) && (c) <= 'i') \
4245                      || ('j' <= (c) && (c) <= 'r') \
4246                      || ('s' <= (c) && (c) <= 'z'))
4247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #endif
4249
4250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251 int
4252 main ()
4253 {
4254   int i;
4255   for (i = 0; i < 256; i++)
4256     if (XOR (islower (i), ISLOWER (i))
4257         || toupper (i) != TOUPPER (i))
4258       return 2;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest$ac_exeext
4263 if { (ac_try="$ac_link"
4264 case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_link") 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   :
4283 else
4284   echo "$as_me: program exited with status $ac_status" >&5
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 ( exit $ac_status )
4289 ac_cv_header_stdc=no
4290 fi
4291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292 fi
4293
4294
4295 fi
4296 fi
4297 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4298 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4299 if test $ac_cv_header_stdc = yes; then
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define STDC_HEADERS 1
4303 _ACEOF
4304
4305 fi
4306
4307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318                   inttypes.h stdint.h unistd.h
4319 do
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h.  */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h.  */
4332 $ac_includes_default
4333
4334 #include <$ac_header>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_compile") 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4351   { (case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_try") 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; } &&
4360          { ac_try='test -s conftest.$ac_objext'
4361   { (case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_try") 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; }; then
4370   eval "$as_ac_Header=yes"
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375         eval "$as_ac_Header=no"
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 ac_res=`eval echo '${'$as_ac_Header'}'`
4381                { echo "$as_me:$LINENO: result: $ac_res" >&5
4382 echo "${ECHO_T}$ac_res" >&6; }
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384   cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 _ACEOF
4387
4388 fi
4389
4390 done
4391
4392
4393 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4394 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4395 if test "${ac_cv_c_bigendian+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   # See if sys/param.h defines the BYTE_ORDER macro.
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <sys/types.h>
4406 #include <sys/param.h>
4407
4408 int
4409 main ()
4410 {
4411 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4412  bogus endian macros
4413 #endif
4414
4415   ;
4416   return 0;
4417 }
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426   (eval "$ac_compile") 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4434   { (case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_try") 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; } &&
4443          { ac_try='test -s conftest.$ac_objext'
4444   { (case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449   (eval "$ac_try") 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   # It does; now see whether it defined to BIG_ENDIAN or not.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #include <sys/types.h>
4461 #include <sys/param.h>
4462
4463 int
4464 main ()
4465 {
4466 #if BYTE_ORDER != BIG_ENDIAN
4467  not big endian
4468 #endif
4469
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_compile") 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489   { (case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_try") 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; }; then
4508   ac_cv_c_bigendian=yes
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513         ac_cv_c_bigendian=no
4514 fi
4515
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521         # It does not; compile a test program.
4522 if test "$cross_compiling" = yes; then
4523   # try to guess the endianness by grepping values into an object file
4524   ac_cv_c_bigendian=unknown
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4532 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4533 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4534 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4535 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4536 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4537 int
4538 main ()
4539 {
4540  _ascii (); _ebcdic ();
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552   (eval "$ac_compile") 2>conftest.er1
4553   ac_status=$?
4554   grep -v '^ *+' conftest.er1 >conftest.err
4555   rm -f conftest.er1
4556   cat conftest.err >&5
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } &&
4559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4560   { (case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_try") 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; } &&
4569          { ac_try='test -s conftest.$ac_objext'
4570   { (case "(($ac_try" in
4571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572   *) ac_try_echo=$ac_try;;
4573 esac
4574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575   (eval "$ac_try") 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4580   ac_cv_c_bigendian=yes
4581 fi
4582 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4583   if test "$ac_cv_c_bigendian" = unknown; then
4584     ac_cv_c_bigendian=no
4585   else
4586     # finding both strings is unlikely to happen, but who knows?
4587     ac_cv_c_bigendian=unknown
4588   fi
4589 fi
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594
4595 fi
4596
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 $ac_includes_default
4606 int
4607 main ()
4608 {
4609
4610   /* Are we little or big endian?  From Harbison&Steele.  */
4611   union
4612   {
4613     long int l;
4614     char c[sizeof (long int)];
4615   } u;
4616   u.l = 1;
4617   return u.c[sizeof (long int) - 1] == 1;
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4625 case "(($ac_try" in
4626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627   *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630   (eval "$ac_link") 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4634   { (case "(($ac_try" in
4635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636   *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639   (eval "$ac_try") 2>&5
4640   ac_status=$?
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); }; }; then
4643   ac_cv_c_bigendian=no
4644 else
4645   echo "$as_me: program exited with status $ac_status" >&5
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ( exit $ac_status )
4650 ac_cv_c_bigendian=yes
4651 fi
4652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4653 fi
4654
4655
4656 fi
4657
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 fi
4660 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4661 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4662 case $ac_cv_c_bigendian in
4663   yes)
4664     ENDIAN=big
4665  ;;
4666   no)
4667     ENDIAN=little
4668  ;;
4669   *)
4670     { { echo "$as_me:$LINENO: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4672 echo "$as_me: error: unknown endianness
4673 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675 esac
4676
4677
4678 if test "$cross_compiling" = yes; then
4679   LLVM_CROSS_COMPILING=1
4680
4681
4682 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4683 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4684 if test "${ac_cv_build_exeext+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4688   ac_cv_build_exeext=.exe
4689 else
4690   ac_build_prefix=${build_alias}-
4691
4692   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4693 set dummy ${ac_build_prefix}gcc; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   if test -n "$BUILD_CC"; then
4700   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 BUILD_CC=$ac_cv_prog_BUILD_CC
4720 if test -n "$BUILD_CC"; then
4721   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4722 echo "${ECHO_T}$BUILD_CC" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729   if test -z "$BUILD_CC"; then
4730      # Extract the first word of "gcc", so it can be a program name with args.
4731 set dummy gcc; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   if test -n "$BUILD_CC"; then
4738   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745   for ac_exec_ext in '' $ac_executable_extensions; do
4746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4747     ac_cv_prog_BUILD_CC="gcc"
4748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 BUILD_CC=$ac_cv_prog_BUILD_CC
4758 if test -n "$BUILD_CC"; then
4759   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4760 echo "${ECHO_T}$BUILD_CC" >&6; }
4761 else
4762   { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4764 fi
4765
4766
4767      if test -z "$BUILD_CC"; then
4768        # Extract the first word of "cc", so it can be a program name with args.
4769 set dummy cc; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   if test -n "$BUILD_CC"; then
4776   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4777 else
4778   ac_prog_rejected=no
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784   for ac_exec_ext in '' $ac_executable_extensions; do
4785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787        ac_prog_rejected=yes
4788        continue
4789      fi
4790     ac_cv_prog_BUILD_CC="cc"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 if test $ac_prog_rejected = yes; then
4799   # We found a bogon in the path, so make sure we never use it.
4800   set dummy $ac_cv_prog_BUILD_CC
4801   shift
4802   if test $# != 0; then
4803     # We chose a different compiler from the bogus one.
4804     # However, it has the same basename, so the bogon will be chosen
4805     # first if we set BUILD_CC to just the basename; use the full file name.
4806     shift
4807     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4808   fi
4809 fi
4810 fi
4811 fi
4812 BUILD_CC=$ac_cv_prog_BUILD_CC
4813 if test -n "$BUILD_CC"; then
4814   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4815 echo "${ECHO_T}$BUILD_CC" >&6; }
4816 else
4817   { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4819 fi
4820
4821
4822      fi
4823   fi
4824   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4825 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4826    { (exit 1); exit 1; }; }
4827   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4828   rm -f conftest*
4829   echo 'int main () { return 0; }' > conftest.$ac_ext
4830   ac_cv_build_exeext=
4831   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4832   (eval $ac_build_link) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; then
4836     for file in conftest.*; do
4837       case $file in
4838       *.c | *.o | *.obj | *.dSYM) ;;
4839       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4840       esac
4841     done
4842   else
4843     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4844 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4845    { (exit 1); exit 1; }; }
4846   fi
4847   rm -f conftest*
4848   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4849 fi
4850 fi
4851
4852 BUILD_EXEEXT=""
4853 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4854 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4855 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4856 ac_build_exeext=$BUILD_EXEEXT
4857
4858   ac_build_prefix=${build_alias}-
4859   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4860 set dummy ${ac_build_prefix}g++; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   if test -n "$BUILD_CXX"; then
4867   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4887 if test -n "$BUILD_CXX"; then
4888   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4889 echo "${ECHO_T}$BUILD_CXX" >&6; }
4890 else
4891   { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4893 fi
4894
4895
4896   if test -z "$BUILD_CXX"; then
4897      # Extract the first word of "g++", so it can be a program name with args.
4898 set dummy g++; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   if test -n "$BUILD_CXX"; then
4905   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_prog_BUILD_CXX="g++"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922 fi
4923 fi
4924 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4925 if test -n "$BUILD_CXX"; then
4926   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4927 echo "${ECHO_T}$BUILD_CXX" >&6; }
4928 else
4929   { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4931 fi
4932
4933
4934      if test -z "$BUILD_CXX"; then
4935        # Extract the first word of "c++", so it can be a program name with args.
4936 set dummy c++; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   if test -n "$BUILD_CXX"; then
4943   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4944 else
4945   ac_prog_rejected=no
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4953     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4954        ac_prog_rejected=yes
4955        continue
4956      fi
4957     ac_cv_prog_BUILD_CXX="c++"
4958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 if test $ac_prog_rejected = yes; then
4966   # We found a bogon in the path, so make sure we never use it.
4967   set dummy $ac_cv_prog_BUILD_CXX
4968   shift
4969   if test $# != 0; then
4970     # We chose a different compiler from the bogus one.
4971     # However, it has the same basename, so the bogon will be chosen
4972     # first if we set BUILD_CXX to just the basename; use the full file name.
4973     shift
4974     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4975   fi
4976 fi
4977 fi
4978 fi
4979 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4980 if test -n "$BUILD_CXX"; then
4981   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4982 echo "${ECHO_T}$BUILD_CXX" >&6; }
4983 else
4984   { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4986 fi
4987
4988
4989      fi
4990   fi
4991 else
4992   LLVM_CROSS_COMPILING=0
4993
4994 fi
4995
4996 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4997   cvsbuild="yes"
4998   optimize="no"
4999   CVSBUILD=CVSBUILD=1
5000
5001 else
5002   cvsbuild="no"
5003   optimize="yes"
5004 fi
5005
5006
5007 # Check whether --enable-libcpp was given.
5008 if test "${enable_libcpp+set}" = set; then
5009   enableval=$enable_libcpp;
5010 else
5011   enableval=default
5012 fi
5013
5014 case "$enableval" in
5015   yes) ENABLE_LIBCPP=1
5016  ;;
5017   no)  ENABLE_LIBCPP=0
5018  ;;
5019   default) ENABLE_LIBCPP=0
5020 ;;
5021   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5023    { (exit 1); exit 1; }; } ;;
5024 esac
5025
5026 # Check whether --enable-cxx11 was given.
5027 if test "${enable_cxx11+set}" = set; then
5028   enableval=$enable_cxx11;
5029 else
5030   enableval=default
5031 fi
5032
5033 case "$enableval" in
5034   yes) ENABLE_CXX11=1
5035  ;;
5036   no)  ENABLE_CXX11=0
5037  ;;
5038   default) ENABLE_CXX11=0
5039 ;;
5040   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5041 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5042    { (exit 1); exit 1; }; } ;;
5043 esac
5044
5045 # Check whether --enable-optimized was given.
5046 if test "${enable_optimized+set}" = set; then
5047   enableval=$enable_optimized;
5048 else
5049   enableval=$optimize
5050 fi
5051
5052 if test ${enableval} = "no" ; then
5053   ENABLE_OPTIMIZED=
5054
5055 else
5056   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5057
5058 fi
5059
5060 # Check whether --enable-profiling was given.
5061 if test "${enable_profiling+set}" = set; then
5062   enableval=$enable_profiling;
5063 else
5064   enableval="no"
5065 fi
5066
5067 if test ${enableval} = "no" ; then
5068   ENABLE_PROFILING=
5069
5070 else
5071   ENABLE_PROFILING=ENABLE_PROFILING=1
5072
5073 fi
5074
5075 # Check whether --enable-assertions was given.
5076 if test "${enable_assertions+set}" = set; then
5077   enableval=$enable_assertions;
5078 else
5079   enableval="yes"
5080 fi
5081
5082 if test ${enableval} = "yes" ; then
5083   DISABLE_ASSERTIONS=
5084
5085 else
5086   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5087
5088 fi
5089
5090 # Check whether --enable-werror was given.
5091 if test "${enable_werror+set}" = set; then
5092   enableval=$enable_werror;
5093 else
5094   enableval="no"
5095 fi
5096
5097 case "$enableval" in
5098   yes) ENABLE_WERROR=1
5099  ;;
5100   no)  ENABLE_WERROR=0
5101  ;;
5102   default) ENABLE_WERROR=0
5103 ;;
5104   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5105 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5106    { (exit 1); exit 1; }; } ;;
5107 esac
5108
5109 # Check whether --enable-expensive-checks was given.
5110 if test "${enable_expensive_checks+set}" = set; then
5111   enableval=$enable_expensive_checks;
5112 else
5113   enableval="no"
5114 fi
5115
5116 if test ${enableval} = "yes" ; then
5117   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5118
5119   EXPENSIVE_CHECKS=yes
5120
5121 else
5122   ENABLE_EXPENSIVE_CHECKS=
5123
5124   EXPENSIVE_CHECKS=no
5125
5126 fi
5127
5128 # Check whether --enable-debug-runtime was given.
5129 if test "${enable_debug_runtime+set}" = set; then
5130   enableval=$enable_debug_runtime;
5131 else
5132   enableval=no
5133 fi
5134
5135 if test ${enableval} = "no" ; then
5136   DEBUG_RUNTIME=
5137
5138 else
5139   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5140
5141 fi
5142
5143 # Check whether --enable-debug-symbols was given.
5144 if test "${enable_debug_symbols+set}" = set; then
5145   enableval=$enable_debug_symbols;
5146 else
5147   enableval=no
5148 fi
5149
5150 if test ${enableval} = "no" ; then
5151   DEBUG_SYMBOLS=
5152
5153 else
5154   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5155
5156 fi
5157
5158 # Check whether --enable-jit was given.
5159 if test "${enable_jit+set}" = set; then
5160   enableval=$enable_jit;
5161 else
5162   enableval=default
5163 fi
5164
5165 if test ${enableval} = "no"
5166 then
5167   JIT=
5168
5169 else
5170   case "$llvm_cv_target_arch" in
5171     x86)         TARGET_HAS_JIT=1
5172  ;;
5173     Sparc)       TARGET_HAS_JIT=0
5174  ;;
5175     PowerPC)     TARGET_HAS_JIT=1
5176  ;;
5177     x86_64)      TARGET_HAS_JIT=1
5178  ;;
5179     ARM)         TARGET_HAS_JIT=1
5180  ;;
5181     Mips)        TARGET_HAS_JIT=1
5182  ;;
5183     XCore)       TARGET_HAS_JIT=0
5184  ;;
5185     MSP430)      TARGET_HAS_JIT=0
5186  ;;
5187     Hexagon)     TARGET_HAS_JIT=0
5188  ;;
5189     MBlaze)      TARGET_HAS_JIT=0
5190  ;;
5191     NVPTX)       TARGET_HAS_JIT=0
5192  ;;
5193     *)           TARGET_HAS_JIT=0
5194  ;;
5195   esac
5196 fi
5197
5198 # Check whether --enable-docs was given.
5199 if test "${enable_docs+set}" = set; then
5200   enableval=$enable_docs;
5201 else
5202   enableval=default
5203 fi
5204
5205 case "$enableval" in
5206   yes) ENABLE_DOCS=1
5207  ;;
5208   no)  ENABLE_DOCS=0
5209  ;;
5210   default) ENABLE_DOCS=1
5211  ;;
5212   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5214    { (exit 1); exit 1; }; } ;;
5215 esac
5216
5217 # Check whether --enable-doxygen was given.
5218 if test "${enable_doxygen+set}" = set; then
5219   enableval=$enable_doxygen;
5220 else
5221   enableval=default
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_DOXYGEN=1
5226  ;;
5227   no)  ENABLE_DOXYGEN=0
5228  ;;
5229   default) ENABLE_DOXYGEN=0
5230  ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-threads was given.
5237 if test "${enable_threads+set}" = set; then
5238   enableval=$enable_threads;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) LLVM_ENABLE_THREADS=1
5245  ;;
5246   no)  LLVM_ENABLE_THREADS=0
5247  ;;
5248   default) LLVM_ENABLE_THREADS=1
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 cat >>confdefs.h <<_ACEOF
5256 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5257 _ACEOF
5258
5259
5260 # Check whether --enable-pthreads was given.
5261 if test "${enable_pthreads+set}" = set; then
5262   enableval=$enable_pthreads;
5263 else
5264   enableval=default
5265 fi
5266
5267 case "$enableval" in
5268   yes) ENABLE_PTHREADS=1
5269  ;;
5270   no)  ENABLE_PTHREADS=0
5271  ;;
5272   default) ENABLE_PTHREADS=1
5273  ;;
5274   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5275 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5276    { (exit 1); exit 1; }; } ;;
5277 esac
5278
5279 # Check whether --enable-pic was given.
5280 if test "${enable_pic+set}" = set; then
5281   enableval=$enable_pic;
5282 else
5283   enableval=default
5284 fi
5285
5286 case "$enableval" in
5287   yes) ENABLE_PIC=1
5288  ;;
5289   no)  ENABLE_PIC=0
5290  ;;
5291   default) ENABLE_PIC=1
5292  ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5297
5298 cat >>confdefs.h <<_ACEOF
5299 #define ENABLE_PIC $ENABLE_PIC
5300 _ACEOF
5301
5302
5303 # Check whether --enable-shared was given.
5304 if test "${enable_shared+set}" = set; then
5305   enableval=$enable_shared;
5306 else
5307   enableval=default
5308 fi
5309
5310 case "$enableval" in
5311   yes) ENABLE_SHARED=1
5312  ;;
5313   no)  ENABLE_SHARED=0
5314  ;;
5315   default) ENABLE_SHARED=0
5316  ;;
5317   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5318 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5319    { (exit 1); exit 1; }; } ;;
5320 esac
5321
5322 # Check whether --enable-embed-stdcxx was given.
5323 if test "${enable_embed_stdcxx+set}" = set; then
5324   enableval=$enable_embed_stdcxx;
5325 else
5326   enableval=default
5327 fi
5328
5329 case "$enableval" in
5330   yes) ENABLE_EMBED_STDCXX=1
5331  ;;
5332   no)  ENABLE_EMBED_STDCXX=0
5333  ;;
5334   default) ENABLE_EMBED_STDCXX=0
5335  ;;
5336   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5338    { (exit 1); exit 1; }; } ;;
5339 esac
5340
5341 # Check whether --enable-timestamps was given.
5342 if test "${enable_timestamps+set}" = set; then
5343   enableval=$enable_timestamps;
5344 else
5345   enableval=default
5346 fi
5347
5348 case "$enableval" in
5349   yes) ENABLE_TIMESTAMPS=1
5350  ;;
5351   no)  ENABLE_TIMESTAMPS=0
5352  ;;
5353   default) ENABLE_TIMESTAMPS=1
5354  ;;
5355   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5357    { (exit 1); exit 1; }; } ;;
5358 esac
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5362 _ACEOF
5363
5364
5365 TARGETS_TO_BUILD=""
5366 # Check whether --enable-targets was given.
5367 if test "${enable_targets+set}" = set; then
5368   enableval=$enable_targets;
5369 else
5370   enableval=all
5371 fi
5372
5373 if test "$enableval" = host-only ; then
5374   enableval=host
5375 fi
5376 case "$enableval" in
5377   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5378   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5379       case "$a_target" in
5380         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5383         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5384         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5385         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5386         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5388         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5389         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5390         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5391         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5392         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5393         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5394         host) case "$llvm_cv_target_arch" in
5395             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5396             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5397             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5398             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5399             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5400             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5401             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5402             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5403             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5404             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5405             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5406             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5407             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5408 echo "$as_me: error: Can not set target to build" >&2;}
5409    { (exit 1); exit 1; }; } ;;
5410           esac ;;
5411         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5412 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5413    { (exit 1); exit 1; }; } ;;
5414       esac
5415   done
5416   ;;
5417 esac
5418 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5419
5420
5421 for a_target in $TARGETS_TO_BUILD; do
5422   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5426 _ACEOF
5427
5428     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5429     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5430     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5431     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5432     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5433       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5434     fi
5435     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5436       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5437     fi
5438
5439 cat >>confdefs.h <<_ACEOF
5440 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5441 _ACEOF
5442
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5446 _ACEOF
5447
5448
5449 cat >>confdefs.h <<_ACEOF
5450 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5451 _ACEOF
5452
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5456 _ACEOF
5457
5458     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5459
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5462 _ACEOF
5463
5464     fi
5465     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5466
5467 cat >>confdefs.h <<_ACEOF
5468 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5469 _ACEOF
5470
5471     fi
5472   fi
5473 done
5474
5475 LLVM_ENUM_TARGETS=""
5476 LLVM_ENUM_ASM_PRINTERS=""
5477 LLVM_ENUM_ASM_PARSERS=""
5478 LLVM_ENUM_DISASSEMBLERS=""
5479 for target_to_build in $TARGETS_TO_BUILD; do
5480   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5481   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5482     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5483   fi
5484   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5485     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5486   fi
5487   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5488     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5489   fi
5490 done
5491
5492
5493
5494
5495
5496
5497 # Check whether --with-optimize-option was given.
5498 if test "${with_optimize_option+set}" = set; then
5499   withval=$with_optimize_option;
5500 else
5501   withval=default
5502 fi
5503
5504 { echo "$as_me:$LINENO: checking optimization flags" >&5
5505 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5506 case "$withval" in
5507   default)
5508     case "$llvm_cv_os_type" in
5509     FreeBSD) optimize_option=-O2 ;;
5510     MingW) optimize_option=-O2 ;;
5511     *)     optimize_option=-O3 ;;
5512     esac ;;
5513   *) optimize_option="$withval" ;;
5514 esac
5515 OPTIMIZE_OPTION=$optimize_option
5516
5517 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5518 echo "${ECHO_T}$optimize_option" >&6; }
5519
5520
5521 # Check whether --with-extra-options was given.
5522 if test "${with_extra_options+set}" = set; then
5523   withval=$with_extra_options;
5524 else
5525   withval=default
5526 fi
5527
5528 case "$withval" in
5529   default) EXTRA_OPTIONS= ;;
5530   *) EXTRA_OPTIONS=$withval ;;
5531 esac
5532 EXTRA_OPTIONS=$EXTRA_OPTIONS
5533
5534
5535
5536 # Check whether --with-extra-ld-options was given.
5537 if test "${with_extra_ld_options+set}" = set; then
5538   withval=$with_extra_ld_options;
5539 else
5540   withval=default
5541 fi
5542
5543 case "$withval" in
5544   default) EXTRA_LD_OPTIONS= ;;
5545   *) EXTRA_LD_OPTIONS=$withval ;;
5546 esac
5547 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5548
5549
5550 # Check whether --enable-bindings was given.
5551 if test "${enable_bindings+set}" = set; then
5552   enableval=$enable_bindings;
5553 else
5554   enableval=default
5555 fi
5556
5557 BINDINGS_TO_BUILD=""
5558 case "$enableval" in
5559   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5560   all ) BINDINGS_TO_BUILD="ocaml" ;;
5561   none | no) BINDINGS_TO_BUILD="" ;;
5562   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5563       case "$a_binding" in
5564         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5565         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5566 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5567    { (exit 1); exit 1; }; } ;;
5568       esac
5569   done
5570   ;;
5571 esac
5572
5573
5574 # Check whether --with-ocaml-libdir was given.
5575 if test "${with_ocaml_libdir+set}" = set; then
5576   withval=$with_ocaml_libdir;
5577 else
5578   withval=auto
5579 fi
5580
5581 case "$withval" in
5582   auto) with_ocaml_libdir="$withval" ;;
5583   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5584   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5585 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5586    { (exit 1); exit 1; }; } ;;
5587 esac
5588
5589
5590 # Check whether --with-clang-srcdir was given.
5591 if test "${with_clang_srcdir+set}" = set; then
5592   withval=$with_clang_srcdir;
5593 else
5594   withval="-"
5595 fi
5596
5597 case "$withval" in
5598   -) clang_src_root="" ;;
5599   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5600   *) clang_src_root="$ac_pwd/$withval" ;;
5601 esac
5602 CLANG_SRC_ROOT=$clang_src_root
5603
5604
5605
5606 # Check whether --with-clang-resource-dir was given.
5607 if test "${with_clang_resource_dir+set}" = set; then
5608   withval=$with_clang_resource_dir;
5609 else
5610   withval=""
5611 fi
5612
5613
5614 cat >>confdefs.h <<_ACEOF
5615 #define CLANG_RESOURCE_DIR "$withval"
5616 _ACEOF
5617
5618
5619
5620 # Check whether --with-c-include-dirs was given.
5621 if test "${with_c_include_dirs+set}" = set; then
5622   withval=$with_c_include_dirs;
5623 else
5624   withval=""
5625 fi
5626
5627
5628 cat >>confdefs.h <<_ACEOF
5629 #define C_INCLUDE_DIRS "$withval"
5630 _ACEOF
5631
5632
5633 # Clang normally uses the system c++ headers and libraries. With this option,
5634 # clang will use the ones provided by a gcc installation instead. This option should
5635 # be passed the same value that was used with --prefix when configuring gcc.
5636
5637 # Check whether --with-gcc-toolchain was given.
5638 if test "${with_gcc_toolchain+set}" = set; then
5639   withval=$with_gcc_toolchain;
5640 else
5641   withval=""
5642 fi
5643
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define GCC_INSTALL_PREFIX "$withval"
5647 _ACEOF
5648
5649
5650
5651 # Check whether --with-default-sysroot was given.
5652 if test "${with_default_sysroot+set}" = set; then
5653   withval=$with_default_sysroot;
5654 else
5655   withval=""
5656 fi
5657
5658
5659 cat >>confdefs.h <<_ACEOF
5660 #define DEFAULT_SYSROOT "$withval"
5661 _ACEOF
5662
5663
5664
5665 # Check whether --with-binutils-include was given.
5666 if test "${with_binutils_include+set}" = set; then
5667   withval=$with_binutils_include;
5668 else
5669   withval=default
5670 fi
5671
5672 case "$withval" in
5673   default) WITH_BINUTILS_INCDIR=default ;;
5674   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5675   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5676 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5677    { (exit 1); exit 1; }; } ;;
5678 esac
5679 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5680   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5681
5682   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5683      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5684      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5685 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5686    { (exit 1); exit 1; }; };
5687   fi
5688 fi
5689
5690
5691 # Check whether --with-bug-report-url was given.
5692 if test "${with_bug_report_url+set}" = set; then
5693   withval=$with_bug_report_url;
5694 else
5695   withval="http://llvm.org/bugs/"
5696 fi
5697
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define BUG_REPORT_URL "$withval"
5701 _ACEOF
5702
5703
5704 # Check whether --enable-libffi was given.
5705 if test "${enable_libffi+set}" = set; then
5706   enableval=$enable_libffi; case "$enableval" in
5707     yes) llvm_cv_enable_libffi="yes" ;;
5708     no)  llvm_cv_enable_libffi="no"  ;;
5709     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5710 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5711    { (exit 1); exit 1; }; } ;;
5712   esac
5713 else
5714   llvm_cv_enable_libffi=no
5715 fi
5716
5717
5718
5719 # Check whether --with-internal-prefix was given.
5720 if test "${with_internal_prefix+set}" = set; then
5721   withval=$with_internal_prefix;
5722 else
5723   withval=""
5724 fi
5725
5726 INTERNAL_PREFIX=$withval
5727
5728
5729
5730 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5731 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5732 if test "${lt_cv_path_NM+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$NM"; then
5736   # Let the user override the test.
5737   lt_cv_path_NM="$NM"
5738 else
5739   lt_nm_to_check="${ac_tool_prefix}nm"
5740   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5741     lt_nm_to_check="$lt_nm_to_check nm"
5742   fi
5743   for lt_tmp_nm in $lt_nm_to_check; do
5744     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5745     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5746       IFS="$lt_save_ifs"
5747       test -z "$ac_dir" && ac_dir=.
5748       tmp_nm="$ac_dir/$lt_tmp_nm"
5749       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5750         # Check to see if the nm accepts a BSD-compat flag.
5751         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5752         #   nm: unknown option "B" ignored
5753         # Tru64's nm complains that /dev/null is an invalid object file
5754         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5755         */dev/null* | *'Invalid file or object type'*)
5756           lt_cv_path_NM="$tmp_nm -B"
5757           break
5758           ;;
5759         *)
5760           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5761           */dev/null*)
5762             lt_cv_path_NM="$tmp_nm -p"
5763             break
5764             ;;
5765           *)
5766             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5767             continue # so that we can try to find one that supports BSD flags
5768             ;;
5769           esac
5770           ;;
5771         esac
5772       fi
5773     done
5774     IFS="$lt_save_ifs"
5775   done
5776   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5777 fi
5778 fi
5779 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5780 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5781 NM="$lt_cv_path_NM"
5782
5783
5784
5785 { echo "$as_me:$LINENO: checking for GNU make" >&5
5786 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5787 if test "${llvm_cv_gnu_make_command+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   llvm_cv_gnu_make_command=''
5791  for a in "$MAKE" make gmake gnumake ; do
5792   if test -z "$a" ; then continue ; fi ;
5793   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5794   then
5795    llvm_cv_gnu_make_command=$a ;
5796    break;
5797   fi
5798  done
5799 fi
5800 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5801 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5802  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5803    ifGNUmake='' ;
5804  else
5805    ifGNUmake='#' ;
5806    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5807 echo "${ECHO_T}\"Not found\"" >&6; };
5808  fi
5809
5810
5811 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5813 LN_S=$as_ln_s
5814 if test "$LN_S" = "ln -s"; then
5815   { echo "$as_me:$LINENO: result: yes" >&5
5816 echo "${ECHO_T}yes" >&6; }
5817 else
5818   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5819 echo "${ECHO_T}no, using $LN_S" >&6; }
5820 fi
5821
5822 # Extract the first word of "cmp", so it can be a program name with args.
5823 set dummy cmp; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_path_CMP+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   case $CMP in
5830   [\\/]* | ?:[\\/]*)
5831   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5832   ;;
5833   *)
5834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839   for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5850   ;;
5851 esac
5852 fi
5853 CMP=$ac_cv_path_CMP
5854 if test -n "$CMP"; then
5855   { echo "$as_me:$LINENO: result: $CMP" >&5
5856 echo "${ECHO_T}$CMP" >&6; }
5857 else
5858   { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5860 fi
5861
5862
5863 # Extract the first word of "cp", so it can be a program name with args.
5864 set dummy cp; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_CP+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   case $CP in
5871   [\\/]* | ?:[\\/]*)
5872   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5873   ;;
5874   *)
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880   for ac_exec_ext in '' $ac_executable_extensions; do
5881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5882     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887 done
5888 IFS=$as_save_IFS
5889
5890   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5891   ;;
5892 esac
5893 fi
5894 CP=$ac_cv_path_CP
5895 if test -n "$CP"; then
5896   { echo "$as_me:$LINENO: result: $CP" >&5
5897 echo "${ECHO_T}$CP" >&6; }
5898 else
5899   { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5901 fi
5902
5903
5904 # Extract the first word of "date", so it can be a program name with args.
5905 set dummy date; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_path_DATE+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   case $DATE in
5912   [\\/]* | ?:[\\/]*)
5913   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5914   ;;
5915   *)
5916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5932   ;;
5933 esac
5934 fi
5935 DATE=$ac_cv_path_DATE
5936 if test -n "$DATE"; then
5937   { echo "$as_me:$LINENO: result: $DATE" >&5
5938 echo "${ECHO_T}$DATE" >&6; }
5939 else
5940   { echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6; }
5942 fi
5943
5944
5945 # Extract the first word of "find", so it can be a program name with args.
5946 set dummy find; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_path_FIND+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   case $FIND in
5953   [\\/]* | ?:[\\/]*)
5954   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5955   ;;
5956   *)
5957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962   for ac_exec_ext in '' $ac_executable_extensions; do
5963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5973   ;;
5974 esac
5975 fi
5976 FIND=$ac_cv_path_FIND
5977 if test -n "$FIND"; then
5978   { echo "$as_me:$LINENO: result: $FIND" >&5
5979 echo "${ECHO_T}$FIND" >&6; }
5980 else
5981   { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5983 fi
5984
5985
5986 # Extract the first word of "grep", so it can be a program name with args.
5987 set dummy grep; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_path_GREP+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   case $GREP in
5994   [\\/]* | ?:[\\/]*)
5995   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5996   ;;
5997   *)
5998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6014   ;;
6015 esac
6016 fi
6017 GREP=$ac_cv_path_GREP
6018 if test -n "$GREP"; then
6019   { echo "$as_me:$LINENO: result: $GREP" >&5
6020 echo "${ECHO_T}$GREP" >&6; }
6021 else
6022   { echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6; }
6024 fi
6025
6026
6027 # Extract the first word of "mkdir", so it can be a program name with args.
6028 set dummy mkdir; ac_word=$2
6029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031 if test "${ac_cv_path_MKDIR+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   case $MKDIR in
6035   [\\/]* | ?:[\\/]*)
6036   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6037   ;;
6038   *)
6039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044   for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6055   ;;
6056 esac
6057 fi
6058 MKDIR=$ac_cv_path_MKDIR
6059 if test -n "$MKDIR"; then
6060   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6061 echo "${ECHO_T}$MKDIR" >&6; }
6062 else
6063   { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 fi
6066
6067
6068 # Extract the first word of "mv", so it can be a program name with args.
6069 set dummy mv; ac_word=$2
6070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072 if test "${ac_cv_path_MV+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   case $MV in
6076   [\\/]* | ?:[\\/]*)
6077   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6078   ;;
6079   *)
6080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085   for ac_exec_ext in '' $ac_executable_extensions; do
6086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6087     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092 done
6093 IFS=$as_save_IFS
6094
6095   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6096   ;;
6097 esac
6098 fi
6099 MV=$ac_cv_path_MV
6100 if test -n "$MV"; then
6101   { echo "$as_me:$LINENO: result: $MV" >&5
6102 echo "${ECHO_T}$MV" >&6; }
6103 else
6104   { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6106 fi
6107
6108
6109 if test -n "$ac_tool_prefix"; then
6110   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_RANLIB+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   if test -n "$RANLIB"; then
6118   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125   for ac_exec_ext in '' $ac_executable_extensions; do
6126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6127     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129     break 2
6130   fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6140 echo "${ECHO_T}$RANLIB" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6144 fi
6145
6146
6147 fi
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149   ac_ct_RANLIB=$RANLIB
6150   # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   if test -n "$ac_ct_RANLIB"; then
6158   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_prog_ac_ct_RANLIB="ranlib"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6180 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186   if test "x$ac_ct_RANLIB" = x; then
6187     RANLIB=":"
6188   else
6189     case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet.  If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet.  If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199     RANLIB=$ac_ct_RANLIB
6200   fi
6201 else
6202   RANLIB="$ac_cv_prog_RANLIB"
6203 fi
6204
6205 if test -n "$ac_tool_prefix"; then
6206   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ar; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_AR+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   if test -n "$AR"; then
6214   ac_cv_prog_AR="$AR" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221   for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_AR="${ac_tool_prefix}ar"
6224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 AR=$ac_cv_prog_AR
6234 if test -n "$AR"; then
6235   { echo "$as_me:$LINENO: result: $AR" >&5
6236 echo "${ECHO_T}$AR" >&6; }
6237 else
6238   { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_AR"; then
6245   ac_ct_AR=$AR
6246   # Extract the first word of "ar", so it can be a program name with args.
6247 set dummy ar; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   if test -n "$ac_ct_AR"; then
6254   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_ac_ct_AR="ar"
6264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274 if test -n "$ac_ct_AR"; then
6275   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6276 echo "${ECHO_T}$ac_ct_AR" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282   if test "x$ac_ct_AR" = x; then
6283     AR="false"
6284   else
6285     case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet.  If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&5
6290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291 whose name does not start with the host triplet.  If you think this
6292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295     AR=$ac_ct_AR
6296   fi
6297 else
6298   AR="$ac_cv_prog_AR"
6299 fi
6300
6301 # Extract the first word of "rm", so it can be a program name with args.
6302 set dummy rm; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_RM+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   case $RM in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6329   ;;
6330 esac
6331 fi
6332 RM=$ac_cv_path_RM
6333 if test -n "$RM"; then
6334   { echo "$as_me:$LINENO: result: $RM" >&5
6335 echo "${ECHO_T}$RM" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341
6342 # Extract the first word of "sed", so it can be a program name with args.
6343 set dummy sed; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_SED+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $SED in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6370   ;;
6371 esac
6372 fi
6373 SED=$ac_cv_path_SED
6374 if test -n "$SED"; then
6375   { echo "$as_me:$LINENO: result: $SED" >&5
6376 echo "${ECHO_T}$SED" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382
6383 # Extract the first word of "tar", so it can be a program name with args.
6384 set dummy tar; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_TAR+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   case $TAR in
6391   [\\/]* | ?:[\\/]*)
6392   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6393   ;;
6394   *)
6395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6411   ;;
6412 esac
6413 fi
6414 TAR=$ac_cv_path_TAR
6415 if test -n "$TAR"; then
6416   { echo "$as_me:$LINENO: result: $TAR" >&5
6417 echo "${ECHO_T}$TAR" >&6; }
6418 else
6419   { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6421 fi
6422
6423
6424 # Extract the first word of "pwd", so it can be a program name with args.
6425 set dummy pwd; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_path_BINPWD+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   case $BINPWD in
6432   [\\/]* | ?:[\\/]*)
6433   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6434   ;;
6435   *)
6436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441   for ac_exec_ext in '' $ac_executable_extensions; do
6442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6452   ;;
6453 esac
6454 fi
6455 BINPWD=$ac_cv_path_BINPWD
6456 if test -n "$BINPWD"; then
6457   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6458 echo "${ECHO_T}$BINPWD" >&6; }
6459 else
6460   { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6462 fi
6463
6464
6465
6466 # Extract the first word of "Graphviz", so it can be a program name with args.
6467 set dummy Graphviz; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   case $GRAPHVIZ in
6474   [\\/]* | ?:[\\/]*)
6475   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6476   ;;
6477   *)
6478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483   for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6494   ;;
6495 esac
6496 fi
6497 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6498 if test -n "$GRAPHVIZ"; then
6499   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6500 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6501 else
6502   { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6504 fi
6505
6506
6507 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_GRAPHVIZ 1
6511 _ACEOF
6512
6513     if test "$llvm_cv_os_type" = "MingW" ; then
6514     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515   fi
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6519 _ACEOF
6520
6521 fi
6522 # Extract the first word of "dot", so it can be a program name with args.
6523 set dummy dot; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_DOT+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   case $DOT in
6530   [\\/]* | ?:[\\/]*)
6531   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6532   ;;
6533   *)
6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6550   ;;
6551 esac
6552 fi
6553 DOT=$ac_cv_path_DOT
6554 if test -n "$DOT"; then
6555   { echo "$as_me:$LINENO: result: $DOT" >&5
6556 echo "${ECHO_T}$DOT" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 if test "$DOT" != "echo dot" ; then
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_DOT 1
6567 _ACEOF
6568
6569     if test "$llvm_cv_os_type" = "MingW" ; then
6570     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571   fi
6572
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6575 _ACEOF
6576
6577 fi
6578 # Extract the first word of "fdp", so it can be a program name with args.
6579 set dummy fdp; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_FDP+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $FDP in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6606   ;;
6607 esac
6608 fi
6609 FDP=$ac_cv_path_FDP
6610 if test -n "$FDP"; then
6611   { echo "$as_me:$LINENO: result: $FDP" >&5
6612 echo "${ECHO_T}$FDP" >&6; }
6613 else
6614   { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6616 fi
6617
6618
6619 if test "$FDP" != "echo fdp" ; then
6620
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_FDP 1
6623 _ACEOF
6624
6625     if test "$llvm_cv_os_type" = "MingW" ; then
6626     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627   fi
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6631 _ACEOF
6632
6633 fi
6634 # Extract the first word of "neato", so it can be a program name with args.
6635 set dummy neato; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_NEATO+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   case $NEATO in
6642   [\\/]* | ?:[\\/]*)
6643   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6644   ;;
6645   *)
6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6662   ;;
6663 esac
6664 fi
6665 NEATO=$ac_cv_path_NEATO
6666 if test -n "$NEATO"; then
6667   { echo "$as_me:$LINENO: result: $NEATO" >&5
6668 echo "${ECHO_T}$NEATO" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674
6675 if test "$NEATO" != "echo neato" ; then
6676
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_NEATO 1
6679 _ACEOF
6680
6681     if test "$llvm_cv_os_type" = "MingW" ; then
6682     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683   fi
6684
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6687 _ACEOF
6688
6689 fi
6690 # Extract the first word of "twopi", so it can be a program name with args.
6691 set dummy twopi; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_TWOPI+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   case $TWOPI in
6698   [\\/]* | ?:[\\/]*)
6699   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6700   ;;
6701   *)
6702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6718   ;;
6719 esac
6720 fi
6721 TWOPI=$ac_cv_path_TWOPI
6722 if test -n "$TWOPI"; then
6723   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6724 echo "${ECHO_T}$TWOPI" >&6; }
6725 else
6726   { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6728 fi
6729
6730
6731 if test "$TWOPI" != "echo twopi" ; then
6732
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_TWOPI 1
6735 _ACEOF
6736
6737     if test "$llvm_cv_os_type" = "MingW" ; then
6738     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739   fi
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6743 _ACEOF
6744
6745 fi
6746 # Extract the first word of "circo", so it can be a program name with args.
6747 set dummy circo; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_CIRCO+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $CIRCO in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6774   ;;
6775 esac
6776 fi
6777 CIRCO=$ac_cv_path_CIRCO
6778 if test -n "$CIRCO"; then
6779   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6780 echo "${ECHO_T}$CIRCO" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787 if test "$CIRCO" != "echo circo" ; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_CIRCO 1
6791 _ACEOF
6792
6793     if test "$llvm_cv_os_type" = "MingW" ; then
6794     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795   fi
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6799 _ACEOF
6800
6801 fi
6802 for ac_prog in gv gsview32
6803 do
6804   # Extract the first word of "$ac_prog", so it can be a program name with args.
6805 set dummy $ac_prog; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_GV+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $GV in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   ;;
6832 esac
6833 fi
6834 GV=$ac_cv_path_GV
6835 if test -n "$GV"; then
6836   { echo "$as_me:$LINENO: result: $GV" >&5
6837 echo "${ECHO_T}$GV" >&6; }
6838 else
6839   { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6841 fi
6842
6843
6844   test -n "$GV" && break
6845 done
6846 test -n "$GV" || GV="echo gv"
6847
6848 if test "$GV" != "echo gv" ; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_GV 1
6852 _ACEOF
6853
6854     if test "$llvm_cv_os_type" = "MingW" ; then
6855     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856   fi
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_GV "$GV${EXEEXT}"
6860 _ACEOF
6861
6862 fi
6863 # Extract the first word of "dotty", so it can be a program name with args.
6864 set dummy dotty; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_DOTTY+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $DOTTY in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6891   ;;
6892 esac
6893 fi
6894 DOTTY=$ac_cv_path_DOTTY
6895 if test -n "$DOTTY"; then
6896   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6897 echo "${ECHO_T}$DOTTY" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 if test "$DOTTY" != "echo dotty" ; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_DOTTY 1
6908 _ACEOF
6909
6910     if test "$llvm_cv_os_type" = "MingW" ; then
6911     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6912   fi
6913
6914 cat >>confdefs.h <<_ACEOF
6915 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6916 _ACEOF
6917
6918 fi
6919 # Extract the first word of "xdot.py", so it can be a program name with args.
6920 set dummy xdot.py; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6924   echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926   case $XDOT_PY in
6927   [\\/]* | ?:[\\/]*)
6928   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6929   ;;
6930   *)
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   for ac_exec_ext in '' $ac_executable_extensions; do
6937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6947   ;;
6948 esac
6949 fi
6950 XDOT_PY=$ac_cv_path_XDOT_PY
6951 if test -n "$XDOT_PY"; then
6952   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6953 echo "${ECHO_T}$XDOT_PY" >&6; }
6954 else
6955   { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6957 fi
6958
6959
6960 if test "$XDOT_PY" != "echo xdot.py" ; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_XDOT_PY 1
6964 _ACEOF
6965
6966     if test "$llvm_cv_os_type" = "MingW" ; then
6967     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6968   fi
6969
6970 cat >>confdefs.h <<_ACEOF
6971 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6972 _ACEOF
6973
6974 fi
6975
6976 # Find a good install program.  We prefer a C program (faster),
6977 # so one script is as good as another.  But avoid the broken or
6978 # incompatible versions:
6979 # SysV /etc/install, /usr/sbin/install
6980 # SunOS /usr/etc/install
6981 # IRIX /sbin/install
6982 # AIX /bin/install
6983 # AmigaOS /C/install, which installs bootblocks on floppy discs
6984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987 # OS/2's system install, which has a completely different semantic
6988 # ./install, which can be erroneously created by make from ./install.sh.
6989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6991 if test -z "$INSTALL"; then
6992 if test "${ac_cv_path_install+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   # Account for people who put trailing slashes in PATH elements.
7001 case $as_dir/ in
7002   ./ | .// | /cC/* | \
7003   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7005   /usr/ucb/* ) ;;
7006   *)
7007     # OSF1 and SCO ODT 3.0 have their own names for install.
7008     # Don't use installbsd from OSF since it installs stuff as root
7009     # by default.
7010     for ac_prog in ginstall scoinst install; do
7011       for ac_exec_ext in '' $ac_executable_extensions; do
7012         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7013           if test $ac_prog = install &&
7014             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015             # AIX install.  It has an incompatible calling convention.
7016             :
7017           elif test $ac_prog = install &&
7018             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019             # program-specific install script used by HP pwplus--don't use.
7020             :
7021           else
7022             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7023             break 3
7024           fi
7025         fi
7026       done
7027     done
7028     ;;
7029 esac
7030 done
7031 IFS=$as_save_IFS
7032
7033
7034 fi
7035   if test "${ac_cv_path_install+set}" = set; then
7036     INSTALL=$ac_cv_path_install
7037   else
7038     # As a last resort, use the slow shell script.  Don't cache a
7039     # value for INSTALL within a source directory, because that will
7040     # break other packages using the cache if that directory is
7041     # removed, or if the value is a relative name.
7042     INSTALL=$ac_install_sh
7043   fi
7044 fi
7045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7046 echo "${ECHO_T}$INSTALL" >&6; }
7047
7048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049 # It thinks the first close brace ends the variable substitution.
7050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051
7052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053
7054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7055
7056 case "$INSTALL" in
7057  [\\/$]* | ?:[\\/]* ) ;;
7058  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7059 esac
7060
7061 # Extract the first word of "bzip2", so it can be a program name with args.
7062 set dummy bzip2; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_path_BZIP2+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   case $BZIP2 in
7069   [\\/]* | ?:[\\/]*)
7070   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7071   ;;
7072   *)
7073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088   ;;
7089 esac
7090 fi
7091 BZIP2=$ac_cv_path_BZIP2
7092 if test -n "$BZIP2"; then
7093   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094 echo "${ECHO_T}$BZIP2" >&6; }
7095 else
7096   { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7098 fi
7099
7100
7101 # Extract the first word of "cat", so it can be a program name with args.
7102 set dummy cat; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_CAT+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   case $CAT in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128   ;;
7129 esac
7130 fi
7131 CAT=$ac_cv_path_CAT
7132 if test -n "$CAT"; then
7133   { echo "$as_me:$LINENO: result: $CAT" >&5
7134 echo "${ECHO_T}$CAT" >&6; }
7135 else
7136   { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7138 fi
7139
7140
7141 # Extract the first word of "doxygen", so it can be a program name with args.
7142 set dummy doxygen; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   case $DOXYGEN in
7149   [\\/]* | ?:[\\/]*)
7150   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168   ;;
7169 esac
7170 fi
7171 DOXYGEN=$ac_cv_path_DOXYGEN
7172 if test -n "$DOXYGEN"; then
7173   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174 echo "${ECHO_T}$DOXYGEN" >&6; }
7175 else
7176   { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7178 fi
7179
7180
7181 # Extract the first word of "groff", so it can be a program name with args.
7182 set dummy groff; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_GROFF+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   case $GROFF in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208   ;;
7209 esac
7210 fi
7211 GROFF=$ac_cv_path_GROFF
7212 if test -n "$GROFF"; then
7213   { echo "$as_me:$LINENO: result: $GROFF" >&5
7214 echo "${ECHO_T}$GROFF" >&6; }
7215 else
7216   { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7218 fi
7219
7220
7221 # Extract the first word of "gzip", so it can be a program name with args.
7222 set dummy gzip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $GZIPBIN in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248   ;;
7249 esac
7250 fi
7251 GZIPBIN=$ac_cv_path_GZIPBIN
7252 if test -n "$GZIPBIN"; then
7253   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254 echo "${ECHO_T}$GZIPBIN" >&6; }
7255 else
7256   { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7258 fi
7259
7260
7261 # Extract the first word of "pdfroff", so it can be a program name with args.
7262 set dummy pdfroff; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PDFROFF+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $PDFROFF in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288   ;;
7289 esac
7290 fi
7291 PDFROFF=$ac_cv_path_PDFROFF
7292 if test -n "$PDFROFF"; then
7293   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294 echo "${ECHO_T}$PDFROFF" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 # Extract the first word of "zip", so it can be a program name with args.
7302 set dummy zip; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_ZIP+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $ZIP in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 ZIP=$ac_cv_path_ZIP
7332 if test -n "$ZIP"; then
7333   { echo "$as_me:$LINENO: result: $ZIP" >&5
7334 echo "${ECHO_T}$ZIP" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 for ac_prog in ocamlc
7342 do
7343   # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLC+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $OCAMLC in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 OCAMLC=$ac_cv_path_OCAMLC
7374 if test -n "$OCAMLC"; then
7375   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376 echo "${ECHO_T}$OCAMLC" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383   test -n "$OCAMLC" && break
7384 done
7385
7386 for ac_prog in ocamlopt
7387 do
7388   # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   case $OCAMLOPT in
7396   [\\/]* | ?:[\\/]*)
7397   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7398   ;;
7399   *)
7400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405   for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415   ;;
7416 esac
7417 fi
7418 OCAMLOPT=$ac_cv_path_OCAMLOPT
7419 if test -n "$OCAMLOPT"; then
7420   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421 echo "${ECHO_T}$OCAMLOPT" >&6; }
7422 else
7423   { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7425 fi
7426
7427
7428   test -n "$OCAMLOPT" && break
7429 done
7430
7431 for ac_prog in ocamldep
7432 do
7433   # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $OCAMLDEP in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   ;;
7461 esac
7462 fi
7463 OCAMLDEP=$ac_cv_path_OCAMLDEP
7464 if test -n "$OCAMLDEP"; then
7465   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466 echo "${ECHO_T}$OCAMLDEP" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473   test -n "$OCAMLDEP" && break
7474 done
7475
7476 for ac_prog in ocamldoc
7477 do
7478   # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   case $OCAMLDOC in
7486   [\\/]* | ?:[\\/]*)
7487   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7488   ;;
7489   *)
7490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495   for ac_exec_ext in '' $ac_executable_extensions; do
7496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505   ;;
7506 esac
7507 fi
7508 OCAMLDOC=$ac_cv_path_OCAMLDOC
7509 if test -n "$OCAMLDOC"; then
7510   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511 echo "${ECHO_T}$OCAMLDOC" >&6; }
7512 else
7513   { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7515 fi
7516
7517
7518   test -n "$OCAMLDOC" && break
7519 done
7520
7521 for ac_prog in gas as
7522 do
7523   # Extract the first word of "$ac_prog", so it can be a program name with args.
7524 set dummy $ac_prog; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GAS+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   case $GAS in
7531   [\\/]* | ?:[\\/]*)
7532   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7533   ;;
7534   *)
7535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540   for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550   ;;
7551 esac
7552 fi
7553 GAS=$ac_cv_path_GAS
7554 if test -n "$GAS"; then
7555   { echo "$as_me:$LINENO: result: $GAS" >&5
7556 echo "${ECHO_T}$GAS" >&6; }
7557 else
7558   { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7560 fi
7561
7562
7563   test -n "$GAS" && break
7564 done
7565
7566
7567 { echo "$as_me:$LINENO: checking for linker version" >&5
7568 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569 if test "${llvm_cv_link_version+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572
7573    version_string="$(ld -v 2>&1 | head -1)"
7574
7575    # Check for ld64.
7576    if (echo "$version_string" | grep -q "ld64"); then
7577      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7578    else
7579      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7580    fi
7581
7582 fi
7583 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7585
7586 cat >>confdefs.h <<_ACEOF
7587 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7588 _ACEOF
7589
7590
7591
7592 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7593 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7594 if test "${llvm_cv_link_use_r+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597    ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603   oldcflags="$CFLAGS"
7604   CFLAGS="$CFLAGS -Wl,-R."
7605   cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611
7612 int
7613 main ()
7614 {
7615
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_link") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635   { (case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_try") 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; } &&
7644          { ac_try='test -s conftest$ac_exeext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   llvm_cv_link_use_r=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659         llvm_cv_link_use_r=no
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664   CFLAGS="$oldcflags"
7665   ac_ext=c
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671
7672 fi
7673 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7674 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7675 if test "$llvm_cv_link_use_r" = yes ; then
7676
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_LINK_R 1
7679 _ACEOF
7680
7681   fi
7682
7683
7684 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7685 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7686 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689    ac_ext=c
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694
7695   oldcflags="$CFLAGS"
7696   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7697   cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h.  */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h.  */
7703
7704 int
7705 main ()
7706 {
7707
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7714 case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_link") 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } &&
7726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7727   { (case "(($ac_try" in
7728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729   *) ac_try_echo=$ac_try;;
7730 esac
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732   (eval "$ac_try") 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); }; } &&
7736          { ac_try='test -s conftest$ac_exeext'
7737   { (case "(($ac_try" in
7738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739   *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742   (eval "$ac_try") 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   llvm_cv_link_use_export_dynamic=yes
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751         llvm_cv_link_use_export_dynamic=no
7752 fi
7753
7754 rm -f core conftest.err conftest.$ac_objext \
7755       conftest$ac_exeext conftest.$ac_ext
7756   CFLAGS="$oldcflags"
7757   ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764 fi
7765 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7766 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7767 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7768
7769 cat >>confdefs.h <<\_ACEOF
7770 #define HAVE_LINK_EXPORT_DYNAMIC 1
7771 _ACEOF
7772
7773   fi
7774
7775
7776 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7777 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7778 if test "${llvm_cv_link_use_version_script+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781    ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787   oldcflags="$CFLAGS"
7788
7789   # The following code is from the autoconf manual,
7790   # "11.13: Limitations of Usual Tools".
7791   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7792   # Use mktemp if possible; otherwise fall back on mkdir,
7793   # with $RANDOM to make collisions less likely.
7794   : ${TMPDIR=/tmp}
7795   {
7796     tmp=`
7797       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7798     ` &&
7799     test -n "$tmp" && test -d "$tmp"
7800   } || {
7801     tmp=$TMPDIR/foo$$-$RANDOM
7802     (umask 077 && mkdir "$tmp")
7803   } || exit $?
7804
7805   echo "{" > "$tmp/export.map"
7806   echo "  global: main;" >> "$tmp/export.map"
7807   echo "  local: *;" >> "$tmp/export.map"
7808   echo "};" >> "$tmp/export.map"
7809
7810   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817
7818 int
7819 main ()
7820 {
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830   *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833   (eval "$ac_link") 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841   { (case "(($ac_try" in
7842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843   *) ac_try_echo=$ac_try;;
7844 esac
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846   (eval "$ac_try") 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; } &&
7850          { ac_try='test -s conftest$ac_exeext'
7851   { (case "(($ac_try" in
7852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853   *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856   (eval "$ac_try") 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   llvm_cv_link_use_version_script=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865         llvm_cv_link_use_version_script=no
7866 fi
7867
7868 rm -f core conftest.err conftest.$ac_objext \
7869       conftest$ac_exeext conftest.$ac_ext
7870   rm "$tmp/export.map"
7871   rmdir "$tmp"
7872   CFLAGS="$oldcflags"
7873   ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879
7880 fi
7881 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7882 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7883 if test "$llvm_cv_link_use_version_script" = yes ; then
7884   HAVE_LINK_VERSION_SCRIPT=1
7885
7886   fi
7887
7888
7889
7890
7891 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7892 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7893 if test "${ac_cv_c_const+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902
7903 int
7904 main ()
7905 {
7906 /* FIXME: Include the comments suggested by Paul. */
7907 #ifndef __cplusplus
7908   /* Ultrix mips cc rejects this.  */
7909   typedef int charset[2];
7910   const charset x;
7911   /* SunOS 4.1.1 cc rejects this.  */
7912   char const *const *ccp;
7913   char **p;
7914   /* NEC SVR4.0.2 mips cc rejects this.  */
7915   struct point {int x, y;};
7916   static struct point const zero = {0,0};
7917   /* AIX XL C 1.02.0.0 rejects this.
7918      It does not let you subtract one const X* pointer from another in
7919      an arm of an if-expression whose if-part is not a constant
7920      expression */
7921   const char *g = "string";
7922   ccp = &g + (g ? g-g : 0);
7923   /* HPUX 7.0 cc rejects these. */
7924   ++ccp;
7925   p = (char**) ccp;
7926   ccp = (char const *const *) p;
7927   { /* SCO 3.2v4 cc rejects this.  */
7928     char *t;
7929     char const *s = 0 ? (char *) 0 : (char const *) 0;
7930
7931     *t++ = 0;
7932     if (s) return 0;
7933   }
7934   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7935     int x[] = {25, 17};
7936     const int *foo = &x[0];
7937     ++foo;
7938   }
7939   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7940     typedef const int *iptr;
7941     iptr p = 0;
7942     ++p;
7943   }
7944   { /* AIX XL C 1.02.0.0 rejects this saying
7945        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7946     struct s { int j; const int *ap[3]; };
7947     struct s *b; b->j = 5;
7948   }
7949   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7950     const int foo = 10;
7951     if (!foo) return 0;
7952   }
7953   return !x[0] && !zero.x;
7954 #endif
7955
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_compile") 2>conftest.er1
7968   ac_status=$?
7969   grep -v '^ *+' conftest.er1 >conftest.err
7970   rm -f conftest.er1
7971   cat conftest.err >&5
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } &&
7974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975   { (case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_try") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest.$ac_objext'
7985   { (case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_try") 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   ac_cv_c_const=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999         ac_cv_c_const=no
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8005 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8006 if test $ac_cv_c_const = no; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define const
8010 _ACEOF
8011
8012 fi
8013
8014
8015
8016
8017
8018
8019 ac_header_dirent=no
8020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8021   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8022 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8023 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 #include <sys/types.h>
8034 #include <$ac_hdr>
8035
8036 int
8037 main ()
8038 {
8039 if ((DIR *) 0)
8040 return 0;
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_compile") 2>conftest.er1
8053   ac_status=$?
8054   grep -v '^ *+' conftest.er1 >conftest.err
8055   rm -f conftest.er1
8056   cat conftest.err >&5
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } &&
8059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060   { (case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_try") 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; } &&
8069          { ac_try='test -s conftest.$ac_objext'
8070   { (case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_try") 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); }; }; then
8079   eval "$as_ac_Header=yes"
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084         eval "$as_ac_Header=no"
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 fi
8089 ac_res=`eval echo '${'$as_ac_Header'}'`
8090                { echo "$as_me:$LINENO: result: $ac_res" >&5
8091 echo "${ECHO_T}$ac_res" >&6; }
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 ac_header_dirent=$ac_hdr; break
8098 fi
8099
8100 done
8101 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8102 if test $ac_header_dirent = dirent.h; then
8103   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8104 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8105 if test "${ac_cv_search_opendir+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   ac_func_search_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115
8116 /* Override any GCC internal prototype to avoid an error.
8117    Use char because int might match the return type of a GCC
8118    builtin and then its argument prototype would still apply.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 char opendir ();
8123 int
8124 main ()
8125 {
8126 return opendir ();
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 for ac_lib in '' dir; do
8132   if test -z "$ac_lib"; then
8133     ac_res="none required"
8134   else
8135     ac_res=-l$ac_lib
8136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8137   fi
8138   rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (ac_try="$ac_link"
8140 case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_link") 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153   { (case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_try") 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_cv_search_opendir=$ac_res
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177
8178 fi
8179
8180 rm -f core conftest.err conftest.$ac_objext \
8181       conftest$ac_exeext
8182   if test "${ac_cv_search_opendir+set}" = set; then
8183   break
8184 fi
8185 done
8186 if test "${ac_cv_search_opendir+set}" = set; then
8187   :
8188 else
8189   ac_cv_search_opendir=no
8190 fi
8191 rm conftest.$ac_ext
8192 LIBS=$ac_func_search_save_LIBS
8193 fi
8194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8196 ac_res=$ac_cv_search_opendir
8197 if test "$ac_res" != no; then
8198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8199
8200 fi
8201
8202 else
8203   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8205 if test "${ac_cv_search_opendir+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   ac_func_search_save_LIBS=$LIBS
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215
8216 /* Override any GCC internal prototype to avoid an error.
8217    Use char because int might match the return type of a GCC
8218    builtin and then its argument prototype would still apply.  */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 char opendir ();
8223 int
8224 main ()
8225 {
8226 return opendir ();
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 for ac_lib in '' x; do
8232   if test -z "$ac_lib"; then
8233     ac_res="none required"
8234   else
8235     ac_res=-l$ac_lib
8236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8237   fi
8238   rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8240 case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_link") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253   { (case "(($ac_try" in
8254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255   *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258   (eval "$ac_try") 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; } &&
8262          { ac_try='test -s conftest$ac_exeext'
8263   { (case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_try") 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; }; then
8272   ac_cv_search_opendir=$ac_res
8273 else
8274   echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext \
8281       conftest$ac_exeext
8282   if test "${ac_cv_search_opendir+set}" = set; then
8283   break
8284 fi
8285 done
8286 if test "${ac_cv_search_opendir+set}" = set; then
8287   :
8288 else
8289   ac_cv_search_opendir=no
8290 fi
8291 rm conftest.$ac_ext
8292 LIBS=$ac_func_search_save_LIBS
8293 fi
8294 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8295 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8296 ac_res=$ac_cv_search_opendir
8297 if test "$ac_res" != no; then
8298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8299
8300 fi
8301
8302 fi
8303
8304
8305 for ac_header in dlfcn.h
8306 do
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 fi
8314 ac_res=`eval echo '${'$as_ac_Header'}'`
8315                { echo "$as_me:$LINENO: result: $ac_res" >&5
8316 echo "${ECHO_T}$ac_res" >&6; }
8317 else
8318   # Is the header compilable?
8319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 $ac_includes_default
8328 #include <$ac_header>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_compile") 2>conftest.er1
8338   ac_status=$?
8339   grep -v '^ *+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } &&
8344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345   { (case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350   (eval "$ac_try") 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; } &&
8354          { ac_try='test -s conftest.$ac_objext'
8355   { (case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_try") 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_header_compiler=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369         ac_header_compiler=no
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8374 echo "${ECHO_T}$ac_header_compiler" >&6; }
8375
8376 # Is the header present?
8377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h.  */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h.  */
8385 #include <$ac_header>
8386 _ACEOF
8387 if { (ac_try="$ac_cpp conftest.$ac_ext"
8388 case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } >/dev/null; then
8400   if test -s conftest.err; then
8401     ac_cpp_err=$ac_c_preproc_warn_flag
8402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8403   else
8404     ac_cpp_err=
8405   fi
8406 else
8407   ac_cpp_err=yes
8408 fi
8409 if test -z "$ac_cpp_err"; then
8410   ac_header_preproc=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415   ac_header_preproc=no
8416 fi
8417
8418 rm -f conftest.err conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8420 echo "${ECHO_T}$ac_header_preproc" >&6; }
8421
8422 # So?  What about this header?
8423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8424   yes:no: )
8425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8429     ac_header_preproc=yes
8430     ;;
8431   no:yes:* )
8432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8444     ( cat <<\_ASBOX
8445 ## ------------------------------------ ##
8446 ## Report this to http://llvm.org/bugs/ ##
8447 ## ------------------------------------ ##
8448 _ASBOX
8449      ) | sed "s/^/$as_me: WARNING:     /" >&2
8450     ;;
8451 esac
8452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   eval "$as_ac_Header=\$ac_header_preproc"
8458 fi
8459 ac_res=`eval echo '${'$as_ac_Header'}'`
8460                { echo "$as_me:$LINENO: result: $ac_res" >&5
8461 echo "${ECHO_T}$ac_res" >&6; }
8462
8463 fi
8464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8465   cat >>confdefs.h <<_ACEOF
8466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472
8473 # Check whether --enable-ltdl-install was given.
8474 if test "${enable_ltdl_install+set}" = set; then
8475   enableval=$enable_ltdl_install;
8476 fi
8477
8478
8479
8480
8481 if test x"${enable_ltdl_install-no}" != xno; then
8482   INSTALL_LTDL_TRUE=
8483   INSTALL_LTDL_FALSE='#'
8484 else
8485   INSTALL_LTDL_TRUE='#'
8486   INSTALL_LTDL_FALSE=
8487 fi
8488
8489
8490
8491 if test x"${enable_ltdl_convenience-no}" != xno; then
8492   CONVENIENCE_LTDL_TRUE=
8493   CONVENIENCE_LTDL_FALSE='#'
8494 else
8495   CONVENIENCE_LTDL_TRUE='#'
8496   CONVENIENCE_LTDL_FALSE=
8497 fi
8498
8499
8500 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8502 library_names_spec=
8503 libname_spec='lib$name'
8504 soname_spec=
8505 shrext_cmds=".so"
8506 postinstall_cmds=
8507 postuninstall_cmds=
8508 finish_cmds=
8509 finish_eval=
8510 shlibpath_var=
8511 shlibpath_overrides_runpath=unknown
8512 version_type=none
8513 dynamic_linker="$host_os ld.so"
8514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8515 if test "$GCC" = yes; then
8516   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8517   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8518     # if the path contains ";" then we assume it to be the separator
8519     # otherwise default to the standard path separator (i.e. ":") - it is
8520     # assumed that no part of a normal pathname contains ";" but that should
8521     # okay in the real world where ";" in dirpaths is itself problematic.
8522     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8523   else
8524     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8525   fi
8526 else
8527   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8528 fi
8529 need_lib_prefix=unknown
8530 hardcode_into_libs=no
8531
8532 # when you set need_version to no, make sure it does not cause -set_version
8533 # flags to be left without arguments
8534 need_version=unknown
8535
8536 case $host_os in
8537 aix3*)
8538   version_type=linux
8539   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8540   shlibpath_var=LIBPATH
8541
8542   # AIX 3 has no versioning support, so we append a major version to the name.
8543   soname_spec='${libname}${release}${shared_ext}$major'
8544   ;;
8545
8546 aix4* | aix5*)
8547   version_type=linux
8548   need_lib_prefix=no
8549   need_version=no
8550   hardcode_into_libs=yes
8551   if test "$host_cpu" = ia64; then
8552     # AIX 5 supports IA64
8553     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8554     shlibpath_var=LD_LIBRARY_PATH
8555   else
8556     # With GCC up to 2.95.x, collect2 would create an import file
8557     # for dependence libraries.  The import file would start with
8558     # the line `#! .'.  This would cause the generated library to
8559     # depend on `.', always an invalid library.  This was fixed in
8560     # development snapshots of GCC prior to 3.0.
8561     case $host_os in
8562       aix4 | aix4.[01] | aix4.[01].*)
8563       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8564            echo ' yes '
8565            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8566         :
8567       else
8568         can_build_shared=no
8569       fi
8570       ;;
8571     esac
8572     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8573     # soname into executable. Probably we can add versioning support to
8574     # collect2, so additional links can be useful in future.
8575     if test "$aix_use_runtimelinking" = yes; then
8576       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8577       # instead of lib<name>.a to let people know that these are not
8578       # typical AIX shared libraries.
8579       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580     else
8581       # We preserve .a as extension for shared libraries through AIX4.2
8582       # and later when we are not doing run time linking.
8583       library_names_spec='${libname}${release}.a $libname.a'
8584       soname_spec='${libname}${release}${shared_ext}$major'
8585     fi
8586     shlibpath_var=LIBPATH
8587   fi
8588   ;;
8589
8590 amigaos*)
8591   library_names_spec='$libname.ixlibrary $libname.a'
8592   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8593   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'
8594   ;;
8595
8596 beos*)
8597   library_names_spec='${libname}${shared_ext}'
8598   dynamic_linker="$host_os ld.so"
8599   shlibpath_var=LIBRARY_PATH
8600   ;;
8601
8602 bsdi[45]*)
8603   version_type=linux
8604   need_version=no
8605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606   soname_spec='${libname}${release}${shared_ext}$major'
8607   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8608   shlibpath_var=LD_LIBRARY_PATH
8609   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8610   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8611   # the default ld.so.conf also contains /usr/contrib/lib and
8612   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8613   # libtool to hard-code these into programs
8614   ;;
8615
8616 cygwin* | mingw* | pw32*)
8617   version_type=windows
8618   shrext_cmds=".dll"
8619   need_version=no
8620   need_lib_prefix=no
8621
8622   case $GCC,$host_os in
8623   yes,cygwin* | yes,mingw* | yes,pw32*)
8624     library_names_spec='$libname.dll.a'
8625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8626     postinstall_cmds='base_file=`basename \${file}`~
8627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8628       dldir=$destdir/`dirname \$dlpath`~
8629       test -d \$dldir || mkdir -p \$dldir~
8630       $install_prog $dir/$dlname \$dldir/$dlname~
8631       chmod a+x \$dldir/$dlname'
8632     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8633       dlpath=$dir/\$dldll~
8634        $rm \$dlpath'
8635     shlibpath_overrides_runpath=yes
8636
8637     case $host_os in
8638     cygwin*)
8639       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8640       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8641       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8642       ;;
8643     mingw*)
8644       # MinGW DLLs use traditional 'lib' prefix
8645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8647       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8648         # It is most probably a Windows format PATH printed by
8649         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8650         # path with ; separators, and with drive letters. We can handle the
8651         # drive letters (cygwin fileutils understands them), so leave them,
8652         # especially as we might pass files found there to a mingw objdump,
8653         # which wouldn't understand a cygwinified path. Ahh.
8654         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8655       else
8656         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8657       fi
8658       ;;
8659     pw32*)
8660       # pw32 DLLs use 'pw' prefix rather than 'lib'
8661       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8662       ;;
8663     esac
8664     ;;
8665
8666   *)
8667     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8668     ;;
8669   esac
8670   dynamic_linker='Win32 ld.exe'
8671   # FIXME: first we should search . and the directory the executable is in
8672   shlibpath_var=PATH
8673   ;;
8674
8675 darwin* | rhapsody*)
8676   dynamic_linker="$host_os dyld"
8677   version_type=darwin
8678   need_lib_prefix=no
8679   need_version=no
8680   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8681   soname_spec='${libname}${release}${major}$shared_ext'
8682   shlibpath_overrides_runpath=yes
8683   shlibpath_var=DYLD_LIBRARY_PATH
8684   shrext_cmds='.dylib'
8685   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8686   if test "$GCC" = yes; then
8687     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"`
8688   else
8689     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8690   fi
8691   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8692   ;;
8693
8694 dgux*)
8695   version_type=linux
8696   need_lib_prefix=no
8697   need_version=no
8698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8699   soname_spec='${libname}${release}${shared_ext}$major'
8700   shlibpath_var=LD_LIBRARY_PATH
8701   ;;
8702
8703 freebsd1.*)
8704   dynamic_linker=no
8705   ;;
8706
8707 kfreebsd*-gnu)
8708   version_type=linux
8709   need_lib_prefix=no
8710   need_version=no
8711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   shlibpath_var=LD_LIBRARY_PATH
8714   shlibpath_overrides_runpath=no
8715   hardcode_into_libs=yes
8716   dynamic_linker='GNU ld.so'
8717   ;;
8718
8719 freebsd* | dragonfly*)
8720   # DragonFly does not have aout.  When/if they implement a new
8721   # versioning mechanism, adjust this.
8722   if test -x /usr/bin/objformat; then
8723     objformat=`/usr/bin/objformat`
8724   else
8725     case $host_os in
8726     freebsd[123].*) objformat=aout ;;
8727     *) objformat=elf ;;
8728     esac
8729   fi
8730   version_type=freebsd-$objformat
8731   case $version_type in
8732     freebsd-elf*)
8733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8734       need_version=no
8735       need_lib_prefix=no
8736       ;;
8737     freebsd-*)
8738       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8739       need_version=yes
8740       ;;
8741   esac
8742   shlibpath_var=LD_LIBRARY_PATH
8743   case $host_os in
8744   freebsd2.*)
8745     shlibpath_overrides_runpath=yes
8746     ;;
8747   freebsd3.[01]* | freebsdelf3.[01]*)
8748     shlibpath_overrides_runpath=yes
8749     hardcode_into_libs=yes
8750     ;;
8751   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8752   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8753     shlibpath_overrides_runpath=no
8754     hardcode_into_libs=yes
8755     ;;
8756   freebsd*) # from 4.6 on
8757     shlibpath_overrides_runpath=yes
8758     hardcode_into_libs=yes
8759     ;;
8760   esac
8761   ;;
8762
8763 gnu*)
8764   version_type=linux
8765   need_lib_prefix=no
8766   need_version=no
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   shlibpath_var=LD_LIBRARY_PATH
8770   hardcode_into_libs=yes
8771   ;;
8772
8773 hpux9* | hpux10* | hpux11*)
8774   # Give a soname corresponding to the major version so that dld.sl refuses to
8775   # link against other versions.
8776   version_type=sunos
8777   need_lib_prefix=no
8778   need_version=no
8779   case $host_cpu in
8780   ia64*)
8781     shrext_cmds='.so'
8782     hardcode_into_libs=yes
8783     dynamic_linker="$host_os dld.so"
8784     shlibpath_var=LD_LIBRARY_PATH
8785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787     soname_spec='${libname}${release}${shared_ext}$major'
8788     if test "X$HPUX_IA64_MODE" = X32; then
8789       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8790     else
8791       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8792     fi
8793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8794     ;;
8795    hppa*64*)
8796      shrext_cmds='.sl'
8797      hardcode_into_libs=yes
8798      dynamic_linker="$host_os dld.sl"
8799      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8800      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802      soname_spec='${libname}${release}${shared_ext}$major'
8803      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8804      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8805      ;;
8806    *)
8807     shrext_cmds='.sl'
8808     dynamic_linker="$host_os dld.sl"
8809     shlibpath_var=SHLIB_PATH
8810     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812     soname_spec='${libname}${release}${shared_ext}$major'
8813     ;;
8814   esac
8815   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8816   postinstall_cmds='chmod 555 $lib'
8817   ;;
8818
8819 interix3*)
8820   version_type=linux
8821   need_lib_prefix=no
8822   need_version=no
8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8826   shlibpath_var=LD_LIBRARY_PATH
8827   shlibpath_overrides_runpath=no
8828   hardcode_into_libs=yes
8829   ;;
8830
8831 irix5* | irix6* | nonstopux*)
8832   case $host_os in
8833     nonstopux*) version_type=nonstopux ;;
8834     *)
8835         if test "$lt_cv_prog_gnu_ld" = yes; then
8836                 version_type=linux
8837         else
8838                 version_type=irix
8839         fi ;;
8840   esac
8841   need_lib_prefix=no
8842   need_version=no
8843   soname_spec='${libname}${release}${shared_ext}$major'
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8845   case $host_os in
8846   irix5* | nonstopux*)
8847     libsuff= shlibsuff=
8848     ;;
8849   *)
8850     case $LD in # libtool.m4 will add one of these switches to LD
8851     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8852       libsuff= shlibsuff= libmagic=32-bit;;
8853     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8854       libsuff=32 shlibsuff=N32 libmagic=N32;;
8855     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8856       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8857     *) libsuff= shlibsuff= libmagic=never-match;;
8858     esac
8859     ;;
8860   esac
8861   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8862   shlibpath_overrides_runpath=no
8863   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8864   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8865   hardcode_into_libs=yes
8866   ;;
8867
8868 # No shared lib support for Linux oldld, aout, or coff.
8869 linux*oldld* | linux*aout* | linux*coff*)
8870   dynamic_linker=no
8871   ;;
8872
8873 # This must be Linux ELF.
8874 linux*)
8875   version_type=linux
8876   need_lib_prefix=no
8877   need_version=no
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879   soname_spec='${libname}${release}${shared_ext}$major'
8880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8881   shlibpath_var=LD_LIBRARY_PATH
8882   shlibpath_overrides_runpath=no
8883   # This implies no fast_install, which is unacceptable.
8884   # Some rework will be needed to allow for fast_install
8885   # before this can be enabled.
8886   hardcode_into_libs=yes
8887
8888   # Append ld.so.conf contents to the search path
8889   if test -f /etc/ld.so.conf; then
8890     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' ' '`
8891     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8892   fi
8893
8894   # We used to test for /lib/ld.so.1 and disable shared libraries on
8895   # powerpc, because MkLinux only supported shared libraries with the
8896   # GNU dynamic linker.  Since this was broken with cross compilers,
8897   # most powerpc-linux boxes support dynamic linking these days and
8898   # people can always --disable-shared, the test was removed, and we
8899   # assume the GNU/Linux dynamic linker is in use.
8900   dynamic_linker='GNU/Linux ld.so'
8901   ;;
8902
8903 knetbsd*-gnu)
8904   version_type=linux
8905   need_lib_prefix=no
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   shlibpath_overrides_runpath=no
8911   hardcode_into_libs=yes
8912   dynamic_linker='GNU ld.so'
8913   ;;
8914
8915 netbsd*)
8916   version_type=sunos
8917   need_lib_prefix=no
8918   need_version=no
8919   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922     dynamic_linker='NetBSD (a.out) ld.so'
8923   else
8924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925     soname_spec='${libname}${release}${shared_ext}$major'
8926     dynamic_linker='NetBSD ld.elf_so'
8927   fi
8928   shlibpath_var=LD_LIBRARY_PATH
8929   shlibpath_overrides_runpath=yes
8930   hardcode_into_libs=yes
8931   ;;
8932
8933 newsos6)
8934   version_type=linux
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   shlibpath_overrides_runpath=yes
8938   ;;
8939
8940 nto-qnx*)
8941   version_type=linux
8942   need_lib_prefix=no
8943   need_version=no
8944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945   soname_spec='${libname}${release}${shared_ext}$major'
8946   shlibpath_var=LD_LIBRARY_PATH
8947   shlibpath_overrides_runpath=yes
8948   ;;
8949
8950 openbsd* | bitrig*)
8951   version_type=sunos
8952   sys_lib_dlsearch_path_spec="/usr/lib"
8953   need_lib_prefix=no
8954   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8955   case $host_os in
8956     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8957     *)                         need_version=no  ;;
8958   esac
8959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8961   shlibpath_var=LD_LIBRARY_PATH
8962   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8963     case $host_os in
8964       openbsd2.[89] | openbsd2.[89].*)
8965         shlibpath_overrides_runpath=no
8966         ;;
8967       *)
8968         shlibpath_overrides_runpath=yes
8969         ;;
8970       esac
8971   else
8972     shlibpath_overrides_runpath=yes
8973   fi
8974   ;;
8975
8976 os2*)
8977   libname_spec='$name'
8978   shrext_cmds=".dll"
8979   need_lib_prefix=no
8980   library_names_spec='$libname${shared_ext} $libname.a'
8981   dynamic_linker='OS/2 ld.exe'
8982   shlibpath_var=LIBPATH
8983   ;;
8984
8985 osf3* | osf4* | osf5*)
8986   version_type=osf
8987   need_lib_prefix=no
8988   need_version=no
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991   shlibpath_var=LD_LIBRARY_PATH
8992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8994   ;;
8995
8996 solaris*)
8997   version_type=linux
8998   need_lib_prefix=no
8999   need_version=no
9000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001   soname_spec='${libname}${release}${shared_ext}$major'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   shlibpath_overrides_runpath=yes
9004   hardcode_into_libs=yes
9005   # ldd complains unless libraries are executable
9006   postinstall_cmds='chmod +x $lib'
9007   ;;
9008
9009 sunos4*)
9010   version_type=sunos
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   shlibpath_overrides_runpath=yes
9015   if test "$with_gnu_ld" = yes; then
9016     need_lib_prefix=no
9017   fi
9018   need_version=yes
9019   ;;
9020
9021 sysv4 | sysv4.3*)
9022   version_type=linux
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   soname_spec='${libname}${release}${shared_ext}$major'
9025   shlibpath_var=LD_LIBRARY_PATH
9026   case $host_vendor in
9027     sni)
9028       shlibpath_overrides_runpath=no
9029       need_lib_prefix=no
9030       export_dynamic_flag_spec='${wl}-Blargedynsym'
9031       runpath_var=LD_RUN_PATH
9032       ;;
9033     siemens)
9034       need_lib_prefix=no
9035       ;;
9036     motorola)
9037       need_lib_prefix=no
9038       need_version=no
9039       shlibpath_overrides_runpath=no
9040       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9041       ;;
9042   esac
9043   ;;
9044
9045 sysv4*MP*)
9046   if test -d /usr/nec ;then
9047     version_type=linux
9048     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049     soname_spec='$libname${shared_ext}.$major'
9050     shlibpath_var=LD_LIBRARY_PATH
9051   fi
9052   ;;
9053
9054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055   version_type=freebsd-elf
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   hardcode_into_libs=yes
9062   if test "$with_gnu_ld" = yes; then
9063     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9064     shlibpath_overrides_runpath=no
9065   else
9066     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9067     shlibpath_overrides_runpath=yes
9068     case $host_os in
9069       sco3.2v5*)
9070         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9071         ;;
9072     esac
9073   fi
9074   sys_lib_dlsearch_path_spec='/usr/lib'
9075   ;;
9076
9077 uts4*)
9078   version_type=linux
9079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080   soname_spec='${libname}${release}${shared_ext}$major'
9081   shlibpath_var=LD_LIBRARY_PATH
9082   ;;
9083
9084 *)
9085   dynamic_linker=no
9086   ;;
9087 esac
9088 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9089 echo "${ECHO_T}$dynamic_linker" >&6; }
9090 test "$dynamic_linker" = no && can_build_shared=no
9091
9092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9093 if test "$GCC" = yes; then
9094   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9095 fi
9096
9097
9098 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9099 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9100 if test "${libltdl_cv_shlibext+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103
9104 module=yes
9105 eval libltdl_cv_shlibext=$shrext_cmds
9106
9107 fi
9108 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9109 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9110 if test -n "$libltdl_cv_shlibext"; then
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9114 _ACEOF
9115
9116 fi
9117
9118
9119 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9120 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9121 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   libltdl_cv_shlibpath_var="$shlibpath_var"
9125 fi
9126 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9127 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9128 if test -n "$libltdl_cv_shlibpath_var"; then
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9132 _ACEOF
9133
9134 fi
9135
9136
9137 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9138 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9139 if test "${libltdl_cv_sys_search_path+set}" = set; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9143 fi
9144 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9145 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9146 if test -n "$libltdl_cv_sys_search_path"; then
9147   sys_search_path=
9148   for dir in $libltdl_cv_sys_search_path; do
9149     if test -z "$sys_search_path"; then
9150       sys_search_path="$dir"
9151     else
9152       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9153     fi
9154   done
9155
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9158 _ACEOF
9159
9160 fi
9161
9162 { echo "$as_me:$LINENO: checking for objdir" >&5
9163 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9164 if test "${libltdl_cv_objdir+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   libltdl_cv_objdir="$objdir"
9168   if test -n "$objdir"; then
9169     :
9170   else
9171     rm -f .libs 2>/dev/null
9172     mkdir .libs 2>/dev/null
9173     if test -d .libs; then
9174       libltdl_cv_objdir=.libs
9175     else
9176       # MS-DOS does not allow filenames that begin with a dot.
9177       libltdl_cv_objdir=_libs
9178     fi
9179   rmdir .libs 2>/dev/null
9180   fi
9181
9182 fi
9183 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9184 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9188 _ACEOF
9189
9190
9191
9192
9193
9194
9195 # Check for command to grab the raw symbol name followed by C symbol from nm.
9196 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9197 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9199   echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201
9202 # These are sane defaults that work on at least a few old systems.
9203 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9204
9205 # Character class describing NM global symbol codes.
9206 symcode='[BCDEGRST]'
9207
9208 # Regexp to match symbols that can be accessed directly from C.
9209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9210
9211 # Transform an extracted symbol line into a proper C declaration
9212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9213
9214 # Transform an extracted symbol line into symbol name and symbol address
9215 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'"
9216
9217 # Define system-specific variables.
9218 case $host_os in
9219 aix*)
9220   symcode='[BCDT]'
9221   ;;
9222 cygwin* | mingw* | pw32*)
9223   symcode='[ABCDGISTW]'
9224   ;;
9225 hpux*) # Its linker distinguishes data from code symbols
9226   if test "$host_cpu" = ia64; then
9227     symcode='[ABCDEGRST]'
9228   fi
9229   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9230   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'"
9231   ;;
9232 linux*)
9233   if test "$host_cpu" = ia64; then
9234     symcode='[ABCDGIRSTW]'
9235     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9236     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'"
9237   fi
9238   ;;
9239 irix* | nonstopux*)
9240   symcode='[BCDEGRST]'
9241   ;;
9242 osf*)
9243   symcode='[BCDEGQRST]'
9244   ;;
9245 solaris*)
9246   symcode='[BDRT]'
9247   ;;
9248 sco3.2v5*)
9249   symcode='[DT]'
9250   ;;
9251 sysv4.2uw2*)
9252   symcode='[DT]'
9253   ;;
9254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9255   symcode='[ABDT]'
9256   ;;
9257 sysv4)
9258   symcode='[DFNSTU]'
9259   ;;
9260 esac
9261
9262 # Handle CRLF in mingw tool chain
9263 opt_cr=
9264 case $build_os in
9265 mingw*)
9266   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9267   ;;
9268 esac
9269
9270 # If we're using GNU nm, then use its standard symbol codes.
9271 case `$NM -V 2>&1` in
9272 *GNU* | *'with BFD'*)
9273   symcode='[ABCDGIRSTW]' ;;
9274 esac
9275
9276 # Try without a prefix undercore, then with it.
9277 for ac_symprfx in "" "_"; do
9278
9279   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9280   symxfrm="\\1 $ac_symprfx\\2 \\2"
9281
9282   # Write the raw and C identifiers.
9283   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9284
9285   # Check to see that the pipe works correctly.
9286   pipe_works=no
9287
9288   rm -f conftest*
9289   cat > conftest.$ac_ext <<EOF
9290 #ifdef __cplusplus
9291 extern "C" {
9292 #endif
9293 char nm_test_var;
9294 void nm_test_func(){}
9295 #ifdef __cplusplus
9296 }
9297 #endif
9298 int main(){nm_test_var='a';nm_test_func();return(0);}
9299 EOF
9300
9301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302   (eval $ac_compile) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; then
9306     # Now try to grab the symbols.
9307     nlist=conftest.nm
9308     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9309   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } && test -s "$nlist"; then
9313       # Try sorting and uniquifying the output.
9314       if sort "$nlist" | uniq > "$nlist"T; then
9315         mv -f "$nlist"T "$nlist"
9316       else
9317         rm -f "$nlist"T
9318       fi
9319
9320       # Make sure that we snagged all the symbols we need.
9321       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9322         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9323           cat <<EOF > conftest.$ac_ext
9324 #ifdef __cplusplus
9325 extern "C" {
9326 #endif
9327
9328 EOF
9329           # Now generate the symbol file.
9330           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9331
9332           cat <<EOF >> conftest.$ac_ext
9333 #if defined (__STDC__) && __STDC__
9334 # define lt_ptr_t void *
9335 #else
9336 # define lt_ptr_t char *
9337 # define const
9338 #endif
9339
9340 /* The mapping between symbol names and symbols. */
9341 const struct {
9342   const char *name;
9343   lt_ptr_t address;
9344 }
9345 lt_preloaded_symbols[] =
9346 {
9347 EOF
9348           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9349           cat <<\EOF >> conftest.$ac_ext
9350   {0, (lt_ptr_t) 0}
9351 };
9352
9353 #ifdef __cplusplus
9354 }
9355 #endif
9356 EOF
9357           # Now try linking the two files.
9358           mv conftest.$ac_objext conftstm.$ac_objext
9359           lt_save_LIBS="$LIBS"
9360           lt_save_CFLAGS="$CFLAGS"
9361           LIBS="conftstm.$ac_objext"
9362           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9363           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364   (eval $ac_link) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9368             pipe_works=yes
9369           fi
9370           LIBS="$lt_save_LIBS"
9371           CFLAGS="$lt_save_CFLAGS"
9372         else
9373           echo "cannot find nm_test_func in $nlist" >&5
9374         fi
9375       else
9376         echo "cannot find nm_test_var in $nlist" >&5
9377       fi
9378     else
9379       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9380     fi
9381   else
9382     echo "$progname: failed program was:" >&5
9383     cat conftest.$ac_ext >&5
9384   fi
9385   rm -f conftest* conftst*
9386
9387   # Do not use the global_symbol_pipe unless it works.
9388   if test "$pipe_works" = yes; then
9389     break
9390   else
9391     lt_cv_sys_global_symbol_pipe=
9392   fi
9393 done
9394
9395 fi
9396
9397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9398   lt_cv_sys_global_symbol_to_cdecl=
9399 fi
9400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9401   { echo "$as_me:$LINENO: result: failed" >&5
9402 echo "${ECHO_T}failed" >&6; }
9403 else
9404   { echo "$as_me:$LINENO: result: ok" >&5
9405 echo "${ECHO_T}ok" >&6; }
9406 fi
9407
9408
9409 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9410 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9411 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9415     libltdl_cv_preloaded_symbols=yes
9416   else
9417     libltdl_cv_preloaded_symbols=no
9418   fi
9419
9420 fi
9421 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9422 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9423 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9424
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_PRELOADED_SYMBOLS 1
9427 _ACEOF
9428
9429 fi
9430
9431 LIBADD_DL=
9432
9433 ac_ext=c
9434 ac_cpp='$CPP $CPPFLAGS'
9435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9438
9439
9440 { echo "$as_me:$LINENO: checking for shl_load" >&5
9441 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9442 if test "${ac_cv_func_shl_load+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9453 #define shl_load innocuous_shl_load
9454
9455 /* System header to define __stub macros and hopefully few prototypes,
9456     which can conflict with char shl_load (); below.
9457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458     <limits.h> exists even on freestanding compilers.  */
9459
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9465
9466 #undef shl_load
9467
9468 /* Override any GCC internal prototype to avoid an error.
9469    Use char because int might match the return type of a GCC
9470    builtin and then its argument prototype would still apply.  */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char shl_load ();
9475 /* The GNU C library defines this for functions which it implements
9476     to always fail with ENOSYS.  Some functions are actually named
9477     something starting with __ and the normal name is an alias.  */
9478 #if defined __stub_shl_load || defined __stub___shl_load
9479 choke me
9480 #endif
9481
9482 int
9483 main ()
9484 {
9485 return shl_load ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494   *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497   (eval "$ac_link") 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505   { (case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510   (eval "$ac_try") 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; } &&
9514          { ac_try='test -s conftest$ac_exeext'
9515   { (case "(($ac_try" in
9516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517   *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520   (eval "$ac_try") 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   ac_cv_func_shl_load=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529         ac_cv_func_shl_load=no
9530 fi
9531
9532 rm -f core conftest.err conftest.$ac_objext \
9533       conftest$ac_exeext conftest.$ac_ext
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9536 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9537 if test $ac_cv_func_shl_load = yes; then
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_SHL_LOAD 1
9541 _ACEOF
9542
9543 else
9544   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9545 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9546 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-ldld  $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559    Use char because int might match the return type of a GCC
9560    builtin and then its argument prototype would still apply.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char shl_load ();
9565 int
9566 main ()
9567 {
9568 return shl_load ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_link") 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588   { (case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_try") 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest$ac_exeext'
9598   { (case "(($ac_try" in
9599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600   *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603   (eval "$ac_try") 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_cv_lib_dld_shl_load=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612         ac_cv_lib_dld_shl_load=no
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext \
9616       conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9621 if test $ac_cv_lib_dld_shl_load = yes; then
9622
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_SHL_LOAD 1
9625 _ACEOF
9626
9627         LIBADD_DL="$LIBADD_DL -ldld"
9628 else
9629   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632   echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldl  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char dlopen ();
9650 int
9651 main ()
9652 {
9653 return dlopen ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_link") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673   { (case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_try") 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; } &&
9682          { ac_try='test -s conftest$ac_exeext'
9683   { (case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_try") 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_lib_dl_dlopen=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697         ac_cv_lib_dl_dlopen=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext \
9701       conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_LIBDL 1
9710 _ACEOF
9711
9712                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 #if HAVE_DLFCN_H
9721 #  include <dlfcn.h>
9722 #endif
9723
9724 int
9725 main ()
9726 {
9727 dlopen(0, 0);
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_link") 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747   { (case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_try") 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_LIBDL 1
9769 _ACEOF
9770  libltdl_cv_func_dlopen="yes"
9771 else
9772   echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780   ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-lsvld  $LIBS"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788
9789 /* Override any GCC internal prototype to avoid an error.
9790    Use char because int might match the return type of a GCC
9791    builtin and then its argument prototype would still apply.  */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char dlopen ();
9796 int
9797 main ()
9798 {
9799 return dlopen ();
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_link") 2>conftest.er1
9812   ac_status=$?
9813   grep -v '^ *+' conftest.er1 >conftest.err
9814   rm -f conftest.er1
9815   cat conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819   { (case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_try") 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (case "(($ac_try" in
9830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831   *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834   (eval "$ac_try") 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; }; then
9838   ac_cv_lib_svld_dlopen=yes
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843         ac_cv_lib_svld_dlopen=no
9844 fi
9845
9846 rm -f core conftest.err conftest.$ac_objext \
9847       conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9849 fi
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9852 if test $ac_cv_lib_svld_dlopen = yes; then
9853
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_LIBDL 1
9856 _ACEOF
9857
9858                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9859 else
9860   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldld  $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873
9874 /* Override any GCC internal prototype to avoid an error.
9875    Use char because int might match the return type of a GCC
9876    builtin and then its argument prototype would still apply.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char dld_link ();
9881 int
9882 main ()
9883 {
9884 return dld_link ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_link") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } &&
9903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904   { (case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_try") 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; } &&
9913          { ac_try='test -s conftest$ac_exeext'
9914   { (case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_try") 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_lib_dld_dld_link=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928         ac_cv_lib_dld_dld_link=no
9929 fi
9930
9931 rm -f core conftest.err conftest.$ac_objext \
9932       conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9934 fi
9935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9937 if test $ac_cv_lib_dld_dld_link = yes; then
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_DLD 1
9941 _ACEOF
9942
9943                 LIBADD_DL="$LIBADD_DL -ldld"
9944 else
9945   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9946 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9947 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9958 #define _dyld_func_lookup innocuous__dyld_func_lookup
9959
9960 /* System header to define __stub macros and hopefully few prototypes,
9961     which can conflict with char _dyld_func_lookup (); below.
9962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963     <limits.h> exists even on freestanding compilers.  */
9964
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970
9971 #undef _dyld_func_lookup
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char _dyld_func_lookup ();
9980 /* The GNU C library defines this for functions which it implements
9981     to always fail with ENOSYS.  Some functions are actually named
9982     something starting with __ and the normal name is an alias.  */
9983 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9984 choke me
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 return _dyld_func_lookup ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9997 case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002   (eval "$ac_link") 2>conftest.er1
10003   ac_status=$?
10004   grep -v '^ *+' conftest.er1 >conftest.err
10005   rm -f conftest.er1
10006   cat conftest.err >&5
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010   { (case "(($ac_try" in
10011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012   *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015   (eval "$ac_try") 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; } &&
10019          { ac_try='test -s conftest$ac_exeext'
10020   { (case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_try") 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; }; then
10029   ac_cv_func__dyld_func_lookup=yes
10030 else
10031   echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034         ac_cv_func__dyld_func_lookup=no
10035 fi
10036
10037 rm -f core conftest.err conftest.$ac_objext \
10038       conftest$ac_exeext conftest.$ac_ext
10039 fi
10040 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10041 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10042 if test $ac_cv_func__dyld_func_lookup = yes; then
10043
10044 cat >>confdefs.h <<\_ACEOF
10045 #define HAVE_DYLD 1
10046 _ACEOF
10047
10048 fi
10049
10050
10051 fi
10052
10053
10054 fi
10055
10056
10057 fi
10058
10059 rm -f core conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061
10062 fi
10063
10064
10065 fi
10066
10067
10068 fi
10069
10070
10071 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10072 then
10073   lt_save_LIBS="$LIBS"
10074   LIBS="$LIBS $LIBADD_DL"
10075
10076 for ac_func in dlerror
10077 do
10078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10092 #define $ac_func innocuous_$ac_func
10093
10094 /* System header to define __stub macros and hopefully few prototypes,
10095     which can conflict with char $ac_func (); below.
10096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10097     <limits.h> exists even on freestanding compilers.  */
10098
10099 #ifdef __STDC__
10100 # include <limits.h>
10101 #else
10102 # include <assert.h>
10103 #endif
10104
10105 #undef $ac_func
10106
10107 /* Override any GCC internal prototype to avoid an error.
10108    Use char because int might match the return type of a GCC
10109    builtin and then its argument prototype would still apply.  */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 char $ac_func ();
10114 /* The GNU C library defines this for functions which it implements
10115     to always fail with ENOSYS.  Some functions are actually named
10116     something starting with __ and the normal name is an alias.  */
10117 #if defined __stub_$ac_func || defined __stub___$ac_func
10118 choke me
10119 #endif
10120
10121 int
10122 main ()
10123 {
10124 return $ac_func ();
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_link") 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_try") 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   eval "$as_ac_var=yes"
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168         eval "$as_ac_var=no"
10169 fi
10170
10171 rm -f core conftest.err conftest.$ac_objext \
10172       conftest$ac_exeext conftest.$ac_ext
10173 fi
10174 ac_res=`eval echo '${'$as_ac_var'}'`
10175                { echo "$as_me:$LINENO: result: $ac_res" >&5
10176 echo "${ECHO_T}$ac_res" >&6; }
10177 if test `eval echo '${'$as_ac_var'}'` = yes; then
10178   cat >>confdefs.h <<_ACEOF
10179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 _ACEOF
10181
10182 fi
10183 done
10184
10185   LIBS="$lt_save_LIBS"
10186 fi
10187 ac_ext=c
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192
10193
10194
10195 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10196 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10197 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   ac_cv_sys_symbol_underscore=no
10201   cat > conftest.$ac_ext <<EOF
10202 void nm_test_func(){}
10203 int main(){nm_test_func;return 0;}
10204 EOF
10205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206   (eval $ac_compile) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; then
10210     # Now try to grab the symbols.
10211     ac_nlist=conftest.nm
10212     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10213   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } && test -s "$ac_nlist"; then
10217       # See whether the symbols have a leading underscore.
10218       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10219         ac_cv_sys_symbol_underscore=yes
10220       else
10221         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10222           :
10223         else
10224           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10225         fi
10226       fi
10227     else
10228       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10229     fi
10230   else
10231     echo "configure: failed program was:" >&5
10232     cat conftest.c >&5
10233   fi
10234   rm -rf conftest*
10235
10236 fi
10237 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10238 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10239
10240
10241 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10242   if test x"$libltdl_cv_func_dlopen" = xyes ||
10243      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10244         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10245 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10246 if test "${libltdl_cv_need_uscore+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   libltdl_cv_need_uscore=unknown
10250           save_LIBS="$LIBS"
10251           LIBS="$LIBS $LIBADD_DL"
10252           if test "$cross_compiling" = yes; then :
10253   libltdl_cv_need_uscore=cross
10254 else
10255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10256   lt_status=$lt_dlunknown
10257   cat > conftest.$ac_ext <<EOF
10258 #line 10258 "configure"
10259 #include "confdefs.h"
10260
10261 #if HAVE_DLFCN_H
10262 #include <dlfcn.h>
10263 #endif
10264
10265 #include <stdio.h>
10266
10267 #ifdef RTLD_GLOBAL
10268 #  define LT_DLGLOBAL           RTLD_GLOBAL
10269 #else
10270 #  ifdef DL_GLOBAL
10271 #    define LT_DLGLOBAL         DL_GLOBAL
10272 #  else
10273 #    define LT_DLGLOBAL         0
10274 #  endif
10275 #endif
10276
10277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10278    find out it does not work in some platform. */
10279 #ifndef LT_DLLAZY_OR_NOW
10280 #  ifdef RTLD_LAZY
10281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10282 #  else
10283 #    ifdef DL_LAZY
10284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10285 #    else
10286 #      ifdef RTLD_NOW
10287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10288 #      else
10289 #        ifdef DL_NOW
10290 #          define LT_DLLAZY_OR_NOW      DL_NOW
10291 #        else
10292 #          define LT_DLLAZY_OR_NOW      0
10293 #        endif
10294 #      endif
10295 #    endif
10296 #  endif
10297 #endif
10298
10299 #ifdef __cplusplus
10300 extern "C" void exit (int);
10301 #endif
10302
10303 void fnord() { int i=42;}
10304 int main ()
10305 {
10306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10307   int status = $lt_dlunknown;
10308
10309   if (self)
10310     {
10311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10312       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10313       /* dlclose (self); */
10314     }
10315   else
10316     puts (dlerror ());
10317
10318     exit (status);
10319 }
10320 EOF
10321   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322   (eval $ac_link) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10326     (./conftest; exit; ) >&5 2>/dev/null
10327     lt_status=$?
10328     case x$lt_status in
10329       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10330       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10331       x$lt_dlunknown|x*)  ;;
10332     esac
10333   else :
10334     # compilation failed
10335
10336   fi
10337 fi
10338 rm -fr conftest*
10339
10340           LIBS="$save_LIBS"
10341
10342 fi
10343 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10344 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10345   fi
10346 fi
10347
10348 if test x"$libltdl_cv_need_uscore" = xyes; then
10349
10350 cat >>confdefs.h <<\_ACEOF
10351 #define NEED_USCORE 1
10352 _ACEOF
10353
10354 fi
10355
10356
10357 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10358 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10359 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   # PORTME does your system automatically load deplibs for dlopen?
10363   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10364   # For now, we just catch OSes we know something about -- in the
10365   # future, we'll try test this programmatically.
10366   libltdl_cv_sys_dlopen_deplibs=unknown
10367   case "$host_os" in
10368   aix3*|aix4.1.*|aix4.2.*)
10369     # Unknown whether this is true for these versions of AIX, but
10370     # we want this `case' here to explicitly catch those versions.
10371     libltdl_cv_sys_dlopen_deplibs=unknown
10372     ;;
10373   aix[45]*)
10374     libltdl_cv_sys_dlopen_deplibs=yes
10375     ;;
10376   darwin*)
10377     # Assuming the user has installed a libdl from somewhere, this is true
10378     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10379     libltdl_cv_sys_dlopen_deplibs=yes
10380     ;;
10381   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10382     # GNU and its variants, using gnu ld.so (Glibc)
10383     libltdl_cv_sys_dlopen_deplibs=yes
10384     ;;
10385   hpux10*|hpux11*)
10386     libltdl_cv_sys_dlopen_deplibs=yes
10387     ;;
10388   interix*)
10389     libltdl_cv_sys_dlopen_deplibs=yes
10390     ;;
10391   irix[12345]*|irix6.[01]*)
10392     # Catch all versions of IRIX before 6.2, and indicate that we don't
10393     # know how it worked for any of those versions.
10394     libltdl_cv_sys_dlopen_deplibs=unknown
10395     ;;
10396   irix*)
10397     # The case above catches anything before 6.2, and it's known that
10398     # at 6.2 and later dlopen does load deplibs.
10399     libltdl_cv_sys_dlopen_deplibs=yes
10400     ;;
10401   netbsd*)
10402     libltdl_cv_sys_dlopen_deplibs=yes
10403     ;;
10404   openbsd*)
10405     libltdl_cv_sys_dlopen_deplibs=yes
10406     ;;
10407   osf[1234]*)
10408     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10409     # it did *not* use an RPATH in a shared library to find objects the
10410     # library depends on, so we explicitly say `no'.
10411     libltdl_cv_sys_dlopen_deplibs=no
10412     ;;
10413   osf5.0|osf5.0a|osf5.1)
10414     # dlopen *does* load deplibs and with the right loader patch applied
10415     # it even uses RPATH in a shared library to search for shared objects
10416     # that the library depends on, but there's no easy way to know if that
10417     # patch is installed.  Since this is the case, all we can really
10418     # say is unknown -- it depends on the patch being installed.  If
10419     # it is, this changes to `yes'.  Without it, it would be `no'.
10420     libltdl_cv_sys_dlopen_deplibs=unknown
10421     ;;
10422   osf*)
10423     # the two cases above should catch all versions of osf <= 5.1.  Read
10424     # the comments above for what we know about them.
10425     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10426     # is used to find them so we can finally say `yes'.
10427     libltdl_cv_sys_dlopen_deplibs=yes
10428     ;;
10429   solaris*)
10430     libltdl_cv_sys_dlopen_deplibs=yes
10431     ;;
10432   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433     libltdl_cv_sys_dlopen_deplibs=yes
10434     ;;
10435   esac
10436
10437 fi
10438 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10439 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10440 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10441
10442 cat >>confdefs.h <<\_ACEOF
10443 #define LTDL_DLOPEN_DEPLIBS 1
10444 _ACEOF
10445
10446 fi
10447
10448
10449 for ac_header in argz.h
10450 do
10451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 fi
10458 ac_res=`eval echo '${'$as_ac_Header'}'`
10459                { echo "$as_me:$LINENO: result: $ac_res" >&5
10460 echo "${ECHO_T}$ac_res" >&6; }
10461 else
10462   # Is the header compilable?
10463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 $ac_includes_default
10472 #include <$ac_header>
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (ac_try="$ac_compile"
10476 case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_compile") 2>conftest.er1
10482   ac_status=$?
10483   grep -v '^ *+' conftest.er1 >conftest.err
10484   rm -f conftest.er1
10485   cat conftest.err >&5
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } &&
10488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489   { (case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_try") 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; } &&
10498          { ac_try='test -s conftest.$ac_objext'
10499   { (case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504   (eval "$ac_try") 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; }; then
10508   ac_header_compiler=yes
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513         ac_header_compiler=no
10514 fi
10515
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518 echo "${ECHO_T}$ac_header_compiler" >&6; }
10519
10520 # Is the header present?
10521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 #include <$ac_header>
10530 _ACEOF
10531 if { (ac_try="$ac_cpp conftest.$ac_ext"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } >/dev/null; then
10544   if test -s conftest.err; then
10545     ac_cpp_err=$ac_c_preproc_warn_flag
10546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10547   else
10548     ac_cpp_err=
10549   fi
10550 else
10551   ac_cpp_err=yes
10552 fi
10553 if test -z "$ac_cpp_err"; then
10554   ac_header_preproc=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559   ac_header_preproc=no
10560 fi
10561
10562 rm -f conftest.err conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564 echo "${ECHO_T}$ac_header_preproc" >&6; }
10565
10566 # So?  What about this header?
10567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10568   yes:no: )
10569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573     ac_header_preproc=yes
10574     ;;
10575   no:yes:* )
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588     ( cat <<\_ASBOX
10589 ## ------------------------------------ ##
10590 ## Report this to http://llvm.org/bugs/ ##
10591 ## ------------------------------------ ##
10592 _ASBOX
10593      ) | sed "s/^/$as_me: WARNING:     /" >&2
10594     ;;
10595 esac
10596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   eval "$as_ac_Header=\$ac_header_preproc"
10602 fi
10603 ac_res=`eval echo '${'$as_ac_Header'}'`
10604                { echo "$as_me:$LINENO: result: $ac_res" >&5
10605 echo "${ECHO_T}$ac_res" >&6; }
10606
10607 fi
10608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10609   cat >>confdefs.h <<_ACEOF
10610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10611 _ACEOF
10612
10613 fi
10614
10615 done
10616
10617
10618 { echo "$as_me:$LINENO: checking for error_t" >&5
10619 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10620 if test "${ac_cv_type_error_t+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h.  */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h.  */
10629 #if HAVE_ARGZ_H
10630 #  include <argz.h>
10631 #endif
10632
10633 typedef error_t ac__type_new_;
10634 int
10635 main ()
10636 {
10637 if ((ac__type_new_ *) 0)
10638   return 0;
10639 if (sizeof (ac__type_new_))
10640   return 0;
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649   *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652   (eval "$ac_compile") 2>conftest.er1
10653   ac_status=$?
10654   grep -v '^ *+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } &&
10659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10660   { (case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_try") 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; } &&
10669          { ac_try='test -s conftest.$ac_objext'
10670   { (case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675   (eval "$ac_try") 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ac_cv_type_error_t=yes
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684         ac_cv_type_error_t=no
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10690 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10691 if test $ac_cv_type_error_t = yes; then
10692
10693 cat >>confdefs.h <<_ACEOF
10694 #define HAVE_ERROR_T 1
10695 _ACEOF
10696
10697
10698 else
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define error_t int
10702 _ACEOF
10703
10704 fi
10705
10706
10707
10708
10709
10710
10711
10712 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10713 do
10714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720   cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10728 #define $ac_func innocuous_$ac_func
10729
10730 /* System header to define __stub macros and hopefully few prototypes,
10731     which can conflict with char $ac_func (); below.
10732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733     <limits.h> exists even on freestanding compilers.  */
10734
10735 #ifdef __STDC__
10736 # include <limits.h>
10737 #else
10738 # include <assert.h>
10739 #endif
10740
10741 #undef $ac_func
10742
10743 /* Override any GCC internal prototype to avoid an error.
10744    Use char because int might match the return type of a GCC
10745    builtin and then its argument prototype would still apply.  */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char $ac_func ();
10750 /* The GNU C library defines this for functions which it implements
10751     to always fail with ENOSYS.  Some functions are actually named
10752     something starting with __ and the normal name is an alias.  */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10754 choke me
10755 #endif
10756
10757 int
10758 main ()
10759 {
10760 return $ac_func ();
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_link") 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780   { (case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_try") 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; } &&
10789          { ac_try='test -s conftest$ac_exeext'
10790   { (case "(($ac_try" in
10791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792   *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795   (eval "$ac_try") 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   eval "$as_ac_var=yes"
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         eval "$as_ac_var=no"
10805 fi
10806
10807 rm -f core conftest.err conftest.$ac_objext \
10808       conftest$ac_exeext conftest.$ac_ext
10809 fi
10810 ac_res=`eval echo '${'$as_ac_var'}'`
10811                { echo "$as_me:$LINENO: result: $ac_res" >&5
10812 echo "${ECHO_T}$ac_res" >&6; }
10813 if test `eval echo '${'$as_ac_var'}'` = yes; then
10814   cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10816 _ACEOF
10817
10818 fi
10819 done
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10849                   stdio.h unistd.h
10850 do
10851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 fi
10858 ac_res=`eval echo '${'$as_ac_Header'}'`
10859                { echo "$as_me:$LINENO: result: $ac_res" >&5
10860 echo "${ECHO_T}$ac_res" >&6; }
10861 else
10862   # Is the header compilable?
10863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 $ac_includes_default
10872 #include <$ac_header>
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_compile") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889   { (case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_try") 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); }; } &&
10898          { ac_try='test -s conftest.$ac_objext'
10899   { (case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_try") 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_header_compiler=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913         ac_header_compiler=no
10914 fi
10915
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10918 echo "${ECHO_T}$ac_header_compiler" >&6; }
10919
10920 # Is the header present?
10921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <$ac_header>
10930 _ACEOF
10931 if { (ac_try="$ac_cpp conftest.$ac_ext"
10932 case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } >/dev/null; then
10944   if test -s conftest.err; then
10945     ac_cpp_err=$ac_c_preproc_warn_flag
10946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10947   else
10948     ac_cpp_err=
10949   fi
10950 else
10951   ac_cpp_err=yes
10952 fi
10953 if test -z "$ac_cpp_err"; then
10954   ac_header_preproc=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959   ac_header_preproc=no
10960 fi
10961
10962 rm -f conftest.err conftest.$ac_ext
10963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10964 echo "${ECHO_T}$ac_header_preproc" >&6; }
10965
10966 # So?  What about this header?
10967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10968   yes:no: )
10969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10973     ac_header_preproc=yes
10974     ;;
10975   no:yes:* )
10976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10988     ( cat <<\_ASBOX
10989 ## ------------------------------------ ##
10990 ## Report this to http://llvm.org/bugs/ ##
10991 ## ------------------------------------ ##
10992 _ASBOX
10993      ) | sed "s/^/$as_me: WARNING:     /" >&2
10994     ;;
10995 esac
10996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   eval "$as_ac_Header=\$ac_header_preproc"
11002 fi
11003 ac_res=`eval echo '${'$as_ac_Header'}'`
11004                { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11006
11007 fi
11008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11009   cat >>confdefs.h <<_ACEOF
11010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11011 _ACEOF
11012
11013 fi
11014
11015 done
11016
11017
11018
11019
11020
11021 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11022 do
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 fi
11030 ac_res=`eval echo '${'$as_ac_Header'}'`
11031                { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11033 else
11034   # Is the header compilable?
11035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043 $ac_includes_default
11044 #include <$ac_header>
11045 _ACEOF
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_compile") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest.$ac_objext'
11071   { (case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_try") 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   ac_header_compiler=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085         ac_header_compiler=no
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 echo "${ECHO_T}$ac_header_compiler" >&6; }
11091
11092 # Is the header present?
11093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <$ac_header>
11102 _ACEOF
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11110   ac_status=$?
11111   grep -v '^ *+' conftest.er1 >conftest.err
11112   rm -f conftest.er1
11113   cat conftest.err >&5
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } >/dev/null; then
11116   if test -s conftest.err; then
11117     ac_cpp_err=$ac_c_preproc_warn_flag
11118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119   else
11120     ac_cpp_err=
11121   fi
11122 else
11123   ac_cpp_err=yes
11124 fi
11125 if test -z "$ac_cpp_err"; then
11126   ac_header_preproc=yes
11127 else
11128   echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131   ac_header_preproc=no
11132 fi
11133
11134 rm -f conftest.err conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136 echo "${ECHO_T}$ac_header_preproc" >&6; }
11137
11138 # So?  What about this header?
11139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140   yes:no: )
11141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145     ac_header_preproc=yes
11146     ;;
11147   no:yes:* )
11148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11160     ( cat <<\_ASBOX
11161 ## ------------------------------------ ##
11162 ## Report this to http://llvm.org/bugs/ ##
11163 ## ------------------------------------ ##
11164 _ASBOX
11165      ) | sed "s/^/$as_me: WARNING:     /" >&2
11166     ;;
11167 esac
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   eval "$as_ac_Header=\$ac_header_preproc"
11174 fi
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176                { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178
11179 fi
11180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181   cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11183 _ACEOF
11184
11185 fi
11186
11187 done
11188
11189
11190
11191 for ac_header in string.h strings.h
11192 do
11193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 fi
11200 ac_res=`eval echo '${'$as_ac_Header'}'`
11201                { echo "$as_me:$LINENO: result: $ac_res" >&5
11202 echo "${ECHO_T}$ac_res" >&6; }
11203 else
11204   # Is the header compilable?
11205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h.  */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h.  */
11213 $ac_includes_default
11214 #include <$ac_header>
11215 _ACEOF
11216 rm -f conftest.$ac_objext
11217 if { (ac_try="$ac_compile"
11218 case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_compile") 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11231   { (case "(($ac_try" in
11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233   *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236   (eval "$ac_try") 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; } &&
11240          { ac_try='test -s conftest.$ac_objext'
11241   { (case "(($ac_try" in
11242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243   *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246   (eval "$ac_try") 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; }; then
11250   ac_header_compiler=yes
11251 else
11252   echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255         ac_header_compiler=no
11256 fi
11257
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11260 echo "${ECHO_T}$ac_header_compiler" >&6; }
11261
11262 # Is the header present?
11263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 #include <$ac_header>
11272 _ACEOF
11273 if { (ac_try="$ac_cpp conftest.$ac_ext"
11274 case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11280   ac_status=$?
11281   grep -v '^ *+' conftest.er1 >conftest.err
11282   rm -f conftest.er1
11283   cat conftest.err >&5
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } >/dev/null; then
11286   if test -s conftest.err; then
11287     ac_cpp_err=$ac_c_preproc_warn_flag
11288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11289   else
11290     ac_cpp_err=
11291   fi
11292 else
11293   ac_cpp_err=yes
11294 fi
11295 if test -z "$ac_cpp_err"; then
11296   ac_header_preproc=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301   ac_header_preproc=no
11302 fi
11303
11304 rm -f conftest.err conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11306 echo "${ECHO_T}$ac_header_preproc" >&6; }
11307
11308 # So?  What about this header?
11309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11310   yes:no: )
11311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11315     ac_header_preproc=yes
11316     ;;
11317   no:yes:* )
11318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11330     ( cat <<\_ASBOX
11331 ## ------------------------------------ ##
11332 ## Report this to http://llvm.org/bugs/ ##
11333 ## ------------------------------------ ##
11334 _ASBOX
11335      ) | sed "s/^/$as_me: WARNING:     /" >&2
11336     ;;
11337 esac
11338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   eval "$as_ac_Header=\$ac_header_preproc"
11344 fi
11345 ac_res=`eval echo '${'$as_ac_Header'}'`
11346                { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11348
11349 fi
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351   cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353 _ACEOF
11354  break
11355 fi
11356
11357 done
11358
11359
11360
11361
11362 for ac_func in strchr index
11363 do
11364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11378 #define $ac_func innocuous_$ac_func
11379
11380 /* System header to define __stub macros and hopefully few prototypes,
11381     which can conflict with char $ac_func (); below.
11382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383     <limits.h> exists even on freestanding compilers.  */
11384
11385 #ifdef __STDC__
11386 # include <limits.h>
11387 #else
11388 # include <assert.h>
11389 #endif
11390
11391 #undef $ac_func
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394    Use char because int might match the return type of a GCC
11395    builtin and then its argument prototype would still apply.  */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char $ac_func ();
11400 /* The GNU C library defines this for functions which it implements
11401     to always fail with ENOSYS.  Some functions are actually named
11402     something starting with __ and the normal name is an alias.  */
11403 #if defined __stub_$ac_func || defined __stub___$ac_func
11404 choke me
11405 #endif
11406
11407 int
11408 main ()
11409 {
11410 return $ac_func ();
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (ac_try="$ac_link"
11417 case "(($ac_try" in
11418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419   *) ac_try_echo=$ac_try;;
11420 esac
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422   (eval "$ac_link") 2>conftest.er1
11423   ac_status=$?
11424   grep -v '^ *+' conftest.er1 >conftest.err
11425   rm -f conftest.er1
11426   cat conftest.err >&5
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); } &&
11429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11430   { (case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_try") 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; } &&
11439          { ac_try='test -s conftest$ac_exeext'
11440   { (case "(($ac_try" in
11441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442   *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445   (eval "$ac_try") 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; }; then
11449   eval "$as_ac_var=yes"
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454         eval "$as_ac_var=no"
11455 fi
11456
11457 rm -f core conftest.err conftest.$ac_objext \
11458       conftest$ac_exeext conftest.$ac_ext
11459 fi
11460 ac_res=`eval echo '${'$as_ac_var'}'`
11461                { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464   cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 _ACEOF
11467  break
11468 fi
11469 done
11470
11471
11472
11473 for ac_func in strrchr rindex
11474 do
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11489 #define $ac_func innocuous_$ac_func
11490
11491 /* System header to define __stub macros and hopefully few prototypes,
11492     which can conflict with char $ac_func (); below.
11493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494     <limits.h> exists even on freestanding compilers.  */
11495
11496 #ifdef __STDC__
11497 # include <limits.h>
11498 #else
11499 # include <assert.h>
11500 #endif
11501
11502 #undef $ac_func
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505    Use char because int might match the return type of a GCC
11506    builtin and then its argument prototype would still apply.  */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char $ac_func ();
11511 /* The GNU C library defines this for functions which it implements
11512     to always fail with ENOSYS.  Some functions are actually named
11513     something starting with __ and the normal name is an alias.  */
11514 #if defined __stub_$ac_func || defined __stub___$ac_func
11515 choke me
11516 #endif
11517
11518 int
11519 main ()
11520 {
11521 return $ac_func ();
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_link") 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541   { (case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_try") 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; } &&
11550          { ac_try='test -s conftest$ac_exeext'
11551   { (case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_try") 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   eval "$as_ac_var=yes"
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565         eval "$as_ac_var=no"
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext \
11569       conftest$ac_exeext conftest.$ac_ext
11570 fi
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572                { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575   cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577 _ACEOF
11578  break
11579 fi
11580 done
11581
11582
11583
11584 for ac_func in memcpy bcopy
11585 do
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600 #define $ac_func innocuous_$ac_func
11601
11602 /* System header to define __stub macros and hopefully few prototypes,
11603     which can conflict with char $ac_func (); below.
11604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605     <limits.h> exists even on freestanding compilers.  */
11606
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612
11613 #undef $ac_func
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616    Use char because int might match the return type of a GCC
11617    builtin and then its argument prototype would still apply.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623     to always fail with ENOSYS.  Some functions are actually named
11624     something starting with __ and the normal name is an alias.  */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return $ac_func ();
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_link") 2>conftest.er1
11645   ac_status=$?
11646   grep -v '^ *+' conftest.er1 >conftest.err
11647   rm -f conftest.er1
11648   cat conftest.err >&5
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652   { (case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_try") 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_try") 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; }; then
11671   eval "$as_ac_var=yes"
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676         eval "$as_ac_var=no"
11677 fi
11678
11679 rm -f core conftest.err conftest.$ac_objext \
11680       conftest$ac_exeext conftest.$ac_ext
11681 fi
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683                { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686   cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 _ACEOF
11689  break
11690 fi
11691 done
11692
11693
11694
11695 for ac_func in memmove strcmp
11696 do
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11711 #define $ac_func innocuous_$ac_func
11712
11713 /* System header to define __stub macros and hopefully few prototypes,
11714     which can conflict with char $ac_func (); below.
11715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716     <limits.h> exists even on freestanding compilers.  */
11717
11718 #ifdef __STDC__
11719 # include <limits.h>
11720 #else
11721 # include <assert.h>
11722 #endif
11723
11724 #undef $ac_func
11725
11726 /* Override any GCC internal prototype to avoid an error.
11727    Use char because int might match the return type of a GCC
11728    builtin and then its argument prototype would still apply.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char $ac_func ();
11733 /* The GNU C library defines this for functions which it implements
11734     to always fail with ENOSYS.  Some functions are actually named
11735     something starting with __ and the normal name is an alias.  */
11736 #if defined __stub_$ac_func || defined __stub___$ac_func
11737 choke me
11738 #endif
11739
11740 int
11741 main ()
11742 {
11743 return $ac_func ();
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_link") 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763   { (case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_try") 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; } &&
11772          { ac_try='test -s conftest$ac_exeext'
11773   { (case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_try") 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; }; then
11782   eval "$as_ac_var=yes"
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787         eval "$as_ac_var=no"
11788 fi
11789
11790 rm -f core conftest.err conftest.$ac_objext \
11791       conftest$ac_exeext conftest.$ac_ext
11792 fi
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794                { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797   cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801 fi
11802 done
11803
11804
11805
11806
11807 for ac_func in closedir opendir readdir
11808 do
11809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11823 #define $ac_func innocuous_$ac_func
11824
11825 /* System header to define __stub macros and hopefully few prototypes,
11826     which can conflict with char $ac_func (); below.
11827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828     <limits.h> exists even on freestanding compilers.  */
11829
11830 #ifdef __STDC__
11831 # include <limits.h>
11832 #else
11833 # include <assert.h>
11834 #endif
11835
11836 #undef $ac_func
11837
11838 /* Override any GCC internal prototype to avoid an error.
11839    Use char because int might match the return type of a GCC
11840    builtin and then its argument prototype would still apply.  */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char $ac_func ();
11845 /* The GNU C library defines this for functions which it implements
11846     to always fail with ENOSYS.  Some functions are actually named
11847     something starting with __ and the normal name is an alias.  */
11848 #if defined __stub_$ac_func || defined __stub___$ac_func
11849 choke me
11850 #endif
11851
11852 int
11853 main ()
11854 {
11855 return $ac_func ();
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (ac_try="$ac_link"
11862 case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_link") 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875   { (case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_try") 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (case "(($ac_try" in
11886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887   *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890   (eval "$ac_try") 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   eval "$as_ac_var=yes"
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899         eval "$as_ac_var=no"
11900 fi
11901
11902 rm -f core conftest.err conftest.$ac_objext \
11903       conftest$ac_exeext conftest.$ac_ext
11904 fi
11905 ac_res=`eval echo '${'$as_ac_var'}'`
11906                { echo "$as_me:$LINENO: result: $ac_res" >&5
11907 echo "${ECHO_T}$ac_res" >&6; }
11908 if test `eval echo '${'$as_ac_var'}'` = yes; then
11909   cat >>confdefs.h <<_ACEOF
11910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11911 _ACEOF
11912
11913 fi
11914 done
11915
11916
11917
11918 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11919 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11920
11921 ICC=no
11922 IXX=no
11923 case $CC in
11924   icc*|icpc*)
11925     ICC=yes
11926     IXX=yes
11927     ;;
11928    *)
11929     ;;
11930 esac
11931
11932 if test "$GCC" != "yes" && test "$ICC" != "yes"
11933 then
11934   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11935 echo "$as_me: error: gcc|icc required but not found" >&2;}
11936    { (exit 1); exit 1; }; }
11937 fi
11938
11939 if test "$GXX" != "yes" && test "$IXX" != "yes"
11940 then
11941   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11942 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11943    { (exit 1); exit 1; }; }
11944 fi
11945
11946 if test "$GCC" = "yes"
11947 then
11948   cat >conftest.$ac_ext <<_ACEOF
11949 #if !defined(__GNUC__) || __GNUC__ < 3
11950 #error Unsupported GCC version
11951 #endif
11952
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_compile") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969   { (case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_try") 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest.$ac_objext'
11979   { (case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_try") 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; }; then
11988   :
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11994 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11995    { (exit 1); exit 1; }; }
11996 fi
11997
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000
12001 if test -z "$llvm_cv_gnu_make_command"
12002 then
12003   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12004 echo "$as_me: error: GNU Make required but not found" >&2;}
12005    { (exit 1); exit 1; }; }
12006 fi
12007
12008 { echo "$as_me:$LINENO: result: ok" >&5
12009 echo "${ECHO_T}ok" >&6; }
12010
12011 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12012 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12013 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12014
12015 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12016
12017 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12018
12019 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12020 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12021
12022
12023
12024 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12025 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_m_sin+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lm  $LIBS"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h.  */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char sin ();
12045 int
12046 main ()
12047 {
12048 return sin ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_link") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   ac_cv_lib_m_sin=yes
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         ac_cv_lib_m_sin=no
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext \
12096       conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12100 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12101 if test $ac_cv_lib_m_sin = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define HAVE_LIBM 1
12104 _ACEOF
12105
12106   LIBS="-lm $LIBS"
12107
12108 fi
12109
12110 if test "$llvm_cv_os_type" = "MingW" ; then
12111
12112 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12113 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-limagehlp  $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126
12127 int
12128 main ()
12129 {
12130 return main ();
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_link") 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12150   { (case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_try") 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; } &&
12159          { ac_try='test -s conftest$ac_exeext'
12160   { (case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_try") 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; }; then
12169   ac_cv_lib_imagehlp_main=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174         ac_cv_lib_imagehlp_main=no
12175 fi
12176
12177 rm -f core conftest.err conftest.$ac_objext \
12178       conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12182 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12183 if test $ac_cv_lib_imagehlp_main = yes; then
12184   cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBIMAGEHLP 1
12186 _ACEOF
12187
12188   LIBS="-limagehlp $LIBS"
12189
12190 fi
12191
12192
12193 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12194 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12195 if test "${ac_cv_lib_psapi_main+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lpsapi  $LIBS"
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206
12207
12208 int
12209 main ()
12210 {
12211 return main ();
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_link") 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231   { (case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_try") 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; } &&
12240          { ac_try='test -s conftest$ac_exeext'
12241   { (case "(($ac_try" in
12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243   *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246   (eval "$ac_try") 2>&5
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); }; }; then
12250   ac_cv_lib_psapi_main=yes
12251 else
12252   echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255         ac_cv_lib_psapi_main=no
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext \
12259       conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12261 fi
12262 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12263 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12264 if test $ac_cv_lib_psapi_main = yes; then
12265   cat >>confdefs.h <<_ACEOF
12266 #define HAVE_LIBPSAPI 1
12267 _ACEOF
12268
12269   LIBS="-lpsapi $LIBS"
12270
12271 fi
12272
12273 fi
12274
12275 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12276 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12277 if test "${ac_cv_search_dlopen+set}" = set; then
12278   echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280   ac_func_search_save_LIBS=$LIBS
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287
12288 /* Override any GCC internal prototype to avoid an error.
12289    Use char because int might match the return type of a GCC
12290    builtin and then its argument prototype would still apply.  */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char dlopen ();
12295 int
12296 main ()
12297 {
12298 return dlopen ();
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 for ac_lib in '' dl; do
12304   if test -z "$ac_lib"; then
12305     ac_res="none required"
12306   else
12307     ac_res=-l$ac_lib
12308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12309   fi
12310   rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_link") 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325   { (case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_try") 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest$ac_exeext'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_cv_search_dlopen=$ac_res
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext \
12353       conftest$ac_exeext
12354   if test "${ac_cv_search_dlopen+set}" = set; then
12355   break
12356 fi
12357 done
12358 if test "${ac_cv_search_dlopen+set}" = set; then
12359   :
12360 else
12361   ac_cv_search_dlopen=no
12362 fi
12363 rm conftest.$ac_ext
12364 LIBS=$ac_func_search_save_LIBS
12365 fi
12366 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12367 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12368 ac_res=$ac_cv_search_dlopen
12369 if test "$ac_res" != no; then
12370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12371
12372 cat >>confdefs.h <<\_ACEOF
12373 #define HAVE_DLOPEN 1
12374 _ACEOF
12375
12376 else
12377   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12378 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12379 fi
12380
12381
12382 if test "$llvm_cv_enable_libffi" = "yes" ; then
12383   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12384 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12385 if test "${ac_cv_search_ffi_call+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   ac_func_search_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char ffi_call ();
12403 int
12404 main ()
12405 {
12406 return ffi_call ();
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 for ac_lib in '' ffi; do
12412   if test -z "$ac_lib"; then
12413     ac_res="none required"
12414   else
12415     ac_res=-l$ac_lib
12416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12417   fi
12418   rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_link") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest$ac_exeext'
12443   { (case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_try") 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; }; then
12452   ac_cv_search_ffi_call=$ac_res
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
12458 fi
12459
12460 rm -f core conftest.err conftest.$ac_objext \
12461       conftest$ac_exeext
12462   if test "${ac_cv_search_ffi_call+set}" = set; then
12463   break
12464 fi
12465 done
12466 if test "${ac_cv_search_ffi_call+set}" = set; then
12467   :
12468 else
12469   ac_cv_search_ffi_call=no
12470 fi
12471 rm conftest.$ac_ext
12472 LIBS=$ac_func_search_save_LIBS
12473 fi
12474 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12475 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12476 ac_res=$ac_cv_search_ffi_call
12477 if test "$ac_res" != no; then
12478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_FFI_CALL 1
12482 _ACEOF
12483
12484 else
12485   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12486 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12487    { (exit 1); exit 1; }; }
12488 fi
12489
12490 fi
12491
12492 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12493 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12494 if test "${ac_cv_search_mallinfo+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   ac_func_search_save_LIBS=$LIBS
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504
12505 /* Override any GCC internal prototype to avoid an error.
12506    Use char because int might match the return type of a GCC
12507    builtin and then its argument prototype would still apply.  */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char mallinfo ();
12512 int
12513 main ()
12514 {
12515 return mallinfo ();
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 for ac_lib in '' malloc; do
12521   if test -z "$ac_lib"; then
12522     ac_res="none required"
12523   else
12524     ac_res=-l$ac_lib
12525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12526   fi
12527   rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_link") 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } &&
12541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542   { (case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_try") 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest$ac_exeext'
12552   { (case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_try") 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   ac_cv_search_mallinfo=$ac_res
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext \
12570       conftest$ac_exeext
12571   if test "${ac_cv_search_mallinfo+set}" = set; then
12572   break
12573 fi
12574 done
12575 if test "${ac_cv_search_mallinfo+set}" = set; then
12576   :
12577 else
12578   ac_cv_search_mallinfo=no
12579 fi
12580 rm conftest.$ac_ext
12581 LIBS=$ac_func_search_save_LIBS
12582 fi
12583 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12584 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12585 ac_res=$ac_cv_search_mallinfo
12586 if test "$ac_res" != no; then
12587   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12588
12589 cat >>confdefs.h <<\_ACEOF
12590 #define HAVE_MALLINFO 1
12591 _ACEOF
12592
12593 fi
12594
12595
12596 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12597
12598 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12599 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12600 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   ac_check_lib_save_LIBS=$LIBS
12604 LIBS="-lpthread  $LIBS"
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h.  */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h.  */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613    Use char because int might match the return type of a GCC
12614    builtin and then its argument prototype would still apply.  */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char pthread_mutex_init ();
12619 int
12620 main ()
12621 {
12622 return pthread_mutex_init ();
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_link") 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest$ac_exeext'
12652   { (case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_try") 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   ac_cv_lib_pthread_pthread_mutex_init=yes
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666         ac_cv_lib_pthread_pthread_mutex_init=no
12667 fi
12668
12669 rm -f core conftest.err conftest.$ac_objext \
12670       conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12672 fi
12673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12675 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12676   cat >>confdefs.h <<_ACEOF
12677 #define HAVE_LIBPTHREAD 1
12678 _ACEOF
12679
12680   LIBS="-lpthread $LIBS"
12681
12682 fi
12683
12684   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12685 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12686 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   ac_func_search_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 /* Override any GCC internal prototype to avoid an error.
12698    Use char because int might match the return type of a GCC
12699    builtin and then its argument prototype would still apply.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char pthread_mutex_lock ();
12704 int
12705 main ()
12706 {
12707 return pthread_mutex_lock ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 for ac_lib in '' pthread; do
12713   if test -z "$ac_lib"; then
12714     ac_res="none required"
12715   else
12716     ac_res=-l$ac_lib
12717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12718   fi
12719   rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
12721 case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_link") 2>conftest.er1
12727   ac_status=$?
12728   grep -v '^ *+' conftest.er1 >conftest.err
12729   rm -f conftest.er1
12730   cat conftest.err >&5
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734   { (case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_try") 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; } &&
12743          { ac_try='test -s conftest$ac_exeext'
12744   { (case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_try") 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753   ac_cv_search_pthread_mutex_lock=$ac_res
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758
12759 fi
12760
12761 rm -f core conftest.err conftest.$ac_objext \
12762       conftest$ac_exeext
12763   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12764   break
12765 fi
12766 done
12767 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12768   :
12769 else
12770   ac_cv_search_pthread_mutex_lock=no
12771 fi
12772 rm conftest.$ac_ext
12773 LIBS=$ac_func_search_save_LIBS
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12776 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12777 ac_res=$ac_cv_search_pthread_mutex_lock
12778 if test "$ac_res" != no; then
12779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_PTHREAD_MUTEX_LOCK 1
12783 _ACEOF
12784
12785 fi
12786
12787   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12788 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12789 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   ac_func_search_save_LIBS=$LIBS
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799
12800 /* Override any GCC internal prototype to avoid an error.
12801    Use char because int might match the return type of a GCC
12802    builtin and then its argument prototype would still apply.  */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char pthread_rwlock_init ();
12807 int
12808 main ()
12809 {
12810 return pthread_rwlock_init ();
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 for ac_lib in '' pthread; do
12816   if test -z "$ac_lib"; then
12817     ac_res="none required"
12818   else
12819     ac_res=-l$ac_lib
12820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12821   fi
12822   rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826   *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829   (eval "$ac_link") 2>conftest.er1
12830   ac_status=$?
12831   grep -v '^ *+' conftest.er1 >conftest.err
12832   rm -f conftest.er1
12833   cat conftest.err >&5
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); } &&
12836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837   { (case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_try") 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); }; } &&
12846          { ac_try='test -s conftest$ac_exeext'
12847   { (case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_try") 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   ac_cv_search_pthread_rwlock_init=$ac_res
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861
12862 fi
12863
12864 rm -f core conftest.err conftest.$ac_objext \
12865       conftest$ac_exeext
12866   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12867   break
12868 fi
12869 done
12870 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12871   :
12872 else
12873   ac_cv_search_pthread_rwlock_init=no
12874 fi
12875 rm conftest.$ac_ext
12876 LIBS=$ac_func_search_save_LIBS
12877 fi
12878 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12879 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12880 ac_res=$ac_cv_search_pthread_rwlock_init
12881 if test "$ac_res" != no; then
12882   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_PTHREAD_RWLOCK_INIT 1
12886 _ACEOF
12887
12888 fi
12889
12890   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12891 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any GCC internal prototype to avoid an error.
12904    Use char because int might match the return type of a GCC
12905    builtin and then its argument prototype would still apply.  */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char pthread_getspecific ();
12910 int
12911 main ()
12912 {
12913 return pthread_getspecific ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 for ac_lib in '' pthread; do
12919   if test -z "$ac_lib"; then
12920     ac_res="none required"
12921   else
12922     ac_res=-l$ac_lib
12923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12924   fi
12925   rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_link") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_try") 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; } &&
12949          { ac_try='test -s conftest$ac_exeext'
12950   { (case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955   (eval "$ac_try") 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_cv_search_pthread_getspecific=$ac_res
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext \
12968       conftest$ac_exeext
12969   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12970   break
12971 fi
12972 done
12973 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12974   :
12975 else
12976   ac_cv_search_pthread_getspecific=no
12977 fi
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12980 fi
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12983 ac_res=$ac_cv_search_pthread_getspecific
12984 if test "$ac_res" != no; then
12985   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_GETSPECIFIC 1
12989 _ACEOF
12990
12991 fi
12992
12993 fi
12994
12995
12996 # Check whether --with-udis86 was given.
12997 if test "${with_udis86+set}" = set; then
12998   withval=$with_udis86;
12999       USE_UDIS86=1
13000
13001       case "$withval" in
13002         /usr/lib|yes) ;;
13003         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13004       esac
13005
13006 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13007 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13008 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-ludis86  $LIBS"
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h.  */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h.  */
13019
13020 /* Override any GCC internal prototype to avoid an error.
13021    Use char because int might match the return type of a GCC
13022    builtin and then its argument prototype would still apply.  */
13023 #ifdef __cplusplus
13024 extern "C"
13025 #endif
13026 char ud_init ();
13027 int
13028 main ()
13029 {
13030 return ud_init ();
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 rm -f conftest.$ac_objext conftest$ac_exeext
13036 if { (ac_try="$ac_link"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_link") 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; } &&
13059          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; }; then
13069   ac_cv_lib_udis86_ud_init=yes
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074         ac_cv_lib_udis86_ud_init=no
13075 fi
13076
13077 rm -f core conftest.err conftest.$ac_objext \
13078       conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13080 fi
13081 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13082 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13083 if test $ac_cv_lib_udis86_ud_init = yes; then
13084   cat >>confdefs.h <<_ACEOF
13085 #define HAVE_LIBUDIS86 1
13086 _ACEOF
13087
13088   LIBS="-ludis86 $LIBS"
13089
13090 else
13091
13092         echo "Error! You need to have libudis86 around."
13093         exit -1
13094
13095 fi
13096
13097
13098 else
13099   USE_UDIS86=0
13100
13101 fi
13102
13103
13104 cat >>confdefs.h <<_ACEOF
13105 #define USE_UDIS86 $USE_UDIS86
13106 _ACEOF
13107
13108
13109
13110 # Check whether --with-oprofile was given.
13111 if test "${with_oprofile+set}" = set; then
13112   withval=$with_oprofile;
13113       USE_OPROFILE=1
13114
13115       case "$withval" in
13116         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13117         no) llvm_cv_oppath=
13118             USE_OPROFILE=0
13119  ;;
13120         *) llvm_cv_oppath="${withval}/lib/oprofile"
13121            CPPFLAGS="-I${withval}/include";;
13122       esac
13123       case $llvm_cv_os_type in
13124         Linux)
13125           if test -n "$llvm_cv_oppath" ; then
13126             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13127                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13128 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13129 if test "${ac_cv_search_bfd_init+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   ac_func_search_save_LIBS=$LIBS
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139
13140 /* Override any GCC internal prototype to avoid an error.
13141    Use char because int might match the return type of a GCC
13142    builtin and then its argument prototype would still apply.  */
13143 #ifdef __cplusplus
13144 extern "C"
13145 #endif
13146 char bfd_init ();
13147 int
13148 main ()
13149 {
13150 return bfd_init ();
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 for ac_lib in '' bfd; do
13156   if test -z "$ac_lib"; then
13157     ac_res="none required"
13158   else
13159     ac_res=-l$ac_lib
13160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13161   fi
13162   rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169   (eval "$ac_link") 2>conftest.er1
13170   ac_status=$?
13171   grep -v '^ *+' conftest.er1 >conftest.err
13172   rm -f conftest.er1
13173   cat conftest.err >&5
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177   { (case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_try") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; } &&
13186          { ac_try='test -s conftest$ac_exeext'
13187   { (case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_try") 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }; then
13196   ac_cv_search_bfd_init=$ac_res
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201
13202 fi
13203
13204 rm -f core conftest.err conftest.$ac_objext \
13205       conftest$ac_exeext
13206   if test "${ac_cv_search_bfd_init+set}" = set; then
13207   break
13208 fi
13209 done
13210 if test "${ac_cv_search_bfd_init+set}" = set; then
13211   :
13212 else
13213   ac_cv_search_bfd_init=no
13214 fi
13215 rm conftest.$ac_ext
13216 LIBS=$ac_func_search_save_LIBS
13217 fi
13218 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13219 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13220 ac_res=$ac_cv_search_bfd_init
13221 if test "$ac_res" != no; then
13222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13223
13224 fi
13225
13226             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13227 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13228 if test "${ac_cv_search_op_open_agent+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   ac_func_search_save_LIBS=$LIBS
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240    Use char because int might match the return type of a GCC
13241    builtin and then its argument prototype would still apply.  */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char op_open_agent ();
13246 int
13247 main ()
13248 {
13249 return op_open_agent ();
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 for ac_lib in '' opagent; do
13255   if test -z "$ac_lib"; then
13256     ac_res="none required"
13257   else
13258     ac_res=-l$ac_lib
13259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13260   fi
13261   rm -f conftest.$ac_objext conftest$ac_exeext
13262 if { (ac_try="$ac_link"
13263 case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268   (eval "$ac_link") 2>conftest.er1
13269   ac_status=$?
13270   grep -v '^ *+' conftest.er1 >conftest.err
13271   rm -f conftest.er1
13272   cat conftest.err >&5
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } &&
13275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13276   { (case "(($ac_try" in
13277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278   *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281   (eval "$ac_try") 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; } &&
13285          { ac_try='test -s conftest$ac_exeext'
13286   { (case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291   (eval "$ac_try") 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; }; then
13295   ac_cv_search_op_open_agent=$ac_res
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300
13301 fi
13302
13303 rm -f core conftest.err conftest.$ac_objext \
13304       conftest$ac_exeext
13305   if test "${ac_cv_search_op_open_agent+set}" = set; then
13306   break
13307 fi
13308 done
13309 if test "${ac_cv_search_op_open_agent+set}" = set; then
13310   :
13311 else
13312   ac_cv_search_op_open_agent=no
13313 fi
13314 rm conftest.$ac_ext
13315 LIBS=$ac_func_search_save_LIBS
13316 fi
13317 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13318 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13319 ac_res=$ac_cv_search_op_open_agent
13320 if test "$ac_res" != no; then
13321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13322
13323 else
13324
13325               echo "Error! You need to have libopagent around."
13326               exit -1
13327
13328 fi
13329
13330             if test "${ac_cv_header_opagent_h+set}" = set; then
13331   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13332 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13333 if test "${ac_cv_header_opagent_h+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 fi
13336 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13337 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13338 else
13339   # Is the header compilable?
13340 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13341 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 $ac_includes_default
13349 #include <opagent.h>
13350 _ACEOF
13351 rm -f conftest.$ac_objext
13352 if { (ac_try="$ac_compile"
13353 case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_compile") 2>conftest.er1
13359   ac_status=$?
13360   grep -v '^ *+' conftest.er1 >conftest.err
13361   rm -f conftest.er1
13362   cat conftest.err >&5
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); } &&
13365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13366   { (case "(($ac_try" in
13367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368   *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371   (eval "$ac_try") 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; } &&
13375          { ac_try='test -s conftest.$ac_objext'
13376   { (case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_try") 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   ac_header_compiler=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390         ac_header_compiler=no
13391 fi
13392
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13395 echo "${ECHO_T}$ac_header_compiler" >&6; }
13396
13397 # Is the header present?
13398 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13399 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13400 cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406 #include <opagent.h>
13407 _ACEOF
13408 if { (ac_try="$ac_cpp conftest.$ac_ext"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } >/dev/null; then
13421   if test -s conftest.err; then
13422     ac_cpp_err=$ac_c_preproc_warn_flag
13423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13424   else
13425     ac_cpp_err=
13426   fi
13427 else
13428   ac_cpp_err=yes
13429 fi
13430 if test -z "$ac_cpp_err"; then
13431   ac_header_preproc=yes
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436   ac_header_preproc=no
13437 fi
13438
13439 rm -f conftest.err conftest.$ac_ext
13440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13441 echo "${ECHO_T}$ac_header_preproc" >&6; }
13442
13443 # So?  What about this header?
13444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13445   yes:no: )
13446     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13447 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13449 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13450     ac_header_preproc=yes
13451     ;;
13452   no:yes:* )
13453     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13454 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13455     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13456 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13457     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13458 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13459     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13460 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13461     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13462 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13463     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13464 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13465     ( cat <<\_ASBOX
13466 ## ------------------------------------ ##
13467 ## Report this to http://llvm.org/bugs/ ##
13468 ## ------------------------------------ ##
13469 _ASBOX
13470      ) | sed "s/^/$as_me: WARNING:     /" >&2
13471     ;;
13472 esac
13473 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13474 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13475 if test "${ac_cv_header_opagent_h+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478   ac_cv_header_opagent_h=$ac_header_preproc
13479 fi
13480 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13481 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13482
13483 fi
13484 if test $ac_cv_header_opagent_h = yes; then
13485   :
13486 else
13487
13488               echo "Error! You need to have opagent.h around."
13489               exit -1
13490
13491 fi
13492
13493
13494           fi ;;
13495         *)
13496           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13497 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13498    { (exit 1); exit 1; }; } ;;
13499       esac
13500
13501 else
13502
13503       USE_OPROFILE=0
13504
13505
13506 fi
13507
13508
13509 cat >>confdefs.h <<_ACEOF
13510 #define LLVM_USE_OPROFILE $USE_OPROFILE
13511 _ACEOF
13512
13513
13514
13515 # Check whether --with-intel-jitevents was given.
13516 if test "${with_intel_jitevents+set}" = set; then
13517   withval=$with_intel_jitevents;
13518       case $llvm_cv_os_type in
13519         Linux|Win32|Cygwin|MingW) ;;
13520         *)
13521           { { echo "$as_me:$LINENO: error:
13522             Intel JIT API support is available on Linux and Windows only.\"" >&5
13523 echo "$as_me: error:
13524             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13525    { (exit 1); exit 1; }; } ;;
13526       esac
13527
13528       USE_INTEL_JITEVENTS=1
13529
13530       case "$llvm_cv_target_arch" in
13531         x86)    llvm_intel_jitevents_archdir="lib32";;
13532         x86_64) llvm_intel_jitevents_archdir="lib64";;
13533         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13534                 exit -1;;
13535       esac
13536       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13537       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13538       case "$withval" in
13539         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13540                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13541         *) ;;
13542       esac
13543
13544
13545
13546
13547       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13548       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13549
13550       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13551 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13552 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13553   echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555   ac_func_search_save_LIBS=$LIBS
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562
13563 /* Override any GCC internal prototype to avoid an error.
13564    Use char because int might match the return type of a GCC
13565    builtin and then its argument prototype would still apply.  */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 char iJIT_IsProfilingActive ();
13570 int
13571 main ()
13572 {
13573 return iJIT_IsProfilingActive ();
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 for ac_lib in '' jitprofiling; do
13579   if test -z "$ac_lib"; then
13580     ac_res="none required"
13581   else
13582     ac_res=-l$ac_lib
13583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13584   fi
13585   rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589   *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592   (eval "$ac_link") 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600   { (case "(($ac_try" in
13601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602   *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605   (eval "$ac_try") 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; } &&
13609          { ac_try='test -s conftest$ac_exeext'
13610   { (case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615   (eval "$ac_try") 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13620 else
13621   echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624
13625 fi
13626
13627 rm -f core conftest.err conftest.$ac_objext \
13628       conftest$ac_exeext
13629   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13630   break
13631 fi
13632 done
13633 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13634   :
13635 else
13636   ac_cv_search_iJIT_IsProfilingActive=no
13637 fi
13638 rm conftest.$ac_ext
13639 LIBS=$ac_func_search_save_LIBS
13640 fi
13641 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13642 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13643 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13644 if test "$ac_res" != no; then
13645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13646
13647 else
13648
13649         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13650         exit -1
13651
13652 fi
13653
13654       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13655   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13656 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13662 else
13663   # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13665 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672 $ac_includes_default
13673 #include <jitprofiling.h>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682   (eval "$ac_compile") 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } &&
13689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13690   { (case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_try") 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; } &&
13699          { ac_try='test -s conftest.$ac_objext'
13700   { (case "(($ac_try" in
13701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702   *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705   (eval "$ac_try") 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_header_compiler=yes
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714         ac_header_compiler=no
13715 fi
13716
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13719 echo "${ECHO_T}$ac_header_compiler" >&6; }
13720
13721 # Is the header present?
13722 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13723 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 #include <jitprofiling.h>
13731 _ACEOF
13732 if { (ac_try="$ac_cpp conftest.$ac_ext"
13733 case "(($ac_try" in
13734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735   *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13739   ac_status=$?
13740   grep -v '^ *+' conftest.er1 >conftest.err
13741   rm -f conftest.er1
13742   cat conftest.err >&5
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); } >/dev/null; then
13745   if test -s conftest.err; then
13746     ac_cpp_err=$ac_c_preproc_warn_flag
13747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13748   else
13749     ac_cpp_err=
13750   fi
13751 else
13752   ac_cpp_err=yes
13753 fi
13754 if test -z "$ac_cpp_err"; then
13755   ac_header_preproc=yes
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760   ac_header_preproc=no
13761 fi
13762
13763 rm -f conftest.err conftest.$ac_ext
13764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13765 echo "${ECHO_T}$ac_header_preproc" >&6; }
13766
13767 # So?  What about this header?
13768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13769   yes:no: )
13770     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13771 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13772     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13773 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13774     ac_header_preproc=yes
13775     ;;
13776   no:yes:* )
13777     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13778 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13779     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13780 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13781     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13782 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13783     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13784 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13785     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13786 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13787     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13788 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13789     ( cat <<\_ASBOX
13790 ## ------------------------------------ ##
13791 ## Report this to http://llvm.org/bugs/ ##
13792 ## ------------------------------------ ##
13793 _ASBOX
13794      ) | sed "s/^/$as_me: WARNING:     /" >&2
13795     ;;
13796 esac
13797 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13798 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13799 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   ac_cv_header_jitprofiling_h=$ac_header_preproc
13803 fi
13804 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13805 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13806
13807 fi
13808 if test $ac_cv_header_jitprofiling_h = yes; then
13809   :
13810 else
13811
13812         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13813         exit -1
13814
13815 fi
13816
13817
13818
13819
13820 else
13821
13822       USE_INTEL_JITEVENTS=0
13823
13824
13825 fi
13826
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13830 _ACEOF
13831
13832
13833 for ac_prog in xml2-config
13834 do
13835   # Extract the first word of "$ac_prog", so it can be a program name with args.
13836 set dummy $ac_prog; ac_word=$2
13837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13839 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   if test -n "$XML2CONFIG"; then
13843   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13844 else
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13847 do
13848   IFS=$as_save_IFS
13849   test -z "$as_dir" && as_dir=.
13850   for ac_exec_ext in '' $ac_executable_extensions; do
13851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13852     ac_cv_prog_XML2CONFIG="$ac_prog"
13853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854     break 2
13855   fi
13856 done
13857 done
13858 IFS=$as_save_IFS
13859
13860 fi
13861 fi
13862 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13863 if test -n "$XML2CONFIG"; then
13864   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13865 echo "${ECHO_T}$XML2CONFIG" >&6; }
13866 else
13867   { echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6; }
13869 fi
13870
13871
13872   test -n "$XML2CONFIG" && break
13873 done
13874
13875
13876 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13877 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13878 if test "x$XML2CONFIG" = "x"; then
13879  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13880 echo "${ECHO_T}xml2-config not found" >&6; }
13881 else
13882  LIBXML2_INC=`$XML2CONFIG --cflags`
13883  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13884 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13885  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13886 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13887 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lxml2  $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898
13899 /* Override any GCC internal prototype to avoid an error.
13900    Use char because int might match the return type of a GCC
13901    builtin and then its argument prototype would still apply.  */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char xmlReadFile ();
13906 int
13907 main ()
13908 {
13909 return xmlReadFile ();
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_link") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929   { (case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_try") 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; } &&
13938          { ac_try='test -s conftest$ac_exeext'
13939   { (case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_try") 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_cv_lib_xml2_xmlReadFile=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953         ac_cv_lib_xml2_xmlReadFile=no
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext \
13957       conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13959 fi
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13961 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13962 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define CLANG_HAVE_LIBXML 1
13966 _ACEOF
13967
13968                                 LIBXML2_LIBS="-lxml2"
13969 fi
13970
13971 fi
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981 ac_header_dirent=no
13982 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13983   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13984 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13985 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 #include <sys/types.h>
13996 #include <$ac_hdr>
13997
13998 int
13999 main ()
14000 {
14001 if ((DIR *) 0)
14002 return 0;
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (ac_try="$ac_compile"
14009 case "(($ac_try" in
14010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011   *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014   (eval "$ac_compile") 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022   { (case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_try") 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; } &&
14031          { ac_try='test -s conftest.$ac_objext'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   eval "$as_ac_Header=yes"
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046         eval "$as_ac_Header=no"
14047 fi
14048
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 fi
14051 ac_res=`eval echo '${'$as_ac_Header'}'`
14052                { echo "$as_me:$LINENO: result: $ac_res" >&5
14053 echo "${ECHO_T}$ac_res" >&6; }
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055   cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14057 _ACEOF
14058
14059 ac_header_dirent=$ac_hdr; break
14060 fi
14061
14062 done
14063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14064 if test $ac_header_dirent = dirent.h; then
14065   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14067 if test "${ac_cv_search_opendir+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   ac_func_search_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079    Use char because int might match the return type of a GCC
14080    builtin and then its argument prototype would still apply.  */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char opendir ();
14085 int
14086 main ()
14087 {
14088 return opendir ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 for ac_lib in '' dir; do
14094   if test -z "$ac_lib"; then
14095     ac_res="none required"
14096   else
14097     ac_res=-l$ac_lib
14098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14099   fi
14100   rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104   *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107   (eval "$ac_link") 2>conftest.er1
14108   ac_status=$?
14109   grep -v '^ *+' conftest.er1 >conftest.err
14110   rm -f conftest.er1
14111   cat conftest.err >&5
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); } &&
14114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115   { (case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120   (eval "$ac_try") 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; } &&
14124          { ac_try='test -s conftest$ac_exeext'
14125   { (case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_try") 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; }; then
14134   ac_cv_search_opendir=$ac_res
14135 else
14136   echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139
14140 fi
14141
14142 rm -f core conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext
14144   if test "${ac_cv_search_opendir+set}" = set; then
14145   break
14146 fi
14147 done
14148 if test "${ac_cv_search_opendir+set}" = set; then
14149   :
14150 else
14151   ac_cv_search_opendir=no
14152 fi
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14155 fi
14156 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14157 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14158 ac_res=$ac_cv_search_opendir
14159 if test "$ac_res" != no; then
14160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161
14162 fi
14163
14164 else
14165   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14167 if test "${ac_cv_search_opendir+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   ac_func_search_save_LIBS=$LIBS
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h.  */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h.  */
14177
14178 /* Override any GCC internal prototype to avoid an error.
14179    Use char because int might match the return type of a GCC
14180    builtin and then its argument prototype would still apply.  */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char opendir ();
14185 int
14186 main ()
14187 {
14188 return opendir ();
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 for ac_lib in '' x; do
14194   if test -z "$ac_lib"; then
14195     ac_res="none required"
14196   else
14197     ac_res=-l$ac_lib
14198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14199   fi
14200   rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_link") 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215   { (case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_try") 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; } &&
14224          { ac_try='test -s conftest$ac_exeext'
14225   { (case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_try") 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234   ac_cv_search_opendir=$ac_res
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239
14240 fi
14241
14242 rm -f core conftest.err conftest.$ac_objext \
14243       conftest$ac_exeext
14244   if test "${ac_cv_search_opendir+set}" = set; then
14245   break
14246 fi
14247 done
14248 if test "${ac_cv_search_opendir+set}" = set; then
14249   :
14250 else
14251   ac_cv_search_opendir=no
14252 fi
14253 rm conftest.$ac_ext
14254 LIBS=$ac_func_search_save_LIBS
14255 fi
14256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14258 ac_res=$ac_cv_search_opendir
14259 if test "$ac_res" != no; then
14260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14261
14262 fi
14263
14264 fi
14265
14266 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14267 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_mmap_anon+set}" = set; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271    ac_ext=c
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
14277   cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 #include <sys/mman.h>
14284 #include <unistd.h>
14285 #include <fcntl.h>
14286 int
14287 main ()
14288 {
14289 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (ac_try="$ac_compile"
14296 case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_compile") 2>conftest.er1
14302   ac_status=$?
14303   grep -v '^ *+' conftest.er1 >conftest.err
14304   rm -f conftest.er1
14305   cat conftest.err >&5
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } &&
14308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14309   { (case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314   (eval "$ac_try") 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (case "(($ac_try" in
14320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321   *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324   (eval "$ac_try") 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; }; then
14328   ac_cv_header_mmap_anon=yes
14329 else
14330   echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14332
14333         ac_cv_header_mmap_anon=no
14334 fi
14335
14336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337   ac_ext=c
14338 ac_cpp='$CPP $CPPFLAGS'
14339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14342
14343
14344 fi
14345 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14346 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14347 if test "$ac_cv_header_mmap_anon" = yes; then
14348
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_MMAP_ANONYMOUS 1
14351 _ACEOF
14352
14353 fi
14354
14355 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14356 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14357 if test "${ac_cv_header_stat_broken+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366 #include <sys/types.h>
14367 #include <sys/stat.h>
14368
14369 #if defined S_ISBLK && defined S_IFDIR
14370 # if S_ISBLK (S_IFDIR)
14371 You lose.
14372 # endif
14373 #endif
14374
14375 #if defined S_ISBLK && defined S_IFCHR
14376 # if S_ISBLK (S_IFCHR)
14377 You lose.
14378 # endif
14379 #endif
14380
14381 #if defined S_ISLNK && defined S_IFREG
14382 # if S_ISLNK (S_IFREG)
14383 You lose.
14384 # endif
14385 #endif
14386
14387 #if defined S_ISSOCK && defined S_IFREG
14388 # if S_ISSOCK (S_IFREG)
14389 You lose.
14390 # endif
14391 #endif
14392
14393 _ACEOF
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395   $EGREP "You lose" >/dev/null 2>&1; then
14396   ac_cv_header_stat_broken=yes
14397 else
14398   ac_cv_header_stat_broken=no
14399 fi
14400 rm -f conftest*
14401
14402 fi
14403 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14404 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14405 if test $ac_cv_header_stat_broken = yes; then
14406
14407 cat >>confdefs.h <<\_ACEOF
14408 #define STAT_MACROS_BROKEN 1
14409 _ACEOF
14410
14411 fi
14412
14413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 #include <sys/types.h>
14425 #include <sys/wait.h>
14426 #ifndef WEXITSTATUS
14427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14428 #endif
14429 #ifndef WIFEXITED
14430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14431 #endif
14432
14433 int
14434 main ()
14435 {
14436   int s;
14437   wait (&s);
14438   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450   (eval "$ac_compile") 2>conftest.er1
14451   ac_status=$?
14452   grep -v '^ *+' conftest.er1 >conftest.err
14453   rm -f conftest.er1
14454   cat conftest.err >&5
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } &&
14457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14458   { (case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_try") 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; } &&
14467          { ac_try='test -s conftest.$ac_objext'
14468   { (case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_try") 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; }; then
14477   ac_cv_header_sys_wait_h=yes
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482         ac_cv_header_sys_wait_h=no
14483 fi
14484
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 fi
14487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14489 if test $ac_cv_header_sys_wait_h = yes; then
14490
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_SYS_WAIT_H 1
14493 _ACEOF
14494
14495 fi
14496
14497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14499 if test "${ac_cv_header_time+set}" = set; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502   cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h.  */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h.  */
14508 #include <sys/types.h>
14509 #include <sys/time.h>
14510 #include <time.h>
14511
14512 int
14513 main ()
14514 {
14515 if ((struct tm *) 0)
14516 return 0;
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 rm -f conftest.$ac_objext
14522 if { (ac_try="$ac_compile"
14523 case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_compile") 2>conftest.er1
14529   ac_status=$?
14530   grep -v '^ *+' conftest.er1 >conftest.err
14531   rm -f conftest.er1
14532   cat conftest.err >&5
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } &&
14535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14536   { (case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541   (eval "$ac_try") 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; } &&
14545          { ac_try='test -s conftest.$ac_objext'
14546   { (case "(($ac_try" in
14547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548   *) ac_try_echo=$ac_try;;
14549 esac
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551   (eval "$ac_try") 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   ac_cv_header_time=yes
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560         ac_cv_header_time=no
14561 fi
14562
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14567 if test $ac_cv_header_time = yes; then
14568
14569 cat >>confdefs.h <<\_ACEOF
14570 #define TIME_WITH_SYS_TIME 1
14571 _ACEOF
14572
14573 fi
14574
14575
14576
14577
14578
14579
14580
14581
14582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14583 do
14584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14589   echo $ECHO_N "(cached) $ECHO_C" >&6
14590 fi
14591 ac_res=`eval echo '${'$as_ac_Header'}'`
14592                { echo "$as_me:$LINENO: result: $ac_res" >&5
14593 echo "${ECHO_T}$ac_res" >&6; }
14594 else
14595   # Is the header compilable?
14596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 $ac_includes_default
14605 #include <$ac_header>
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (ac_try="$ac_compile"
14609 case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_compile") 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } &&
14621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622   { (case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627   (eval "$ac_try") 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; } &&
14631          { ac_try='test -s conftest.$ac_objext'
14632   { (case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637   (eval "$ac_try") 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_header_compiler=yes
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646         ac_header_compiler=no
14647 fi
14648
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14651 echo "${ECHO_T}$ac_header_compiler" >&6; }
14652
14653 # Is the header present?
14654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14656 cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h.  */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h.  */
14662 #include <$ac_header>
14663 _ACEOF
14664 if { (ac_try="$ac_cpp conftest.$ac_ext"
14665 case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } >/dev/null; then
14677   if test -s conftest.err; then
14678     ac_cpp_err=$ac_c_preproc_warn_flag
14679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14680   else
14681     ac_cpp_err=
14682   fi
14683 else
14684   ac_cpp_err=yes
14685 fi
14686 if test -z "$ac_cpp_err"; then
14687   ac_header_preproc=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692   ac_header_preproc=no
14693 fi
14694
14695 rm -f conftest.err conftest.$ac_ext
14696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698
14699 # So?  What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701   yes:no: )
14702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14706     ac_header_preproc=yes
14707     ;;
14708   no:yes:* )
14709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14721     ( cat <<\_ASBOX
14722 ## ------------------------------------ ##
14723 ## Report this to http://llvm.org/bugs/ ##
14724 ## ------------------------------------ ##
14725 _ASBOX
14726      ) | sed "s/^/$as_me: WARNING:     /" >&2
14727     ;;
14728 esac
14729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14732   echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734   eval "$as_ac_Header=\$ac_header_preproc"
14735 fi
14736 ac_res=`eval echo '${'$as_ac_Header'}'`
14737                { echo "$as_me:$LINENO: result: $ac_res" >&5
14738 echo "${ECHO_T}$ac_res" >&6; }
14739
14740 fi
14741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747
14748 done
14749
14750
14751
14752
14753
14754
14755
14756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14757 do
14758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14763   echo $ECHO_N "(cached) $ECHO_C" >&6
14764 fi
14765 ac_res=`eval echo '${'$as_ac_Header'}'`
14766                { echo "$as_me:$LINENO: result: $ac_res" >&5
14767 echo "${ECHO_T}$ac_res" >&6; }
14768 else
14769   # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 $ac_includes_default
14779 #include <$ac_header>
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_compile") 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796   { (case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_try") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811   (eval "$ac_try") 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_header_compiler=yes
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820         ac_header_compiler=no
14821 fi
14822
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825 echo "${ECHO_T}$ac_header_compiler" >&6; }
14826
14827 # Is the header present?
14828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836 #include <$ac_header>
14837 _ACEOF
14838 if { (ac_try="$ac_cpp conftest.$ac_ext"
14839 case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } >/dev/null; then
14851   if test -s conftest.err; then
14852     ac_cpp_err=$ac_c_preproc_warn_flag
14853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14854   else
14855     ac_cpp_err=
14856   fi
14857 else
14858   ac_cpp_err=yes
14859 fi
14860 if test -z "$ac_cpp_err"; then
14861   ac_header_preproc=yes
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866   ac_header_preproc=no
14867 fi
14868
14869 rm -f conftest.err conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 echo "${ECHO_T}$ac_header_preproc" >&6; }
14872
14873 # So?  What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875   yes:no: )
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14880     ac_header_preproc=yes
14881     ;;
14882   no:yes:* )
14883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14895     ( cat <<\_ASBOX
14896 ## ------------------------------------ ##
14897 ## Report this to http://llvm.org/bugs/ ##
14898 ## ------------------------------------ ##
14899 _ASBOX
14900      ) | sed "s/^/$as_me: WARNING:     /" >&2
14901     ;;
14902 esac
14903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   eval "$as_ac_Header=\$ac_header_preproc"
14909 fi
14910 ac_res=`eval echo '${'$as_ac_Header'}'`
14911                { echo "$as_me:$LINENO: result: $ac_res" >&5
14912 echo "${ECHO_T}$ac_res" >&6; }
14913
14914 fi
14915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14916   cat >>confdefs.h <<_ACEOF
14917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14918 _ACEOF
14919
14920 fi
14921
14922 done
14923
14924
14925
14926 for ac_header in utime.h windows.h
14927 do
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 fi
14935 ac_res=`eval echo '${'$as_ac_Header'}'`
14936                { echo "$as_me:$LINENO: result: $ac_res" >&5
14937 echo "${ECHO_T}$ac_res" >&6; }
14938 else
14939   # Is the header compilable?
14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948 $ac_includes_default
14949 #include <$ac_header>
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (ac_try="$ac_compile"
14953 case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_compile") 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966   { (case "(($ac_try" in
14967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968   *) ac_try_echo=$ac_try;;
14969 esac
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971   (eval "$ac_try") 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; } &&
14975          { ac_try='test -s conftest.$ac_objext'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_header_compiler=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990         ac_header_compiler=no
14991 fi
14992
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6; }
14996
14997 # Is the header present?
14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006 #include <$ac_header>
15007 _ACEOF
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15015   ac_status=$?
15016   grep -v '^ *+' conftest.er1 >conftest.err
15017   rm -f conftest.er1
15018   cat conftest.err >&5
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } >/dev/null; then
15021   if test -s conftest.err; then
15022     ac_cpp_err=$ac_c_preproc_warn_flag
15023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15024   else
15025     ac_cpp_err=
15026   fi
15027 else
15028   ac_cpp_err=yes
15029 fi
15030 if test -z "$ac_cpp_err"; then
15031   ac_header_preproc=yes
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036   ac_header_preproc=no
15037 fi
15038
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15042
15043 # So?  What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15045   yes:no: )
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050     ac_header_preproc=yes
15051     ;;
15052   no:yes:* )
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15065     ( cat <<\_ASBOX
15066 ## ------------------------------------ ##
15067 ## Report this to http://llvm.org/bugs/ ##
15068 ## ------------------------------------ ##
15069 _ASBOX
15070      ) | sed "s/^/$as_me: WARNING:     /" >&2
15071     ;;
15072 esac
15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078   eval "$as_ac_Header=\$ac_header_preproc"
15079 fi
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081                { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083
15084 fi
15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15086   cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15088 _ACEOF
15089
15090 fi
15091
15092 done
15093
15094
15095
15096
15097
15098
15099 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15100 do
15101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106   echo $ECHO_N "(cached) $ECHO_C" >&6
15107 fi
15108 ac_res=`eval echo '${'$as_ac_Header'}'`
15109                { echo "$as_me:$LINENO: result: $ac_res" >&5
15110 echo "${ECHO_T}$ac_res" >&6; }
15111 else
15112   # Is the header compilable?
15113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 $ac_includes_default
15122 #include <$ac_header>
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_compile") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } &&
15138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139   { (case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_try") 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); }; } &&
15148          { ac_try='test -s conftest.$ac_objext'
15149   { (case "(($ac_try" in
15150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151   *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154   (eval "$ac_try") 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_header_compiler=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         ac_header_compiler=no
15164 fi
15165
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15168 echo "${ECHO_T}$ac_header_compiler" >&6; }
15169
15170 # Is the header present?
15171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15173 cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 #include <$ac_header>
15180 _ACEOF
15181 if { (ac_try="$ac_cpp conftest.$ac_ext"
15182 case "(($ac_try" in
15183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184   *) ac_try_echo=$ac_try;;
15185 esac
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } >/dev/null; then
15194   if test -s conftest.err; then
15195     ac_cpp_err=$ac_c_preproc_warn_flag
15196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197   else
15198     ac_cpp_err=
15199   fi
15200 else
15201   ac_cpp_err=yes
15202 fi
15203 if test -z "$ac_cpp_err"; then
15204   ac_header_preproc=yes
15205 else
15206   echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209   ac_header_preproc=no
15210 fi
15211
15212 rm -f conftest.err conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15214 echo "${ECHO_T}$ac_header_preproc" >&6; }
15215
15216 # So?  What about this header?
15217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15218   yes:no: )
15219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15223     ac_header_preproc=yes
15224     ;;
15225   no:yes:* )
15226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15238     ( cat <<\_ASBOX
15239 ## ------------------------------------ ##
15240 ## Report this to http://llvm.org/bugs/ ##
15241 ## ------------------------------------ ##
15242 _ASBOX
15243      ) | sed "s/^/$as_me: WARNING:     /" >&2
15244     ;;
15245 esac
15246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15249   echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251   eval "$as_ac_Header=\$ac_header_preproc"
15252 fi
15253 ac_res=`eval echo '${'$as_ac_Header'}'`
15254                { echo "$as_me:$LINENO: result: $ac_res" >&5
15255 echo "${ECHO_T}$ac_res" >&6; }
15256
15257 fi
15258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259   cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15261 _ACEOF
15262
15263 fi
15264
15265 done
15266
15267
15268
15269
15270
15271 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15272 do
15273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 fi
15280 ac_res=`eval echo '${'$as_ac_Header'}'`
15281                { echo "$as_me:$LINENO: result: $ac_res" >&5
15282 echo "${ECHO_T}$ac_res" >&6; }
15283 else
15284   # Is the header compilable?
15285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 $ac_includes_default
15294 #include <$ac_header>
15295 _ACEOF
15296 rm -f conftest.$ac_objext
15297 if { (ac_try="$ac_compile"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_compile") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } &&
15310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15311   { (case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316   (eval "$ac_try") 2>&5
15317   ac_status=$?
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); }; } &&
15320          { ac_try='test -s conftest.$ac_objext'
15321   { (case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_try") 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_header_compiler=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335         ac_header_compiler=no
15336 fi
15337
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340 echo "${ECHO_T}$ac_header_compiler" >&6; }
15341
15342 # Is the header present?
15343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h.  */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h.  */
15351 #include <$ac_header>
15352 _ACEOF
15353 if { (ac_try="$ac_cpp conftest.$ac_ext"
15354 case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } >/dev/null; then
15366   if test -s conftest.err; then
15367     ac_cpp_err=$ac_c_preproc_warn_flag
15368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15369   else
15370     ac_cpp_err=
15371   fi
15372 else
15373   ac_cpp_err=yes
15374 fi
15375 if test -z "$ac_cpp_err"; then
15376   ac_header_preproc=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381   ac_header_preproc=no
15382 fi
15383
15384 rm -f conftest.err conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15386 echo "${ECHO_T}$ac_header_preproc" >&6; }
15387
15388 # So?  What about this header?
15389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15390   yes:no: )
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15395     ac_header_preproc=yes
15396     ;;
15397   no:yes:* )
15398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15410     ( cat <<\_ASBOX
15411 ## ------------------------------------ ##
15412 ## Report this to http://llvm.org/bugs/ ##
15413 ## ------------------------------------ ##
15414 _ASBOX
15415      ) | sed "s/^/$as_me: WARNING:     /" >&2
15416     ;;
15417 esac
15418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   eval "$as_ac_Header=\$ac_header_preproc"
15424 fi
15425 ac_res=`eval echo '${'$as_ac_Header'}'`
15426                { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15428
15429 fi
15430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15431   cat >>confdefs.h <<_ACEOF
15432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15433 _ACEOF
15434
15435 fi
15436
15437 done
15438
15439
15440 for ac_header in valgrind/valgrind.h
15441 do
15442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 fi
15449 ac_res=`eval echo '${'$as_ac_Header'}'`
15450                { echo "$as_me:$LINENO: result: $ac_res" >&5
15451 echo "${ECHO_T}$ac_res" >&6; }
15452 else
15453   # Is the header compilable?
15454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462 $ac_includes_default
15463 #include <$ac_header>
15464 _ACEOF
15465 rm -f conftest.$ac_objext
15466 if { (ac_try="$ac_compile"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_compile") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } &&
15479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15480   { (case "(($ac_try" in
15481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482   *) ac_try_echo=$ac_try;;
15483 esac
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485   (eval "$ac_try") 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; } &&
15489          { ac_try='test -s conftest.$ac_objext'
15490   { (case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_try") 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; }; then
15499   ac_header_compiler=yes
15500 else
15501   echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504         ac_header_compiler=no
15505 fi
15506
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6; }
15510
15511 # Is the header present?
15512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 #include <$ac_header>
15521 _ACEOF
15522 if { (ac_try="$ac_cpp conftest.$ac_ext"
15523 case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } >/dev/null; then
15535   if test -s conftest.err; then
15536     ac_cpp_err=$ac_c_preproc_warn_flag
15537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15538   else
15539     ac_cpp_err=
15540   fi
15541 else
15542   ac_cpp_err=yes
15543 fi
15544 if test -z "$ac_cpp_err"; then
15545   ac_header_preproc=yes
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550   ac_header_preproc=no
15551 fi
15552
15553 rm -f conftest.err conftest.$ac_ext
15554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15555 echo "${ECHO_T}$ac_header_preproc" >&6; }
15556
15557 # So?  What about this header?
15558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15559   yes:no: )
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15564     ac_header_preproc=yes
15565     ;;
15566   no:yes:* )
15567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15569     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15570 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15574 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15579     ( cat <<\_ASBOX
15580 ## ------------------------------------ ##
15581 ## Report this to http://llvm.org/bugs/ ##
15582 ## ------------------------------------ ##
15583 _ASBOX
15584      ) | sed "s/^/$as_me: WARNING:     /" >&2
15585     ;;
15586 esac
15587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590   echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592   eval "$as_ac_Header=\$ac_header_preproc"
15593 fi
15594 ac_res=`eval echo '${'$as_ac_Header'}'`
15595                { echo "$as_me:$LINENO: result: $ac_res" >&5
15596 echo "${ECHO_T}$ac_res" >&6; }
15597
15598 fi
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600   cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 _ACEOF
15603
15604 fi
15605
15606 done
15607
15608
15609 for ac_header in fenv.h
15610 do
15611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15616   echo $ECHO_N "(cached) $ECHO_C" >&6
15617 fi
15618 ac_res=`eval echo '${'$as_ac_Header'}'`
15619                { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15621 else
15622   # Is the header compilable?
15623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631 $ac_includes_default
15632 #include <$ac_header>
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (ac_try="$ac_compile"
15636 case "(($ac_try" in
15637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638   *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641   (eval "$ac_compile") 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649   { (case "(($ac_try" in
15650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651   *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654   (eval "$ac_try") 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; } &&
15658          { ac_try='test -s conftest.$ac_objext'
15659   { (case "(($ac_try" in
15660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661   *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664   (eval "$ac_try") 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; }; then
15668   ac_header_compiler=yes
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673         ac_header_compiler=no
15674 fi
15675
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6; }
15679
15680 # Is the header present?
15681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 #include <$ac_header>
15690 _ACEOF
15691 if { (ac_try="$ac_cpp conftest.$ac_ext"
15692 case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15698   ac_status=$?
15699   grep -v '^ *+' conftest.er1 >conftest.err
15700   rm -f conftest.er1
15701   cat conftest.err >&5
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); } >/dev/null; then
15704   if test -s conftest.err; then
15705     ac_cpp_err=$ac_c_preproc_warn_flag
15706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15707   else
15708     ac_cpp_err=
15709   fi
15710 else
15711   ac_cpp_err=yes
15712 fi
15713 if test -z "$ac_cpp_err"; then
15714   ac_header_preproc=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719   ac_header_preproc=no
15720 fi
15721
15722 rm -f conftest.err conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15724 echo "${ECHO_T}$ac_header_preproc" >&6; }
15725
15726 # So?  What about this header?
15727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15728   yes:no: )
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15733     ac_header_preproc=yes
15734     ;;
15735   no:yes:* )
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15748     ( cat <<\_ASBOX
15749 ## ------------------------------------ ##
15750 ## Report this to http://llvm.org/bugs/ ##
15751 ## ------------------------------------ ##
15752 _ASBOX
15753      ) | sed "s/^/$as_me: WARNING:     /" >&2
15754     ;;
15755 esac
15756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   eval "$as_ac_Header=\$ac_header_preproc"
15762 fi
15763 ac_res=`eval echo '${'$as_ac_Header'}'`
15764                { echo "$as_me:$LINENO: result: $ac_res" >&5
15765 echo "${ECHO_T}$ac_res" >&6; }
15766
15767 fi
15768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769   cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15771 _ACEOF
15772
15773 fi
15774
15775 done
15776
15777 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15778
15779 for ac_header in pthread.h
15780 do
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 fi
15788 ac_res=`eval echo '${'$as_ac_Header'}'`
15789                { echo "$as_me:$LINENO: result: $ac_res" >&5
15790 echo "${ECHO_T}$ac_res" >&6; }
15791 else
15792   # Is the header compilable?
15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801 $ac_includes_default
15802 #include <$ac_header>
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_compile") 2>conftest.er1
15812   ac_status=$?
15813   grep -v '^ *+' conftest.er1 >conftest.err
15814   rm -f conftest.er1
15815   cat conftest.err >&5
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819   { (case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_try") 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; } &&
15828          { ac_try='test -s conftest.$ac_objext'
15829   { (case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_try") 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; }; then
15838   ac_header_compiler=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         ac_header_compiler=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 #include <$ac_header>
15860 _ACEOF
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } >/dev/null; then
15874   if test -s conftest.err; then
15875     ac_cpp_err=$ac_c_preproc_warn_flag
15876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15877   else
15878     ac_cpp_err=
15879   fi
15880 else
15881   ac_cpp_err=yes
15882 fi
15883 if test -z "$ac_cpp_err"; then
15884   ac_header_preproc=yes
15885 else
15886   echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15888
15889   ac_header_preproc=no
15890 fi
15891
15892 rm -f conftest.err conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894 echo "${ECHO_T}$ac_header_preproc" >&6; }
15895
15896 # So?  What about this header?
15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15898   yes:no: )
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903     ac_header_preproc=yes
15904     ;;
15905   no:yes:* )
15906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15918     ( cat <<\_ASBOX
15919 ## ------------------------------------ ##
15920 ## Report this to http://llvm.org/bugs/ ##
15921 ## ------------------------------------ ##
15922 _ASBOX
15923      ) | sed "s/^/$as_me: WARNING:     /" >&2
15924     ;;
15925 esac
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   eval "$as_ac_Header=\$ac_header_preproc"
15932 fi
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934                { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15936
15937 fi
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939   cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15941 _ACEOF
15942  HAVE_PTHREAD=1
15943
15944 else
15945   HAVE_PTHREAD=0
15946
15947 fi
15948
15949 done
15950
15951 else
15952   HAVE_PTHREAD=0
15953
15954 fi
15955
15956 if test "$llvm_cv_enable_libffi" = "yes" ; then
15957
15958
15959 for ac_header in ffi.h ffi/ffi.h
15960 do
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 fi
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969                { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15971 else
15972   # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 $ac_includes_default
15982 #include <$ac_header>
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_compile") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999   { (case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_try") 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest.$ac_objext'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_header_compiler=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023         ac_header_compiler=no
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 #include <$ac_header>
16040 _ACEOF
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } >/dev/null; then
16054   if test -s conftest.err; then
16055     ac_cpp_err=$ac_c_preproc_warn_flag
16056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16057   else
16058     ac_cpp_err=
16059   fi
16060 else
16061   ac_cpp_err=yes
16062 fi
16063 if test -z "$ac_cpp_err"; then
16064   ac_header_preproc=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069   ac_header_preproc=no
16070 fi
16071
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16075
16076 # So?  What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16078   yes:no: )
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083     ac_header_preproc=yes
16084     ;;
16085   no:yes:* )
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16098     ( cat <<\_ASBOX
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16102 _ASBOX
16103      ) | sed "s/^/$as_me: WARNING:     /" >&2
16104     ;;
16105 esac
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   eval "$as_ac_Header=\$ac_header_preproc"
16112 fi
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114                { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16116
16117 fi
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119   cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 _ACEOF
16122
16123 fi
16124
16125 done
16126
16127 fi
16128
16129
16130 for ac_header in CrashReporterClient.h
16131 do
16132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16134   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 fi
16139 ac_res=`eval echo '${'$as_ac_Header'}'`
16140                { echo "$as_me:$LINENO: result: $ac_res" >&5
16141 echo "${ECHO_T}$ac_res" >&6; }
16142 else
16143   # Is the header compilable?
16144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152 $ac_includes_default
16153 #include <$ac_header>
16154 _ACEOF
16155 rm -f conftest.$ac_objext
16156 if { (ac_try="$ac_compile"
16157 case "(($ac_try" in
16158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159   *) ac_try_echo=$ac_try;;
16160 esac
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162   (eval "$ac_compile") 2>conftest.er1
16163   ac_status=$?
16164   grep -v '^ *+' conftest.er1 >conftest.err
16165   rm -f conftest.er1
16166   cat conftest.err >&5
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); } &&
16169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16170   { (case "(($ac_try" in
16171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172   *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175   (eval "$ac_try") 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; } &&
16179          { ac_try='test -s conftest.$ac_objext'
16180   { (case "(($ac_try" in
16181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182   *) ac_try_echo=$ac_try;;
16183 esac
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185   (eval "$ac_try") 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; }; then
16189   ac_header_compiler=yes
16190 else
16191   echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194         ac_header_compiler=no
16195 fi
16196
16197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199 echo "${ECHO_T}$ac_header_compiler" >&6; }
16200
16201 # Is the header present?
16202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 #include <$ac_header>
16211 _ACEOF
16212 if { (ac_try="$ac_cpp conftest.$ac_ext"
16213 case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16219   ac_status=$?
16220   grep -v '^ *+' conftest.er1 >conftest.err
16221   rm -f conftest.er1
16222   cat conftest.err >&5
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } >/dev/null; then
16225   if test -s conftest.err; then
16226     ac_cpp_err=$ac_c_preproc_warn_flag
16227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16228   else
16229     ac_cpp_err=
16230   fi
16231 else
16232   ac_cpp_err=yes
16233 fi
16234 if test -z "$ac_cpp_err"; then
16235   ac_header_preproc=yes
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240   ac_header_preproc=no
16241 fi
16242
16243 rm -f conftest.err conftest.$ac_ext
16244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245 echo "${ECHO_T}$ac_header_preproc" >&6; }
16246
16247 # So?  What about this header?
16248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249   yes:no: )
16250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254     ac_header_preproc=yes
16255     ;;
16256   no:yes:* )
16257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269     ( cat <<\_ASBOX
16270 ## ------------------------------------ ##
16271 ## Report this to http://llvm.org/bugs/ ##
16272 ## ------------------------------------ ##
16273 _ASBOX
16274      ) | sed "s/^/$as_me: WARNING:     /" >&2
16275     ;;
16276 esac
16277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   eval "$as_ac_Header=\$ac_header_preproc"
16283 fi
16284 ac_res=`eval echo '${'$as_ac_Header'}'`
16285                { echo "$as_me:$LINENO: result: $ac_res" >&5
16286 echo "${ECHO_T}$ac_res" >&6; }
16287
16288 fi
16289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16290   cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16292 _ACEOF
16293
16294 fi
16295
16296 done
16297
16298
16299 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16300 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307 extern const char *__crashreporter_info__;
16308       int main() {
16309         __crashreporter_info__ = "test";
16310         return 0;
16311       }
16312
16313 _ACEOF
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_link") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } &&
16328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329   { (case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_try") 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest$ac_exeext'
16339   { (case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_try") 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   { echo "$as_me:$LINENO: result: yes" >&5
16349 echo "${ECHO_T}yes" >&6; }
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_CRASHREPORTER_INFO 1
16353 _ACEOF
16354
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359         { echo "$as_me:$LINENO: result: no" >&5
16360 echo "${ECHO_T}no" >&6; }
16361
16362 cat >>confdefs.h <<\_ACEOF
16363 #define HAVE_CRASHREPORTER_INFO 0
16364 _ACEOF
16365
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext \
16369       conftest$ac_exeext conftest.$ac_ext
16370
16371
16372
16373
16374   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16375 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16376 if test "${ac_cv_huge_val_sanity+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379
16380     ac_ext=cpp
16381 ac_cpp='$CXXCPP $CPPFLAGS'
16382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16385
16386     ac_save_CXXFLAGS=$CXXFLAGS
16387     CXXFLAGS="$CXXFLAGS -pedantic"
16388     if test "$cross_compiling" = yes; then
16389   ac_cv_huge_val_sanity=yes
16390 else
16391   cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 #include <math.h>
16398 int
16399 main ()
16400 {
16401 double x = HUGE_VAL; return x != x;
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_link") 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; }; then
16426   ac_cv_huge_val_sanity=yes
16427 else
16428   echo "$as_me: program exited with status $ac_status" >&5
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432 ( exit $ac_status )
16433 ac_cv_huge_val_sanity=no
16434 fi
16435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16436 fi
16437
16438
16439     CXXFLAGS=$ac_save_CXXFLAGS
16440     ac_ext=c
16441 ac_cpp='$CPP $CPPFLAGS'
16442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16445
16446
16447 fi
16448 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16449 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16450   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16451
16452
16453 { echo "$as_me:$LINENO: checking for pid_t" >&5
16454 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16455 if test "${ac_cv_type_pid_t+set}" = set; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h.  */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h.  */
16464 $ac_includes_default
16465 typedef pid_t ac__type_new_;
16466 int
16467 main ()
16468 {
16469 if ((ac__type_new_ *) 0)
16470   return 0;
16471 if (sizeof (ac__type_new_))
16472   return 0;
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_compile") 2>conftest.er1
16485   ac_status=$?
16486   grep -v '^ *+' conftest.er1 >conftest.err
16487   rm -f conftest.er1
16488   cat conftest.err >&5
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } &&
16491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492   { (case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_try") 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; } &&
16501          { ac_try='test -s conftest.$ac_objext'
16502   { (case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_try") 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; }; then
16511   ac_cv_type_pid_t=yes
16512 else
16513   echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516         ac_cv_type_pid_t=no
16517 fi
16518
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16523 if test $ac_cv_type_pid_t = yes; then
16524   :
16525 else
16526
16527 cat >>confdefs.h <<_ACEOF
16528 #define pid_t int
16529 _ACEOF
16530
16531 fi
16532
16533 { echo "$as_me:$LINENO: checking for size_t" >&5
16534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16535 if test "${ac_cv_type_size_t+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544 $ac_includes_default
16545 typedef size_t ac__type_new_;
16546 int
16547 main ()
16548 {
16549 if ((ac__type_new_ *) 0)
16550   return 0;
16551 if (sizeof (ac__type_new_))
16552   return 0;
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_compile") 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } &&
16571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16572   { (case "(($ac_try" in
16573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574   *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577   (eval "$ac_try") 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; } &&
16581          { ac_try='test -s conftest.$ac_objext'
16582   { (case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_try") 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_cv_type_size_t=yes
16592 else
16593   echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596         ac_cv_type_size_t=no
16597 fi
16598
16599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600 fi
16601 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16602 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16603 if test $ac_cv_type_size_t = yes; then
16604   :
16605 else
16606
16607 cat >>confdefs.h <<_ACEOF
16608 #define size_t unsigned int
16609 _ACEOF
16610
16611 fi
16612
16613
16614 cat >>confdefs.h <<_ACEOF
16615 #define RETSIGTYPE void
16616 _ACEOF
16617
16618 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16619 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16620 if test "${ac_cv_struct_tm+set}" = set; then
16621   echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623   cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629 #include <sys/types.h>
16630 #include <time.h>
16631
16632 int
16633 main ()
16634 {
16635 struct tm *tp; tp->tm_sec;
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext
16641 if { (ac_try="$ac_compile"
16642 case "(($ac_try" in
16643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644   *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647   (eval "$ac_compile") 2>conftest.er1
16648   ac_status=$?
16649   grep -v '^ *+' conftest.er1 >conftest.err
16650   rm -f conftest.er1
16651   cat conftest.err >&5
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); } &&
16654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16655   { (case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_try") 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); }; } &&
16664          { ac_try='test -s conftest.$ac_objext'
16665   { (case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_try") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   ac_cv_struct_tm=time.h
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679         ac_cv_struct_tm=sys/time.h
16680 fi
16681
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 fi
16684 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16685 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16686 if test $ac_cv_struct_tm = sys/time.h; then
16687
16688 cat >>confdefs.h <<\_ACEOF
16689 #define TM_IN_SYS_TIME 1
16690 _ACEOF
16691
16692 fi
16693
16694 { echo "$as_me:$LINENO: checking for int64_t" >&5
16695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16696 if test "${ac_cv_type_int64_t+set}" = set; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699   cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 $ac_includes_default
16706 typedef int64_t ac__type_new_;
16707 int
16708 main ()
16709 {
16710 if ((ac__type_new_ *) 0)
16711   return 0;
16712 if (sizeof (ac__type_new_))
16713   return 0;
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_compile") 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } &&
16732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733   { (case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_try") 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; } &&
16742          { ac_try='test -s conftest.$ac_objext'
16743   { (case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_try") 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; }; then
16752   ac_cv_type_int64_t=yes
16753 else
16754   echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757         ac_cv_type_int64_t=no
16758 fi
16759
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 fi
16762 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16763 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16764 if test $ac_cv_type_int64_t = yes; then
16765
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_INT64_T 1
16768 _ACEOF
16769
16770
16771 else
16772   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16773 echo "$as_me: error: Type int64_t required but not found" >&2;}
16774    { (exit 1); exit 1; }; }
16775 fi
16776
16777 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16778 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16779 if test "${ac_cv_type_uint64_t+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 $ac_includes_default
16789 typedef uint64_t ac__type_new_;
16790 int
16791 main ()
16792 {
16793 if ((ac__type_new_ *) 0)
16794   return 0;
16795 if (sizeof (ac__type_new_))
16796   return 0;
16797   ;
16798   return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_compile") 2>conftest.er1
16809   ac_status=$?
16810   grep -v '^ *+' conftest.er1 >conftest.err
16811   rm -f conftest.er1
16812   cat conftest.err >&5
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } &&
16815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816   { (case "(($ac_try" in
16817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818   *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821   (eval "$ac_try") 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; } &&
16825          { ac_try='test -s conftest.$ac_objext'
16826   { (case "(($ac_try" in
16827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828   *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831   (eval "$ac_try") 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; }; then
16835   ac_cv_type_uint64_t=yes
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840         ac_cv_type_uint64_t=no
16841 fi
16842
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 fi
16845 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16846 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16847 if test $ac_cv_type_uint64_t = yes; then
16848
16849 cat >>confdefs.h <<_ACEOF
16850 #define HAVE_UINT64_T 1
16851 _ACEOF
16852
16853
16854 else
16855   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16856 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16857 if test "${ac_cv_type_u_int64_t+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866 $ac_includes_default
16867 typedef u_int64_t ac__type_new_;
16868 int
16869 main ()
16870 {
16871 if ((ac__type_new_ *) 0)
16872   return 0;
16873 if (sizeof (ac__type_new_))
16874   return 0;
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_compile") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest.$ac_objext'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   ac_cv_type_u_int64_t=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         ac_cv_type_u_int64_t=no
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 fi
16923 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16924 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16925 if test $ac_cv_type_u_int64_t = yes; then
16926
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_U_INT64_T 1
16929 _ACEOF
16930
16931
16932 else
16933   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16934 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16935    { (exit 1); exit 1; }; }
16936 fi
16937
16938 fi
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16950 do
16951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955   echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957   cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16965 #define $ac_func innocuous_$ac_func
16966
16967 /* System header to define __stub macros and hopefully few prototypes,
16968     which can conflict with char $ac_func (); below.
16969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970     <limits.h> exists even on freestanding compilers.  */
16971
16972 #ifdef __STDC__
16973 # include <limits.h>
16974 #else
16975 # include <assert.h>
16976 #endif
16977
16978 #undef $ac_func
16979
16980 /* Override any GCC internal prototype to avoid an error.
16981    Use char because int might match the return type of a GCC
16982    builtin and then its argument prototype would still apply.  */
16983 #ifdef __cplusplus
16984 extern "C"
16985 #endif
16986 char $ac_func ();
16987 /* The GNU C library defines this for functions which it implements
16988     to always fail with ENOSYS.  Some functions are actually named
16989     something starting with __ and the normal name is an alias.  */
16990 #if defined __stub_$ac_func || defined __stub___$ac_func
16991 choke me
16992 #endif
16993
16994 int
16995 main ()
16996 {
16997 return $ac_func ();
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_link") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } &&
17016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017   { (case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_try") 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; } &&
17026          { ac_try='test -s conftest$ac_exeext'
17027   { (case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_try") 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   eval "$as_ac_var=yes"
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041         eval "$as_ac_var=no"
17042 fi
17043
17044 rm -f core conftest.err conftest.$ac_objext \
17045       conftest$ac_exeext conftest.$ac_ext
17046 fi
17047 ac_res=`eval echo '${'$as_ac_var'}'`
17048                { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050 if test `eval echo '${'$as_ac_var'}'` = yes; then
17051   cat >>confdefs.h <<_ACEOF
17052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17053 _ACEOF
17054
17055 fi
17056 done
17057
17058
17059
17060
17061
17062 for ac_func in powf fmodf strtof round
17063 do
17064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17078 #define $ac_func innocuous_$ac_func
17079
17080 /* System header to define __stub macros and hopefully few prototypes,
17081     which can conflict with char $ac_func (); below.
17082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083     <limits.h> exists even on freestanding compilers.  */
17084
17085 #ifdef __STDC__
17086 # include <limits.h>
17087 #else
17088 # include <assert.h>
17089 #endif
17090
17091 #undef $ac_func
17092
17093 /* Override any GCC internal prototype to avoid an error.
17094    Use char because int might match the return type of a GCC
17095    builtin and then its argument prototype would still apply.  */
17096 #ifdef __cplusplus
17097 extern "C"
17098 #endif
17099 char $ac_func ();
17100 /* The GNU C library defines this for functions which it implements
17101     to always fail with ENOSYS.  Some functions are actually named
17102     something starting with __ and the normal name is an alias.  */
17103 #if defined __stub_$ac_func || defined __stub___$ac_func
17104 choke me
17105 #endif
17106
17107 int
17108 main ()
17109 {
17110 return $ac_func ();
17111   ;
17112   return 0;
17113 }
17114 _ACEOF
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (ac_try="$ac_link"
17117 case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_link") 2>conftest.er1
17123   ac_status=$?
17124   grep -v '^ *+' conftest.er1 >conftest.err
17125   rm -f conftest.er1
17126   cat conftest.err >&5
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } &&
17129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17130   { (case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135   (eval "$ac_try") 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; } &&
17139          { ac_try='test -s conftest$ac_exeext'
17140   { (case "(($ac_try" in
17141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142   *) ac_try_echo=$ac_try;;
17143 esac
17144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145   (eval "$ac_try") 2>&5
17146   ac_status=$?
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); }; }; then
17149   eval "$as_ac_var=yes"
17150 else
17151   echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154         eval "$as_ac_var=no"
17155 fi
17156
17157 rm -f core conftest.err conftest.$ac_objext \
17158       conftest$ac_exeext conftest.$ac_ext
17159 fi
17160 ac_res=`eval echo '${'$as_ac_var'}'`
17161                { echo "$as_me:$LINENO: result: $ac_res" >&5
17162 echo "${ECHO_T}$ac_res" >&6; }
17163 if test `eval echo '${'$as_ac_var'}'` = yes; then
17164   cat >>confdefs.h <<_ACEOF
17165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17166 _ACEOF
17167
17168 fi
17169 done
17170
17171
17172
17173
17174
17175
17176 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17177 do
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17192 #define $ac_func innocuous_$ac_func
17193
17194 /* System header to define __stub macros and hopefully few prototypes,
17195     which can conflict with char $ac_func (); below.
17196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197     <limits.h> exists even on freestanding compilers.  */
17198
17199 #ifdef __STDC__
17200 # include <limits.h>
17201 #else
17202 # include <assert.h>
17203 #endif
17204
17205 #undef $ac_func
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208    Use char because int might match the return type of a GCC
17209    builtin and then its argument prototype would still apply.  */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char $ac_func ();
17214 /* The GNU C library defines this for functions which it implements
17215     to always fail with ENOSYS.  Some functions are actually named
17216     something starting with __ and the normal name is an alias.  */
17217 #if defined __stub_$ac_func || defined __stub___$ac_func
17218 choke me
17219 #endif
17220
17221 int
17222 main ()
17223 {
17224 return $ac_func ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_link") 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244   { (case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_try") 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   eval "$as_ac_var=yes"
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         eval "$as_ac_var=no"
17269 fi
17270
17271 rm -f core conftest.err conftest.$ac_objext \
17272       conftest$ac_exeext conftest.$ac_ext
17273 fi
17274 ac_res=`eval echo '${'$as_ac_var'}'`
17275                { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 if test `eval echo '${'$as_ac_var'}'` = yes; then
17278   cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280 _ACEOF
17281
17282 fi
17283 done
17284
17285
17286
17287
17288 for ac_func in isatty mkdtemp mkstemp
17289 do
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17304 #define $ac_func innocuous_$ac_func
17305
17306 /* System header to define __stub macros and hopefully few prototypes,
17307     which can conflict with char $ac_func (); below.
17308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309     <limits.h> exists even on freestanding compilers.  */
17310
17311 #ifdef __STDC__
17312 # include <limits.h>
17313 #else
17314 # include <assert.h>
17315 #endif
17316
17317 #undef $ac_func
17318
17319 /* Override any GCC internal prototype to avoid an error.
17320    Use char because int might match the return type of a GCC
17321    builtin and then its argument prototype would still apply.  */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char $ac_func ();
17326 /* The GNU C library defines this for functions which it implements
17327     to always fail with ENOSYS.  Some functions are actually named
17328     something starting with __ and the normal name is an alias.  */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17330 choke me
17331 #endif
17332
17333 int
17334 main ()
17335 {
17336 return $ac_func ();
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_link") 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356   { (case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_try") 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_try") 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375   eval "$as_ac_var=yes"
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         eval "$as_ac_var=no"
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387                { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390   cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392 _ACEOF
17393
17394 fi
17395 done
17396
17397
17398
17399
17400
17401
17402
17403
17404 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17405 do
17406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17420 #define $ac_func innocuous_$ac_func
17421
17422 /* System header to define __stub macros and hopefully few prototypes,
17423     which can conflict with char $ac_func (); below.
17424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425     <limits.h> exists even on freestanding compilers.  */
17426
17427 #ifdef __STDC__
17428 # include <limits.h>
17429 #else
17430 # include <assert.h>
17431 #endif
17432
17433 #undef $ac_func
17434
17435 /* Override any GCC internal prototype to avoid an error.
17436    Use char because int might match the return type of a GCC
17437    builtin and then its argument prototype would still apply.  */
17438 #ifdef __cplusplus
17439 extern "C"
17440 #endif
17441 char $ac_func ();
17442 /* The GNU C library defines this for functions which it implements
17443     to always fail with ENOSYS.  Some functions are actually named
17444     something starting with __ and the normal name is an alias.  */
17445 #if defined __stub_$ac_func || defined __stub___$ac_func
17446 choke me
17447 #endif
17448
17449 int
17450 main ()
17451 {
17452 return $ac_func ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_link") 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472   { (case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_try") 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   eval "$as_ac_var=yes"
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496         eval "$as_ac_var=no"
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext \
17500       conftest$ac_exeext conftest.$ac_ext
17501 fi
17502 ac_res=`eval echo '${'$as_ac_var'}'`
17503                { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF
17509
17510 fi
17511 done
17512
17513
17514
17515
17516
17517 for ac_func in strerror strerror_r setenv arc4random
17518 do
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17533 #define $ac_func innocuous_$ac_func
17534
17535 /* System header to define __stub macros and hopefully few prototypes,
17536     which can conflict with char $ac_func (); below.
17537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538     <limits.h> exists even on freestanding compilers.  */
17539
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17545
17546 #undef $ac_func
17547
17548 /* Override any GCC internal prototype to avoid an error.
17549    Use char because int might match the return type of a GCC
17550    builtin and then its argument prototype would still apply.  */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char $ac_func ();
17555 /* The GNU C library defines this for functions which it implements
17556     to always fail with ENOSYS.  Some functions are actually named
17557     something starting with __ and the normal name is an alias.  */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17559 choke me
17560 #endif
17561
17562 int
17563 main ()
17564 {
17565 return $ac_func ();
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_link") 2>conftest.er1
17578   ac_status=$?
17579   grep -v '^ *+' conftest.er1 >conftest.err
17580   rm -f conftest.er1
17581   cat conftest.err >&5
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } &&
17584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585   { (case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590   (eval "$ac_try") 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; } &&
17594          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17604   eval "$as_ac_var=yes"
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609         eval "$as_ac_var=no"
17610 fi
17611
17612 rm -f core conftest.err conftest.$ac_objext \
17613       conftest$ac_exeext conftest.$ac_ext
17614 fi
17615 ac_res=`eval echo '${'$as_ac_var'}'`
17616                { echo "$as_me:$LINENO: result: $ac_res" >&5
17617 echo "${ECHO_T}$ac_res" >&6; }
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619   cat >>confdefs.h <<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17621 _ACEOF
17622
17623 fi
17624 done
17625
17626
17627
17628
17629
17630 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17631 do
17632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17646 #define $ac_func innocuous_$ac_func
17647
17648 /* System header to define __stub macros and hopefully few prototypes,
17649     which can conflict with char $ac_func (); below.
17650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17651     <limits.h> exists even on freestanding compilers.  */
17652
17653 #ifdef __STDC__
17654 # include <limits.h>
17655 #else
17656 # include <assert.h>
17657 #endif
17658
17659 #undef $ac_func
17660
17661 /* Override any GCC internal prototype to avoid an error.
17662    Use char because int might match the return type of a GCC
17663    builtin and then its argument prototype would still apply.  */
17664 #ifdef __cplusplus
17665 extern "C"
17666 #endif
17667 char $ac_func ();
17668 /* The GNU C library defines this for functions which it implements
17669     to always fail with ENOSYS.  Some functions are actually named
17670     something starting with __ and the normal name is an alias.  */
17671 #if defined __stub_$ac_func || defined __stub___$ac_func
17672 choke me
17673 #endif
17674
17675 int
17676 main ()
17677 {
17678 return $ac_func ();
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687   *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690   (eval "$ac_link") 2>conftest.er1
17691   ac_status=$?
17692   grep -v '^ *+' conftest.er1 >conftest.err
17693   rm -f conftest.er1
17694   cat conftest.err >&5
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); } &&
17697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698   { (case "(($ac_try" in
17699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700   *) ac_try_echo=$ac_try;;
17701 esac
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703   (eval "$ac_try") 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); }; } &&
17707          { ac_try='test -s conftest$ac_exeext'
17708   { (case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_try") 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; }; then
17717   eval "$as_ac_var=yes"
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722         eval "$as_ac_var=no"
17723 fi
17724
17725 rm -f core conftest.err conftest.$ac_objext \
17726       conftest$ac_exeext conftest.$ac_ext
17727 fi
17728 ac_res=`eval echo '${'$as_ac_var'}'`
17729                { echo "$as_me:$LINENO: result: $ac_res" >&5
17730 echo "${ECHO_T}$ac_res" >&6; }
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732   cat >>confdefs.h <<_ACEOF
17733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17734 _ACEOF
17735
17736 fi
17737 done
17738
17739
17740
17741
17742
17743
17744 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17745 do
17746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750   echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752   cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17760 #define $ac_func innocuous_$ac_func
17761
17762 /* System header to define __stub macros and hopefully few prototypes,
17763     which can conflict with char $ac_func (); below.
17764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765     <limits.h> exists even on freestanding compilers.  */
17766
17767 #ifdef __STDC__
17768 # include <limits.h>
17769 #else
17770 # include <assert.h>
17771 #endif
17772
17773 #undef $ac_func
17774
17775 /* Override any GCC internal prototype to avoid an error.
17776    Use char because int might match the return type of a GCC
17777    builtin and then its argument prototype would still apply.  */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char $ac_func ();
17782 /* The GNU C library defines this for functions which it implements
17783     to always fail with ENOSYS.  Some functions are actually named
17784     something starting with __ and the normal name is an alias.  */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17786 choke me
17787 #endif
17788
17789 int
17790 main ()
17791 {
17792 return $ac_func ();
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (ac_try="$ac_link"
17799 case "(($ac_try" in
17800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801   *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804   (eval "$ac_link") 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812   { (case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_try") 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest$ac_exeext'
17822   { (case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827   (eval "$ac_try") 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; }; then
17831   eval "$as_ac_var=yes"
17832 else
17833   echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836         eval "$as_ac_var=no"
17837 fi
17838
17839 rm -f core conftest.err conftest.$ac_objext \
17840       conftest$ac_exeext conftest.$ac_ext
17841 fi
17842 ac_res=`eval echo '${'$as_ac_var'}'`
17843                { echo "$as_me:$LINENO: result: $ac_res" >&5
17844 echo "${ECHO_T}$ac_res" >&6; }
17845 if test `eval echo '${'$as_ac_var'}'` = yes; then
17846   cat >>confdefs.h <<_ACEOF
17847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17848 _ACEOF
17849
17850 fi
17851 done
17852
17853 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17854 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17855 if test "${llvm_cv_c_printf_a+set}" = set; then
17856   echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858   ac_ext=c
17859 ac_cpp='$CPP $CPPFLAGS'
17860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17863
17864  if test "$cross_compiling" = yes; then
17865   llvmac_cv_c_printf_a=no
17866 else
17867   cat >conftest.$ac_ext <<_ACEOF
17868
17869   /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 #include <stdio.h>
17876 #include <stdlib.h>
17877
17878 int
17879 main ()
17880 {
17881
17882 volatile double A, B;
17883 char Buffer[100];
17884 A = 1;
17885 A /= 10.0;
17886 sprintf(Buffer, "%a", A);
17887 B = atof(Buffer);
17888 if (A != B)
17889   return (1);
17890 if (A != 0x1.999999999999ap-4)
17891   return (1);
17892 return (0);
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest$ac_exeext
17898 if { (ac_try="$ac_link"
17899 case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904   (eval "$ac_link") 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; }; then
17917   llvm_cv_c_printf_a=yes
17918 else
17919   echo "$as_me: program exited with status $ac_status" >&5
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923 ( exit $ac_status )
17924 llvmac_cv_c_printf_a=no
17925 fi
17926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17927 fi
17928
17929
17930  ac_ext=c
17931 ac_cpp='$CPP $CPPFLAGS'
17932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17935
17936 fi
17937 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17938 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17939  if test "$llvm_cv_c_printf_a" = "yes"; then
17940
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_PRINTF_A 1
17943 _ACEOF
17944
17945  fi
17946
17947
17948 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17949 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17950 if test "${ac_cv_func_rand48+set}" = set; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   ac_ext=cpp
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959    cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965 #include <stdlib.h>
17966 int
17967 main ()
17968 {
17969 srand48(0);lrand48();drand48();
17970   ;
17971   return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978   *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981   (eval "$ac_compile") 2>conftest.er1
17982   ac_status=$?
17983   grep -v '^ *+' conftest.er1 >conftest.err
17984   rm -f conftest.er1
17985   cat conftest.err >&5
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); } &&
17988          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17989   { (case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_try") 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest.$ac_objext'
17999   { (case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_try") 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; }; then
18008   ac_cv_func_rand48=yes
18009 else
18010   echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013         ac_cv_func_rand48=no
18014 fi
18015
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017   ac_ext=c
18018 ac_cpp='$CPP $CPPFLAGS'
18019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023 fi
18024 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18025 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18026
18027 if test "$ac_cv_func_rand48" = "yes" ; then
18028
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_RAND48 1
18031 _ACEOF
18032
18033 fi
18034
18035
18036 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18037 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18038 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 $ac_includes_default
18048 int
18049 main ()
18050 {
18051 #ifndef strerror_s
18052   char *p = (char *) strerror_s;
18053   return !p;
18054 #endif
18055
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_compile") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest.$ac_objext'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_have_decl_strerror_s=yes
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099         ac_cv_have_decl_strerror_s=no
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103 fi
18104 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18105 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18106 if test $ac_cv_have_decl_strerror_s = yes; then
18107
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_DECL_STRERROR_S 1
18110 _ACEOF
18111
18112
18113 else
18114   cat >>confdefs.h <<_ACEOF
18115 #define HAVE_DECL_STRERROR_S 0
18116 _ACEOF
18117
18118
18119 fi
18120
18121
18122
18123 if test "$llvm_cv_os_type" = "MingW" ; then
18124   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18125 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18126 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18127   echo $ECHO_N "(cached) $ECHO_C" >&6
18128 else
18129   ac_check_lib_save_LIBS=$LIBS
18130 LIBS="-lgcc  $LIBS"
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137
18138 /* Override any GCC internal prototype to avoid an error.
18139    Use char because int might match the return type of a GCC
18140    builtin and then its argument prototype would still apply.  */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char _alloca ();
18145 int
18146 main ()
18147 {
18148 return _alloca ();
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_link") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } &&
18167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168   { (case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_try") 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; } &&
18177          { ac_try='test -s conftest$ac_exeext'
18178   { (case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_try") 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; }; then
18187   ac_cv_lib_gcc__alloca=yes
18188 else
18189   echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192         ac_cv_lib_gcc__alloca=no
18193 fi
18194
18195 rm -f core conftest.err conftest.$ac_objext \
18196       conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18198 fi
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18200 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18201 if test $ac_cv_lib_gcc__alloca = yes; then
18202
18203 cat >>confdefs.h <<\_ACEOF
18204 #define HAVE__ALLOCA 1
18205 _ACEOF
18206
18207 fi
18208
18209   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18210 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   ac_check_lib_save_LIBS=$LIBS
18215 LIBS="-lgcc  $LIBS"
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222
18223 /* Override any GCC internal prototype to avoid an error.
18224    Use char because int might match the return type of a GCC
18225    builtin and then its argument prototype would still apply.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char __alloca ();
18230 int
18231 main ()
18232 {
18233 return __alloca ();
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253   { (case "(($ac_try" in
18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255   *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; } &&
18262          { ac_try='test -s conftest$ac_exeext'
18263   { (case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_try") 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_lib_gcc___alloca=yes
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277         ac_cv_lib_gcc___alloca=no
18278 fi
18279
18280 rm -f core conftest.err conftest.$ac_objext \
18281       conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18283 fi
18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18286 if test $ac_cv_lib_gcc___alloca = yes; then
18287
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE___ALLOCA 1
18290 _ACEOF
18291
18292 fi
18293
18294   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18295 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18296 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299   ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lgcc  $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307
18308 /* Override any GCC internal prototype to avoid an error.
18309    Use char because int might match the return type of a GCC
18310    builtin and then its argument prototype would still apply.  */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char __chkstk ();
18315 int
18316 main ()
18317 {
18318 return __chkstk ();
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327   *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330   (eval "$ac_link") 2>conftest.er1
18331   ac_status=$?
18332   grep -v '^ *+' conftest.er1 >conftest.err
18333   rm -f conftest.er1
18334   cat conftest.err >&5
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } &&
18337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; } &&
18347          { ac_try='test -s conftest$ac_exeext'
18348   { (case "(($ac_try" in
18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350   *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353   (eval "$ac_try") 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; }; then
18357   ac_cv_lib_gcc___chkstk=yes
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362         ac_cv_lib_gcc___chkstk=no
18363 fi
18364
18365 rm -f core conftest.err conftest.$ac_objext \
18366       conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18370 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18371 if test $ac_cv_lib_gcc___chkstk = yes; then
18372
18373 cat >>confdefs.h <<\_ACEOF
18374 #define HAVE___CHKSTK 1
18375 _ACEOF
18376
18377 fi
18378
18379   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18380 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18381 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   ac_check_lib_save_LIBS=$LIBS
18385 LIBS="-lgcc  $LIBS"
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392
18393 /* Override any GCC internal prototype to avoid an error.
18394    Use char because int might match the return type of a GCC
18395    builtin and then its argument prototype would still apply.  */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char ___chkstk ();
18400 int
18401 main ()
18402 {
18403 return ___chkstk ();
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } &&
18422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423   { (case "(($ac_try" in
18424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425   *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428   (eval "$ac_try") 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; } &&
18432          { ac_try='test -s conftest$ac_exeext'
18433   { (case "(($ac_try" in
18434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435   *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438   (eval "$ac_try") 2>&5
18439   ac_status=$?
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); }; }; then
18442   ac_cv_lib_gcc____chkstk=yes
18443 else
18444   echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18446
18447         ac_cv_lib_gcc____chkstk=no
18448 fi
18449
18450 rm -f core conftest.err conftest.$ac_objext \
18451       conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18453 fi
18454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18455 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18456 if test $ac_cv_lib_gcc____chkstk = yes; then
18457
18458 cat >>confdefs.h <<\_ACEOF
18459 #define HAVE____CHKSTK 1
18460 _ACEOF
18461
18462 fi
18463
18464
18465   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18466 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18467 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18468   echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470   ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-lgcc  $LIBS"
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478
18479 /* Override any GCC internal prototype to avoid an error.
18480    Use char because int might match the return type of a GCC
18481    builtin and then its argument prototype would still apply.  */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char __ashldi3 ();
18486 int
18487 main ()
18488 {
18489 return __ashldi3 ();
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_link") 2>conftest.er1
18502   ac_status=$?
18503   grep -v '^ *+' conftest.er1 >conftest.err
18504   rm -f conftest.er1
18505   cat conftest.err >&5
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); } &&
18508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509   { (case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_try") 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } &&
18518          { ac_try='test -s conftest$ac_exeext'
18519   { (case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_try") 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; }; then
18528   ac_cv_lib_gcc___ashldi3=yes
18529 else
18530   echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533         ac_cv_lib_gcc___ashldi3=no
18534 fi
18535
18536 rm -f core conftest.err conftest.$ac_objext \
18537       conftest$ac_exeext conftest.$ac_ext
18538 LIBS=$ac_check_lib_save_LIBS
18539 fi
18540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18541 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18542 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE___ASHLDI3 1
18546 _ACEOF
18547
18548 fi
18549
18550   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18551 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18552 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   ac_check_lib_save_LIBS=$LIBS
18556 LIBS="-lgcc  $LIBS"
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 /* Override any GCC internal prototype to avoid an error.
18565    Use char because int might match the return type of a GCC
18566    builtin and then its argument prototype would still apply.  */
18567 #ifdef __cplusplus
18568 extern "C"
18569 #endif
18570 char __ashrdi3 ();
18571 int
18572 main ()
18573 {
18574 return __ashrdi3 ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_link") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } &&
18593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; } &&
18603          { ac_try='test -s conftest$ac_exeext'
18604   { (case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_try") 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_cv_lib_gcc___ashrdi3=yes
18614 else
18615   echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618         ac_cv_lib_gcc___ashrdi3=no
18619 fi
18620
18621 rm -f core conftest.err conftest.$ac_objext \
18622       conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18624 fi
18625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18626 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18627 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18628
18629 cat >>confdefs.h <<\_ACEOF
18630 #define HAVE___ASHRDI3 1
18631 _ACEOF
18632
18633 fi
18634
18635   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18636 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18638   echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640   ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-lgcc  $LIBS"
18642 cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650    Use char because int might match the return type of a GCC
18651    builtin and then its argument prototype would still apply.  */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char __divdi3 ();
18656 int
18657 main ()
18658 {
18659 return __divdi3 ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679   { (case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_try") 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   ac_cv_lib_gcc___divdi3=yes
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703         ac_cv_lib_gcc___divdi3=no
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext \
18707       conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18709 fi
18710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18711 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18712 if test $ac_cv_lib_gcc___divdi3 = yes; then
18713
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE___DIVDI3 1
18716 _ACEOF
18717
18718 fi
18719
18720   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18721 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18722 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lgcc  $LIBS"
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h.  */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h.  */
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735    Use char because int might match the return type of a GCC
18736    builtin and then its argument prototype would still apply.  */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char __fixdfdi ();
18741 int
18742 main ()
18743 {
18744 return __fixdfdi ();
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_link") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764   { (case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_try") 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; } &&
18773          { ac_try='test -s conftest$ac_exeext'
18774   { (case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_try") 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   ac_cv_lib_gcc___fixdfdi=yes
18784 else
18785   echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788         ac_cv_lib_gcc___fixdfdi=no
18789 fi
18790
18791 rm -f core conftest.err conftest.$ac_objext \
18792       conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18796 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18797 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18798
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE___FIXDFDI 1
18801 _ACEOF
18802
18803 fi
18804
18805   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18806 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18807 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lgcc  $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818
18819 /* Override any GCC internal prototype to avoid an error.
18820    Use char because int might match the return type of a GCC
18821    builtin and then its argument prototype would still apply.  */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 char __fixsfdi ();
18826 int
18827 main ()
18828 {
18829 return __fixsfdi ();
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_link") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849   { (case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_try") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_cv_lib_gcc___fixsfdi=yes
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         ac_cv_lib_gcc___fixsfdi=no
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18879 fi
18880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18881 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18882 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18883
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE___FIXSFDI 1
18886 _ACEOF
18887
18888 fi
18889
18890   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18891 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18892 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18893   echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895   ac_check_lib_save_LIBS=$LIBS
18896 LIBS="-lgcc  $LIBS"
18897 cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h.  */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h.  */
18903
18904 /* Override any GCC internal prototype to avoid an error.
18905    Use char because int might match the return type of a GCC
18906    builtin and then its argument prototype would still apply.  */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char __floatdidf ();
18911 int
18912 main ()
18913 {
18914 return __floatdidf ();
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923   *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926   (eval "$ac_link") 2>conftest.er1
18927   ac_status=$?
18928   grep -v '^ *+' conftest.er1 >conftest.err
18929   rm -f conftest.er1
18930   cat conftest.err >&5
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } &&
18933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934   { (case "(($ac_try" in
18935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936   *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939   (eval "$ac_try") 2>&5
18940   ac_status=$?
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); }; } &&
18943          { ac_try='test -s conftest$ac_exeext'
18944   { (case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949   (eval "$ac_try") 2>&5
18950   ac_status=$?
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_cv_lib_gcc___floatdidf=yes
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958         ac_cv_lib_gcc___floatdidf=no
18959 fi
18960
18961 rm -f core conftest.err conftest.$ac_objext \
18962       conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18964 fi
18965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18966 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18967 if test $ac_cv_lib_gcc___floatdidf = yes; then
18968
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE___FLOATDIDF 1
18971 _ACEOF
18972
18973 fi
18974
18975   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18976 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18977 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18978   echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980   ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-lgcc  $LIBS"
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988
18989 /* Override any GCC internal prototype to avoid an error.
18990    Use char because int might match the return type of a GCC
18991    builtin and then its argument prototype would still apply.  */
18992 #ifdef __cplusplus
18993 extern "C"
18994 #endif
18995 char __lshrdi3 ();
18996 int
18997 main ()
18998 {
18999 return __lshrdi3 ();
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008   *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011   (eval "$ac_link") 2>conftest.er1
19012   ac_status=$?
19013   grep -v '^ *+' conftest.er1 >conftest.err
19014   rm -f conftest.er1
19015   cat conftest.err >&5
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } &&
19018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019   { (case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_try") 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; } &&
19028          { ac_try='test -s conftest$ac_exeext'
19029   { (case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_try") 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; }; then
19038   ac_cv_lib_gcc___lshrdi3=yes
19039 else
19040   echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043         ac_cv_lib_gcc___lshrdi3=no
19044 fi
19045
19046 rm -f core conftest.err conftest.$ac_objext \
19047       conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19049 fi
19050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19051 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19052 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE___LSHRDI3 1
19056 _ACEOF
19057
19058 fi
19059
19060   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19061 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19062 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lgcc  $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h.  */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h.  */
19073
19074 /* Override any GCC internal prototype to avoid an error.
19075    Use char because int might match the return type of a GCC
19076    builtin and then its argument prototype would still apply.  */
19077 #ifdef __cplusplus
19078 extern "C"
19079 #endif
19080 char __moddi3 ();
19081 int
19082 main ()
19083 {
19084 return __moddi3 ();
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093   *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096   (eval "$ac_link") 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104   { (case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_try") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; } &&
19113          { ac_try='test -s conftest$ac_exeext'
19114   { (case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_try") 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_lib_gcc___moddi3=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128         ac_cv_lib_gcc___moddi3=no
19129 fi
19130
19131 rm -f core conftest.err conftest.$ac_objext \
19132       conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19134 fi
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19136 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19137 if test $ac_cv_lib_gcc___moddi3 = yes; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE___MODDI3 1
19141 _ACEOF
19142
19143 fi
19144
19145   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19146 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19147 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   ac_check_lib_save_LIBS=$LIBS
19151 LIBS="-lgcc  $LIBS"
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h.  */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h.  */
19158
19159 /* Override any GCC internal prototype to avoid an error.
19160    Use char because int might match the return type of a GCC
19161    builtin and then its argument prototype would still apply.  */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 char __udivdi3 ();
19166 int
19167 main ()
19168 {
19169 return __udivdi3 ();
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_link") 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; } &&
19198          { ac_try='test -s conftest$ac_exeext'
19199   { (case "(($ac_try" in
19200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201   *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204   (eval "$ac_try") 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_cv_lib_gcc___udivdi3=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         ac_cv_lib_gcc___udivdi3=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext \
19217       conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19221 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19222 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19223
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE___UDIVDI3 1
19226 _ACEOF
19227
19228 fi
19229
19230   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19231 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19232 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   ac_check_lib_save_LIBS=$LIBS
19236 LIBS="-lgcc  $LIBS"
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243
19244 /* Override any GCC internal prototype to avoid an error.
19245    Use char because int might match the return type of a GCC
19246    builtin and then its argument prototype would still apply.  */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 char __umoddi3 ();
19251 int
19252 main ()
19253 {
19254 return __umoddi3 ();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_link") 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } &&
19273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19274   { (case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279   (eval "$ac_try") 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; } &&
19283          { ac_try='test -s conftest$ac_exeext'
19284   { (case "(($ac_try" in
19285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286   *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289   (eval "$ac_try") 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; }; then
19293   ac_cv_lib_gcc___umoddi3=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         ac_cv_lib_gcc___umoddi3=no
19299 fi
19300
19301 rm -f core conftest.err conftest.$ac_objext \
19302       conftest$ac_exeext conftest.$ac_ext
19303 LIBS=$ac_check_lib_save_LIBS
19304 fi
19305 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19306 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19307 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19308
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE___UMODDI3 1
19311 _ACEOF
19312
19313 fi
19314
19315
19316   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19317 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19318 if test "${ac_cv_lib_gcc___main+set}" = set; then
19319   echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321   ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lgcc  $LIBS"
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19329
19330 /* Override any GCC internal prototype to avoid an error.
19331    Use char because int might match the return type of a GCC
19332    builtin and then its argument prototype would still apply.  */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 char __main ();
19337 int
19338 main ()
19339 {
19340 return __main ();
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_link") 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360   { (case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_try") 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; } &&
19369          { ac_try='test -s conftest$ac_exeext'
19370   { (case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_try") 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_lib_gcc___main=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_lib_gcc___main=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext \
19388       conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19392 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19393 if test $ac_cv_lib_gcc___main = yes; then
19394
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE___MAIN 1
19397 _ACEOF
19398
19399 fi
19400
19401   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19402 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19403 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19404   echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406   ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lgcc  $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414
19415 /* Override any GCC internal prototype to avoid an error.
19416    Use char because int might match the return type of a GCC
19417    builtin and then its argument prototype would still apply.  */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char __cmpdi2 ();
19422 int
19423 main ()
19424 {
19425 return __cmpdi2 ();
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_link") 2>conftest.er1
19438   ac_status=$?
19439   grep -v '^ *+' conftest.er1 >conftest.err
19440   rm -f conftest.er1
19441   cat conftest.err >&5
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } &&
19444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445   { (case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450   (eval "$ac_try") 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; } &&
19454          { ac_try='test -s conftest$ac_exeext'
19455   { (case "(($ac_try" in
19456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457   *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460   (eval "$ac_try") 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; }; then
19464   ac_cv_lib_gcc___cmpdi2=yes
19465 else
19466   echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469         ac_cv_lib_gcc___cmpdi2=no
19470 fi
19471
19472 rm -f core conftest.err conftest.$ac_objext \
19473       conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19475 fi
19476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19477 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19478 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19479
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE___CMPDI2 1
19482 _ACEOF
19483
19484 fi
19485
19486 fi
19487
19488 if test "$llvm_cv_os_type" = "MingW" ; then
19489   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19490 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19491   cat >conftest.$ac_ext <<_ACEOF
19492 #include <windows.h>
19493 #include <imagehlp.h>
19494 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19495 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_compile") 2>conftest.er1
19505   ac_status=$?
19506   grep -v '^ *+' conftest.er1 >conftest.err
19507   rm -f conftest.er1
19508   cat conftest.err >&5
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); } &&
19511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19512   { (case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_try") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; } &&
19521          { ac_try='test -s conftest.$ac_objext'
19522   { (case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_try") 2>&5
19528   ac_status=$?
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); }; }; then
19531
19532   { echo "$as_me:$LINENO: result: yes" >&5
19533 echo "${ECHO_T}yes" >&6; }
19534   llvm_cv_win32_elmcb_pcstr="PCSTR"
19535
19536 else
19537   echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540
19541   { echo "$as_me:$LINENO: result: no" >&5
19542 echo "${ECHO_T}no" >&6; }
19543   llvm_cv_win32_elmcb_pcstr="PSTR"
19544
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548
19549 cat >>confdefs.h <<_ACEOF
19550 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19551 _ACEOF
19552
19553 fi
19554
19555
19556 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19557 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   ac_ext=cpp
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
19567    cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573 #include <math.h>
19574 int
19575 main ()
19576 {
19577 float f; isnan(f);
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_compile") 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597   { (case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_try") 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest.$ac_objext'
19607   { (case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_try") 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_cv_func_isnan_in_math_h=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621         ac_cv_func_isnan_in_math_h=no
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625   ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631 fi
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19634
19635
19636 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19637
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_ISNAN_IN_MATH_H 1
19640 _ACEOF
19641
19642 fi
19643
19644 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19645 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19646 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   ac_ext=cpp
19650 ac_cpp='$CXXCPP $CPPFLAGS'
19651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19654
19655    cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h.  */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h.  */
19661 #include <cmath>
19662 int
19663 main ()
19664 {
19665 float f; isnan(f);
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (ac_try="$ac_compile"
19672 case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_compile") 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } &&
19684          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19685   { (case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_try") 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; } &&
19694          { ac_try='test -s conftest.$ac_objext'
19695   { (case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_try") 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; }; then
19704   ac_cv_func_isnan_in_cmath=yes
19705 else
19706   echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709         ac_cv_func_isnan_in_cmath=no
19710 fi
19711
19712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713   ac_ext=c
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719 fi
19720 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19721 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19722
19723 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19724
19725 cat >>confdefs.h <<\_ACEOF
19726 #define HAVE_ISNAN_IN_CMATH 1
19727 _ACEOF
19728
19729 fi
19730
19731 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19732 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19733 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   ac_ext=cpp
19737 ac_cpp='$CXXCPP $CPPFLAGS'
19738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741
19742    cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 #include <cmath>
19749 int
19750 main ()
19751 {
19752 float f; std::isnan(f);
19753   ;
19754   return 0;
19755 }
19756 _ACEOF
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761   *) ac_try_echo=$ac_try;;
19762 esac
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764   (eval "$ac_compile") 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } &&
19771          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19781          { ac_try='test -s conftest.$ac_objext'
19782   { (case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_cv_func_std_isnan_in_cmath=yes
19792 else
19793   echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796         ac_cv_func_std_isnan_in_cmath=no
19797 fi
19798
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800   ac_ext=c
19801 ac_cpp='$CPP $CPPFLAGS'
19802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19808 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19809
19810 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19811
19812 cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_STD_ISNAN_IN_CMATH 1
19814 _ACEOF
19815
19816 fi
19817
19818
19819 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19820 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19821 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   ac_ext=cpp
19825 ac_cpp='$CXXCPP $CPPFLAGS'
19826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19829
19830    cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 #include <math.h>
19837 int
19838 main ()
19839 {
19840 float f; isinf(f);
19841   ;
19842   return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } &&
19859          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860   { (case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_try") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; } &&
19869          { ac_try='test -s conftest.$ac_objext'
19870   { (case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_try") 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_func_isinf_in_math_h=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         ac_cv_func_isinf_in_math_h=no
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888   ac_ext=c
19889 ac_cpp='$CPP $CPPFLAGS'
19890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
19894 fi
19895 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19896 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19897
19898 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19899
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_ISINF_IN_MATH_H 1
19902 _ACEOF
19903
19904 fi
19905
19906 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19907 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19908 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19909   echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911   ac_ext=cpp
19912 ac_cpp='$CXXCPP $CPPFLAGS'
19913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19916
19917    cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923 #include <cmath>
19924 int
19925 main ()
19926 {
19927 float f; isinf(f);
19928   ;
19929   return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_compile") 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } &&
19946          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19947   { (case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_try") 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; } &&
19956          { ac_try='test -s conftest.$ac_objext'
19957   { (case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_try") 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; }; then
19966   ac_cv_func_isinf_in_cmath=yes
19967 else
19968   echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971         ac_cv_func_isinf_in_cmath=no
19972 fi
19973
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19975   ac_ext=c
19976 ac_cpp='$CPP $CPPFLAGS'
19977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19980
19981 fi
19982 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19983 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19984
19985 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19986
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE_ISINF_IN_CMATH 1
19989 _ACEOF
19990
19991 fi
19992
19993 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19994 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19995 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998   ac_ext=cpp
19999 ac_cpp='$CXXCPP $CPPFLAGS'
20000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20003
20004    cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 #include <cmath>
20011 int
20012 main ()
20013 {
20014 float f; std::isinf(f);
20015   ;
20016   return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext
20020 if { (ac_try="$ac_compile"
20021 case "(($ac_try" in
20022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023   *) ac_try_echo=$ac_try;;
20024 esac
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026   (eval "$ac_compile") 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } &&
20033          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20034   { (case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_try") 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); }; } &&
20043          { ac_try='test -s conftest.$ac_objext'
20044   { (case "(($ac_try" in
20045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046   *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049   (eval "$ac_try") 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; }; then
20053   ac_cv_func_std_isinf_in_cmath=yes
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058         ac_cv_func_std_isinf_in_cmath=no
20059 fi
20060
20061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20062   ac_ext=c
20063 ac_cpp='$CPP $CPPFLAGS'
20064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20067
20068 fi
20069 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20070 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20071
20072 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20073
20074 cat >>confdefs.h <<\_ACEOF
20075 #define HAVE_STD_ISINF_IN_CMATH 1
20076 _ACEOF
20077
20078 fi
20079
20080 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20081 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20082 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20083   echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085   ac_ext=cpp
20086 ac_cpp='$CXXCPP $CPPFLAGS'
20087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20090
20091    cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097 #include <ieeefp.h>
20098 int
20099 main ()
20100 {
20101 float f; finite(f);
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110   *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113   (eval "$ac_compile") 2>conftest.er1
20114   ac_status=$?
20115   grep -v '^ *+' conftest.er1 >conftest.err
20116   rm -f conftest.er1
20117   cat conftest.err >&5
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } &&
20120          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20121   { (case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_try") 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; } &&
20130          { ac_try='test -s conftest.$ac_objext'
20131   { (case "(($ac_try" in
20132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133   *) ac_try_echo=$ac_try;;
20134 esac
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136   (eval "$ac_try") 2>&5
20137   ac_status=$?
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); }; }; then
20140   ac_cv_func_finite_in_ieeefp_h=yes
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145         ac_cv_func_finite_in_ieeefp_h=no
20146 fi
20147
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149   ac_ext=c
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155 fi
20156 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20157 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20158
20159 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20160
20161 cat >>confdefs.h <<\_ACEOF
20162 #define HAVE_FINITE_IN_IEEEFP_H 1
20163 _ACEOF
20164
20165 fi
20166
20167
20168
20169 if test "$llvm_cv_platform_type" = "Unix" ; then
20170
20171
20172 for ac_header in stdlib.h unistd.h
20173 do
20174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 fi
20181 ac_res=`eval echo '${'$as_ac_Header'}'`
20182                { echo "$as_me:$LINENO: result: $ac_res" >&5
20183 echo "${ECHO_T}$ac_res" >&6; }
20184 else
20185   # Is the header compilable?
20186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 $ac_includes_default
20195 #include <$ac_header>
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (ac_try="$ac_compile"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_compile") 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } &&
20211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20212   { (case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_try") 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); }; } &&
20221          { ac_try='test -s conftest.$ac_objext'
20222   { (case "(($ac_try" in
20223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224   *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227   (eval "$ac_try") 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; }; then
20231   ac_header_compiler=yes
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236         ac_header_compiler=no
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20241 echo "${ECHO_T}$ac_header_compiler" >&6; }
20242
20243 # Is the header present?
20244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 #include <$ac_header>
20253 _ACEOF
20254 if { (ac_try="$ac_cpp conftest.$ac_ext"
20255 case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } >/dev/null; then
20267   if test -s conftest.err; then
20268     ac_cpp_err=$ac_c_preproc_warn_flag
20269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20270   else
20271     ac_cpp_err=
20272   fi
20273 else
20274   ac_cpp_err=yes
20275 fi
20276 if test -z "$ac_cpp_err"; then
20277   ac_header_preproc=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282   ac_header_preproc=no
20283 fi
20284
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20288
20289 # So?  What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291   yes:no: )
20292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20296     ac_header_preproc=yes
20297     ;;
20298   no:yes:* )
20299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20311     ( cat <<\_ASBOX
20312 ## ------------------------------------ ##
20313 ## Report this to http://llvm.org/bugs/ ##
20314 ## ------------------------------------ ##
20315 _ASBOX
20316      ) | sed "s/^/$as_me: WARNING:     /" >&2
20317     ;;
20318 esac
20319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324   eval "$as_ac_Header=\$ac_header_preproc"
20325 fi
20326 ac_res=`eval echo '${'$as_ac_Header'}'`
20327                { echo "$as_me:$LINENO: result: $ac_res" >&5
20328 echo "${ECHO_T}$ac_res" >&6; }
20329
20330 fi
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332   cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20334 _ACEOF
20335
20336 fi
20337
20338 done
20339
20340
20341 for ac_func in getpagesize
20342 do
20343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20357 #define $ac_func innocuous_$ac_func
20358
20359 /* System header to define __stub macros and hopefully few prototypes,
20360     which can conflict with char $ac_func (); below.
20361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362     <limits.h> exists even on freestanding compilers.  */
20363
20364 #ifdef __STDC__
20365 # include <limits.h>
20366 #else
20367 # include <assert.h>
20368 #endif
20369
20370 #undef $ac_func
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373    Use char because int might match the return type of a GCC
20374    builtin and then its argument prototype would still apply.  */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char $ac_func ();
20379 /* The GNU C library defines this for functions which it implements
20380     to always fail with ENOSYS.  Some functions are actually named
20381     something starting with __ and the normal name is an alias.  */
20382 #if defined __stub_$ac_func || defined __stub___$ac_func
20383 choke me
20384 #endif
20385
20386 int
20387 main ()
20388 {
20389 return $ac_func ();
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_link") 2>conftest.er1
20402   ac_status=$?
20403   grep -v '^ *+' conftest.er1 >conftest.err
20404   rm -f conftest.er1
20405   cat conftest.err >&5
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } &&
20408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20409   { (case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_try") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; } &&
20418          { ac_try='test -s conftest$ac_exeext'
20419   { (case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_try") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   eval "$as_ac_var=yes"
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433         eval "$as_ac_var=no"
20434 fi
20435
20436 rm -f core conftest.err conftest.$ac_objext \
20437       conftest$ac_exeext conftest.$ac_ext
20438 fi
20439 ac_res=`eval echo '${'$as_ac_var'}'`
20440                { echo "$as_me:$LINENO: result: $ac_res" >&5
20441 echo "${ECHO_T}$ac_res" >&6; }
20442 if test `eval echo '${'$as_ac_var'}'` = yes; then
20443   cat >>confdefs.h <<_ACEOF
20444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20445 _ACEOF
20446
20447 fi
20448 done
20449
20450 { echo "$as_me:$LINENO: checking for working mmap" >&5
20451 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20452 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   if test "$cross_compiling" = yes; then
20456   ac_cv_func_mmap_fixed_mapped=no
20457 else
20458   cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 $ac_includes_default
20465 /* malloc might have been renamed as rpl_malloc. */
20466 #undef malloc
20467
20468 /* Thanks to Mike Haertel and Jim Avera for this test.
20469    Here is a matrix of mmap possibilities:
20470         mmap private not fixed
20471         mmap private fixed at somewhere currently unmapped
20472         mmap private fixed at somewhere already mapped
20473         mmap shared not fixed
20474         mmap shared fixed at somewhere currently unmapped
20475         mmap shared fixed at somewhere already mapped
20476    For private mappings, we should verify that changes cannot be read()
20477    back from the file, nor mmap's back from the file at a different
20478    address.  (There have been systems where private was not correctly
20479    implemented like the infamous i386 svr4.0, and systems where the
20480    VM page cache was not coherent with the file system buffer cache
20481    like early versions of FreeBSD and possibly contemporary NetBSD.)
20482    For shared mappings, we should conversely verify that changes get
20483    propagated back to all the places they're supposed to be.
20484
20485    Grep wants private fixed already mapped.
20486    The main things grep needs to know about mmap are:
20487    * does it exist and is it safe to write into the mmap'd area
20488    * how to use it (BSD variants)  */
20489
20490 #include <fcntl.h>
20491 #include <sys/mman.h>
20492
20493 #if !STDC_HEADERS && !HAVE_STDLIB_H
20494 char *malloc ();
20495 #endif
20496
20497 /* This mess was copied from the GNU getpagesize.h.  */
20498 #if !HAVE_GETPAGESIZE
20499 /* Assume that all systems that can run configure have sys/param.h.  */
20500 # if !HAVE_SYS_PARAM_H
20501 #  define HAVE_SYS_PARAM_H 1
20502 # endif
20503
20504 # ifdef _SC_PAGESIZE
20505 #  define getpagesize() sysconf(_SC_PAGESIZE)
20506 # else /* no _SC_PAGESIZE */
20507 #  if HAVE_SYS_PARAM_H
20508 #   include <sys/param.h>
20509 #   ifdef EXEC_PAGESIZE
20510 #    define getpagesize() EXEC_PAGESIZE
20511 #   else /* no EXEC_PAGESIZE */
20512 #    ifdef NBPG
20513 #     define getpagesize() NBPG * CLSIZE
20514 #     ifndef CLSIZE
20515 #      define CLSIZE 1
20516 #     endif /* no CLSIZE */
20517 #    else /* no NBPG */
20518 #     ifdef NBPC
20519 #      define getpagesize() NBPC
20520 #     else /* no NBPC */
20521 #      ifdef PAGESIZE
20522 #       define getpagesize() PAGESIZE
20523 #      endif /* PAGESIZE */
20524 #     endif /* no NBPC */
20525 #    endif /* no NBPG */
20526 #   endif /* no EXEC_PAGESIZE */
20527 #  else /* no HAVE_SYS_PARAM_H */
20528 #   define getpagesize() 8192   /* punt totally */
20529 #  endif /* no HAVE_SYS_PARAM_H */
20530 # endif /* no _SC_PAGESIZE */
20531
20532 #endif /* no HAVE_GETPAGESIZE */
20533
20534 int
20535 main ()
20536 {
20537   char *data, *data2, *data3;
20538   int i, pagesize;
20539   int fd;
20540
20541   pagesize = getpagesize ();
20542
20543   /* First, make a file with some known garbage in it. */
20544   data = (char *) malloc (pagesize);
20545   if (!data)
20546     return 1;
20547   for (i = 0; i < pagesize; ++i)
20548     *(data + i) = rand ();
20549   umask (0);
20550   fd = creat ("conftest.mmap", 0600);
20551   if (fd < 0)
20552     return 1;
20553   if (write (fd, data, pagesize) != pagesize)
20554     return 1;
20555   close (fd);
20556
20557   /* Next, try to mmap the file at a fixed address which already has
20558      something else allocated at it.  If we can, also make sure that
20559      we see the same garbage.  */
20560   fd = open ("conftest.mmap", O_RDWR);
20561   if (fd < 0)
20562     return 1;
20563   data2 = (char *) malloc (2 * pagesize);
20564   if (!data2)
20565     return 1;
20566   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20567   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20568                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20569     return 1;
20570   for (i = 0; i < pagesize; ++i)
20571     if (*(data + i) != *(data2 + i))
20572       return 1;
20573
20574   /* Finally, make sure that changes to the mapped area do not
20575      percolate back to the file as seen by read().  (This is a bug on
20576      some variants of i386 svr4.0.)  */
20577   for (i = 0; i < pagesize; ++i)
20578     *(data2 + i) = *(data2 + i) + 1;
20579   data3 = (char *) malloc (pagesize);
20580   if (!data3)
20581     return 1;
20582   if (read (fd, data3, pagesize) != pagesize)
20583     return 1;
20584   for (i = 0; i < pagesize; ++i)
20585     if (*(data + i) != *(data3 + i))
20586       return 1;
20587   close (fd);
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_link") 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20602   { (case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_try") 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; }; then
20611   ac_cv_func_mmap_fixed_mapped=yes
20612 else
20613   echo "$as_me: program exited with status $ac_status" >&5
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 ( exit $ac_status )
20618 ac_cv_func_mmap_fixed_mapped=no
20619 fi
20620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20621 fi
20622
20623
20624 fi
20625 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20626 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20627 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_MMAP 1
20631 _ACEOF
20632
20633 fi
20634 rm -f conftest.mmap
20635
20636   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20637 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20638 if test "${ac_cv_func_mmap_file+set}" = set; then
20639   echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641    ac_ext=c
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646
20647   if test "$cross_compiling" = yes; then
20648   ac_cv_func_mmap_file=no
20649 else
20650   cat >conftest.$ac_ext <<_ACEOF
20651
20652     /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657
20658 #include <sys/types.h>
20659 #include <sys/mman.h>
20660 #include <fcntl.h>
20661
20662 int
20663 main ()
20664 {
20665
20666   int fd;
20667   fd = creat ("foo",0777);
20668   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20669   unlink ("foo");
20670   return (fd != (int) MAP_FAILED);
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_link") 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686   { (case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_try") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_func_mmap_file=yes
20696 else
20697   echo "$as_me: program exited with status $ac_status" >&5
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ( exit $ac_status )
20702 ac_cv_func_mmap_file=no
20703 fi
20704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20705 fi
20706
20707
20708   ac_ext=c
20709 ac_cpp='$CPP $CPPFLAGS'
20710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713
20714
20715 fi
20716 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20717 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20718 if test "$ac_cv_func_mmap_file" = yes; then
20719
20720 cat >>confdefs.h <<\_ACEOF
20721 #define HAVE_MMAP_FILE
20722 _ACEOF
20723
20724    MMAP_FILE=yes
20725
20726 fi
20727
20728   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20729 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20730 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733   if test "$llvm_cv_os_type" = "Interix" ; then
20734    ac_cv_need_dev_zero_for_mmap=yes
20735  else
20736    ac_cv_need_dev_zero_for_mmap=no
20737  fi
20738
20739 fi
20740 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20741 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20742 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20743
20744 cat >>confdefs.h <<\_ACEOF
20745 #define NEED_DEV_ZERO_FOR_MMAP 1
20746 _ACEOF
20747
20748 fi
20749
20750   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20751   then
20752     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20753 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20754   fi
20755   if test "$ac_cv_func_mmap_file" = "no"
20756   then
20757     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20758 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20759   fi
20760 fi
20761
20762 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20763 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20764 ac_ext=cpp
20765 ac_cpp='$CXXCPP $CPPFLAGS'
20766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20769
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 int main() {
20777         volatile unsigned long val = 1;
20778         __sync_synchronize();
20779         __sync_val_compare_and_swap(&val, 1, 0);
20780         __sync_add_and_fetch(&val, 1);
20781         __sync_sub_and_fetch(&val, 1);
20782         return 0;
20783       }
20784
20785 _ACEOF
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793   (eval "$ac_link") 2>conftest.er1
20794   ac_status=$?
20795   grep -v '^ *+' conftest.er1 >conftest.err
20796   rm -f conftest.er1
20797   cat conftest.err >&5
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } &&
20800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; } &&
20810          { ac_try='test -s conftest$ac_exeext'
20811   { (case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_try") 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_ext=c
20821 ac_cpp='$CPP $CPPFLAGS'
20822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20825
20826   { echo "$as_me:$LINENO: result: yes" >&5
20827 echo "${ECHO_T}yes" >&6; }
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define LLVM_HAS_ATOMICS 1
20831 _ACEOF
20832
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837         { echo "$as_me:$LINENO: result: no" >&5
20838 echo "${ECHO_T}no" >&6; }
20839
20840 cat >>confdefs.h <<\_ACEOF
20841 #define LLVM_HAS_ATOMICS 0
20842 _ACEOF
20843
20844   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20845 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20846 fi
20847
20848 rm -f core conftest.err conftest.$ac_objext \
20849       conftest$ac_exeext conftest.$ac_ext
20850
20851
20852 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20853   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20854 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20855 if test "${llvm_cv_linux_mixed+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858    ac_ext=c
20859 ac_cpp='$CPP $CPPFLAGS'
20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864   cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h.  */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h.  */
20870 #ifndef __x86_64__
20871        error: Not x86-64 even if uname says so!
20872       #endif
20873
20874 int
20875 main ()
20876 {
20877
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_compile") 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; } &&
20906          { ac_try='test -s conftest.$ac_objext'
20907   { (case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_try") 2>&5
20913   ac_status=$?
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); }; }; then
20916   llvm_cv_linux_mixed=no
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         llvm_cv_linux_mixed=yes
20922 fi
20923
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925   ac_ext=c
20926 ac_cpp='$CPP $CPPFLAGS'
20927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20930
20931
20932 fi
20933 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20934 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20935
20936   if test "$llvm_cv_linux_mixed" = "yes"; then
20937     llvm_cv_target_arch="x86"
20938     ARCH="x86"
20939   fi
20940 fi
20941
20942
20943 for ac_func in __dso_handle
20944 do
20945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20959 #define $ac_func innocuous_$ac_func
20960
20961 /* System header to define __stub macros and hopefully few prototypes,
20962     which can conflict with char $ac_func (); below.
20963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964     <limits.h> exists even on freestanding compilers.  */
20965
20966 #ifdef __STDC__
20967 # include <limits.h>
20968 #else
20969 # include <assert.h>
20970 #endif
20971
20972 #undef $ac_func
20973
20974 /* Override any GCC internal prototype to avoid an error.
20975    Use char because int might match the return type of a GCC
20976    builtin and then its argument prototype would still apply.  */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char $ac_func ();
20981 /* The GNU C library defines this for functions which it implements
20982     to always fail with ENOSYS.  Some functions are actually named
20983     something starting with __ and the normal name is an alias.  */
20984 #if defined __stub_$ac_func || defined __stub___$ac_func
20985 choke me
20986 #endif
20987
20988 int
20989 main ()
20990 {
20991 return $ac_func ();
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_link") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } &&
21010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21011   { (case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_try") 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; } &&
21020          { ac_try='test -s conftest$ac_exeext'
21021   { (case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026   (eval "$ac_try") 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; }; then
21030   eval "$as_ac_var=yes"
21031 else
21032   echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035         eval "$as_ac_var=no"
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext \
21039       conftest$ac_exeext conftest.$ac_ext
21040 fi
21041 ac_res=`eval echo '${'$as_ac_var'}'`
21042                { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_var'}'` = yes; then
21045   cat >>confdefs.h <<_ACEOF
21046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21047 _ACEOF
21048
21049 fi
21050 done
21051
21052
21053 SHLIBEXT=$libltdl_cv_shlibext
21054
21055
21056 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21057
21058
21059 if test "${prefix}" = "NONE" ; then
21060   prefix="/usr/local"
21061 fi
21062 eval LLVM_PREFIX="${prefix}";
21063 eval LLVM_BINDIR="${prefix}/bin";
21064 eval LLVM_LIBDIR="${prefix}/lib";
21065 eval LLVM_DATADIR="${prefix}/share/llvm";
21066 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21067 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21068 eval LLVM_INCLUDEDIR="${prefix}/include";
21069 eval LLVM_INFODIR="${prefix}/info";
21070 eval LLVM_MANDIR="${prefix}/man";
21071 LLVM_CONFIGTIME=`date`
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21084   LLVM_CONFIGTIME="(timestamp not enabled)"
21085 fi
21086
21087
21088 cat >>confdefs.h <<_ACEOF
21089 #define LLVM_PREFIX "$LLVM_PREFIX"
21090 _ACEOF
21091
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define LLVM_BINDIR "$LLVM_BINDIR"
21095 _ACEOF
21096
21097
21098 cat >>confdefs.h <<_ACEOF
21099 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21100 _ACEOF
21101
21102
21103 cat >>confdefs.h <<_ACEOF
21104 #define LLVM_DATADIR "$LLVM_DATADIR"
21105 _ACEOF
21106
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21110 _ACEOF
21111
21112
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21115 _ACEOF
21116
21117
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21120 _ACEOF
21121
21122
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_INFODIR "$LLVM_INFODIR"
21125 _ACEOF
21126
21127
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_MANDIR "$LLVM_MANDIR"
21130 _ACEOF
21131
21132
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21135 _ACEOF
21136
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_HOSTTRIPLE "$host"
21140 _ACEOF
21141
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21145 _ACEOF
21146
21147
21148 if test "$BINDINGS_TO_BUILD" = auto ; then
21149   BINDINGS_TO_BUILD=""
21150   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21151     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21152   fi
21153 fi
21154 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21155
21156
21157 ALL_BINDINGS=ocaml
21158
21159
21160 binding_prereqs_failed=0
21161 for a_binding in $BINDINGS_TO_BUILD ; do
21162   case "$a_binding" in
21163   ocaml)
21164     if test "x$OCAMLC" = x ; then
21165       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21166 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21167       binding_prereqs_failed=1
21168     fi
21169     if test "x$OCAMLDEP" = x ; then
21170       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21171 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21172       binding_prereqs_failed=1
21173     fi
21174     if test "x$OCAMLOPT" = x ; then
21175       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21176 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21177           fi
21178     if test "x$with_ocaml_libdir" != xauto ; then
21179       OCAML_LIBDIR=$with_ocaml_libdir
21180
21181     else
21182       ocaml_stdlib="`"$OCAMLC" -where`"
21183       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21184       then
21185         # ocaml stdlib is beneath our prefix; use stdlib
21186         OCAML_LIBDIR=$ocaml_stdlib
21187
21188       else
21189         # ocaml stdlib is outside our prefix; use libdir/ocaml
21190         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21191
21192       fi
21193     fi
21194     ;;
21195   esac
21196 done
21197 if test "$binding_prereqs_failed" = 1 ; then
21198   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21199 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21200    { (exit 1); exit 1; }; }
21201 fi
21202
21203 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21204 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21205 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208    ac_ext=cpp
21209 ac_cpp='$CXXCPP $CPPFLAGS'
21210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21213
21214   oldcxxflags="$CXXFLAGS"
21215   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21216   cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21223 int
21224 main ()
21225 {
21226 X<int>().f();
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235   *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238   (eval "$ac_compile") 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21246   { (case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_try") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; } &&
21255          { ac_try='test -s conftest.$ac_objext'
21256   { (case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_try") 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; }; then
21265   llvm_cv_cxx_visibility_inlines_hidden=yes
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270         llvm_cv_cxx_visibility_inlines_hidden=no
21271 fi
21272
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274   CXXFLAGS="$oldcxxflags"
21275   ac_ext=c
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282 fi
21283 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21284 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21285 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21286   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21287
21288 else
21289   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21290
21291 fi
21292
21293
21294 if test "$llvm_cv_link_use_r" = "yes" ; then
21295   RPATH="-Wl,-R"
21296 else
21297   RPATH="-Wl,-rpath"
21298 fi
21299
21300
21301 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21302   RDYNAMIC="-Wl,-export-dynamic"
21303 else
21304   RDYNAMIC=""
21305 fi
21306
21307
21308
21309 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21310
21311
21312
21313
21314
21315
21316 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21317
21318 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21319
21320 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21321
21322 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21323
21324 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21325
21326
21327 ac_config_files="$ac_config_files Makefile.config"
21328
21329
21330 ac_config_files="$ac_config_files llvm.spec"
21331
21332
21333 ac_config_files="$ac_config_files docs/doxygen.cfg"
21334
21335
21336 if test "${clang_src_root}" = ""; then
21337   clang_src_root="$srcdir/tools/clang"
21338 fi
21339 if test -f ${clang_src_root}/README.txt; then
21340     configh="include/clang/Config/config.h"
21341   doxy="docs/doxygen.cfg"
21342   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21343
21344   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21345
21346 fi
21347
21348 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21349
21350
21351 ac_config_commands="$ac_config_commands setup"
21352
21353 ac_config_commands="$ac_config_commands Makefile"
21354
21355
21356 ac_config_commands="$ac_config_commands Makefile.common"
21357
21358
21359 ac_config_commands="$ac_config_commands examples/Makefile"
21360
21361
21362 ac_config_commands="$ac_config_commands lib/Makefile"
21363
21364
21365 ac_config_commands="$ac_config_commands runtime/Makefile"
21366
21367
21368 ac_config_commands="$ac_config_commands test/Makefile"
21369
21370
21371 ac_config_commands="$ac_config_commands test/Makefile.tests"
21372
21373
21374 ac_config_commands="$ac_config_commands unittests/Makefile"
21375
21376
21377 ac_config_commands="$ac_config_commands tools/Makefile"
21378
21379
21380 ac_config_commands="$ac_config_commands utils/Makefile"
21381
21382
21383 ac_config_commands="$ac_config_commands projects/Makefile"
21384
21385
21386 ac_config_commands="$ac_config_commands bindings/Makefile"
21387
21388
21389 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21390
21391
21392
21393 cat >confcache <<\_ACEOF
21394 # This file is a shell script that caches the results of configure
21395 # tests run on this system so they can be shared between configure
21396 # scripts and configure runs, see configure's option --config-cache.
21397 # It is not useful on other systems.  If it contains results you don't
21398 # want to keep, you may remove or edit it.
21399 #
21400 # config.status only pays attention to the cache file if you give it
21401 # the --recheck option to rerun configure.
21402 #
21403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21405 # following values.
21406
21407 _ACEOF
21408
21409 # The following way of writing the cache mishandles newlines in values,
21410 # but we know of no workaround that is simple, portable, and efficient.
21411 # So, we kill variables containing newlines.
21412 # Ultrix sh set writes to stderr and can't be redirected directly,
21413 # and sets the high bit in the cache file unless we assign to the vars.
21414 (
21415   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21416     eval ac_val=\$$ac_var
21417     case $ac_val in #(
21418     *${as_nl}*)
21419       case $ac_var in #(
21420       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21421 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21422       esac
21423       case $ac_var in #(
21424       _ | IFS | as_nl) ;; #(
21425       *) $as_unset $ac_var ;;
21426       esac ;;
21427     esac
21428   done
21429
21430   (set) 2>&1 |
21431     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21432     *${as_nl}ac_space=\ *)
21433       # `set' does not quote correctly, so add quotes (double-quote
21434       # substitution turns \\\\ into \\, and sed turns \\ into \).
21435       sed -n \
21436         "s/'/'\\\\''/g;
21437           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21438       ;; #(
21439     *)
21440       # `set' quotes correctly as required by POSIX, so do not add quotes.
21441       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21442       ;;
21443     esac |
21444     sort
21445 ) |
21446   sed '
21447      /^ac_cv_env_/b end
21448      t clear
21449      :clear
21450      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21451      t end
21452      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21453      :end' >>confcache
21454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21455   if test -w "$cache_file"; then
21456     test "x$cache_file" != "x/dev/null" &&
21457       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21458 echo "$as_me: updating cache $cache_file" >&6;}
21459     cat confcache >$cache_file
21460   else
21461     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21462 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21463   fi
21464 fi
21465 rm -f confcache
21466
21467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21468 # Let make expand exec_prefix.
21469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21470
21471 DEFS=-DHAVE_CONFIG_H
21472
21473 ac_libobjs=
21474 ac_ltlibobjs=
21475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21476   # 1. Remove the extension, and $U if already installed.
21477   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21478   ac_i=`echo "$ac_i" | sed "$ac_script"`
21479   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21480   #    will be set to the directory where LIBOBJS objects are built.
21481   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21482   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21483 done
21484 LIBOBJS=$ac_libobjs
21485
21486 LTLIBOBJS=$ac_ltlibobjs
21487
21488
21489 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21490   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&5
21492 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&2;}
21494    { (exit 1); exit 1; }; }
21495 fi
21496 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21497   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&5
21499 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&2;}
21501    { (exit 1); exit 1; }; }
21502 fi
21503
21504 : ${CONFIG_STATUS=./config.status}
21505 ac_clean_files_save=$ac_clean_files
21506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21509 cat >$CONFIG_STATUS <<_ACEOF
21510 #! $SHELL
21511 # Generated by $as_me.
21512 # Run this file to recreate the current configuration.
21513 # Compiler output produced by configure, useful for debugging
21514 # configure, is in config.log if it exists.
21515
21516 debug=false
21517 ac_cs_recheck=false
21518 ac_cs_silent=false
21519 SHELL=\${CONFIG_SHELL-$SHELL}
21520 _ACEOF
21521
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 ## --------------------- ##
21524 ## M4sh Initialization.  ##
21525 ## --------------------- ##
21526
21527 # Be Bourne compatible
21528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21529   emulate sh
21530   NULLCMD=:
21531   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21532   # is contrary to our usage.  Disable this feature.
21533   alias -g '${1+"$@"}'='"$@"'
21534   setopt NO_GLOB_SUBST
21535 else
21536   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21537 fi
21538 BIN_SH=xpg4; export BIN_SH # for Tru64
21539 DUALCASE=1; export DUALCASE # for MKS sh
21540
21541
21542 # PATH needs CR
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21549
21550 # The user is always right.
21551 if test "${PATH_SEPARATOR+set}" != set; then
21552   echo "#! /bin/sh" >conf$$.sh
21553   echo  "exit 0"   >>conf$$.sh
21554   chmod +x conf$$.sh
21555   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21556     PATH_SEPARATOR=';'
21557   else
21558     PATH_SEPARATOR=:
21559   fi
21560   rm -f conf$$.sh
21561 fi
21562
21563 # Support unset when possible.
21564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21565   as_unset=unset
21566 else
21567   as_unset=false
21568 fi
21569
21570
21571 # IFS
21572 # We need space, tab and new line, in precisely that order.  Quoting is
21573 # there to prevent editors from complaining about space-tab.
21574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21575 # splitting by setting IFS to empty value.)
21576 as_nl='
21577 '
21578 IFS=" ""        $as_nl"
21579
21580 # Find who we are.  Look in the path if we contain no directory separator.
21581 case $0 in
21582   *[\\/]* ) as_myself=$0 ;;
21583   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21584 for as_dir in $PATH
21585 do
21586   IFS=$as_save_IFS
21587   test -z "$as_dir" && as_dir=.
21588   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21589 done
21590 IFS=$as_save_IFS
21591
21592      ;;
21593 esac
21594 # We did not find ourselves, most probably we were run as `sh COMMAND'
21595 # in which case we are not to be found in the path.
21596 if test "x$as_myself" = x; then
21597   as_myself=$0
21598 fi
21599 if test ! -f "$as_myself"; then
21600   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21601   { (exit 1); exit 1; }
21602 fi
21603
21604 # Work around bugs in pre-3.0 UWIN ksh.
21605 for as_var in ENV MAIL MAILPATH
21606 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21607 done
21608 PS1='$ '
21609 PS2='> '
21610 PS4='+ '
21611
21612 # NLS nuisances.
21613 for as_var in \
21614   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21615   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21616   LC_TELEPHONE LC_TIME
21617 do
21618   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21619     eval $as_var=C; export $as_var
21620   else
21621     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21622   fi
21623 done
21624
21625 # Required to use basename.
21626 if expr a : '\(a\)' >/dev/null 2>&1 &&
21627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21628   as_expr=expr
21629 else
21630   as_expr=false
21631 fi
21632
21633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634   as_basename=basename
21635 else
21636   as_basename=false
21637 fi
21638
21639
21640 # Name of the executable.
21641 as_me=`$as_basename -- "$0" ||
21642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21643          X"$0" : 'X\(//\)$' \| \
21644          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21645 echo X/"$0" |
21646     sed '/^.*\/\([^/][^/]*\)\/*$/{
21647             s//\1/
21648             q
21649           }
21650           /^X\/\(\/\/\)$/{
21651             s//\1/
21652             q
21653           }
21654           /^X\/\(\/\).*/{
21655             s//\1/
21656             q
21657           }
21658           s/.*/./; q'`
21659
21660 # CDPATH.
21661 $as_unset CDPATH
21662
21663
21664
21665   as_lineno_1=$LINENO
21666   as_lineno_2=$LINENO
21667   test "x$as_lineno_1" != "x$as_lineno_2" &&
21668   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21669
21670   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21671   # uniformly replaced by the line number.  The first 'sed' inserts a
21672   # line-number line after each line using $LINENO; the second 'sed'
21673   # does the real work.  The second script uses 'N' to pair each
21674   # line-number line with the line containing $LINENO, and appends
21675   # trailing '-' during substitution so that $LINENO is not a special
21676   # case at line end.
21677   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21678   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21679   # E. McMahon (1931-1989) for sed's syntax.  :-)
21680   sed -n '
21681     p
21682     /[$]LINENO/=
21683   ' <$as_myself |
21684     sed '
21685       s/[$]LINENO.*/&-/
21686       t lineno
21687       b
21688       :lineno
21689       N
21690       :loop
21691       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21692       t loop
21693       s/-\n.*//
21694     ' >$as_me.lineno &&
21695   chmod +x "$as_me.lineno" ||
21696     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697    { (exit 1); exit 1; }; }
21698
21699   # Don't try to exec as it changes $[0], causing all sort of problems
21700   # (the dirname of $[0] is not the place where we might find the
21701   # original and so on.  Autoconf is especially sensitive to this).
21702   . "./$as_me.lineno"
21703   # Exit status is that of the last command.
21704   exit
21705 }
21706
21707
21708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21709   as_dirname=dirname
21710 else
21711   as_dirname=false
21712 fi
21713
21714 ECHO_C= ECHO_N= ECHO_T=
21715 case `echo -n x` in
21716 -n*)
21717   case `echo 'x\c'` in
21718   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21719   *)   ECHO_C='\c';;
21720   esac;;
21721 *)
21722   ECHO_N='-n';;
21723 esac
21724
21725 if expr a : '\(a\)' >/dev/null 2>&1 &&
21726    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21727   as_expr=expr
21728 else
21729   as_expr=false
21730 fi
21731
21732 rm -f conf$$ conf$$.exe conf$$.file
21733 if test -d conf$$.dir; then
21734   rm -f conf$$.dir/conf$$.file
21735 else
21736   rm -f conf$$.dir
21737   mkdir conf$$.dir
21738 fi
21739 echo >conf$$.file
21740 if ln -s conf$$.file conf$$ 2>/dev/null; then
21741   as_ln_s='ln -s'
21742   # ... but there are two gotchas:
21743   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21744   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21745   # In both cases, we have to default to `cp -p'.
21746   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21747     as_ln_s='cp -p'
21748 elif ln conf$$.file conf$$ 2>/dev/null; then
21749   as_ln_s=ln
21750 else
21751   as_ln_s='cp -p'
21752 fi
21753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21754 rmdir conf$$.dir 2>/dev/null
21755
21756 if mkdir -p . 2>/dev/null; then
21757   as_mkdir_p=:
21758 else
21759   test -d ./-p && rmdir ./-p
21760   as_mkdir_p=false
21761 fi
21762
21763 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21764 # systems may use methods other than mode bits to determine executability.
21765 cat >conf$$.file <<_ASEOF
21766 #! /bin/sh
21767 exit 0
21768 _ASEOF
21769 chmod +x conf$$.file
21770 if test -x conf$$.file >/dev/null 2>&1; then
21771   as_executable_p="test -x"
21772 else
21773   as_executable_p=:
21774 fi
21775 rm -f conf$$.file
21776
21777 # Sed expression to map a string onto a valid CPP name.
21778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21779
21780 # Sed expression to map a string onto a valid variable name.
21781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21782
21783
21784 exec 6>&1
21785
21786 # Save the log message, to keep $[0] and so on meaningful, and to
21787 # report actual input values of CONFIG_FILES etc. instead of their
21788 # values after options handling.
21789 ac_log="
21790 This file was extended by LLVM $as_me 3.2svn, which was
21791 generated by GNU Autoconf 2.60.  Invocation command line was
21792
21793   CONFIG_FILES    = $CONFIG_FILES
21794   CONFIG_HEADERS  = $CONFIG_HEADERS
21795   CONFIG_LINKS    = $CONFIG_LINKS
21796   CONFIG_COMMANDS = $CONFIG_COMMANDS
21797   $ $0 $@
21798
21799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21800 "
21801
21802 _ACEOF
21803
21804 cat >>$CONFIG_STATUS <<_ACEOF
21805 # Files that config.status was made for.
21806 config_files="$ac_config_files"
21807 config_headers="$ac_config_headers"
21808 config_commands="$ac_config_commands"
21809
21810 _ACEOF
21811
21812 cat >>$CONFIG_STATUS <<\_ACEOF
21813 ac_cs_usage="\
21814 \`$as_me' instantiates files from templates according to the
21815 current configuration.
21816
21817 Usage: $0 [OPTIONS] [FILE]...
21818
21819   -h, --help       print this help, then exit
21820   -V, --version    print version number, then exit
21821   -q, --quiet      do not print progress messages
21822   -d, --debug      don't remove temporary files
21823       --recheck    update $as_me by reconfiguring in the same conditions
21824   --file=FILE[:TEMPLATE]
21825                    instantiate the configuration file FILE
21826   --header=FILE[:TEMPLATE]
21827                    instantiate the configuration header FILE
21828
21829 Configuration files:
21830 $config_files
21831
21832 Configuration headers:
21833 $config_headers
21834
21835 Configuration commands:
21836 $config_commands
21837
21838 Report bugs to <bug-autoconf@gnu.org>."
21839
21840 _ACEOF
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 ac_cs_version="\\
21843 LLVM config.status 3.2svn
21844 configured by $0, generated by GNU Autoconf 2.60,
21845   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21846
21847 Copyright (C) 2006 Free Software Foundation, Inc.
21848 This config.status script is free software; the Free Software Foundation
21849 gives unlimited permission to copy, distribute and modify it."
21850
21851 ac_pwd='$ac_pwd'
21852 srcdir='$srcdir'
21853 INSTALL='$INSTALL'
21854 _ACEOF
21855
21856 cat >>$CONFIG_STATUS <<\_ACEOF
21857 # If no file are specified by the user, then we need to provide default
21858 # value.  By we need to know if files were specified by the user.
21859 ac_need_defaults=:
21860 while test $# != 0
21861 do
21862   case $1 in
21863   --*=*)
21864     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21865     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21866     ac_shift=:
21867     ;;
21868   *)
21869     ac_option=$1
21870     ac_optarg=$2
21871     ac_shift=shift
21872     ;;
21873   esac
21874
21875   case $ac_option in
21876   # Handling of the options.
21877   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21878     ac_cs_recheck=: ;;
21879   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21880     echo "$ac_cs_version"; exit ;;
21881   --debug | --debu | --deb | --de | --d | -d )
21882     debug=: ;;
21883   --file | --fil | --fi | --f )
21884     $ac_shift
21885     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21886     ac_need_defaults=false;;
21887   --header | --heade | --head | --hea )
21888     $ac_shift
21889     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21890     ac_need_defaults=false;;
21891   --he | --h)
21892     # Conflict between --help and --header
21893     { echo "$as_me: error: ambiguous option: $1
21894 Try \`$0 --help' for more information." >&2
21895    { (exit 1); exit 1; }; };;
21896   --help | --hel | -h )
21897     echo "$ac_cs_usage"; exit ;;
21898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21900     ac_cs_silent=: ;;
21901
21902   # This is an error.
21903   -*) { echo "$as_me: error: unrecognized option: $1
21904 Try \`$0 --help' for more information." >&2
21905    { (exit 1); exit 1; }; } ;;
21906
21907   *) ac_config_targets="$ac_config_targets $1"
21908      ac_need_defaults=false ;;
21909
21910   esac
21911   shift
21912 done
21913
21914 ac_configure_extra_args=
21915
21916 if $ac_cs_silent; then
21917   exec 6>/dev/null
21918   ac_configure_extra_args="$ac_configure_extra_args --silent"
21919 fi
21920
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 if \$ac_cs_recheck; then
21924   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21925   CONFIG_SHELL=$SHELL
21926   export CONFIG_SHELL
21927   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21928 fi
21929
21930 _ACEOF
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21932 exec 5>>config.log
21933 {
21934   echo
21935   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936 ## Running $as_me. ##
21937 _ASBOX
21938   echo "$ac_log"
21939 } >&5
21940
21941 _ACEOF
21942 cat >>$CONFIG_STATUS <<_ACEOF
21943 #
21944 # INIT-COMMANDS
21945 #
21946 llvm_src="${srcdir}"
21947
21948 _ACEOF
21949
21950 cat >>$CONFIG_STATUS <<\_ACEOF
21951
21952 # Handling of arguments.
21953 for ac_config_target in $ac_config_targets
21954 do
21955   case $ac_config_target in
21956     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21957     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21958     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21959     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21960     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21961     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21962     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21963     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21964     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21965     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21966     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21967     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21968     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21969     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21970     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21971     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21972     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21973     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21974     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21975     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21976     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21977     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21978     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21979     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21980     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21981     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21982     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21983
21984   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21986    { (exit 1); exit 1; }; };;
21987   esac
21988 done
21989
21990
21991 # If the user did not use the arguments to specify the items to instantiate,
21992 # then the envvar interface is used.  Set only those that are not.
21993 # We use the long form for the default assignment because of an extremely
21994 # bizarre bug on SunOS 4.1.3.
21995 if $ac_need_defaults; then
21996   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21997   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21998   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21999 fi
22000
22001 # Have a temporary directory for convenience.  Make it in the build tree
22002 # simply because there is no reason against having it here, and in addition,
22003 # creating and moving files from /tmp can sometimes cause problems.
22004 # Hook for its removal unless debugging.
22005 # Note that there is a small window in which the directory will not be cleaned:
22006 # after its creation but before its name has been assigned to `$tmp'.
22007 $debug ||
22008 {
22009   tmp=
22010   trap 'exit_status=$?
22011   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22012 ' 0
22013   trap '{ (exit 1); exit 1; }' 1 2 13 15
22014 }
22015 # Create a (secure) tmp directory for tmp files.
22016
22017 {
22018   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22019   test -n "$tmp" && test -d "$tmp"
22020 }  ||
22021 {
22022   tmp=./conf$$-$RANDOM
22023   (umask 077 && mkdir "$tmp")
22024 } ||
22025 {
22026    echo "$me: cannot create a temporary directory in ." >&2
22027    { (exit 1); exit 1; }
22028 }
22029
22030 #
22031 # Set up the sed scripts for CONFIG_FILES section.
22032 #
22033
22034 # No need to generate the scripts if there are no CONFIG_FILES.
22035 # This happens for instance when ./config.status config.h
22036 if test -n "$CONFIG_FILES"; then
22037
22038 _ACEOF
22039
22040
22041
22042 ac_delim='%!_!# '
22043 for ac_last_try in false false false false false :; do
22044   cat >conf$$subs.sed <<_ACEOF
22045 SHELL!$SHELL$ac_delim
22046 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22047 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22048 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22049 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22050 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22051 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22052 exec_prefix!$exec_prefix$ac_delim
22053 prefix!$prefix$ac_delim
22054 program_transform_name!$program_transform_name$ac_delim
22055 bindir!$bindir$ac_delim
22056 sbindir!$sbindir$ac_delim
22057 libexecdir!$libexecdir$ac_delim
22058 datarootdir!$datarootdir$ac_delim
22059 datadir!$datadir$ac_delim
22060 sysconfdir!$sysconfdir$ac_delim
22061 sharedstatedir!$sharedstatedir$ac_delim
22062 localstatedir!$localstatedir$ac_delim
22063 includedir!$includedir$ac_delim
22064 oldincludedir!$oldincludedir$ac_delim
22065 docdir!$docdir$ac_delim
22066 infodir!$infodir$ac_delim
22067 htmldir!$htmldir$ac_delim
22068 dvidir!$dvidir$ac_delim
22069 pdfdir!$pdfdir$ac_delim
22070 psdir!$psdir$ac_delim
22071 libdir!$libdir$ac_delim
22072 localedir!$localedir$ac_delim
22073 mandir!$mandir$ac_delim
22074 DEFS!$DEFS$ac_delim
22075 ECHO_C!$ECHO_C$ac_delim
22076 ECHO_N!$ECHO_N$ac_delim
22077 ECHO_T!$ECHO_T$ac_delim
22078 LIBS!$LIBS$ac_delim
22079 build_alias!$build_alias$ac_delim
22080 host_alias!$host_alias$ac_delim
22081 target_alias!$target_alias$ac_delim
22082 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22083 CC!$CC$ac_delim
22084 CFLAGS!$CFLAGS$ac_delim
22085 LDFLAGS!$LDFLAGS$ac_delim
22086 CPPFLAGS!$CPPFLAGS$ac_delim
22087 ac_ct_CC!$ac_ct_CC$ac_delim
22088 EXEEXT!$EXEEXT$ac_delim
22089 OBJEXT!$OBJEXT$ac_delim
22090 CXX!$CXX$ac_delim
22091 CXXFLAGS!$CXXFLAGS$ac_delim
22092 ac_ct_CXX!$ac_ct_CXX$ac_delim
22093 CPP!$CPP$ac_delim
22094 subdirs!$subdirs$ac_delim
22095 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22096 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22097 build!$build$ac_delim
22098 build_cpu!$build_cpu$ac_delim
22099 build_vendor!$build_vendor$ac_delim
22100 build_os!$build_os$ac_delim
22101 host!$host$ac_delim
22102 host_cpu!$host_cpu$ac_delim
22103 host_vendor!$host_vendor$ac_delim
22104 host_os!$host_os$ac_delim
22105 target!$target$ac_delim
22106 target_cpu!$target_cpu$ac_delim
22107 target_vendor!$target_vendor$ac_delim
22108 target_os!$target_os$ac_delim
22109 OS!$OS$ac_delim
22110 HOST_OS!$HOST_OS$ac_delim
22111 TARGET_OS!$TARGET_OS$ac_delim
22112 LINKALL!$LINKALL$ac_delim
22113 NOLINKALL!$NOLINKALL$ac_delim
22114 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22115 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22116 ARCH!$ARCH$ac_delim
22117 HOST_ARCH!$HOST_ARCH$ac_delim
22118 ENDIAN!$ENDIAN$ac_delim
22119 GREP!$GREP$ac_delim
22120 EGREP!$EGREP$ac_delim
22121 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22122 BUILD_CC!$BUILD_CC$ac_delim
22123 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22124 BUILD_CXX!$BUILD_CXX$ac_delim
22125 CVSBUILD!$CVSBUILD$ac_delim
22126 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22127 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22128 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22129 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22130 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22131 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22132 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22133 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22134 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22135 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22136 JIT!$JIT$ac_delim
22137 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22138 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22139 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22140 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22141 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22142 _ACEOF
22143
22144   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22145     break
22146   elif $ac_last_try; then
22147     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22148 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22149    { (exit 1); exit 1; }; }
22150   else
22151     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22152   fi
22153 done
22154
22155 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22156 if test -n "$ac_eof"; then
22157   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22158   ac_eof=`expr $ac_eof + 1`
22159 fi
22160
22161 cat >>$CONFIG_STATUS <<_ACEOF
22162 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164 _ACEOF
22165 sed '
22166 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22167 s/^/s,@/; s/!/@,|#_!!_#|/
22168 :n
22169 t n
22170 s/'"$ac_delim"'$/,g/; t
22171 s/$/\\/; p
22172 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22173 ' >>$CONFIG_STATUS <conf$$subs.sed
22174 rm -f conf$$subs.sed
22175 cat >>$CONFIG_STATUS <<_ACEOF
22176 CEOF$ac_eof
22177 _ACEOF
22178
22179
22180 ac_delim='%!_!# '
22181 for ac_last_try in false false false false false :; do
22182   cat >conf$$subs.sed <<_ACEOF
22183 ENABLE_PIC!$ENABLE_PIC$ac_delim
22184 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22185 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22186 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22187 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22188 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22189 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22190 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22191 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22192 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22193 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22194 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22195 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22196 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22197 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22198 NM!$NM$ac_delim
22199 ifGNUmake!$ifGNUmake$ac_delim
22200 LN_S!$LN_S$ac_delim
22201 CMP!$CMP$ac_delim
22202 CP!$CP$ac_delim
22203 DATE!$DATE$ac_delim
22204 FIND!$FIND$ac_delim
22205 MKDIR!$MKDIR$ac_delim
22206 MV!$MV$ac_delim
22207 RANLIB!$RANLIB$ac_delim
22208 AR!$AR$ac_delim
22209 RM!$RM$ac_delim
22210 SED!$SED$ac_delim
22211 TAR!$TAR$ac_delim
22212 BINPWD!$BINPWD$ac_delim
22213 GRAPHVIZ!$GRAPHVIZ$ac_delim
22214 DOT!$DOT$ac_delim
22215 FDP!$FDP$ac_delim
22216 NEATO!$NEATO$ac_delim
22217 TWOPI!$TWOPI$ac_delim
22218 CIRCO!$CIRCO$ac_delim
22219 GV!$GV$ac_delim
22220 DOTTY!$DOTTY$ac_delim
22221 XDOT_PY!$XDOT_PY$ac_delim
22222 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22223 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22224 INSTALL_DATA!$INSTALL_DATA$ac_delim
22225 BZIP2!$BZIP2$ac_delim
22226 CAT!$CAT$ac_delim
22227 DOXYGEN!$DOXYGEN$ac_delim
22228 GROFF!$GROFF$ac_delim
22229 GZIPBIN!$GZIPBIN$ac_delim
22230 PDFROFF!$PDFROFF$ac_delim
22231 ZIP!$ZIP$ac_delim
22232 OCAMLC!$OCAMLC$ac_delim
22233 OCAMLOPT!$OCAMLOPT$ac_delim
22234 OCAMLDEP!$OCAMLDEP$ac_delim
22235 OCAMLDOC!$OCAMLDOC$ac_delim
22236 GAS!$GAS$ac_delim
22237 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22238 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22239 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22240 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22241 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22242 LIBADD_DL!$LIBADD_DL$ac_delim
22243 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22244 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22245 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22246 USE_UDIS86!$USE_UDIS86$ac_delim
22247 USE_OPROFILE!$USE_OPROFILE$ac_delim
22248 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22249 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22250 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22251 XML2CONFIG!$XML2CONFIG$ac_delim
22252 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22253 LIBXML2_INC!$LIBXML2_INC$ac_delim
22254 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22255 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22256 MMAP_FILE!$MMAP_FILE$ac_delim
22257 SHLIBEXT!$SHLIBEXT$ac_delim
22258 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22259 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22260 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22261 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22262 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22263 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22264 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22265 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22266 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22267 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22268 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22269 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22270 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22271 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22272 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22273 RPATH!$RPATH$ac_delim
22274 RDYNAMIC!$RDYNAMIC$ac_delim
22275 LIBOBJS!$LIBOBJS$ac_delim
22276 LTLIBOBJS!$LTLIBOBJS$ac_delim
22277 _ACEOF
22278
22279   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22280     break
22281   elif $ac_last_try; then
22282     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22284    { (exit 1); exit 1; }; }
22285   else
22286     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22287   fi
22288 done
22289
22290 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22291 if test -n "$ac_eof"; then
22292   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22293   ac_eof=`expr $ac_eof + 1`
22294 fi
22295
22296 cat >>$CONFIG_STATUS <<_ACEOF
22297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22299 _ACEOF
22300 sed '
22301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22302 s/^/s,@/; s/!/@,|#_!!_#|/
22303 :n
22304 t n
22305 s/'"$ac_delim"'$/,g/; t
22306 s/$/\\/; p
22307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22308 ' >>$CONFIG_STATUS <conf$$subs.sed
22309 rm -f conf$$subs.sed
22310 cat >>$CONFIG_STATUS <<_ACEOF
22311 :end
22312 s/|#_!!_#|//g
22313 CEOF$ac_eof
22314 _ACEOF
22315
22316
22317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22319 # trailing colons and then remove the whole line if VPATH becomes empty
22320 # (actually we leave an empty line to preserve line numbers).
22321 if test "x$srcdir" = x.; then
22322   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22323 s/:*\$(srcdir):*/:/
22324 s/:*\${srcdir}:*/:/
22325 s/:*@srcdir@:*/:/
22326 s/^\([^=]*=[     ]*\):*/\1/
22327 s/:*$//
22328 s/^[^=]*=[       ]*$//
22329 }'
22330 fi
22331
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 fi # test -n "$CONFIG_FILES"
22334
22335
22336 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22337 do
22338   case $ac_tag in
22339   :[FHLC]) ac_mode=$ac_tag; continue;;
22340   esac
22341   case $ac_mode$ac_tag in
22342   :[FHL]*:*);;
22343   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22345    { (exit 1); exit 1; }; };;
22346   :[FH]-) ac_tag=-:-;;
22347   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22348   esac
22349   ac_save_IFS=$IFS
22350   IFS=:
22351   set x $ac_tag
22352   IFS=$ac_save_IFS
22353   shift
22354   ac_file=$1
22355   shift
22356
22357   case $ac_mode in
22358   :L) ac_source=$1;;
22359   :[FH])
22360     ac_file_inputs=
22361     for ac_f
22362     do
22363       case $ac_f in
22364       -) ac_f="$tmp/stdin";;
22365       *) # Look for the file first in the build tree, then in the source tree
22366          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22367          # because $ac_f cannot contain `:'.
22368          test -f "$ac_f" ||
22369            case $ac_f in
22370            [\\/$]*) false;;
22371            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22372            esac ||
22373            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22375    { (exit 1); exit 1; }; };;
22376       esac
22377       ac_file_inputs="$ac_file_inputs $ac_f"
22378     done
22379
22380     # Let's still pretend it is `configure' which instantiates (i.e., don't
22381     # use $as_me), people would be surprised to read:
22382     #    /* config.h.  Generated by config.status.  */
22383     configure_input="Generated from "`IFS=:
22384           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22385     if test x"$ac_file" != x-; then
22386       configure_input="$ac_file.  $configure_input"
22387       { echo "$as_me:$LINENO: creating $ac_file" >&5
22388 echo "$as_me: creating $ac_file" >&6;}
22389     fi
22390
22391     case $ac_tag in
22392     *:-:* | *:-) cat >"$tmp/stdin";;
22393     esac
22394     ;;
22395   esac
22396
22397   ac_dir=`$as_dirname -- "$ac_file" ||
22398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399          X"$ac_file" : 'X\(//\)[^/]' \| \
22400          X"$ac_file" : 'X\(//\)$' \| \
22401          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22402 echo X"$ac_file" |
22403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22404             s//\1/
22405             q
22406           }
22407           /^X\(\/\/\)[^/].*/{
22408             s//\1/
22409             q
22410           }
22411           /^X\(\/\/\)$/{
22412             s//\1/
22413             q
22414           }
22415           /^X\(\/\).*/{
22416             s//\1/
22417             q
22418           }
22419           s/.*/./; q'`
22420   { as_dir="$ac_dir"
22421   case $as_dir in #(
22422   -*) as_dir=./$as_dir;;
22423   esac
22424   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22425     as_dirs=
22426     while :; do
22427       case $as_dir in #(
22428       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22429       *) as_qdir=$as_dir;;
22430       esac
22431       as_dirs="'$as_qdir' $as_dirs"
22432       as_dir=`$as_dirname -- "$as_dir" ||
22433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22434          X"$as_dir" : 'X\(//\)[^/]' \| \
22435          X"$as_dir" : 'X\(//\)$' \| \
22436          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22437 echo X"$as_dir" |
22438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22439             s//\1/
22440             q
22441           }
22442           /^X\(\/\/\)[^/].*/{
22443             s//\1/
22444             q
22445           }
22446           /^X\(\/\/\)$/{
22447             s//\1/
22448             q
22449           }
22450           /^X\(\/\).*/{
22451             s//\1/
22452             q
22453           }
22454           s/.*/./; q'`
22455       test -d "$as_dir" && break
22456     done
22457     test -z "$as_dirs" || eval "mkdir $as_dirs"
22458   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22460    { (exit 1); exit 1; }; }; }
22461   ac_builddir=.
22462
22463 case "$ac_dir" in
22464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22465 *)
22466   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22467   # A ".." for each directory in $ac_dir_suffix.
22468   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22469   case $ac_top_builddir_sub in
22470   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22471   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22472   esac ;;
22473 esac
22474 ac_abs_top_builddir=$ac_pwd
22475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22476 # for backward compatibility:
22477 ac_top_builddir=$ac_top_build_prefix
22478
22479 case $srcdir in
22480   .)  # We are building in place.
22481     ac_srcdir=.
22482     ac_top_srcdir=$ac_top_builddir_sub
22483     ac_abs_top_srcdir=$ac_pwd ;;
22484   [\\/]* | ?:[\\/]* )  # Absolute name.
22485     ac_srcdir=$srcdir$ac_dir_suffix;
22486     ac_top_srcdir=$srcdir
22487     ac_abs_top_srcdir=$srcdir ;;
22488   *) # Relative name.
22489     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22490     ac_top_srcdir=$ac_top_build_prefix$srcdir
22491     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22492 esac
22493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22494
22495
22496   case $ac_mode in
22497   :F)
22498   #
22499   # CONFIG_FILE
22500   #
22501
22502   case $INSTALL in
22503   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22504   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22505   esac
22506 _ACEOF
22507
22508 cat >>$CONFIG_STATUS <<\_ACEOF
22509 # If the template does not know about datarootdir, expand it.
22510 # FIXME: This hack should be removed a few years after 2.60.
22511 ac_datarootdir_hack=; ac_datarootdir_seen=
22512
22513 case `sed -n '/datarootdir/ {
22514   p
22515   q
22516 }
22517 /@datadir@/p
22518 /@docdir@/p
22519 /@infodir@/p
22520 /@localedir@/p
22521 /@mandir@/p
22522 ' $ac_file_inputs` in
22523 *datarootdir*) ac_datarootdir_seen=yes;;
22524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22525   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22526 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22527 _ACEOF
22528 cat >>$CONFIG_STATUS <<_ACEOF
22529   ac_datarootdir_hack='
22530   s&@datadir@&$datadir&g
22531   s&@docdir@&$docdir&g
22532   s&@infodir@&$infodir&g
22533   s&@localedir@&$localedir&g
22534   s&@mandir@&$mandir&g
22535     s&\\\${datarootdir}&$datarootdir&g' ;;
22536 esac
22537 _ACEOF
22538
22539 # Neutralize VPATH when `$srcdir' = `.'.
22540 # Shell code in configure.ac might set extrasub.
22541 # FIXME: do we really want to maintain this feature?
22542 cat >>$CONFIG_STATUS <<_ACEOF
22543   sed "$ac_vpsub
22544 $extrasub
22545 _ACEOF
22546 cat >>$CONFIG_STATUS <<\_ACEOF
22547 :t
22548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22549 s&@configure_input@&$configure_input&;t t
22550 s&@top_builddir@&$ac_top_builddir_sub&;t t
22551 s&@srcdir@&$ac_srcdir&;t t
22552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22553 s&@top_srcdir@&$ac_top_srcdir&;t t
22554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22555 s&@builddir@&$ac_builddir&;t t
22556 s&@abs_builddir@&$ac_abs_builddir&;t t
22557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22558 s&@INSTALL@&$ac_INSTALL&;t t
22559 $ac_datarootdir_hack
22560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22561
22562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22563   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22564   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22565   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22566 which seems to be undefined.  Please make sure it is defined." >&5
22567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined.  Please make sure it is defined." >&2;}
22569
22570   rm -f "$tmp/stdin"
22571   case $ac_file in
22572   -) cat "$tmp/out"; rm -f "$tmp/out";;
22573   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22574   esac
22575  ;;
22576   :H)
22577   #
22578   # CONFIG_HEADER
22579   #
22580 _ACEOF
22581
22582 # Transform confdefs.h into a sed script `conftest.defines', that
22583 # substitutes the proper values into config.h.in to produce config.h.
22584 rm -f conftest.defines conftest.tail
22585 # First, append a space to every undef/define line, to ease matching.
22586 echo 's/$/ /' >conftest.defines
22587 # Then, protect against being on the right side of a sed subst, or in
22588 # an unquoted here document, in config.status.  If some macros were
22589 # called several times there might be several #defines for the same
22590 # symbol, which is useless.  But do not sort them, since the last
22591 # AC_DEFINE must be honored.
22592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22595 # PARAMS is the parameter list in the macro definition--in most cases, it's
22596 # just an empty string.
22597 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22598 ac_dB='\\)[      (].*,\\1define\\2'
22599 ac_dC=' '
22600 ac_dD=' ,'
22601
22602 uniq confdefs.h |
22603   sed -n '
22604         t rset
22605         :rset
22606         s/^[     ]*#[    ]*define[       ][      ]*//
22607         t ok
22608         d
22609         :ok
22610         s/[\\&,]/\\&/g
22611         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22612         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22613   ' >>conftest.defines
22614
22615 # Remove the space that was appended to ease matching.
22616 # Then replace #undef with comments.  This is necessary, for
22617 # example, in the case of _POSIX_SOURCE, which is predefined and required
22618 # on some systems where configure will not decide to define it.
22619 # (The regexp can be short, since the line contains either #define or #undef.)
22620 echo 's/ $//
22621 s,^[     #]*u.*,/* & */,' >>conftest.defines
22622
22623 # Break up conftest.defines:
22624 ac_max_sed_lines=50
22625
22626 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22627 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22628 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22629 # et cetera.
22630 ac_in='$ac_file_inputs'
22631 ac_out='"$tmp/out1"'
22632 ac_nxt='"$tmp/out2"'
22633
22634 while :
22635 do
22636   # Write a here document:
22637     cat >>$CONFIG_STATUS <<_ACEOF
22638     # First, check the format of the line:
22639     cat >"\$tmp/defines.sed" <<\\CEOF
22640 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22641 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22642 b
22643 :def
22644 _ACEOF
22645   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22646   echo 'CEOF
22647     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22648   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22649   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22650   grep . conftest.tail >/dev/null || break
22651   rm -f conftest.defines
22652   mv conftest.tail conftest.defines
22653 done
22654 rm -f conftest.defines conftest.tail
22655
22656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658   if test x"$ac_file" != x-; then
22659     echo "/* $configure_input  */" >"$tmp/config.h"
22660     cat "$ac_result" >>"$tmp/config.h"
22661     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22662       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22663 echo "$as_me: $ac_file is unchanged" >&6;}
22664     else
22665       rm -f $ac_file
22666       mv "$tmp/config.h" $ac_file
22667     fi
22668   else
22669     echo "/* $configure_input  */"
22670     cat "$ac_result"
22671   fi
22672   rm -f "$tmp/out12"
22673  ;;
22674
22675   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22676 echo "$as_me: executing $ac_file commands" >&6;}
22677  ;;
22678   esac
22679
22680
22681   case $ac_file$ac_mode in
22682     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22683    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22684     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22685    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22686     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22687    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22688     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22689    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22690     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22691    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22692     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22693    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22694     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22695    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22696     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22697    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22698     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22699    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22700     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22701    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22702     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22703    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22704     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22705    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22706     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22707    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22708
22709   esac
22710 done # for ac_tag
22711
22712
22713 { (exit 0); exit 0; }
22714 _ACEOF
22715 chmod +x $CONFIG_STATUS
22716 ac_clean_files=$ac_clean_files_save
22717
22718
22719 # configure is writing to config.log, and then calls config.status.
22720 # config.status does its own redirection, appending to config.log.
22721 # Unfortunately, on DOS this fails, as config.log is still kept open
22722 # by configure, so config.status won't be able to write to it; its
22723 # output is simply discarded.  So we exec the FD to /dev/null,
22724 # effectively closing config.log, so it can be properly (re)opened and
22725 # appended to by config.status.  When coming back to configure, we
22726 # need to make the FD available again.
22727 if test "$no_create" != yes; then
22728   ac_cs_success=:
22729   ac_config_status_args=
22730   test "$silent" = yes &&
22731     ac_config_status_args="$ac_config_status_args --quiet"
22732   exec 5>/dev/null
22733   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22734   exec 5>>config.log
22735   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22736   # would make configure fail if this is the last instruction.
22737   $ac_cs_success || { (exit 1); exit 1; }
22738 fi
22739
22740 #
22741 # CONFIG_SUBDIRS section.
22742 #
22743 if test "$no_recursion" != yes; then
22744
22745   # Remove --cache-file and --srcdir arguments so they do not pile up.
22746   ac_sub_configure_args=
22747   ac_prev=
22748   eval "set x $ac_configure_args"
22749   shift
22750   for ac_arg
22751   do
22752     if test -n "$ac_prev"; then
22753       ac_prev=
22754       continue
22755     fi
22756     case $ac_arg in
22757     -cache-file | --cache-file | --cache-fil | --cache-fi \
22758     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22759       ac_prev=cache_file ;;
22760     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22761     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22762     | --c=*)
22763       ;;
22764     --config-cache | -C)
22765       ;;
22766     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22767       ac_prev=srcdir ;;
22768     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22769       ;;
22770     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22771       ac_prev=prefix ;;
22772     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22773       ;;
22774     *)
22775       case $ac_arg in
22776       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22777       esac
22778       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22779     esac
22780   done
22781
22782   # Always prepend --prefix to ensure using the same prefix
22783   # in subdir configurations.
22784   ac_arg="--prefix=$prefix"
22785   case $ac_arg in
22786   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22787   esac
22788   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22789
22790   ac_popdir=`pwd`
22791   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22792
22793     # Do not complain, so a configure script can configure whichever
22794     # parts of a large source tree are present.
22795     test -d "$srcdir/$ac_dir" || continue
22796
22797     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22798     echo "$as_me:$LINENO: $ac_msg" >&5
22799     echo "$ac_msg" >&6
22800     { as_dir="$ac_dir"
22801   case $as_dir in #(
22802   -*) as_dir=./$as_dir;;
22803   esac
22804   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22805     as_dirs=
22806     while :; do
22807       case $as_dir in #(
22808       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22809       *) as_qdir=$as_dir;;
22810       esac
22811       as_dirs="'$as_qdir' $as_dirs"
22812       as_dir=`$as_dirname -- "$as_dir" ||
22813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22814          X"$as_dir" : 'X\(//\)[^/]' \| \
22815          X"$as_dir" : 'X\(//\)$' \| \
22816          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22817 echo X"$as_dir" |
22818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22819             s//\1/
22820             q
22821           }
22822           /^X\(\/\/\)[^/].*/{
22823             s//\1/
22824             q
22825           }
22826           /^X\(\/\/\)$/{
22827             s//\1/
22828             q
22829           }
22830           /^X\(\/\).*/{
22831             s//\1/
22832             q
22833           }
22834           s/.*/./; q'`
22835       test -d "$as_dir" && break
22836     done
22837     test -z "$as_dirs" || eval "mkdir $as_dirs"
22838   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22839 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22840    { (exit 1); exit 1; }; }; }
22841     ac_builddir=.
22842
22843 case "$ac_dir" in
22844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22845 *)
22846   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22847   # A ".." for each directory in $ac_dir_suffix.
22848   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22849   case $ac_top_builddir_sub in
22850   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22851   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22852   esac ;;
22853 esac
22854 ac_abs_top_builddir=$ac_pwd
22855 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22856 # for backward compatibility:
22857 ac_top_builddir=$ac_top_build_prefix
22858
22859 case $srcdir in
22860   .)  # We are building in place.
22861     ac_srcdir=.
22862     ac_top_srcdir=$ac_top_builddir_sub
22863     ac_abs_top_srcdir=$ac_pwd ;;
22864   [\\/]* | ?:[\\/]* )  # Absolute name.
22865     ac_srcdir=$srcdir$ac_dir_suffix;
22866     ac_top_srcdir=$srcdir
22867     ac_abs_top_srcdir=$srcdir ;;
22868   *) # Relative name.
22869     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22870     ac_top_srcdir=$ac_top_build_prefix$srcdir
22871     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22872 esac
22873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22874
22875
22876     cd "$ac_dir"
22877
22878     # Check for guested configure; otherwise get Cygnus style configure.
22879     if test -f "$ac_srcdir/configure.gnu"; then
22880       ac_sub_configure=$ac_srcdir/configure.gnu
22881     elif test -f "$ac_srcdir/configure"; then
22882       ac_sub_configure=$ac_srcdir/configure
22883     elif test -f "$ac_srcdir/configure.in"; then
22884       # This should be Cygnus configure.
22885       ac_sub_configure=$ac_aux_dir/configure
22886     else
22887       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22888 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22889       ac_sub_configure=
22890     fi
22891
22892     # The recursion is here.
22893     if test -n "$ac_sub_configure"; then
22894       # Make the cache file name correct relative to the subdirectory.
22895       case $cache_file in
22896       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22897       *) # Relative name.
22898         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22899       esac
22900
22901       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22902 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22903       # The eval makes quoting arguments work.
22904       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22905            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22906         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22907 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22908    { (exit 1); exit 1; }; }
22909     fi
22910
22911     cd "$ac_popdir"
22912   done
22913 fi
22914