3664774fe97a4c6dc64d8125f8f5a9a5474d90dd
[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 KEEP_SYMBOLS
697 JIT
698 TARGET_HAS_JIT
699 ENABLE_DOCS
700 ENABLE_DOXYGEN
701 LLVM_ENABLE_THREADS
702 ENABLE_PTHREADS
703 ENABLE_PIC
704 ENABLE_SHARED
705 ENABLE_EMBED_STDCXX
706 ENABLE_TIMESTAMPS
707 TARGETS_TO_BUILD
708 LLVM_ENUM_TARGETS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
712 OPTIMIZE_OPTION
713 EXTRA_OPTIONS
714 EXTRA_LD_OPTIONS
715 CLANG_SRC_ROOT
716 BINUTILS_INCDIR
717 INTERNAL_PREFIX
718 NM
719 ifGNUmake
720 LN_S
721 CMP
722 CP
723 DATE
724 FIND
725 MKDIR
726 MV
727 RANLIB
728 AR
729 RM
730 SED
731 TAR
732 BINPWD
733 GRAPHVIZ
734 DOT
735 FDP
736 NEATO
737 TWOPI
738 CIRCO
739 GV
740 DOTTY
741 XDOT_PY
742 INSTALL_PROGRAM
743 INSTALL_SCRIPT
744 INSTALL_DATA
745 BZIP2
746 CAT
747 DOXYGEN
748 GROFF
749 GZIPBIN
750 PDFROFF
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
771 XML2CONFIG
772 LIBXML2_LIBS
773 LIBXML2_INC
774 HAVE_PTHREAD
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP'
810 ac_subdirs_all='projects/llvm-gcc
811 projects/test-suite
812 projects/llvm-test
813 projects/poolalloc
814 projects/llvm-poolalloc
815 projects/sample
816 projects/privbracket
817 projects/llvm-stacker
818 projects/llvm-reopt
819 projects/llvm-java
820 projects/llvm-tv
821 projects/safecode
822 projects/llvm-kernel
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-polly          Use polly if available (default is YES)
1399   --enable-libcpp         Use libc++ if available (default is NO)
1400   --enable-cxx11          Use c++11 if available (default is NO)
1401   --enable-optimized      Compile with optimizations enabled (default is NO)
1402   --enable-profiling      Compile with profiling enabled (default is NO)
1403   --enable-assertions     Compile with assertion checks enabled (default is
1404                           YES)
1405   --enable-werror         Compile with -Werror enabled (default is NO)
1406   --enable-expensive-checks
1407                           Compile with expensive debug checks enabled (default
1408                           is NO)
1409   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1410                           NO)
1411   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1412                           optimization is on and YES if it's off)
1413   --enable-keep-symbols   Do not strip installed executables)
1414   --enable-jit            Enable Just In Time Compiling (default is YES)
1415   --enable-docs           Build documents (default is YES)
1416   --enable-doxygen        Build doxygen documentation (default is NO)
1417   --enable-threads        Use threads if available (default is YES)
1418   --enable-pthreads       Use pthreads if available (default is YES)
1419   --enable-pic            Build LLVM with Position Independent Code (default
1420                           is YES)
1421   --enable-shared         Build a shared library and link tools against it
1422                           (default is NO)
1423   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1424                           Win32 DLL (default is NO)
1425   --enable-timestamps     Enable embedding timestamp information in build
1426                           (default is YES)
1427   --enable-backtraces     Enable embedding backtraces on crash (default is
1428                           YES)
1429   --enable-targets        Build specific host targets: all or
1430                           target1,target2,... Valid targets are: host, x86,
1431                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1432                           xcore, msp430, nvptx, and cpp (default=all)
1433   --enable-experimental-targets
1434                           Build experimental host targets: disable or
1435                           target1,target2,... (default=disable)
1436   --enable-bindings       Build specific language bindings:
1437                           all,auto,none,{binding-name} (default=auto)
1438   --enable-libffi         Check for the presence of libffi (default is NO)
1439   --enable-ltdl-install   install libltdl
1440
1441 Optional Packages:
1442   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444   --with-optimize-option  Select the compiler options to use for optimized
1445                           builds
1446   --with-extra-options    Specify additional options to compile LLVM with
1447   --with-extra-ld-options Specify additional options to link LLVM with
1448   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1449                           is stdlib)
1450   --with-clang-srcdir     Directory to the out-of-tree Clang source
1451   --with-clang-resource-dir
1452                           Relative directory from the Clang binary for
1453                           resource files
1454   --with-c-include-dirs   Colon separated list of directories clang will
1455                           search for headers
1456   --with-gcc-toolchain    Directory where gcc is installed.
1457   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1458   --with-binutils-include Specify path to binutils/include/ containing
1459                           plugin-api.h file for gold plugin.
1460   --with-bug-report-url   Specify the URL where bug reports should be
1461                           submitted (default=http://llvm.org/bugs/)
1462   --with-internal-prefix  Installation directory for internal files
1463   --with-udis86=<path>    Use udis86 external x86 disassembler library
1464   --with-oprofile=<prefix>
1465                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1466   --with-intel-jitevents=<vtune-amplifier-dir>
1467                           Specify location of run-time support library for
1468                           Intel JIT API
1469                           (default=/opt/intel/vtune_amplifier_xe_2011)
1470
1471 Some influential environment variables:
1472   CC          C compiler command
1473   CFLAGS      C compiler flags
1474   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475               nonstandard directory <lib dir>
1476   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CPP         C preprocessor
1481
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <http://llvm.org/bugs/>.
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" || continue
1494     ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500   # A ".." for each directory in $ac_dir_suffix.
1501   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502   case $ac_top_builddir_sub in
1503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505   esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513   .)  # We are building in place.
1514     ac_srcdir=.
1515     ac_top_srcdir=$ac_top_builddir_sub
1516     ac_abs_top_srcdir=$ac_pwd ;;
1517   [\\/]* | ?:[\\/]* )  # Absolute name.
1518     ac_srcdir=$srcdir$ac_dir_suffix;
1519     ac_top_srcdir=$srcdir
1520     ac_abs_top_srcdir=$srcdir ;;
1521   *) # Relative name.
1522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523     ac_top_srcdir=$ac_top_build_prefix$srcdir
1524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528     cd "$ac_dir" || { ac_status=$?; continue; }
1529     # Check for guested configure.
1530     if test -f "$ac_srcdir/configure.gnu"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533     elif test -f "$ac_srcdir/configure"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure" --help=recursive
1536     else
1537       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538     fi || ac_status=$?
1539     cd "$ac_pwd" || { ac_status=$?; break; }
1540   done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545   cat <<\_ACEOF
1546 LLVM configure 3.2svn
1547 generated by GNU Autoconf 2.60
1548
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553
1554 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1555 _ACEOF
1556   exit
1557 fi
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1561
1562 It was created by LLVM $as_me 3.2svn, which was
1563 generated by GNU Autoconf 2.60.  Invocation command line was
1564
1565   $ $0 $@
1566
1567 _ACEOF
1568 exec 5>>config.log
1569 {
1570 cat <<_ASUNAME
1571 ## --------- ##
1572 ## Platform. ##
1573 ## --------- ##
1574
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1583
1584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1591
1592 _ASUNAME
1593
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   echo "PATH: $as_dir"
1600 done
1601 IFS=$as_save_IFS
1602
1603 } >&5
1604
1605 cat >&5 <<_ACEOF
1606
1607
1608 ## ----------- ##
1609 ## Core tests. ##
1610 ## ----------- ##
1611
1612 _ACEOF
1613
1614
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_configure_args=
1621 ac_configure_args0=
1622 ac_configure_args1=
1623 ac_must_keep_next=false
1624 for ac_pass in 1 2
1625 do
1626   for ac_arg
1627   do
1628     case $ac_arg in
1629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631     | -silent | --silent | --silen | --sile | --sil)
1632       continue ;;
1633     *\'*)
1634       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635     esac
1636     case $ac_pass in
1637     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638     2)
1639       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640       if test $ac_must_keep_next = true; then
1641         ac_must_keep_next=false # Got value, back to normal.
1642       else
1643         case $ac_arg in
1644           *=* | --config-cache | -C | -disable-* | --disable-* \
1645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647           | -with-* | --with-* | -without-* | --without-* | --x)
1648             case "$ac_configure_args0 " in
1649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650             esac
1651             ;;
1652           -* ) ac_must_keep_next=true ;;
1653         esac
1654       fi
1655       ac_configure_args="$ac_configure_args '$ac_arg'"
1656       ;;
1657     esac
1658   done
1659 done
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log.  We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669   # Save into config.log some information that might help in debugging.
1670   {
1671     echo
1672
1673     cat <<\_ASBOX
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1677 _ASBOX
1678     echo
1679     # The following way of writing the cache mishandles newlines in values,
1680 (
1681   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682     eval ac_val=\$$ac_var
1683     case $ac_val in #(
1684     *${as_nl}*)
1685       case $ac_var in #(
1686       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688       esac
1689       case $ac_var in #(
1690       _ | IFS | as_nl) ;; #(
1691       *) $as_unset $ac_var ;;
1692       esac ;;
1693     esac
1694   done
1695   (set) 2>&1 |
1696     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697     *${as_nl}ac_space=\ *)
1698       sed -n \
1699         "s/'\''/'\''\\\\'\'''\''/g;
1700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701       ;; #(
1702     *)
1703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704       ;;
1705     esac |
1706     sort
1707 )
1708     echo
1709
1710     cat <<\_ASBOX
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1714 _ASBOX
1715     echo
1716     for ac_var in $ac_subst_vars
1717     do
1718       eval ac_val=\$$ac_var
1719       case $ac_val in
1720       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721       esac
1722       echo "$ac_var='\''$ac_val'\''"
1723     done | sort
1724     echo
1725
1726     if test -n "$ac_subst_files"; then
1727       cat <<\_ASBOX
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1731 _ASBOX
1732       echo
1733       for ac_var in $ac_subst_files
1734       do
1735         eval ac_val=\$$ac_var
1736         case $ac_val in
1737         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738         esac
1739         echo "$ac_var='\''$ac_val'\''"
1740       done | sort
1741       echo
1742     fi
1743
1744     if test -s confdefs.h; then
1745       cat <<\_ASBOX
1746 ## ----------- ##
1747 ## confdefs.h. ##
1748 ## ----------- ##
1749 _ASBOX
1750       echo
1751       cat confdefs.h
1752       echo
1753     fi
1754     test "$ac_signal" != 0 &&
1755       echo "$as_me: caught signal $ac_signal"
1756     echo "$as_me: exit $exit_status"
1757   } >&5
1758   rm -f core *.core core.conftest.* &&
1759     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760     exit $exit_status
1761 ' 0
1762 for ac_signal in 1 2 13 15; do
1763   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 done
1765 ac_signal=0
1766
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1769
1770 # Predefined preprocessor variables.
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 _ACEOF
1795
1796
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800   set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 else
1804   set x "$ac_default_prefix/share/config.site" \
1805         "$ac_default_prefix/etc/config.site"
1806 fi
1807 shift
1808 for ac_site_file
1809 do
1810   if test -r "$ac_site_file"; then
1811     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813     sed 's/^/| /' "$ac_site_file" >&5
1814     . "$ac_site_file"
1815   fi
1816 done
1817
1818 if test -r "$cache_file"; then
1819   # Some versions of bash will fail to source /dev/null (special
1820   # files actually), so we avoid doing that.
1821   if test -f "$cache_file"; then
1822     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1824     case $cache_file in
1825       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826       *)                      . "./$cache_file";;
1827     esac
1828   fi
1829 else
1830   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1832   >$cache_file
1833 fi
1834
1835 # Check that the precious variables saved in the cache have kept the same
1836 # value.
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840   eval ac_new_set=\$ac_env_${ac_var}_set
1841   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842   eval ac_new_val=\$ac_env_${ac_var}_value
1843   case $ac_old_set,$ac_new_set in
1844     set,)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,set)
1849       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851       ac_cache_corrupted=: ;;
1852     ,);;
1853     *)
1854       if test "x$ac_old_val" != "x$ac_new_val"; then
1855         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1858 echo "$as_me:   former value:  $ac_old_val" >&2;}
1859         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1860 echo "$as_me:   current value: $ac_new_val" >&2;}
1861         ac_cache_corrupted=:
1862       fi;;
1863   esac
1864   # Pass precious variables to config.status.
1865   if test "$ac_new_set" = set; then
1866     case $ac_new_val in
1867     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     *) ac_arg=$ac_var=$ac_new_val ;;
1869     esac
1870     case " $ac_configure_args " in
1871       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1872       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873     esac
1874   fi
1875 done
1876 if $ac_cache_corrupted; then
1877   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913
1914
1915
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MAJOR 3
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<\_ACEOF
1922 #define LLVM_VERSION_MINOR 2
1923 _ACEOF
1924
1925
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1927
1928
1929
1930
1931
1932
1933
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966 if test ${srcdir} != "." ; then
1967   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970    { (exit 1); exit 1; }; }
1971   fi
1972 fi
1973
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980   for ac_prog in clang llvm-gcc gcc
1981   do
1982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005 IFS=$as_save_IFS
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011   { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2013 else
2014   { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2016 fi
2017
2018
2019     test -n "$CC" && break
2020   done
2021 fi
2022 if test -z "$CC"; then
2023   ac_ct_CC=$CC
2024   for ac_prog in clang llvm-gcc gcc
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$ac_ct_CC"; then
2034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_prog_ac_ct_CC="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060 fi
2061
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   if test "x$ac_ct_CC" = x; then
2067     CC=""
2068   else
2069     case $cross_compiling:$ac_tool_warned in
2070 yes:)
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet.  If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet.  If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2078 esac
2079     CC=$ac_ct_CC
2080   fi
2081 fi
2082
2083
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088    { (exit 1); exit 1; }; }
2089
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler --version >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler -v >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler -V >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2143 # of exeext.
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 #
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort.  b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 #
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions.  Remove them first so a
2155 # subsequent execution test works.
2156 ac_rmfiles=
2157 for ac_file in $ac_files
2158 do
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162   esac
2163 done
2164 rm -f $ac_rmfiles
2165
2166 if { (ac_try="$ac_link_default"
2167 case "(($ac_try" in
2168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169   *) ac_try_echo=$ac_try;;
2170 esac
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172   (eval "$ac_link_default") 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2180 # Autoconf.
2181 for ac_file in $ac_files
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186         ;;
2187     [ab].out )
2188         # We found the default executable, but exeext='' is most
2189         # certainly right.
2190         break;;
2191     *.* )
2192         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193         then :; else
2194            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195         fi
2196         # We set ac_cv_exeext here because the later test for it is not
2197         # safe: cross compilers may not add the suffix if given an `-o'
2198         # argument, so we may need to know it at that point already.
2199         # Even if this section looks crufty: it has the advantage of
2200         # actually working.
2201         break;;
2202     * )
2203         break;;
2204   esac
2205 done
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216    { (exit 77); exit 77; }; }
2217 fi
2218
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2222
2223 # Check that the compiler produces executables we can run.  If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230   if { ac_try='./$ac_file'
2231   { (case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236   (eval "$ac_try") 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240     cross_compiling=no
2241   else
2242     if test "$cross_compiling" = maybe; then
2243         cross_compiling=yes
2244     else
2245         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252     fi
2253   fi
2254 fi
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run.  If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275   (eval "$ac_link") 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; then
2279   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284   test -f "$ac_file" || continue
2285   case $ac_file in
2286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288           break;;
2289     * ) break;;
2290   esac
2291 done
2292 else
2293   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297    { (exit 1); exit 1; }; }
2298 fi
2299
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2306 ac_exeext=$EXEEXT
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334   (eval "$ac_compile") 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; then
2338   for ac_file in conftest.o conftest.obj conftest.*; do
2339   test -f "$ac_file" || continue;
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343        break;;
2344   esac
2345 done
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 fi
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2362 ac_objext=$OBJEXT
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_compile") 2>conftest.er1
2394   ac_status=$?
2395   grep -v '^ *+' conftest.er1 >conftest.err
2396   rm -f conftest.er1
2397   cat conftest.err >&5
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_try") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_compiler_gnu=yes
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425         ac_compiler_gnu=no
2426 fi
2427
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431 fi
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_save_c_werror_flag=$ac_c_werror_flag
2443    ac_c_werror_flag=yes
2444    ac_cv_prog_cc_g=no
2445    CFLAGS="-g"
2446    cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h.  */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h.  */
2452
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compile") 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; } &&
2485          { ac_try='test -s conftest.$ac_objext'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   ac_cv_prog_cc_g=yes
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500         CFLAGS=""
2501       cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_compile") 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_try") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; }; then
2550   :
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555         ac_c_werror_flag=$ac_save_c_werror_flag
2556          CFLAGS="-g"
2557          cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compile") 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587   { (case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_try") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cc_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621    ac_c_werror_flag=$ac_save_c_werror_flag
2622 fi
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626   CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628   if test "$GCC" = yes; then
2629     CFLAGS="-g -O2"
2630   else
2631     CFLAGS="-g"
2632   fi
2633 else
2634   if test "$GCC" = yes; then
2635     CFLAGS="-O2"
2636   else
2637     CFLAGS=
2638   fi
2639 fi
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   ac_cv_prog_cc_c89=no
2646 ac_save_CC=$CC
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 #include <stdarg.h>
2654 #include <stdio.h>
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2661      char **p;
2662      int i;
2663 {
2664   return p[i];
2665 }
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2667 {
2668   char *s;
2669   va_list v;
2670   va_start (v,p);
2671   s = g (p, va_arg (v,int));
2672   va_end (v);
2673   return s;
2674 }
2675
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2677    function prototypes and stuff, but not '\xHH' hex character constants.
2678    These don't provoke an error unfortunately, instead are silently treated
2679    as 'x'.  The following induces an error, until -std is added to get
2680    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2681    array size at least.  It's necessary to write '\x00'==0 to get something
2682    that's true only with -std.  */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686    inside strings and character constants.  */
2687 #define FOO(x) 'x'
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 int argc;
2695 char **argv;
2696 int
2697 main ()
2698 {
2699 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 do
2707   CC="$ac_save_CC $ac_arg"
2708   rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_compile") 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723   { (case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_try") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_try") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_cv_prog_cc_c89=$ac_arg
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748 fi
2749
2750 rm -f core conftest.err conftest.$ac_objext
2751   test "x$ac_cv_prog_cc_c89" != "xno" && break
2752 done
2753 rm -f conftest.$ac_ext
2754 CC=$ac_save_CC
2755
2756 fi
2757 # AC_CACHE_VAL
2758 case "x$ac_cv_prog_cc_c89" in
2759   x)
2760     { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2762   xno)
2763     { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2765   *)
2766     CC="$CC $ac_cv_prog_cc_c89"
2767     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 esac
2770
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778 ac_ext=cpp
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784   if test -n "$CCC"; then
2785     CXX=$CCC
2786   else
2787     if test -n "$ac_tool_prefix"; then
2788   for ac_prog in clang++ llvm-g++ g++
2789   do
2790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$CXX"; then
2798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CXX=$ac_cv_prog_CXX
2818 if test -n "$CXX"; then
2819   { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2821 else
2822   { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2824 fi
2825
2826
2827     test -n "$CXX" && break
2828   done
2829 fi
2830 if test -z "$CXX"; then
2831   ac_ct_CXX=$CXX
2832   for ac_prog in clang++ llvm-g++ g++
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$ac_ct_CXX"; then
2842   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_ac_ct_CXX="$ac_prog"
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865 else
2866   { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2868 fi
2869
2870
2871   test -n "$ac_ct_CXX" && break
2872 done
2873
2874   if test "x$ac_ct_CXX" = x; then
2875     CXX="g++"
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet.  If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887     CXX=$ac_ct_CXX
2888   fi
2889 fi
2890
2891   fi
2892 fi
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler --version >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -v >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler -V >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942 #ifndef __GNUC__
2943        choke me
2944 #endif
2945
2946   ;
2947   return 0;
2948 }
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_compile") 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; } &&
2974          { ac_try='test -s conftest.$ac_objext'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989         ac_compiler_gnu=no
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007    ac_cxx_werror_flag=yes
3008    ac_cv_prog_cxx_g=no
3009    CXXFLAGS="-g"
3010    cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_prog_cxx_g=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064         CXXFLAGS=""
3065       cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   :
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120          CXXFLAGS="-g"
3121          cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_prog_cxx_g=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190   CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192   if test "$GXX" = yes; then
3193     CXXFLAGS="-g -O2"
3194   else
3195     CXXFLAGS="-g"
3196   fi
3197 else
3198   if test "$GXX" = yes; then
3199     CXXFLAGS="-O2"
3200   else
3201     CXXFLAGS=
3202   fi
3203 fi
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3219   CPP=
3220 fi
3221 if test -z "$CPP"; then
3222   if test "${ac_cv_prog_CPP+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225       # Double quotes because CPP needs to be expanded
3226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227     do
3228       ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #ifdef __STDC__
3244 # include <limits.h>
3245 #else
3246 # include <assert.h>
3247 #endif
3248                      Syntax error
3249 _ACEOF
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   :
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278   # Broken: fails on valid input.
3279 continue
3280 fi
3281
3282 rm -f conftest.err conftest.$ac_ext
3283
3284   # OK, works on sane cases.  Now check whether nonexistent headers
3285   # can be detected and how.
3286   cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292 #include <ac_nonexistent.h>
3293 _ACEOF
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } >/dev/null; then
3307   if test -s conftest.err; then
3308     ac_cpp_err=$ac_c_preproc_warn_flag
3309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310   else
3311     ac_cpp_err=
3312   fi
3313 else
3314   ac_cpp_err=yes
3315 fi
3316 if test -z "$ac_cpp_err"; then
3317   # Broken: success on invalid input.
3318 continue
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323   # Passes both tests.
3324 ac_preproc_ok=:
3325 break
3326 fi
3327
3328 rm -f conftest.err conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3334   break
3335 fi
3336
3337     done
3338     ac_cv_prog_CPP=$CPP
3339
3340 fi
3341   CPP=$ac_cv_prog_CPP
3342 else
3343   ac_cv_prog_CPP=$CPP
3344 fi
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350   # Use a header file that comes with gcc, so configuring glibc
3351   # with a fresh cross-compiler works.
3352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353   # <limits.h> exists even on freestanding compilers.
3354   # On the NeXT, cc -E runs the code through the compiler's parser,
3355   # not just through cpp. "Syntax error" is here to catch this case.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #ifdef __STDC__
3363 # include <limits.h>
3364 #else
3365 # include <assert.h>
3366 #endif
3367                      Syntax error
3368 _ACEOF
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } >/dev/null; then
3382   if test -s conftest.err; then
3383     ac_cpp_err=$ac_c_preproc_warn_flag
3384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385   else
3386     ac_cpp_err=
3387   fi
3388 else
3389   ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392   :
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether nonexistent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } >/dev/null; then
3426   if test -s conftest.err; then
3427     ac_cpp_err=$ac_c_preproc_warn_flag
3428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429   else
3430     ac_cpp_err=
3431   fi
3432 else
3433   ac_cpp_err=yes
3434 fi
3435 if test -z "$ac_cpp_err"; then
3436   # Broken: success on invalid input.
3437 continue
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442   # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3453   :
3454 else
3455   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471 if test -d ${srcdir}/projects/llvm-gcc ; then
3472   subdirs="$subdirs projects/llvm-gcc"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/test-suite ; then
3477   subdirs="$subdirs projects/test-suite"
3478
3479 fi
3480
3481 if test -d ${srcdir}/projects/llvm-test ; then
3482   subdirs="$subdirs projects/llvm-test"
3483
3484 fi
3485
3486 if test -d ${srcdir}/projects/poolalloc ; then
3487   subdirs="$subdirs projects/poolalloc"
3488
3489 fi
3490
3491 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3492   subdirs="$subdirs projects/llvm-poolalloc"
3493
3494 fi
3495
3496 for i in `ls ${srcdir}/projects`
3497 do
3498   if test -d ${srcdir}/projects/${i} ; then
3499     case ${i} in
3500       sample)       subdirs="$subdirs projects/sample"
3501     ;;
3502       privbracket)  subdirs="$subdirs projects/privbracket"
3503  ;;
3504       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3505  ;;
3506       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3507 ;;
3508       llvm-java)    subdirs="$subdirs projects/llvm-java"
3509  ;;
3510       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3511    ;;
3512       safecode)     subdirs="$subdirs projects/safecode"
3513  ;;
3514       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3515  ;;
3516       compiler-rt)       ;;
3517       llvm-gcc)       ;;
3518       test-suite)     ;;
3519       llvm-test)      ;;
3520       poolalloc)      ;;
3521       llvm-poolalloc) ;;
3522       *)
3523         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3524 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3525         ;;
3526     esac
3527   fi
3528 done
3529
3530 # Check whether --enable-polly was given.
3531 if test "${enable_polly+set}" = set; then
3532   enableval=$enable_polly;
3533 else
3534   enableval=default
3535 fi
3536
3537 case "$enableval" in
3538   yes) ENABLE_POLLY=1
3539  ;;
3540   no)  ENABLE_POLLY=0
3541  ;;
3542   default) ENABLE_POLLY=1
3543  ;;
3544   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3545 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3546    { (exit 1); exit 1; }; } ;;
3547 esac
3548
3549
3550 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3551   LLVM_HAS_POLLY=1
3552
3553   subdirs="$subdirs tools/polly"
3554
3555 fi
3556
3557
3558 # Make sure we can run config.sub.
3559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3561 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3562    { (exit 1); exit 1; }; }
3563
3564 { echo "$as_me:$LINENO: checking build system type" >&5
3565 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3566 if test "${ac_cv_build+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   ac_build_alias=$build_alias
3570 test "x$ac_build_alias" = x &&
3571   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3572 test "x$ac_build_alias" = x &&
3573   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3574 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3575    { (exit 1); exit 1; }; }
3576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3577   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3578 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3579    { (exit 1); exit 1; }; }
3580
3581 fi
3582 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3583 echo "${ECHO_T}$ac_cv_build" >&6; }
3584 case $ac_cv_build in
3585 *-*-*) ;;
3586 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3587 echo "$as_me: error: invalid value of canonical build" >&2;}
3588    { (exit 1); exit 1; }; };;
3589 esac
3590 build=$ac_cv_build
3591 ac_save_IFS=$IFS; IFS='-'
3592 set x $ac_cv_build
3593 shift
3594 build_cpu=$1
3595 build_vendor=$2
3596 shift; shift
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3599 build_os=$*
3600 IFS=$ac_save_IFS
3601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3602
3603
3604 { echo "$as_me:$LINENO: checking host system type" >&5
3605 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3606 if test "${ac_cv_host+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test "x$host_alias" = x; then
3610   ac_cv_host=$ac_cv_build
3611 else
3612   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3614 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3615    { (exit 1); exit 1; }; }
3616 fi
3617
3618 fi
3619 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3620 echo "${ECHO_T}$ac_cv_host" >&6; }
3621 case $ac_cv_host in
3622 *-*-*) ;;
3623 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3624 echo "$as_me: error: invalid value of canonical host" >&2;}
3625    { (exit 1); exit 1; }; };;
3626 esac
3627 host=$ac_cv_host
3628 ac_save_IFS=$IFS; IFS='-'
3629 set x $ac_cv_host
3630 shift
3631 host_cpu=$1
3632 host_vendor=$2
3633 shift; shift
3634 # Remember, the first character of IFS is used to create $*,
3635 # except with old shells:
3636 host_os=$*
3637 IFS=$ac_save_IFS
3638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3639
3640
3641 { echo "$as_me:$LINENO: checking target system type" >&5
3642 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3643 if test "${ac_cv_target+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   if test "x$target_alias" = x; then
3647   ac_cv_target=$ac_cv_host
3648 else
3649   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3650     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3651 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3652    { (exit 1); exit 1; }; }
3653 fi
3654
3655 fi
3656 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3657 echo "${ECHO_T}$ac_cv_target" >&6; }
3658 case $ac_cv_target in
3659 *-*-*) ;;
3660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3661 echo "$as_me: error: invalid value of canonical target" >&2;}
3662    { (exit 1); exit 1; }; };;
3663 esac
3664 target=$ac_cv_target
3665 ac_save_IFS=$IFS; IFS='-'
3666 set x $ac_cv_target
3667 shift
3668 target_cpu=$1
3669 target_vendor=$2
3670 shift; shift
3671 # Remember, the first character of IFS is used to create $*,
3672 # except with old shells:
3673 target_os=$*
3674 IFS=$ac_save_IFS
3675 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3676
3677
3678 # The aliases save the names the user supplied, while $host etc.
3679 # will get canonicalized.
3680 test -n "$target_alias" &&
3681   test "$program_prefix$program_suffix$program_transform_name" = \
3682     NONENONEs,x,x, &&
3683   program_prefix=${target_alias}-
3684
3685 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3686 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3687 if test "${llvm_cv_os_type+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   case $host in
3691   *-*-aix*)
3692     llvm_cv_link_all_option="-Wl,--whole-archive"
3693     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694     llvm_cv_os_type="AIX"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-irix*)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="IRIX"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-cygwin*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="Cygwin"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-darwin*)
3707     llvm_cv_link_all_option="-Wl,-all_load"
3708     llvm_cv_no_link_all_option="-Wl,-noall_load"
3709     llvm_cv_os_type="Darwin"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-minix*)
3712     llvm_cv_link_all_option="-Wl,-all_load"
3713     llvm_cv_no_link_all_option="-Wl,-noall_load"
3714     llvm_cv_os_type="Minix"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-freebsd* | *-*-kfreebsd-gnu)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="FreeBSD"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-openbsd*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="OpenBSD"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-netbsd*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="NetBSD"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-dragonfly*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="DragonFly"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-hpux*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="HP-UX"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-interix*)
3742     llvm_cv_link_all_option="-Wl,--whole-archive"
3743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744     llvm_cv_os_type="Interix"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-linux*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="Linux"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-gnu*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="GNU"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-*-solaris*)
3757     llvm_cv_link_all_option="-Wl,-z,allextract"
3758     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3759     llvm_cv_os_type="SunOS"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-*-auroraux*)
3762     llvm_cv_link_all_option="-Wl,-z,allextract"
3763     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3764     llvm_cv_os_type="AuroraUX"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-*-win32*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Win32"
3770     llvm_cv_platform_type="Win32" ;;
3771   *-*-mingw*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="MingW"
3775     llvm_cv_platform_type="Win32" ;;
3776   *-*-haiku*)
3777     llvm_cv_link_all_option="-Wl,--whole-archive"
3778     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779     llvm_cv_os_type="Haiku"
3780     llvm_cv_platform_type="Unix" ;;
3781   *-unknown-eabi*)
3782     llvm_cv_link_all_option="-Wl,--whole-archive"
3783     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784     llvm_cv_os_type="Freestanding"
3785     llvm_cv_platform_type="Unix" ;;
3786   *-unknown-elf*)
3787     llvm_cv_link_all_option="-Wl,--whole-archive"
3788     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789     llvm_cv_os_type="Freestanding"
3790     llvm_cv_platform_type="Unix" ;;
3791   *)
3792     llvm_cv_link_all_option=""
3793     llvm_cv_no_link_all_option=""
3794     llvm_cv_os_type="Unknown"
3795     llvm_cv_platform_type="Unknown" ;;
3796 esac
3797 fi
3798 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3799 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3800
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3802 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3803 if test "${llvm_cv_target_os_type+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   case $target in
3807   *-*-aix*)
3808     llvm_cv_target_os_type="AIX" ;;
3809   *-*-irix*)
3810     llvm_cv_target_os_type="IRIX" ;;
3811   *-*-cygwin*)
3812     llvm_cv_target_os_type="Cygwin" ;;
3813   *-*-darwin*)
3814     llvm_cv_target_os_type="Darwin" ;;
3815   *-*-minix*)
3816     llvm_cv_target_os_type="Minix" ;;
3817   *-*-freebsd* | *-*-kfreebsd-gnu)
3818     llvm_cv_target_os_type="FreeBSD" ;;
3819   *-*-openbsd*)
3820     llvm_cv_target_os_type="OpenBSD" ;;
3821   *-*-netbsd*)
3822     llvm_cv_target_os_type="NetBSD" ;;
3823   *-*-dragonfly*)
3824     llvm_cv_target_os_type="DragonFly" ;;
3825   *-*-hpux*)
3826     llvm_cv_target_os_type="HP-UX" ;;
3827   *-*-interix*)
3828     llvm_cv_target_os_type="Interix" ;;
3829   *-*-linux*)
3830     llvm_cv_target_os_type="Linux" ;;
3831   *-*-gnu*)
3832     llvm_cv_target_os_type="GNU" ;;
3833   *-*-solaris*)
3834     llvm_cv_target_os_type="SunOS" ;;
3835   *-*-auroraux*)
3836     llvm_cv_target_os_type="AuroraUX" ;;
3837   *-*-win32*)
3838     llvm_cv_target_os_type="Win32" ;;
3839   *-*-mingw*)
3840     llvm_cv_target_os_type="MingW" ;;
3841   *-*-haiku*)
3842     llvm_cv_target_os_type="Haiku" ;;
3843   *-*-rtems*)
3844     llvm_cv_target_os_type="RTEMS" ;;
3845   *-*-nacl*)
3846     llvm_cv_target_os_type="NativeClient" ;;
3847   *-unknown-eabi*)
3848     llvm_cv_target_os_type="Freestanding" ;;
3849   *)
3850     llvm_cv_target_os_type="Unknown" ;;
3851 esac
3852 fi
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3854 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3855
3856 if test "$llvm_cv_os_type" = "Unknown" ; then
3857   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3858 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3859    { (exit 1); exit 1; }; }
3860 fi
3861
3862 OS=$llvm_cv_os_type
3863
3864 HOST_OS=$llvm_cv_os_type
3865
3866 TARGET_OS=$llvm_cv_target_os_type
3867
3868
3869 LINKALL=$llvm_cv_link_all_option
3870
3871 NOLINKALL=$llvm_cv_no_link_all_option
3872
3873
3874 case $llvm_cv_platform_type in
3875   Unix)
3876
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_UNIX 1
3879 _ACEOF
3880
3881     LLVM_ON_UNIX=1
3882
3883     LLVM_ON_WIN32=0
3884
3885     ;;
3886   Win32)
3887
3888 cat >>confdefs.h <<\_ACEOF
3889 #define LLVM_ON_WIN32 1
3890 _ACEOF
3891
3892     LLVM_ON_UNIX=0
3893
3894     LLVM_ON_WIN32=1
3895
3896     ;;
3897 esac
3898
3899 { echo "$as_me:$LINENO: checking target architecture" >&5
3900 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_arch+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   case $target in
3905   i?86-*)                 llvm_cv_target_arch="x86" ;;
3906   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3907   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3908   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3909   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3910   mips-*)                 llvm_cv_target_arch="Mips" ;;
3911   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3912   xcore-*)                llvm_cv_target_arch="XCore" ;;
3913   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3914   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3915   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3916   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3917   *)                      llvm_cv_target_arch="Unknown" ;;
3918 esac
3919 fi
3920 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3921 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3922
3923 if test "$llvm_cv_target_arch" = "Unknown" ; then
3924   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3925 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3926 fi
3927
3928 case "$llvm_cv_target_arch" in
3929     x86)     LLVM_NATIVE_ARCH="X86" ;;
3930     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3931     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3932 esac
3933
3934 ARCH=$llvm_cv_target_arch
3935
3936
3937 case $host in
3938   i?86-*)                 host_arch="x86" ;;
3939   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3940   sparc*-*)               host_arch="Sparc" ;;
3941   powerpc*-*)             host_arch="PowerPC" ;;
3942   arm*-*)                 host_arch="ARM" ;;
3943   mips-*)                 host_arch="Mips" ;;
3944   mipsel-*)               host_arch="Mips" ;;
3945   xcore-*)                host_arch="XCore" ;;
3946   msp430-*)               host_arch="MSP430" ;;
3947   hexagon-*)              host_arch="Hexagon" ;;
3948   mblaze-*)               host_arch="MBlaze" ;;
3949   *)                      host_arch="Unknown" ;;
3950 esac
3951
3952 if test "$host_arch" = "Unknown" ; then
3953   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3954 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3955 fi
3956
3957 HOST_ARCH=$host_arch
3958
3959
3960
3961
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_prog in grep ggrep; do
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3984     # Check for GNU ac_path_GREP and select it if it is found.
3985   # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3987 *GNU*)
3988   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989 *)
3990   ac_count=0
3991   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992   while :
3993   do
3994     cat "conftest.in" "conftest.in" >"conftest.tmp"
3995     mv "conftest.tmp" "conftest.in"
3996     cp "conftest.in" "conftest.nl"
3997     echo 'GREP' >> "conftest.nl"
3998     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000     ac_count=`expr $ac_count + 1`
4001     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002       # Best one so far, save it but keep looking for a better one
4003       ac_cv_path_GREP="$ac_path_GREP"
4004       ac_path_GREP_max=$ac_count
4005     fi
4006     # 10*(2^10) chars as input seems more than enough
4007     test $ac_count -gt 10 && break
4008   done
4009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 esac
4011
4012
4013     $ac_path_GREP_found && break 3
4014   done
4015 done
4016
4017 done
4018 IFS=$as_save_IFS
4019
4020
4021 fi
4022
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027    { (exit 1); exit 1; }; }
4028 fi
4029
4030 else
4031   ac_cv_path_GREP=$GREP
4032 fi
4033
4034
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038  GREP="$ac_cv_path_GREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047    then ac_cv_path_EGREP="$GREP -E"
4048    else
4049      # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   for ac_prog in egrep; do
4063   for ac_exec_ext in '' $ac_executable_extensions; do
4064     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4066     # Check for GNU ac_path_EGREP and select it if it is found.
4067   # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4069 *GNU*)
4070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071 *)
4072   ac_count=0
4073   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4074   while :
4075   do
4076     cat "conftest.in" "conftest.in" >"conftest.tmp"
4077     mv "conftest.tmp" "conftest.in"
4078     cp "conftest.in" "conftest.nl"
4079     echo 'EGREP' >> "conftest.nl"
4080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082     ac_count=`expr $ac_count + 1`
4083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084       # Best one so far, save it but keep looking for a better one
4085       ac_cv_path_EGREP="$ac_path_EGREP"
4086       ac_path_EGREP_max=$ac_count
4087     fi
4088     # 10*(2^10) chars as input seems more than enough
4089     test $ac_count -gt 10 && break
4090   done
4091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4093
4094
4095     $ac_path_EGREP_found && break 3
4096   done
4097 done
4098
4099 done
4100 IFS=$as_save_IFS
4101
4102
4103 fi
4104
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109    { (exit 1); exit 1; }; }
4110 fi
4111
4112 else
4113   ac_cv_path_EGREP=$EGREP
4114 fi
4115
4116
4117    fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121  EGREP="$ac_cv_path_EGREP"
4122
4123
4124 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <stdlib.h>
4136 #include <stdarg.h>
4137 #include <string.h>
4138 #include <float.h>
4139
4140 int
4141 main ()
4142 {
4143
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_compile") 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163   { (case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_try") 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_try") 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; }; then
4182   ac_cv_header_stdc=yes
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187         ac_cv_header_stdc=no
4188 fi
4189
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <string.h>
4201
4202 _ACEOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204   $EGREP "memchr" >/dev/null 2>&1; then
4205   :
4206 else
4207   ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest*
4210
4211 fi
4212
4213 if test $ac_cv_header_stdc = yes; then
4214   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 #include <stdlib.h>
4222
4223 _ACEOF
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225   $EGREP "free" >/dev/null 2>&1; then
4226   :
4227 else
4228   ac_cv_header_stdc=no
4229 fi
4230 rm -f conftest*
4231
4232 fi
4233
4234 if test $ac_cv_header_stdc = yes; then
4235   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4236   if test "$cross_compiling" = yes; then
4237   :
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 #include <ctype.h>
4246 #include <stdlib.h>
4247 #if ((' ' & 0x0FF) == 0x020)
4248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250 #else
4251 # define ISLOWER(c) \
4252                    (('a' <= (c) && (c) <= 'i') \
4253                      || ('j' <= (c) && (c) <= 'r') \
4254                      || ('s' <= (c) && (c) <= 'z'))
4255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4256 #endif
4257
4258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259 int
4260 main ()
4261 {
4262   int i;
4263   for (i = 0; i < 256; i++)
4264     if (XOR (islower (i), ISLOWER (i))
4265         || toupper (i) != TOUPPER (i))
4266       return 2;
4267   return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_link") 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   :
4291 else
4292   echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 ( exit $ac_status )
4297 ac_cv_header_stdc=no
4298 fi
4299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 fi
4301
4302
4303 fi
4304 fi
4305 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4307 if test $ac_cv_header_stdc = yes; then
4308
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4311 _ACEOF
4312
4313 fi
4314
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326                   inttypes.h stdint.h unistd.h
4327 do
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_includes_default
4341
4342 #include <$ac_header>
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   eval "$as_ac_Header=yes"
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383         eval "$as_ac_Header=no"
4384 fi
4385
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 fi
4388 ac_res=`eval echo '${'$as_ac_Header'}'`
4389                { echo "$as_me:$LINENO: result: $ac_res" >&5
4390 echo "${ECHO_T}$ac_res" >&6; }
4391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4392   cat >>confdefs.h <<_ACEOF
4393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394 _ACEOF
4395
4396 fi
4397
4398 done
4399
4400
4401 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4403 if test "${ac_cv_c_bigendian+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   # See if sys/param.h defines the BYTE_ORDER macro.
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <sys/types.h>
4414 #include <sys/param.h>
4415
4416 int
4417 main ()
4418 {
4419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4420  bogus endian macros
4421 #endif
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4429 case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_compile") 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442   { (case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_try") 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   # It does; now see whether it defined to BIG_ENDIAN or not.
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4470
4471 int
4472 main ()
4473 {
4474 #if BYTE_ORDER != BIG_ENDIAN
4475  not big endian
4476 #endif
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (ac_try="$ac_compile"
4484 case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_compile") 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } &&
4496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497   { (case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_try") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_try") 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_cv_c_bigendian=yes
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521         ac_cv_c_bigendian=no
4522 fi
4523
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529         # It does not; compile a test program.
4530 if test "$cross_compiling" = yes; then
4531   # try to guess the endianness by grepping values into an object file
4532   ac_cv_c_bigendian=unknown
4533   cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4542 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4544 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4545 int
4546 main ()
4547 {
4548  _ascii (); _ebcdic ();
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4555 case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_compile") 2>conftest.er1
4561   ac_status=$?
4562   grep -v '^ *+' conftest.er1 >conftest.err
4563   rm -f conftest.er1
4564   cat conftest.err >&5
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } &&
4567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568   { (case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_try") 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4588   ac_cv_c_bigendian=yes
4589 fi
4590 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4591   if test "$ac_cv_c_bigendian" = unknown; then
4592     ac_cv_c_bigendian=no
4593   else
4594     # finding both strings is unlikely to happen, but who knows?
4595     ac_cv_c_bigendian=unknown
4596   fi
4597 fi
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602
4603 fi
4604
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613 $ac_includes_default
4614 int
4615 main ()
4616 {
4617
4618   /* Are we little or big endian?  From Harbison&Steele.  */
4619   union
4620   {
4621     long int l;
4622     char c[sizeof (long int)];
4623   } u;
4624   u.l = 1;
4625   return u.c[sizeof (long int) - 1] == 1;
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638   (eval "$ac_link") 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642   { (case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647   (eval "$ac_try") 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651   ac_cv_c_bigendian=no
4652 else
4653   echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 ( exit $ac_status )
4658 ac_cv_c_bigendian=yes
4659 fi
4660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 fi
4662
4663
4664 fi
4665
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 fi
4668 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4669 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4670 case $ac_cv_c_bigendian in
4671   yes)
4672     ENDIAN=big
4673  ;;
4674   no)
4675     ENDIAN=little
4676  ;;
4677   *)
4678     { { echo "$as_me:$LINENO: error: unknown endianness
4679 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4680 echo "$as_me: error: unknown endianness
4681 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4682    { (exit 1); exit 1; }; } ;;
4683 esac
4684
4685
4686 if test "$cross_compiling" = yes; then
4687   LLVM_CROSS_COMPILING=1
4688
4689
4690 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4691 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4692 if test "${ac_cv_build_exeext+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4696   ac_cv_build_exeext=.exe
4697 else
4698   ac_build_prefix=${build_alias}-
4699
4700   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4701 set dummy ${ac_build_prefix}gcc; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   if test -n "$BUILD_CC"; then
4708   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4717     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 BUILD_CC=$ac_cv_prog_BUILD_CC
4728 if test -n "$BUILD_CC"; then
4729   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4730 echo "${ECHO_T}$BUILD_CC" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737   if test -z "$BUILD_CC"; then
4738      # Extract the first word of "gcc", so it can be a program name with args.
4739 set dummy gcc; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   if test -n "$BUILD_CC"; then
4746   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_prog_BUILD_CC="gcc"
4756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763 fi
4764 fi
4765 BUILD_CC=$ac_cv_prog_BUILD_CC
4766 if test -n "$BUILD_CC"; then
4767   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768 echo "${ECHO_T}$BUILD_CC" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775      if test -z "$BUILD_CC"; then
4776        # Extract the first word of "cc", so it can be a program name with args.
4777 set dummy cc; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if test -n "$BUILD_CC"; then
4784   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4785 else
4786   ac_prog_rejected=no
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4795        ac_prog_rejected=yes
4796        continue
4797      fi
4798     ac_cv_prog_BUILD_CC="cc"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806 if test $ac_prog_rejected = yes; then
4807   # We found a bogon in the path, so make sure we never use it.
4808   set dummy $ac_cv_prog_BUILD_CC
4809   shift
4810   if test $# != 0; then
4811     # We chose a different compiler from the bogus one.
4812     # However, it has the same basename, so the bogon will be chosen
4813     # first if we set BUILD_CC to just the basename; use the full file name.
4814     shift
4815     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4816   fi
4817 fi
4818 fi
4819 fi
4820 BUILD_CC=$ac_cv_prog_BUILD_CC
4821 if test -n "$BUILD_CC"; then
4822   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4823 echo "${ECHO_T}$BUILD_CC" >&6; }
4824 else
4825   { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4827 fi
4828
4829
4830      fi
4831   fi
4832   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4833 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4834    { (exit 1); exit 1; }; }
4835   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4836   rm -f conftest*
4837   echo 'int main () { return 0; }' > conftest.$ac_ext
4838   ac_cv_build_exeext=
4839   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4840   (eval $ac_build_link) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; then
4844     for file in conftest.*; do
4845       case $file in
4846       *.c | *.o | *.obj | *.dSYM) ;;
4847       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4848       esac
4849     done
4850   else
4851     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4852 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4853    { (exit 1); exit 1; }; }
4854   fi
4855   rm -f conftest*
4856   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4857 fi
4858 fi
4859
4860 BUILD_EXEEXT=""
4861 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4862 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4863 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4864 ac_build_exeext=$BUILD_EXEEXT
4865
4866   ac_build_prefix=${build_alias}-
4867   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4868 set dummy ${ac_build_prefix}g++; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   if test -n "$BUILD_CXX"; then
4875   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882   for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4895 if test -n "$BUILD_CXX"; then
4896   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4897 echo "${ECHO_T}$BUILD_CXX" >&6; }
4898 else
4899   { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903
4904   if test -z "$BUILD_CXX"; then
4905      # Extract the first word of "g++", so it can be a program name with args.
4906 set dummy g++; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$BUILD_CXX"; then
4913   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_prog_BUILD_CXX="g++"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933 if test -n "$BUILD_CXX"; then
4934   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935 echo "${ECHO_T}$BUILD_CXX" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942      if test -z "$BUILD_CXX"; then
4943        # Extract the first word of "c++", so it can be a program name with args.
4944 set dummy c++; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   if test -n "$BUILD_CXX"; then
4951   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4952 else
4953   ac_prog_rejected=no
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4962        ac_prog_rejected=yes
4963        continue
4964      fi
4965     ac_cv_prog_BUILD_CXX="c++"
4966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 if test $ac_prog_rejected = yes; then
4974   # We found a bogon in the path, so make sure we never use it.
4975   set dummy $ac_cv_prog_BUILD_CXX
4976   shift
4977   if test $# != 0; then
4978     # We chose a different compiler from the bogus one.
4979     # However, it has the same basename, so the bogon will be chosen
4980     # first if we set BUILD_CXX to just the basename; use the full file name.
4981     shift
4982     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4983   fi
4984 fi
4985 fi
4986 fi
4987 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4988 if test -n "$BUILD_CXX"; then
4989   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4990 echo "${ECHO_T}$BUILD_CXX" >&6; }
4991 else
4992   { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4994 fi
4995
4996
4997      fi
4998   fi
4999 else
5000   LLVM_CROSS_COMPILING=0
5001
5002 fi
5003
5004 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5005   cvsbuild="yes"
5006   optimize="no"
5007   CVSBUILD=CVSBUILD=1
5008
5009 else
5010   cvsbuild="no"
5011   optimize="yes"
5012 fi
5013
5014
5015 # Check whether --enable-libcpp was given.
5016 if test "${enable_libcpp+set}" = set; then
5017   enableval=$enable_libcpp;
5018 else
5019   enableval=default
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_LIBCPP=1
5024  ;;
5025   no)  ENABLE_LIBCPP=0
5026  ;;
5027   default) ENABLE_LIBCPP=0
5028 ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 # Check whether --enable-cxx11 was given.
5035 if test "${enable_cxx11+set}" = set; then
5036   enableval=$enable_cxx11;
5037 else
5038   enableval=default
5039 fi
5040
5041 case "$enableval" in
5042   yes) ENABLE_CXX11=1
5043  ;;
5044   no)  ENABLE_CXX11=0
5045  ;;
5046   default) ENABLE_CXX11=0
5047 ;;
5048   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5049 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5050    { (exit 1); exit 1; }; } ;;
5051 esac
5052
5053 # Check whether --enable-optimized was given.
5054 if test "${enable_optimized+set}" = set; then
5055   enableval=$enable_optimized;
5056 else
5057   enableval=$optimize
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   ENABLE_OPTIMIZED=
5062
5063 else
5064   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5065
5066 fi
5067
5068 # Check whether --enable-profiling was given.
5069 if test "${enable_profiling+set}" = set; then
5070   enableval=$enable_profiling;
5071 else
5072   enableval="no"
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   ENABLE_PROFILING=
5077
5078 else
5079   ENABLE_PROFILING=ENABLE_PROFILING=1
5080
5081 fi
5082
5083 # Check whether --enable-assertions was given.
5084 if test "${enable_assertions+set}" = set; then
5085   enableval=$enable_assertions;
5086 else
5087   enableval="yes"
5088 fi
5089
5090 if test ${enableval} = "yes" ; then
5091   DISABLE_ASSERTIONS=
5092
5093 else
5094   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5095
5096 fi
5097
5098 # Check whether --enable-werror was given.
5099 if test "${enable_werror+set}" = set; then
5100   enableval=$enable_werror;
5101 else
5102   enableval="no"
5103 fi
5104
5105 case "$enableval" in
5106   yes) ENABLE_WERROR=1
5107  ;;
5108   no)  ENABLE_WERROR=0
5109  ;;
5110   default) ENABLE_WERROR=0
5111 ;;
5112   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5114    { (exit 1); exit 1; }; } ;;
5115 esac
5116
5117 # Check whether --enable-expensive-checks was given.
5118 if test "${enable_expensive_checks+set}" = set; then
5119   enableval=$enable_expensive_checks;
5120 else
5121   enableval="no"
5122 fi
5123
5124 if test ${enableval} = "yes" ; then
5125   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5126
5127   EXPENSIVE_CHECKS=yes
5128
5129 else
5130   ENABLE_EXPENSIVE_CHECKS=
5131
5132   EXPENSIVE_CHECKS=no
5133
5134 fi
5135
5136 # Check whether --enable-debug-runtime was given.
5137 if test "${enable_debug_runtime+set}" = set; then
5138   enableval=$enable_debug_runtime;
5139 else
5140   enableval=no
5141 fi
5142
5143 if test ${enableval} = "no" ; then
5144   DEBUG_RUNTIME=
5145
5146 else
5147   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5148
5149 fi
5150
5151 # Check whether --enable-debug-symbols was given.
5152 if test "${enable_debug_symbols+set}" = set; then
5153   enableval=$enable_debug_symbols;
5154 else
5155   enableval=no
5156 fi
5157
5158 if test ${enableval} = "no" ; then
5159   DEBUG_SYMBOLS=
5160
5161 else
5162   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5163
5164 fi
5165
5166 # Check whether --enable-keep-symbols was given.
5167 if test "${enable_keep_symbols+set}" = set; then
5168   enableval=$enable_keep_symbols;
5169 else
5170   enableval=no
5171 fi
5172
5173 if test ${enableval} = "no" ; then
5174   KEEP_SYMBOLS=
5175
5176 else
5177   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5178
5179 fi
5180
5181 # Check whether --enable-jit was given.
5182 if test "${enable_jit+set}" = set; then
5183   enableval=$enable_jit;
5184 else
5185   enableval=default
5186 fi
5187
5188 if test ${enableval} = "no"
5189 then
5190   JIT=
5191
5192 else
5193   case "$llvm_cv_target_arch" in
5194     x86)         TARGET_HAS_JIT=1
5195  ;;
5196     Sparc)       TARGET_HAS_JIT=0
5197  ;;
5198     PowerPC)     TARGET_HAS_JIT=1
5199  ;;
5200     x86_64)      TARGET_HAS_JIT=1
5201  ;;
5202     ARM)         TARGET_HAS_JIT=1
5203  ;;
5204     Mips)        TARGET_HAS_JIT=1
5205  ;;
5206     XCore)       TARGET_HAS_JIT=0
5207  ;;
5208     MSP430)      TARGET_HAS_JIT=0
5209  ;;
5210     Hexagon)     TARGET_HAS_JIT=0
5211  ;;
5212     MBlaze)      TARGET_HAS_JIT=0
5213  ;;
5214     NVPTX)       TARGET_HAS_JIT=0
5215  ;;
5216     *)           TARGET_HAS_JIT=0
5217  ;;
5218   esac
5219 fi
5220
5221 # Check whether --enable-docs was given.
5222 if test "${enable_docs+set}" = set; then
5223   enableval=$enable_docs;
5224 else
5225   enableval=default
5226 fi
5227
5228 case "$enableval" in
5229   yes) ENABLE_DOCS=1
5230  ;;
5231   no)  ENABLE_DOCS=0
5232  ;;
5233   default) ENABLE_DOCS=1
5234  ;;
5235   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5237    { (exit 1); exit 1; }; } ;;
5238 esac
5239
5240 # Check whether --enable-doxygen was given.
5241 if test "${enable_doxygen+set}" = set; then
5242   enableval=$enable_doxygen;
5243 else
5244   enableval=default
5245 fi
5246
5247 case "$enableval" in
5248   yes) ENABLE_DOXYGEN=1
5249  ;;
5250   no)  ENABLE_DOXYGEN=0
5251  ;;
5252   default) ENABLE_DOXYGEN=0
5253  ;;
5254   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5256    { (exit 1); exit 1; }; } ;;
5257 esac
5258
5259 # Check whether --enable-threads was given.
5260 if test "${enable_threads+set}" = set; then
5261   enableval=$enable_threads;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes) LLVM_ENABLE_THREADS=1
5268  ;;
5269   no)  LLVM_ENABLE_THREADS=0
5270  ;;
5271   default) LLVM_ENABLE_THREADS=1
5272  ;;
5273   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276 esac
5277
5278 cat >>confdefs.h <<_ACEOF
5279 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5280 _ACEOF
5281
5282
5283 # Check whether --enable-pthreads was given.
5284 if test "${enable_pthreads+set}" = set; then
5285   enableval=$enable_pthreads;
5286 else
5287   enableval=default
5288 fi
5289
5290 case "$enableval" in
5291   yes) ENABLE_PTHREADS=1
5292  ;;
5293   no)  ENABLE_PTHREADS=0
5294  ;;
5295   default) ENABLE_PTHREADS=1
5296  ;;
5297   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5298 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5299    { (exit 1); exit 1; }; } ;;
5300 esac
5301
5302 # Check whether --enable-pic was given.
5303 if test "${enable_pic+set}" = set; then
5304   enableval=$enable_pic;
5305 else
5306   enableval=default
5307 fi
5308
5309 case "$enableval" in
5310   yes) ENABLE_PIC=1
5311  ;;
5312   no)  ENABLE_PIC=0
5313  ;;
5314   default) ENABLE_PIC=1
5315  ;;
5316   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5317 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5318    { (exit 1); exit 1; }; } ;;
5319 esac
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define ENABLE_PIC $ENABLE_PIC
5323 _ACEOF
5324
5325
5326 # Check whether --enable-shared was given.
5327 if test "${enable_shared+set}" = set; then
5328   enableval=$enable_shared;
5329 else
5330   enableval=default
5331 fi
5332
5333 case "$enableval" in
5334   yes) ENABLE_SHARED=1
5335  ;;
5336   no)  ENABLE_SHARED=0
5337  ;;
5338   default) ENABLE_SHARED=0
5339  ;;
5340   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5341 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5342    { (exit 1); exit 1; }; } ;;
5343 esac
5344
5345 # Check whether --enable-embed-stdcxx was given.
5346 if test "${enable_embed_stdcxx+set}" = set; then
5347   enableval=$enable_embed_stdcxx;
5348 else
5349   enableval=default
5350 fi
5351
5352 case "$enableval" in
5353   yes) ENABLE_EMBED_STDCXX=1
5354  ;;
5355   no)  ENABLE_EMBED_STDCXX=0
5356  ;;
5357   default) ENABLE_EMBED_STDCXX=0
5358  ;;
5359   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5360 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5361    { (exit 1); exit 1; }; } ;;
5362 esac
5363
5364 # Check whether --enable-timestamps was given.
5365 if test "${enable_timestamps+set}" = set; then
5366   enableval=$enable_timestamps;
5367 else
5368   enableval=default
5369 fi
5370
5371 case "$enableval" in
5372   yes) ENABLE_TIMESTAMPS=1
5373  ;;
5374   no)  ENABLE_TIMESTAMPS=0
5375  ;;
5376   default) ENABLE_TIMESTAMPS=1
5377  ;;
5378   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5379 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5380    { (exit 1); exit 1; }; } ;;
5381 esac
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5385 _ACEOF
5386
5387
5388
5389 # Check whether --enable-backtraces was given.
5390 if test "${enable_backtraces+set}" = set; then
5391   enableval=$enable_backtraces;
5392 else
5393   enableval=default
5394 fi
5395
5396 case "$enableval" in
5397   yes) ENABLE_TIMESTAMPS=1
5398  ;;
5399   no)  ENABLE_TIMESTAMPS=0
5400  ;;
5401   default) ENABLE_TIMESTAMPS=1
5402  ;;
5403   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5404 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5405    { (exit 1); exit 1; }; } ;;
5406 esac
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5410 _ACEOF
5411
5412
5413 TARGETS_TO_BUILD=""
5414 # Check whether --enable-targets was given.
5415 if test "${enable_targets+set}" = set; then
5416   enableval=$enable_targets;
5417 else
5418   enableval=all
5419 fi
5420
5421 if test "$enableval" = host-only ; then
5422   enableval=host
5423 fi
5424 case "$enableval" in
5425   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5426   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5427       case "$a_target" in
5428         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5430         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5431         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5432         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5433         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5435         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5436         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5437         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5438         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5439         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5440         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5441         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5442         host) case "$llvm_cv_target_arch" in
5443             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5445             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5446             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5447             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5448             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5449             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5450             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5451             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5452             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5453             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5454             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5455             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5456 echo "$as_me: error: Can not set target to build" >&2;}
5457    { (exit 1); exit 1; }; } ;;
5458           esac ;;
5459         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5460 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5461    { (exit 1); exit 1; }; } ;;
5462       esac
5463   done
5464   ;;
5465 esac
5466
5467 # Check whether --enable-experimental-targets was given.
5468 if test "${enable_experimental_targets+set}" = set; then
5469   enableval=$enable_experimental_targets;
5470 else
5471   enableval=disable
5472 fi
5473
5474
5475 if test ${enableval} != "disable"
5476 then
5477   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5478 fi
5479
5480 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5481
5482
5483 for a_target in $TARGETS_TO_BUILD; do
5484   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5488 _ACEOF
5489
5490     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5491     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5492     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5493     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5494     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5495       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5496     fi
5497     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5498       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5499     fi
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5503 _ACEOF
5504
5505
5506 cat >>confdefs.h <<_ACEOF
5507 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5508 _ACEOF
5509
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5513 _ACEOF
5514
5515
5516 cat >>confdefs.h <<_ACEOF
5517 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5518 _ACEOF
5519
5520     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5524 _ACEOF
5525
5526     fi
5527     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5528
5529 cat >>confdefs.h <<_ACEOF
5530 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5531 _ACEOF
5532
5533     fi
5534   fi
5535 done
5536
5537 LLVM_ENUM_TARGETS=""
5538 LLVM_ENUM_ASM_PRINTERS=""
5539 LLVM_ENUM_ASM_PARSERS=""
5540 LLVM_ENUM_DISASSEMBLERS=""
5541 for target_to_build in $TARGETS_TO_BUILD; do
5542   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5543   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5544     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5545   fi
5546   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5547     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5548   fi
5549   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5550     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5551   fi
5552 done
5553
5554
5555
5556
5557
5558
5559 # Check whether --with-optimize-option was given.
5560 if test "${with_optimize_option+set}" = set; then
5561   withval=$with_optimize_option;
5562 else
5563   withval=default
5564 fi
5565
5566 { echo "$as_me:$LINENO: checking optimization flags" >&5
5567 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5568 case "$withval" in
5569   default)
5570     case "$llvm_cv_os_type" in
5571     FreeBSD) optimize_option=-O2 ;;
5572     MingW) optimize_option=-O2 ;;
5573     *)     optimize_option=-O3 ;;
5574     esac ;;
5575   *) optimize_option="$withval" ;;
5576 esac
5577 OPTIMIZE_OPTION=$optimize_option
5578
5579 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5580 echo "${ECHO_T}$optimize_option" >&6; }
5581
5582
5583 # Check whether --with-extra-options was given.
5584 if test "${with_extra_options+set}" = set; then
5585   withval=$with_extra_options;
5586 else
5587   withval=default
5588 fi
5589
5590 case "$withval" in
5591   default) EXTRA_OPTIONS= ;;
5592   *) EXTRA_OPTIONS=$withval ;;
5593 esac
5594 EXTRA_OPTIONS=$EXTRA_OPTIONS
5595
5596
5597
5598 # Check whether --with-extra-ld-options was given.
5599 if test "${with_extra_ld_options+set}" = set; then
5600   withval=$with_extra_ld_options;
5601 else
5602   withval=default
5603 fi
5604
5605 case "$withval" in
5606   default) EXTRA_LD_OPTIONS= ;;
5607   *) EXTRA_LD_OPTIONS=$withval ;;
5608 esac
5609 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5610
5611
5612 # Check whether --enable-bindings was given.
5613 if test "${enable_bindings+set}" = set; then
5614   enableval=$enable_bindings;
5615 else
5616   enableval=default
5617 fi
5618
5619 BINDINGS_TO_BUILD=""
5620 case "$enableval" in
5621   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5622   all ) BINDINGS_TO_BUILD="ocaml" ;;
5623   none | no) BINDINGS_TO_BUILD="" ;;
5624   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5625       case "$a_binding" in
5626         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5627         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5628 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5629    { (exit 1); exit 1; }; } ;;
5630       esac
5631   done
5632   ;;
5633 esac
5634
5635
5636 # Check whether --with-ocaml-libdir was given.
5637 if test "${with_ocaml_libdir+set}" = set; then
5638   withval=$with_ocaml_libdir;
5639 else
5640   withval=auto
5641 fi
5642
5643 case "$withval" in
5644   auto) with_ocaml_libdir="$withval" ;;
5645   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5646   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5647 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5648    { (exit 1); exit 1; }; } ;;
5649 esac
5650
5651
5652 # Check whether --with-clang-srcdir was given.
5653 if test "${with_clang_srcdir+set}" = set; then
5654   withval=$with_clang_srcdir;
5655 else
5656   withval="-"
5657 fi
5658
5659 case "$withval" in
5660   -) clang_src_root="" ;;
5661   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5662   *) clang_src_root="$ac_pwd/$withval" ;;
5663 esac
5664 CLANG_SRC_ROOT=$clang_src_root
5665
5666
5667
5668 # Check whether --with-clang-resource-dir was given.
5669 if test "${with_clang_resource_dir+set}" = set; then
5670   withval=$with_clang_resource_dir;
5671 else
5672   withval=""
5673 fi
5674
5675
5676 cat >>confdefs.h <<_ACEOF
5677 #define CLANG_RESOURCE_DIR "$withval"
5678 _ACEOF
5679
5680
5681
5682 # Check whether --with-c-include-dirs was given.
5683 if test "${with_c_include_dirs+set}" = set; then
5684   withval=$with_c_include_dirs;
5685 else
5686   withval=""
5687 fi
5688
5689
5690 cat >>confdefs.h <<_ACEOF
5691 #define C_INCLUDE_DIRS "$withval"
5692 _ACEOF
5693
5694
5695 # Clang normally uses the system c++ headers and libraries. With this option,
5696 # clang will use the ones provided by a gcc installation instead. This option should
5697 # be passed the same value that was used with --prefix when configuring gcc.
5698
5699 # Check whether --with-gcc-toolchain was given.
5700 if test "${with_gcc_toolchain+set}" = set; then
5701   withval=$with_gcc_toolchain;
5702 else
5703   withval=""
5704 fi
5705
5706
5707 cat >>confdefs.h <<_ACEOF
5708 #define GCC_INSTALL_PREFIX "$withval"
5709 _ACEOF
5710
5711
5712
5713 # Check whether --with-default-sysroot was given.
5714 if test "${with_default_sysroot+set}" = set; then
5715   withval=$with_default_sysroot;
5716 else
5717   withval=""
5718 fi
5719
5720
5721 cat >>confdefs.h <<_ACEOF
5722 #define DEFAULT_SYSROOT "$withval"
5723 _ACEOF
5724
5725
5726
5727 # Check whether --with-binutils-include was given.
5728 if test "${with_binutils_include+set}" = set; then
5729   withval=$with_binutils_include;
5730 else
5731   withval=default
5732 fi
5733
5734 case "$withval" in
5735   default) WITH_BINUTILS_INCDIR=default ;;
5736   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5737   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5738 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5739    { (exit 1); exit 1; }; } ;;
5740 esac
5741 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5742   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5743
5744   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5745      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5746      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5747 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5748    { (exit 1); exit 1; }; };
5749   fi
5750 fi
5751
5752
5753 # Check whether --with-bug-report-url was given.
5754 if test "${with_bug_report_url+set}" = set; then
5755   withval=$with_bug_report_url;
5756 else
5757   withval="http://llvm.org/bugs/"
5758 fi
5759
5760
5761 cat >>confdefs.h <<_ACEOF
5762 #define BUG_REPORT_URL "$withval"
5763 _ACEOF
5764
5765
5766 # Check whether --enable-libffi was given.
5767 if test "${enable_libffi+set}" = set; then
5768   enableval=$enable_libffi; case "$enableval" in
5769     yes) llvm_cv_enable_libffi="yes" ;;
5770     no)  llvm_cv_enable_libffi="no"  ;;
5771     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5772 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5773    { (exit 1); exit 1; }; } ;;
5774   esac
5775 else
5776   llvm_cv_enable_libffi=no
5777 fi
5778
5779
5780
5781 # Check whether --with-internal-prefix was given.
5782 if test "${with_internal_prefix+set}" = set; then
5783   withval=$with_internal_prefix;
5784 else
5785   withval=""
5786 fi
5787
5788 INTERNAL_PREFIX=$withval
5789
5790
5791
5792 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5793 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5794 if test "${lt_cv_path_NM+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   if test -n "$NM"; then
5798   # Let the user override the test.
5799   lt_cv_path_NM="$NM"
5800 else
5801   lt_nm_to_check="${ac_tool_prefix}nm"
5802   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5803     lt_nm_to_check="$lt_nm_to_check nm"
5804   fi
5805   for lt_tmp_nm in $lt_nm_to_check; do
5806     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5808       IFS="$lt_save_ifs"
5809       test -z "$ac_dir" && ac_dir=.
5810       tmp_nm="$ac_dir/$lt_tmp_nm"
5811       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812         # Check to see if the nm accepts a BSD-compat flag.
5813         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814         #   nm: unknown option "B" ignored
5815         # Tru64's nm complains that /dev/null is an invalid object file
5816         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817         */dev/null* | *'Invalid file or object type'*)
5818           lt_cv_path_NM="$tmp_nm -B"
5819           break
5820           ;;
5821         *)
5822           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5823           */dev/null*)
5824             lt_cv_path_NM="$tmp_nm -p"
5825             break
5826             ;;
5827           *)
5828             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829             continue # so that we can try to find one that supports BSD flags
5830             ;;
5831           esac
5832           ;;
5833         esac
5834       fi
5835     done
5836     IFS="$lt_save_ifs"
5837   done
5838   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5839 fi
5840 fi
5841 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5842 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5843 NM="$lt_cv_path_NM"
5844
5845
5846
5847 { echo "$as_me:$LINENO: checking for GNU make" >&5
5848 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5849 if test "${llvm_cv_gnu_make_command+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   llvm_cv_gnu_make_command=''
5853  for a in "$MAKE" make gmake gnumake ; do
5854   if test -z "$a" ; then continue ; fi ;
5855   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5856   then
5857    llvm_cv_gnu_make_command=$a ;
5858    break;
5859   fi
5860  done
5861 fi
5862 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5863 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5864  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5865    ifGNUmake='' ;
5866  else
5867    ifGNUmake='#' ;
5868    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5869 echo "${ECHO_T}\"Not found\"" >&6; };
5870  fi
5871
5872
5873 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5874 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5875 LN_S=$as_ln_s
5876 if test "$LN_S" = "ln -s"; then
5877   { echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6; }
5879 else
5880   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5881 echo "${ECHO_T}no, using $LN_S" >&6; }
5882 fi
5883
5884 # Extract the first word of "cmp", so it can be a program name with args.
5885 set dummy cmp; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_CMP+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   case $CMP in
5892   [\\/]* | ?:[\\/]*)
5893   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5894   ;;
5895   *)
5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5912   ;;
5913 esac
5914 fi
5915 CMP=$ac_cv_path_CMP
5916 if test -n "$CMP"; then
5917   { echo "$as_me:$LINENO: result: $CMP" >&5
5918 echo "${ECHO_T}$CMP" >&6; }
5919 else
5920   { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5923
5924
5925 # Extract the first word of "cp", so it can be a program name with args.
5926 set dummy cp; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_CP+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   case $CP in
5933   [\\/]* | ?:[\\/]*)
5934   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5935   ;;
5936   *)
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5953   ;;
5954 esac
5955 fi
5956 CP=$ac_cv_path_CP
5957 if test -n "$CP"; then
5958   { echo "$as_me:$LINENO: result: $CP" >&5
5959 echo "${ECHO_T}$CP" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5964
5965
5966 # Extract the first word of "date", so it can be a program name with args.
5967 set dummy date; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_DATE+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   case $DATE in
5974   [\\/]* | ?:[\\/]*)
5975   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5976   ;;
5977   *)
5978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5994   ;;
5995 esac
5996 fi
5997 DATE=$ac_cv_path_DATE
5998 if test -n "$DATE"; then
5999   { echo "$as_me:$LINENO: result: $DATE" >&5
6000 echo "${ECHO_T}$DATE" >&6; }
6001 else
6002   { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6004 fi
6005
6006
6007 # Extract the first word of "find", so it can be a program name with args.
6008 set dummy find; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_FIND+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   case $FIND in
6015   [\\/]* | ?:[\\/]*)
6016   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6017   ;;
6018   *)
6019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024   for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6035   ;;
6036 esac
6037 fi
6038 FIND=$ac_cv_path_FIND
6039 if test -n "$FIND"; then
6040   { echo "$as_me:$LINENO: result: $FIND" >&5
6041 echo "${ECHO_T}$FIND" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048 # Extract the first word of "grep", so it can be a program name with args.
6049 set dummy grep; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_path_GREP+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   case $GREP in
6056   [\\/]* | ?:[\\/]*)
6057   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6058   ;;
6059   *)
6060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6076   ;;
6077 esac
6078 fi
6079 GREP=$ac_cv_path_GREP
6080 if test -n "$GREP"; then
6081   { echo "$as_me:$LINENO: result: $GREP" >&5
6082 echo "${ECHO_T}$GREP" >&6; }
6083 else
6084   { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6086 fi
6087
6088
6089 # Extract the first word of "mkdir", so it can be a program name with args.
6090 set dummy mkdir; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_path_MKDIR+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   case $MKDIR in
6097   [\\/]* | ?:[\\/]*)
6098   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6099   ;;
6100   *)
6101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6117   ;;
6118 esac
6119 fi
6120 MKDIR=$ac_cv_path_MKDIR
6121 if test -n "$MKDIR"; then
6122   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6123 echo "${ECHO_T}$MKDIR" >&6; }
6124 else
6125   { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6127 fi
6128
6129
6130 # Extract the first word of "mv", so it can be a program name with args.
6131 set dummy mv; ac_word=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_path_MV+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   case $MV in
6138   [\\/]* | ?:[\\/]*)
6139   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6140   ;;
6141   *)
6142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147   for ac_exec_ext in '' $ac_executable_extensions; do
6148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6158   ;;
6159 esac
6160 fi
6161 MV=$ac_cv_path_MV
6162 if test -n "$MV"; then
6163   { echo "$as_me:$LINENO: result: $MV" >&5
6164 echo "${ECHO_T}$MV" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170
6171 if test -n "$ac_tool_prefix"; then
6172   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_RANLIB+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   if test -n "$RANLIB"; then
6180   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187   for ac_exec_ext in '' $ac_executable_extensions; do
6188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 RANLIB=$ac_cv_prog_RANLIB
6200 if test -n "$RANLIB"; then
6201   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6202 echo "${ECHO_T}$RANLIB" >&6; }
6203 else
6204   { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6206 fi
6207
6208
6209 fi
6210 if test -z "$ac_cv_prog_RANLIB"; then
6211   ac_ct_RANLIB=$RANLIB
6212   # Extract the first word of "ranlib", so it can be a program name with args.
6213 set dummy ranlib; ac_word=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   if test -n "$ac_ct_RANLIB"; then
6220   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227   for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_prog_ac_ct_RANLIB="ranlib"
6230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240 if test -n "$ac_ct_RANLIB"; then
6241   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6242 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6246 fi
6247
6248   if test "x$ac_ct_RANLIB" = x; then
6249     RANLIB=":"
6250   else
6251     case $cross_compiling:$ac_tool_warned in
6252 yes:)
6253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet.  If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&5
6256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6257 whose name does not start with the host triplet.  If you think this
6258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6259 ac_tool_warned=yes ;;
6260 esac
6261     RANLIB=$ac_ct_RANLIB
6262   fi
6263 else
6264   RANLIB="$ac_cv_prog_RANLIB"
6265 fi
6266
6267 if test -n "$ac_tool_prefix"; then
6268   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}ar; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_prog_AR+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   if test -n "$AR"; then
6276   ac_cv_prog_AR="$AR" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283   for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_prog_AR="${ac_tool_prefix}ar"
6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 AR=$ac_cv_prog_AR
6296 if test -n "$AR"; then
6297   { echo "$as_me:$LINENO: result: $AR" >&5
6298 echo "${ECHO_T}$AR" >&6; }
6299 else
6300   { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 fi
6303
6304
6305 fi
6306 if test -z "$ac_cv_prog_AR"; then
6307   ac_ct_AR=$AR
6308   # Extract the first word of "ar", so it can be a program name with args.
6309 set dummy ar; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   if test -n "$ac_ct_AR"; then
6316   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_prog_ac_ct_AR="ar"
6326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6336 if test -n "$ac_ct_AR"; then
6337   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6338 echo "${ECHO_T}$ac_ct_AR" >&6; }
6339 else
6340   { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6342 fi
6343
6344   if test "x$ac_ct_AR" = x; then
6345     AR="false"
6346   else
6347     case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6350 whose name does not start with the host triplet.  If you think this
6351 configuration is useful to you, please write to autoconf@gnu.org." >&5
6352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6353 whose name does not start with the host triplet.  If you think this
6354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357     AR=$ac_ct_AR
6358   fi
6359 else
6360   AR="$ac_cv_prog_AR"
6361 fi
6362
6363 # Extract the first word of "rm", so it can be a program name with args.
6364 set dummy rm; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_RM+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $RM in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6391   ;;
6392 esac
6393 fi
6394 RM=$ac_cv_path_RM
6395 if test -n "$RM"; then
6396   { echo "$as_me:$LINENO: result: $RM" >&5
6397 echo "${ECHO_T}$RM" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404 # Extract the first word of "sed", so it can be a program name with args.
6405 set dummy sed; ac_word=$2
6406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408 if test "${ac_cv_path_SED+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   case $SED in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421   for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6432   ;;
6433 esac
6434 fi
6435 SED=$ac_cv_path_SED
6436 if test -n "$SED"; then
6437   { echo "$as_me:$LINENO: result: $SED" >&5
6438 echo "${ECHO_T}$SED" >&6; }
6439 else
6440   { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6442 fi
6443
6444
6445 # Extract the first word of "tar", so it can be a program name with args.
6446 set dummy tar; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_TAR+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   case $TAR in
6453   [\\/]* | ?:[\\/]*)
6454   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6455   ;;
6456   *)
6457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6473   ;;
6474 esac
6475 fi
6476 TAR=$ac_cv_path_TAR
6477 if test -n "$TAR"; then
6478   { echo "$as_me:$LINENO: result: $TAR" >&5
6479 echo "${ECHO_T}$TAR" >&6; }
6480 else
6481   { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483 fi
6484
6485
6486 # Extract the first word of "pwd", so it can be a program name with args.
6487 set dummy pwd; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_BINPWD+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   case $BINPWD in
6494   [\\/]* | ?:[\\/]*)
6495   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6496   ;;
6497   *)
6498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6514   ;;
6515 esac
6516 fi
6517 BINPWD=$ac_cv_path_BINPWD
6518 if test -n "$BINPWD"; then
6519   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6520 echo "${ECHO_T}$BINPWD" >&6; }
6521 else
6522   { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6524 fi
6525
6526
6527
6528 # Extract the first word of "Graphviz", so it can be a program name with args.
6529 set dummy Graphviz; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   case $GRAPHVIZ in
6536   [\\/]* | ?:[\\/]*)
6537   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6538   ;;
6539   *)
6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6556   ;;
6557 esac
6558 fi
6559 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6560 if test -n "$GRAPHVIZ"; then
6561   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6562 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6566 fi
6567
6568
6569 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define HAVE_GRAPHVIZ 1
6573 _ACEOF
6574
6575     if test "$llvm_cv_os_type" = "MingW" ; then
6576     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6577   fi
6578
6579 cat >>confdefs.h <<_ACEOF
6580 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6581 _ACEOF
6582
6583 fi
6584 # Extract the first word of "dot", so it can be a program name with args.
6585 set dummy dot; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_DOT+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   case $DOT in
6592   [\\/]* | ?:[\\/]*)
6593   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6594   ;;
6595   *)
6596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601   for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6612   ;;
6613 esac
6614 fi
6615 DOT=$ac_cv_path_DOT
6616 if test -n "$DOT"; then
6617   { echo "$as_me:$LINENO: result: $DOT" >&5
6618 echo "${ECHO_T}$DOT" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6622 fi
6623
6624
6625 if test "$DOT" != "echo dot" ; then
6626
6627 cat >>confdefs.h <<\_ACEOF
6628 #define HAVE_DOT 1
6629 _ACEOF
6630
6631     if test "$llvm_cv_os_type" = "MingW" ; then
6632     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6633   fi
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6637 _ACEOF
6638
6639 fi
6640 # Extract the first word of "fdp", so it can be a program name with args.
6641 set dummy fdp; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_FDP+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   case $FDP in
6648   [\\/]* | ?:[\\/]*)
6649   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6650   ;;
6651   *)
6652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657   for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6668   ;;
6669 esac
6670 fi
6671 FDP=$ac_cv_path_FDP
6672 if test -n "$FDP"; then
6673   { echo "$as_me:$LINENO: result: $FDP" >&5
6674 echo "${ECHO_T}$FDP" >&6; }
6675 else
6676   { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6678 fi
6679
6680
6681 if test "$FDP" != "echo fdp" ; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_FDP 1
6685 _ACEOF
6686
6687     if test "$llvm_cv_os_type" = "MingW" ; then
6688     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689   fi
6690
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6693 _ACEOF
6694
6695 fi
6696 # Extract the first word of "neato", so it can be a program name with args.
6697 set dummy neato; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_NEATO+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $NEATO in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6724   ;;
6725 esac
6726 fi
6727 NEATO=$ac_cv_path_NEATO
6728 if test -n "$NEATO"; then
6729   { echo "$as_me:$LINENO: result: $NEATO" >&5
6730 echo "${ECHO_T}$NEATO" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 if test "$NEATO" != "echo neato" ; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_NEATO 1
6741 _ACEOF
6742
6743     if test "$llvm_cv_os_type" = "MingW" ; then
6744     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745   fi
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6749 _ACEOF
6750
6751 fi
6752 # Extract the first word of "twopi", so it can be a program name with args.
6753 set dummy twopi; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_TWOPI+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $TWOPI in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6780   ;;
6781 esac
6782 fi
6783 TWOPI=$ac_cv_path_TWOPI
6784 if test -n "$TWOPI"; then
6785   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6786 echo "${ECHO_T}$TWOPI" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 if test "$TWOPI" != "echo twopi" ; then
6794
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_TWOPI 1
6797 _ACEOF
6798
6799     if test "$llvm_cv_os_type" = "MingW" ; then
6800     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801   fi
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6805 _ACEOF
6806
6807 fi
6808 # Extract the first word of "circo", so it can be a program name with args.
6809 set dummy circo; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_path_CIRCO+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   case $CIRCO in
6816   [\\/]* | ?:[\\/]*)
6817   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6818   ;;
6819   *)
6820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825   for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6836   ;;
6837 esac
6838 fi
6839 CIRCO=$ac_cv_path_CIRCO
6840 if test -n "$CIRCO"; then
6841   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6842 echo "${ECHO_T}$CIRCO" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 if test "$CIRCO" != "echo circo" ; then
6850
6851 cat >>confdefs.h <<\_ACEOF
6852 #define HAVE_CIRCO 1
6853 _ACEOF
6854
6855     if test "$llvm_cv_os_type" = "MingW" ; then
6856     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6857   fi
6858
6859 cat >>confdefs.h <<_ACEOF
6860 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6861 _ACEOF
6862
6863 fi
6864 for ac_prog in gv gsview32
6865 do
6866   # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_GV+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   case $GV in
6874   [\\/]* | ?:[\\/]*)
6875   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6876   ;;
6877   *)
6878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893   ;;
6894 esac
6895 fi
6896 GV=$ac_cv_path_GV
6897 if test -n "$GV"; then
6898   { echo "$as_me:$LINENO: result: $GV" >&5
6899 echo "${ECHO_T}$GV" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905
6906   test -n "$GV" && break
6907 done
6908 test -n "$GV" || GV="echo gv"
6909
6910 if test "$GV" != "echo gv" ; then
6911
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_GV 1
6914 _ACEOF
6915
6916     if test "$llvm_cv_os_type" = "MingW" ; then
6917     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6918   fi
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define LLVM_PATH_GV "$GV${EXEEXT}"
6922 _ACEOF
6923
6924 fi
6925 # Extract the first word of "dotty", so it can be a program name with args.
6926 set dummy dotty; ac_word=$2
6927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929 if test "${ac_cv_path_DOTTY+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   case $DOTTY in
6933   [\\/]* | ?:[\\/]*)
6934   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6935   ;;
6936   *)
6937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940   IFS=$as_save_IFS
6941   test -z "$as_dir" && as_dir=.
6942   for ac_exec_ext in '' $ac_executable_extensions; do
6943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6944     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946     break 2
6947   fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6953   ;;
6954 esac
6955 fi
6956 DOTTY=$ac_cv_path_DOTTY
6957 if test -n "$DOTTY"; then
6958   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6959 echo "${ECHO_T}$DOTTY" >&6; }
6960 else
6961   { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6963 fi
6964
6965
6966 if test "$DOTTY" != "echo dotty" ; then
6967
6968 cat >>confdefs.h <<\_ACEOF
6969 #define HAVE_DOTTY 1
6970 _ACEOF
6971
6972     if test "$llvm_cv_os_type" = "MingW" ; then
6973     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6974   fi
6975
6976 cat >>confdefs.h <<_ACEOF
6977 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6978 _ACEOF
6979
6980 fi
6981 # Extract the first word of "xdot.py", so it can be a program name with args.
6982 set dummy xdot.py; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   case $XDOT_PY in
6989   [\\/]* | ?:[\\/]*)
6990   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6991   ;;
6992   *)
6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7009   ;;
7010 esac
7011 fi
7012 XDOT_PY=$ac_cv_path_XDOT_PY
7013 if test -n "$XDOT_PY"; then
7014   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7015 echo "${ECHO_T}$XDOT_PY" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 if test "$XDOT_PY" != "echo xdot.py" ; then
7023
7024 cat >>confdefs.h <<\_ACEOF
7025 #define HAVE_XDOT_PY 1
7026 _ACEOF
7027
7028     if test "$llvm_cv_os_type" = "MingW" ; then
7029     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7030   fi
7031
7032 cat >>confdefs.h <<_ACEOF
7033 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7034 _ACEOF
7035
7036 fi
7037
7038 # Find a good install program.  We prefer a C program (faster),
7039 # so one script is as good as another.  But avoid the broken or
7040 # incompatible versions:
7041 # SysV /etc/install, /usr/sbin/install
7042 # SunOS /usr/etc/install
7043 # IRIX /sbin/install
7044 # AIX /bin/install
7045 # AmigaOS /C/install, which installs bootblocks on floppy discs
7046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7049 # OS/2's system install, which has a completely different semantic
7050 # ./install, which can be erroneously created by make from ./install.sh.
7051 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7052 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7053 if test -z "$INSTALL"; then
7054 if test "${ac_cv_path_install+set}" = set; then
7055   echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062   # Account for people who put trailing slashes in PATH elements.
7063 case $as_dir/ in
7064   ./ | .// | /cC/* | \
7065   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7066   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7067   /usr/ucb/* ) ;;
7068   *)
7069     # OSF1 and SCO ODT 3.0 have their own names for install.
7070     # Don't use installbsd from OSF since it installs stuff as root
7071     # by default.
7072     for ac_prog in ginstall scoinst install; do
7073       for ac_exec_ext in '' $ac_executable_extensions; do
7074         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7075           if test $ac_prog = install &&
7076             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077             # AIX install.  It has an incompatible calling convention.
7078             :
7079           elif test $ac_prog = install &&
7080             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7081             # program-specific install script used by HP pwplus--don't use.
7082             :
7083           else
7084             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7085             break 3
7086           fi
7087         fi
7088       done
7089     done
7090     ;;
7091 esac
7092 done
7093 IFS=$as_save_IFS
7094
7095
7096 fi
7097   if test "${ac_cv_path_install+set}" = set; then
7098     INSTALL=$ac_cv_path_install
7099   else
7100     # As a last resort, use the slow shell script.  Don't cache a
7101     # value for INSTALL within a source directory, because that will
7102     # break other packages using the cache if that directory is
7103     # removed, or if the value is a relative name.
7104     INSTALL=$ac_install_sh
7105   fi
7106 fi
7107 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7108 echo "${ECHO_T}$INSTALL" >&6; }
7109
7110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7111 # It thinks the first close brace ends the variable substitution.
7112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7113
7114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7115
7116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7117
7118 case "$INSTALL" in
7119  [\\/$]* | ?:[\\/]* ) ;;
7120  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7121 esac
7122
7123 # Extract the first word of "bzip2", so it can be a program name with args.
7124 set dummy bzip2; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_BZIP2+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $BZIP2 in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 BZIP2=$ac_cv_path_BZIP2
7154 if test -n "$BZIP2"; then
7155   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7156 echo "${ECHO_T}$BZIP2" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 # Extract the first word of "cat", so it can be a program name with args.
7164 set dummy cat; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_CAT+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $CAT in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190   ;;
7191 esac
7192 fi
7193 CAT=$ac_cv_path_CAT
7194 if test -n "$CAT"; then
7195   { echo "$as_me:$LINENO: result: $CAT" >&5
7196 echo "${ECHO_T}$CAT" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 # Extract the first word of "doxygen", so it can be a program name with args.
7204 set dummy doxygen; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $DOXYGEN in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   ;;
7231 esac
7232 fi
7233 DOXYGEN=$ac_cv_path_DOXYGEN
7234 if test -n "$DOXYGEN"; then
7235   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7236 echo "${ECHO_T}$DOXYGEN" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 # Extract the first word of "groff", so it can be a program name with args.
7244 set dummy groff; ac_word=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_GROFF+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   case $GROFF in
7251   [\\/]* | ?:[\\/]*)
7252   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7253   ;;
7254   *)
7255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260   for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270   ;;
7271 esac
7272 fi
7273 GROFF=$ac_cv_path_GROFF
7274 if test -n "$GROFF"; then
7275   { echo "$as_me:$LINENO: result: $GROFF" >&5
7276 echo "${ECHO_T}$GROFF" >&6; }
7277 else
7278   { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7280 fi
7281
7282
7283 # Extract the first word of "gzip", so it can be a program name with args.
7284 set dummy gzip; ac_word=$2
7285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   case $GZIPBIN in
7291   [\\/]* | ?:[\\/]*)
7292   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7293   ;;
7294   *)
7295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310   ;;
7311 esac
7312 fi
7313 GZIPBIN=$ac_cv_path_GZIPBIN
7314 if test -n "$GZIPBIN"; then
7315   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7316 echo "${ECHO_T}$GZIPBIN" >&6; }
7317 else
7318   { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7320 fi
7321
7322
7323 # Extract the first word of "pdfroff", so it can be a program name with args.
7324 set dummy pdfroff; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_PDFROFF+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   case $PDFROFF in
7331   [\\/]* | ?:[\\/]*)
7332   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7333   ;;
7334   *)
7335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340   for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350   ;;
7351 esac
7352 fi
7353 PDFROFF=$ac_cv_path_PDFROFF
7354 if test -n "$PDFROFF"; then
7355   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7356 echo "${ECHO_T}$PDFROFF" >&6; }
7357 else
7358   { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7360 fi
7361
7362
7363 # Extract the first word of "zip", so it can be a program name with args.
7364 set dummy zip; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_ZIP+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   case $ZIP in
7371   [\\/]* | ?:[\\/]*)
7372   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7373   ;;
7374   *)
7375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380   for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390   ;;
7391 esac
7392 fi
7393 ZIP=$ac_cv_path_ZIP
7394 if test -n "$ZIP"; then
7395   { echo "$as_me:$LINENO: result: $ZIP" >&5
7396 echo "${ECHO_T}$ZIP" >&6; }
7397 else
7398   { echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6; }
7400 fi
7401
7402
7403 for ac_prog in ocamlc
7404 do
7405   # Extract the first word of "$ac_prog", so it can be a program name with args.
7406 set dummy $ac_prog; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_OCAMLC+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   case $OCAMLC in
7413   [\\/]* | ?:[\\/]*)
7414   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7415   ;;
7416   *)
7417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432   ;;
7433 esac
7434 fi
7435 OCAMLC=$ac_cv_path_OCAMLC
7436 if test -n "$OCAMLC"; then
7437   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7438 echo "${ECHO_T}$OCAMLC" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445   test -n "$OCAMLC" && break
7446 done
7447
7448 for ac_prog in ocamlopt
7449 do
7450   # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $OCAMLOPT in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 OCAMLOPT=$ac_cv_path_OCAMLOPT
7481 if test -n "$OCAMLOPT"; then
7482   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7483 echo "${ECHO_T}$OCAMLOPT" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490   test -n "$OCAMLOPT" && break
7491 done
7492
7493 for ac_prog in ocamldep
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $OCAMLDEP in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 OCAMLDEP=$ac_cv_path_OCAMLDEP
7526 if test -n "$OCAMLDEP"; then
7527   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7528 echo "${ECHO_T}$OCAMLDEP" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535   test -n "$OCAMLDEP" && break
7536 done
7537
7538 for ac_prog in ocamldoc
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $OCAMLDOC in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   ;;
7568 esac
7569 fi
7570 OCAMLDOC=$ac_cv_path_OCAMLDOC
7571 if test -n "$OCAMLDOC"; then
7572   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7573 echo "${ECHO_T}$OCAMLDOC" >&6; }
7574 else
7575   { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7577 fi
7578
7579
7580   test -n "$OCAMLDOC" && break
7581 done
7582
7583 for ac_prog in gas as
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_GAS+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $GAS in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 GAS=$ac_cv_path_GAS
7616 if test -n "$GAS"; then
7617   { echo "$as_me:$LINENO: result: $GAS" >&5
7618 echo "${ECHO_T}$GAS" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625   test -n "$GAS" && break
7626 done
7627
7628
7629 { echo "$as_me:$LINENO: checking for linker version" >&5
7630 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7631 if test "${llvm_cv_link_version+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634
7635    version_string="$(ld -v 2>&1 | head -1)"
7636
7637    # Check for ld64.
7638    if (echo "$version_string" | grep -q "ld64"); then
7639      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7640    else
7641      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7642    fi
7643
7644 fi
7645 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7646 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7647
7648 cat >>confdefs.h <<_ACEOF
7649 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7650 _ACEOF
7651
7652
7653
7654 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7655 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7656 if test "${llvm_cv_link_use_r+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659    ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665   oldcflags="$CFLAGS"
7666   CFLAGS="$CFLAGS -Wl,-R."
7667   cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h.  */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h.  */
7673
7674 int
7675 main ()
7676 {
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7684 case "(($ac_try" in
7685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686   *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689   (eval "$ac_link") 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7697   { (case "(($ac_try" in
7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699   *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702   (eval "$ac_try") 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; } &&
7706          { ac_try='test -s conftest$ac_exeext'
7707   { (case "(($ac_try" in
7708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709   *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712   (eval "$ac_try") 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); }; }; then
7716   llvm_cv_link_use_r=yes
7717 else
7718   echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721         llvm_cv_link_use_r=no
7722 fi
7723
7724 rm -f core conftest.err conftest.$ac_objext \
7725       conftest$ac_exeext conftest.$ac_ext
7726   CFLAGS="$oldcflags"
7727   ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733
7734 fi
7735 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7736 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7737 if test "$llvm_cv_link_use_r" = yes ; then
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LINK_R 1
7741 _ACEOF
7742
7743   fi
7744
7745
7746 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7747 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7748 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751    ac_ext=c
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757   oldcflags="$CFLAGS"
7758   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7759   cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765
7766 int
7767 main ()
7768 {
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (ac_try="$ac_link"
7776 case "(($ac_try" in
7777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778   *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781   (eval "$ac_link") 2>conftest.er1
7782   ac_status=$?
7783   grep -v '^ *+' conftest.er1 >conftest.err
7784   rm -f conftest.er1
7785   cat conftest.err >&5
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789   { (case "(($ac_try" in
7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791   *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794   (eval "$ac_try") 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; } &&
7798          { ac_try='test -s conftest$ac_exeext'
7799   { (case "(($ac_try" in
7800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801   *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804   (eval "$ac_try") 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; }; then
7808   llvm_cv_link_use_export_dynamic=yes
7809 else
7810   echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813         llvm_cv_link_use_export_dynamic=no
7814 fi
7815
7816 rm -f core conftest.err conftest.$ac_objext \
7817       conftest$ac_exeext conftest.$ac_ext
7818   CFLAGS="$oldcflags"
7819   ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826 fi
7827 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7828 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7829 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7830
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_LINK_EXPORT_DYNAMIC 1
7833 _ACEOF
7834
7835   fi
7836
7837
7838 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7839 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_use_version_script+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843    ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849   oldcflags="$CFLAGS"
7850
7851   # The following code is from the autoconf manual,
7852   # "11.13: Limitations of Usual Tools".
7853   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7854   # Use mktemp if possible; otherwise fall back on mkdir,
7855   # with $RANDOM to make collisions less likely.
7856   : ${TMPDIR=/tmp}
7857   {
7858     tmp=`
7859       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7860     ` &&
7861     test -n "$tmp" && test -d "$tmp"
7862   } || {
7863     tmp=$TMPDIR/foo$$-$RANDOM
7864     (umask 077 && mkdir "$tmp")
7865   } || exit $?
7866
7867   echo "{" > "$tmp/export.map"
7868   echo "  global: main;" >> "$tmp/export.map"
7869   echo "  local: *;" >> "$tmp/export.map"
7870   echo "};" >> "$tmp/export.map"
7871
7872   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7873   cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879
7880 int
7881 main ()
7882 {
7883
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (ac_try="$ac_link"
7890 case "(($ac_try" in
7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892   *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895   (eval "$ac_link") 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7903   { (case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_try") 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest$ac_exeext'
7913   { (case "(($ac_try" in
7914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915   *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918   (eval "$ac_try") 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   llvm_cv_link_use_version_script=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927         llvm_cv_link_use_version_script=no
7928 fi
7929
7930 rm -f core conftest.err conftest.$ac_objext \
7931       conftest$ac_exeext conftest.$ac_ext
7932   rm "$tmp/export.map"
7933   rmdir "$tmp"
7934   CFLAGS="$oldcflags"
7935   ac_ext=c
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941
7942 fi
7943 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7944 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7945 if test "$llvm_cv_link_use_version_script" = yes ; then
7946   HAVE_LINK_VERSION_SCRIPT=1
7947
7948   fi
7949
7950
7951
7952
7953 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7954 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7955 if test "${ac_cv_c_const+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 int
7966 main ()
7967 {
7968 /* FIXME: Include the comments suggested by Paul. */
7969 #ifndef __cplusplus
7970   /* Ultrix mips cc rejects this.  */
7971   typedef int charset[2];
7972   const charset x;
7973   /* SunOS 4.1.1 cc rejects this.  */
7974   char const *const *ccp;
7975   char **p;
7976   /* NEC SVR4.0.2 mips cc rejects this.  */
7977   struct point {int x, y;};
7978   static struct point const zero = {0,0};
7979   /* AIX XL C 1.02.0.0 rejects this.
7980      It does not let you subtract one const X* pointer from another in
7981      an arm of an if-expression whose if-part is not a constant
7982      expression */
7983   const char *g = "string";
7984   ccp = &g + (g ? g-g : 0);
7985   /* HPUX 7.0 cc rejects these. */
7986   ++ccp;
7987   p = (char**) ccp;
7988   ccp = (char const *const *) p;
7989   { /* SCO 3.2v4 cc rejects this.  */
7990     char *t;
7991     char const *s = 0 ? (char *) 0 : (char const *) 0;
7992
7993     *t++ = 0;
7994     if (s) return 0;
7995   }
7996   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7997     int x[] = {25, 17};
7998     const int *foo = &x[0];
7999     ++foo;
8000   }
8001   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8002     typedef const int *iptr;
8003     iptr p = 0;
8004     ++p;
8005   }
8006   { /* AIX XL C 1.02.0.0 rejects this saying
8007        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8008     struct s { int j; const int *ap[3]; };
8009     struct s *b; b->j = 5;
8010   }
8011   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8012     const int foo = 10;
8013     if (!foo) return 0;
8014   }
8015   return !x[0] && !zero.x;
8016 #endif
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029   (eval "$ac_compile") 2>conftest.er1
8030   ac_status=$?
8031   grep -v '^ *+' conftest.er1 >conftest.err
8032   rm -f conftest.er1
8033   cat conftest.err >&5
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } &&
8036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037   { (case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_try") 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; } &&
8046          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   ac_cv_c_const=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061         ac_cv_c_const=no
8062 fi
8063
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8067 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8068 if test $ac_cv_c_const = no; then
8069
8070 cat >>confdefs.h <<\_ACEOF
8071 #define const
8072 _ACEOF
8073
8074 fi
8075
8076
8077
8078
8079
8080
8081 ac_header_dirent=no
8082 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8083   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8084 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8085 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 #include <sys/types.h>
8096 #include <$ac_hdr>
8097
8098 int
8099 main ()
8100 {
8101 if ((DIR *) 0)
8102 return 0;
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_compile") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   eval "$as_ac_Header=yes"
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146         eval "$as_ac_Header=no"
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 ac_res=`eval echo '${'$as_ac_Header'}'`
8152                { echo "$as_me:$LINENO: result: $ac_res" >&5
8153 echo "${ECHO_T}$ac_res" >&6; }
8154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8155   cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8157 _ACEOF
8158
8159 ac_header_dirent=$ac_hdr; break
8160 fi
8161
8162 done
8163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8164 if test $ac_header_dirent = dirent.h; then
8165   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8167 if test "${ac_cv_search_opendir+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   ac_func_search_save_LIBS=$LIBS
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177
8178 /* Override any GCC internal prototype to avoid an error.
8179    Use char because int might match the return type of a GCC
8180    builtin and then its argument prototype would still apply.  */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char opendir ();
8185 int
8186 main ()
8187 {
8188 return opendir ();
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 for ac_lib in '' dir; do
8194   if test -z "$ac_lib"; then
8195     ac_res="none required"
8196   else
8197     ac_res=-l$ac_lib
8198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8199   fi
8200   rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_link") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; } &&
8224          { ac_try='test -s conftest$ac_exeext'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_search_opendir=$ac_res
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239
8240 fi
8241
8242 rm -f core conftest.err conftest.$ac_objext \
8243       conftest$ac_exeext
8244   if test "${ac_cv_search_opendir+set}" = set; then
8245   break
8246 fi
8247 done
8248 if test "${ac_cv_search_opendir+set}" = set; then
8249   :
8250 else
8251   ac_cv_search_opendir=no
8252 fi
8253 rm conftest.$ac_ext
8254 LIBS=$ac_func_search_save_LIBS
8255 fi
8256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8258 ac_res=$ac_cv_search_opendir
8259 if test "$ac_res" != no; then
8260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261
8262 fi
8263
8264 else
8265   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8267 if test "${ac_cv_search_opendir+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   ac_func_search_save_LIBS=$LIBS
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any GCC internal prototype to avoid an error.
8279    Use char because int might match the return type of a GCC
8280    builtin and then its argument prototype would still apply.  */
8281 #ifdef __cplusplus
8282 extern "C"
8283 #endif
8284 char opendir ();
8285 int
8286 main ()
8287 {
8288 return opendir ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 for ac_lib in '' x; do
8294   if test -z "$ac_lib"; then
8295     ac_res="none required"
8296   else
8297     ac_res=-l$ac_lib
8298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8299   fi
8300   rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8302 case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_link") 2>conftest.er1
8308   ac_status=$?
8309   grep -v '^ *+' conftest.er1 >conftest.err
8310   rm -f conftest.er1
8311   cat conftest.err >&5
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } &&
8314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_try") 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_search_opendir=$ac_res
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext \
8343       conftest$ac_exeext
8344   if test "${ac_cv_search_opendir+set}" = set; then
8345   break
8346 fi
8347 done
8348 if test "${ac_cv_search_opendir+set}" = set; then
8349   :
8350 else
8351   ac_cv_search_opendir=no
8352 fi
8353 rm conftest.$ac_ext
8354 LIBS=$ac_func_search_save_LIBS
8355 fi
8356 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8357 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8358 ac_res=$ac_cv_search_opendir
8359 if test "$ac_res" != no; then
8360   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8361
8362 fi
8363
8364 fi
8365
8366
8367 for ac_header in dlfcn.h
8368 do
8369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 fi
8376 ac_res=`eval echo '${'$as_ac_Header'}'`
8377                { echo "$as_me:$LINENO: result: $ac_res" >&5
8378 echo "${ECHO_T}$ac_res" >&6; }
8379 else
8380   # Is the header compilable?
8381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 $ac_includes_default
8390 #include <$ac_header>
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_compile") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407   { (case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_try") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest.$ac_objext'
8417   { (case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_try") 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_header_compiler=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431         ac_header_compiler=no
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8436 echo "${ECHO_T}$ac_header_compiler" >&6; }
8437
8438 # Is the header present?
8439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 #include <$ac_header>
8448 _ACEOF
8449 if { (ac_try="$ac_cpp conftest.$ac_ext"
8450 case "(($ac_try" in
8451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452   *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } >/dev/null; then
8462   if test -s conftest.err; then
8463     ac_cpp_err=$ac_c_preproc_warn_flag
8464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8465   else
8466     ac_cpp_err=
8467   fi
8468 else
8469   ac_cpp_err=yes
8470 fi
8471 if test -z "$ac_cpp_err"; then
8472   ac_header_preproc=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477   ac_header_preproc=no
8478 fi
8479
8480 rm -f conftest.err conftest.$ac_ext
8481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8482 echo "${ECHO_T}$ac_header_preproc" >&6; }
8483
8484 # So?  What about this header?
8485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8486   yes:no: )
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8491     ac_header_preproc=yes
8492     ;;
8493   no:yes:* )
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8506     ( cat <<\_ASBOX
8507 ## ------------------------------------ ##
8508 ## Report this to http://llvm.org/bugs/ ##
8509 ## ------------------------------------ ##
8510 _ASBOX
8511      ) | sed "s/^/$as_me: WARNING:     /" >&2
8512     ;;
8513 esac
8514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   eval "$as_ac_Header=\$ac_header_preproc"
8520 fi
8521 ac_res=`eval echo '${'$as_ac_Header'}'`
8522                { echo "$as_me:$LINENO: result: $ac_res" >&5
8523 echo "${ECHO_T}$ac_res" >&6; }
8524
8525 fi
8526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8527   cat >>confdefs.h <<_ACEOF
8528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8529 _ACEOF
8530
8531 fi
8532
8533 done
8534
8535 # Check whether --enable-ltdl-install was given.
8536 if test "${enable_ltdl_install+set}" = set; then
8537   enableval=$enable_ltdl_install;
8538 fi
8539
8540
8541
8542
8543 if test x"${enable_ltdl_install-no}" != xno; then
8544   INSTALL_LTDL_TRUE=
8545   INSTALL_LTDL_FALSE='#'
8546 else
8547   INSTALL_LTDL_TRUE='#'
8548   INSTALL_LTDL_FALSE=
8549 fi
8550
8551
8552
8553 if test x"${enable_ltdl_convenience-no}" != xno; then
8554   CONVENIENCE_LTDL_TRUE=
8555   CONVENIENCE_LTDL_FALSE='#'
8556 else
8557   CONVENIENCE_LTDL_TRUE='#'
8558   CONVENIENCE_LTDL_FALSE=
8559 fi
8560
8561
8562 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8563 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8564 library_names_spec=
8565 libname_spec='lib$name'
8566 soname_spec=
8567 shrext_cmds=".so"
8568 postinstall_cmds=
8569 postuninstall_cmds=
8570 finish_cmds=
8571 finish_eval=
8572 shlibpath_var=
8573 shlibpath_overrides_runpath=unknown
8574 version_type=none
8575 dynamic_linker="$host_os ld.so"
8576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8577 if test "$GCC" = yes; then
8578   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8579   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8580     # if the path contains ";" then we assume it to be the separator
8581     # otherwise default to the standard path separator (i.e. ":") - it is
8582     # assumed that no part of a normal pathname contains ";" but that should
8583     # okay in the real world where ";" in dirpaths is itself problematic.
8584     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585   else
8586     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8587   fi
8588 else
8589   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8590 fi
8591 need_lib_prefix=unknown
8592 hardcode_into_libs=no
8593
8594 # when you set need_version to no, make sure it does not cause -set_version
8595 # flags to be left without arguments
8596 need_version=unknown
8597
8598 case $host_os in
8599 aix3*)
8600   version_type=linux
8601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8602   shlibpath_var=LIBPATH
8603
8604   # AIX 3 has no versioning support, so we append a major version to the name.
8605   soname_spec='${libname}${release}${shared_ext}$major'
8606   ;;
8607
8608 aix4* | aix5*)
8609   version_type=linux
8610   need_lib_prefix=no
8611   need_version=no
8612   hardcode_into_libs=yes
8613   if test "$host_cpu" = ia64; then
8614     # AIX 5 supports IA64
8615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8616     shlibpath_var=LD_LIBRARY_PATH
8617   else
8618     # With GCC up to 2.95.x, collect2 would create an import file
8619     # for dependence libraries.  The import file would start with
8620     # the line `#! .'.  This would cause the generated library to
8621     # depend on `.', always an invalid library.  This was fixed in
8622     # development snapshots of GCC prior to 3.0.
8623     case $host_os in
8624       aix4 | aix4.[01] | aix4.[01].*)
8625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8626            echo ' yes '
8627            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8628         :
8629       else
8630         can_build_shared=no
8631       fi
8632       ;;
8633     esac
8634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8635     # soname into executable. Probably we can add versioning support to
8636     # collect2, so additional links can be useful in future.
8637     if test "$aix_use_runtimelinking" = yes; then
8638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8639       # instead of lib<name>.a to let people know that these are not
8640       # typical AIX shared libraries.
8641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642     else
8643       # We preserve .a as extension for shared libraries through AIX4.2
8644       # and later when we are not doing run time linking.
8645       library_names_spec='${libname}${release}.a $libname.a'
8646       soname_spec='${libname}${release}${shared_ext}$major'
8647     fi
8648     shlibpath_var=LIBPATH
8649   fi
8650   ;;
8651
8652 amigaos*)
8653   library_names_spec='$libname.ixlibrary $libname.a'
8654   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8655   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'
8656   ;;
8657
8658 beos*)
8659   library_names_spec='${libname}${shared_ext}'
8660   dynamic_linker="$host_os ld.so"
8661   shlibpath_var=LIBRARY_PATH
8662   ;;
8663
8664 bsdi[45]*)
8665   version_type=linux
8666   need_version=no
8667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668   soname_spec='${libname}${release}${shared_ext}$major'
8669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8670   shlibpath_var=LD_LIBRARY_PATH
8671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8673   # the default ld.so.conf also contains /usr/contrib/lib and
8674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8675   # libtool to hard-code these into programs
8676   ;;
8677
8678 cygwin* | mingw* | pw32*)
8679   version_type=windows
8680   shrext_cmds=".dll"
8681   need_version=no
8682   need_lib_prefix=no
8683
8684   case $GCC,$host_os in
8685   yes,cygwin* | yes,mingw* | yes,pw32*)
8686     library_names_spec='$libname.dll.a'
8687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8688     postinstall_cmds='base_file=`basename \${file}`~
8689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8690       dldir=$destdir/`dirname \$dlpath`~
8691       test -d \$dldir || mkdir -p \$dldir~
8692       $install_prog $dir/$dlname \$dldir/$dlname~
8693       chmod a+x \$dldir/$dlname'
8694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8695       dlpath=$dir/\$dldll~
8696        $rm \$dlpath'
8697     shlibpath_overrides_runpath=yes
8698
8699     case $host_os in
8700     cygwin*)
8701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8704       ;;
8705     mingw*)
8706       # MinGW DLLs use traditional 'lib' prefix
8707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8708       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8709       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8710         # It is most probably a Windows format PATH printed by
8711         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8712         # path with ; separators, and with drive letters. We can handle the
8713         # drive letters (cygwin fileutils understands them), so leave them,
8714         # especially as we might pass files found there to a mingw objdump,
8715         # which wouldn't understand a cygwinified path. Ahh.
8716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8717       else
8718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8719       fi
8720       ;;
8721     pw32*)
8722       # pw32 DLLs use 'pw' prefix rather than 'lib'
8723       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8724       ;;
8725     esac
8726     ;;
8727
8728   *)
8729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8730     ;;
8731   esac
8732   dynamic_linker='Win32 ld.exe'
8733   # FIXME: first we should search . and the directory the executable is in
8734   shlibpath_var=PATH
8735   ;;
8736
8737 darwin* | rhapsody*)
8738   dynamic_linker="$host_os dyld"
8739   version_type=darwin
8740   need_lib_prefix=no
8741   need_version=no
8742   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8743   soname_spec='${libname}${release}${major}$shared_ext'
8744   shlibpath_overrides_runpath=yes
8745   shlibpath_var=DYLD_LIBRARY_PATH
8746   shrext_cmds='.dylib'
8747   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8748   if test "$GCC" = yes; then
8749     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"`
8750   else
8751     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8752   fi
8753   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8754   ;;
8755
8756 dgux*)
8757   version_type=linux
8758   need_lib_prefix=no
8759   need_version=no
8760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8761   soname_spec='${libname}${release}${shared_ext}$major'
8762   shlibpath_var=LD_LIBRARY_PATH
8763   ;;
8764
8765 freebsd1.*)
8766   dynamic_linker=no
8767   ;;
8768
8769 kfreebsd*-gnu)
8770   version_type=linux
8771   need_lib_prefix=no
8772   need_version=no
8773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8774   soname_spec='${libname}${release}${shared_ext}$major'
8775   shlibpath_var=LD_LIBRARY_PATH
8776   shlibpath_overrides_runpath=no
8777   hardcode_into_libs=yes
8778   dynamic_linker='GNU ld.so'
8779   ;;
8780
8781 freebsd* | dragonfly*)
8782   # DragonFly does not have aout.  When/if they implement a new
8783   # versioning mechanism, adjust this.
8784   if test -x /usr/bin/objformat; then
8785     objformat=`/usr/bin/objformat`
8786   else
8787     case $host_os in
8788     freebsd[123].*) objformat=aout ;;
8789     *) objformat=elf ;;
8790     esac
8791   fi
8792   version_type=freebsd-$objformat
8793   case $version_type in
8794     freebsd-elf*)
8795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8796       need_version=no
8797       need_lib_prefix=no
8798       ;;
8799     freebsd-*)
8800       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8801       need_version=yes
8802       ;;
8803   esac
8804   shlibpath_var=LD_LIBRARY_PATH
8805   case $host_os in
8806   freebsd2.*)
8807     shlibpath_overrides_runpath=yes
8808     ;;
8809   freebsd3.[01]* | freebsdelf3.[01]*)
8810     shlibpath_overrides_runpath=yes
8811     hardcode_into_libs=yes
8812     ;;
8813   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8814   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8815     shlibpath_overrides_runpath=no
8816     hardcode_into_libs=yes
8817     ;;
8818   freebsd*) # from 4.6 on
8819     shlibpath_overrides_runpath=yes
8820     hardcode_into_libs=yes
8821     ;;
8822   esac
8823   ;;
8824
8825 gnu*)
8826   version_type=linux
8827   need_lib_prefix=no
8828   need_version=no
8829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8830   soname_spec='${libname}${release}${shared_ext}$major'
8831   shlibpath_var=LD_LIBRARY_PATH
8832   hardcode_into_libs=yes
8833   ;;
8834
8835 hpux9* | hpux10* | hpux11*)
8836   # Give a soname corresponding to the major version so that dld.sl refuses to
8837   # link against other versions.
8838   version_type=sunos
8839   need_lib_prefix=no
8840   need_version=no
8841   case $host_cpu in
8842   ia64*)
8843     shrext_cmds='.so'
8844     hardcode_into_libs=yes
8845     dynamic_linker="$host_os dld.so"
8846     shlibpath_var=LD_LIBRARY_PATH
8847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849     soname_spec='${libname}${release}${shared_ext}$major'
8850     if test "X$HPUX_IA64_MODE" = X32; then
8851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8852     else
8853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8854     fi
8855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8856     ;;
8857    hppa*64*)
8858      shrext_cmds='.sl'
8859      hardcode_into_libs=yes
8860      dynamic_linker="$host_os dld.sl"
8861      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8862      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864      soname_spec='${libname}${release}${shared_ext}$major'
8865      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8866      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8867      ;;
8868    *)
8869     shrext_cmds='.sl'
8870     dynamic_linker="$host_os dld.sl"
8871     shlibpath_var=SHLIB_PATH
8872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874     soname_spec='${libname}${release}${shared_ext}$major'
8875     ;;
8876   esac
8877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8878   postinstall_cmds='chmod 555 $lib'
8879   ;;
8880
8881 interix3*)
8882   version_type=linux
8883   need_lib_prefix=no
8884   need_version=no
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886   soname_spec='${libname}${release}${shared_ext}$major'
8887   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8888   shlibpath_var=LD_LIBRARY_PATH
8889   shlibpath_overrides_runpath=no
8890   hardcode_into_libs=yes
8891   ;;
8892
8893 irix5* | irix6* | nonstopux*)
8894   case $host_os in
8895     nonstopux*) version_type=nonstopux ;;
8896     *)
8897         if test "$lt_cv_prog_gnu_ld" = yes; then
8898                 version_type=linux
8899         else
8900                 version_type=irix
8901         fi ;;
8902   esac
8903   need_lib_prefix=no
8904   need_version=no
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8907   case $host_os in
8908   irix5* | nonstopux*)
8909     libsuff= shlibsuff=
8910     ;;
8911   *)
8912     case $LD in # libtool.m4 will add one of these switches to LD
8913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8914       libsuff= shlibsuff= libmagic=32-bit;;
8915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8916       libsuff=32 shlibsuff=N32 libmagic=N32;;
8917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8919     *) libsuff= shlibsuff= libmagic=never-match;;
8920     esac
8921     ;;
8922   esac
8923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8924   shlibpath_overrides_runpath=no
8925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8927   hardcode_into_libs=yes
8928   ;;
8929
8930 # No shared lib support for Linux oldld, aout, or coff.
8931 linux*oldld* | linux*aout* | linux*coff*)
8932   dynamic_linker=no
8933   ;;
8934
8935 # This must be Linux ELF.
8936 linux*)
8937   version_type=linux
8938   need_lib_prefix=no
8939   need_version=no
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941   soname_spec='${libname}${release}${shared_ext}$major'
8942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   shlibpath_overrides_runpath=no
8945   # This implies no fast_install, which is unacceptable.
8946   # Some rework will be needed to allow for fast_install
8947   # before this can be enabled.
8948   hardcode_into_libs=yes
8949
8950   # Append ld.so.conf contents to the search path
8951   if test -f /etc/ld.so.conf; then
8952     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' ' '`
8953     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8954   fi
8955
8956   # We used to test for /lib/ld.so.1 and disable shared libraries on
8957   # powerpc, because MkLinux only supported shared libraries with the
8958   # GNU dynamic linker.  Since this was broken with cross compilers,
8959   # most powerpc-linux boxes support dynamic linking these days and
8960   # people can always --disable-shared, the test was removed, and we
8961   # assume the GNU/Linux dynamic linker is in use.
8962   dynamic_linker='GNU/Linux ld.so'
8963   ;;
8964
8965 knetbsd*-gnu)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   shlibpath_overrides_runpath=no
8973   hardcode_into_libs=yes
8974   dynamic_linker='GNU ld.so'
8975   ;;
8976
8977 netbsd*)
8978   version_type=sunos
8979   need_lib_prefix=no
8980   need_version=no
8981   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984     dynamic_linker='NetBSD (a.out) ld.so'
8985   else
8986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987     soname_spec='${libname}${release}${shared_ext}$major'
8988     dynamic_linker='NetBSD ld.elf_so'
8989   fi
8990   shlibpath_var=LD_LIBRARY_PATH
8991   shlibpath_overrides_runpath=yes
8992   hardcode_into_libs=yes
8993   ;;
8994
8995 newsos6)
8996   version_type=linux
8997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998   shlibpath_var=LD_LIBRARY_PATH
8999   shlibpath_overrides_runpath=yes
9000   ;;
9001
9002 nto-qnx*)
9003   version_type=linux
9004   need_lib_prefix=no
9005   need_version=no
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   shlibpath_var=LD_LIBRARY_PATH
9009   shlibpath_overrides_runpath=yes
9010   ;;
9011
9012 openbsd* | bitrig*)
9013   version_type=sunos
9014   sys_lib_dlsearch_path_spec="/usr/lib"
9015   need_lib_prefix=no
9016   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9017   case $host_os in
9018     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9019     *)                         need_version=no  ;;
9020   esac
9021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023   shlibpath_var=LD_LIBRARY_PATH
9024   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9025     case $host_os in
9026       openbsd2.[89] | openbsd2.[89].*)
9027         shlibpath_overrides_runpath=no
9028         ;;
9029       *)
9030         shlibpath_overrides_runpath=yes
9031         ;;
9032       esac
9033   else
9034     shlibpath_overrides_runpath=yes
9035   fi
9036   ;;
9037
9038 os2*)
9039   libname_spec='$name'
9040   shrext_cmds=".dll"
9041   need_lib_prefix=no
9042   library_names_spec='$libname${shared_ext} $libname.a'
9043   dynamic_linker='OS/2 ld.exe'
9044   shlibpath_var=LIBPATH
9045   ;;
9046
9047 osf3* | osf4* | osf5*)
9048   version_type=osf
9049   need_lib_prefix=no
9050   need_version=no
9051   soname_spec='${libname}${release}${shared_ext}$major'
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053   shlibpath_var=LD_LIBRARY_PATH
9054   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9055   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9056   ;;
9057
9058 solaris*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063   soname_spec='${libname}${release}${shared_ext}$major'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   shlibpath_overrides_runpath=yes
9066   hardcode_into_libs=yes
9067   # ldd complains unless libraries are executable
9068   postinstall_cmds='chmod +x $lib'
9069   ;;
9070
9071 sunos4*)
9072   version_type=sunos
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   shlibpath_overrides_runpath=yes
9077   if test "$with_gnu_ld" = yes; then
9078     need_lib_prefix=no
9079   fi
9080   need_version=yes
9081   ;;
9082
9083 sysv4 | sysv4.3*)
9084   version_type=linux
9085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086   soname_spec='${libname}${release}${shared_ext}$major'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   case $host_vendor in
9089     sni)
9090       shlibpath_overrides_runpath=no
9091       need_lib_prefix=no
9092       export_dynamic_flag_spec='${wl}-Blargedynsym'
9093       runpath_var=LD_RUN_PATH
9094       ;;
9095     siemens)
9096       need_lib_prefix=no
9097       ;;
9098     motorola)
9099       need_lib_prefix=no
9100       need_version=no
9101       shlibpath_overrides_runpath=no
9102       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9103       ;;
9104   esac
9105   ;;
9106
9107 sysv4*MP*)
9108   if test -d /usr/nec ;then
9109     version_type=linux
9110     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9111     soname_spec='$libname${shared_ext}.$major'
9112     shlibpath_var=LD_LIBRARY_PATH
9113   fi
9114   ;;
9115
9116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9117   version_type=freebsd-elf
9118   need_lib_prefix=no
9119   need_version=no
9120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9121   soname_spec='${libname}${release}${shared_ext}$major'
9122   shlibpath_var=LD_LIBRARY_PATH
9123   hardcode_into_libs=yes
9124   if test "$with_gnu_ld" = yes; then
9125     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9126     shlibpath_overrides_runpath=no
9127   else
9128     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9129     shlibpath_overrides_runpath=yes
9130     case $host_os in
9131       sco3.2v5*)
9132         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9133         ;;
9134     esac
9135   fi
9136   sys_lib_dlsearch_path_spec='/usr/lib'
9137   ;;
9138
9139 uts4*)
9140   version_type=linux
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   soname_spec='${libname}${release}${shared_ext}$major'
9143   shlibpath_var=LD_LIBRARY_PATH
9144   ;;
9145
9146 *)
9147   dynamic_linker=no
9148   ;;
9149 esac
9150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9151 echo "${ECHO_T}$dynamic_linker" >&6; }
9152 test "$dynamic_linker" = no && can_build_shared=no
9153
9154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9155 if test "$GCC" = yes; then
9156   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9157 fi
9158
9159
9160 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9161 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9162 if test "${libltdl_cv_shlibext+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165
9166 module=yes
9167 eval libltdl_cv_shlibext=$shrext_cmds
9168
9169 fi
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9171 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9172 if test -n "$libltdl_cv_shlibext"; then
9173
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9176 _ACEOF
9177
9178 fi
9179
9180
9181 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9182 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9183 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   libltdl_cv_shlibpath_var="$shlibpath_var"
9187 fi
9188 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9189 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9190 if test -n "$libltdl_cv_shlibpath_var"; then
9191
9192 cat >>confdefs.h <<_ACEOF
9193 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9194 _ACEOF
9195
9196 fi
9197
9198
9199 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9200 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9201 if test "${libltdl_cv_sys_search_path+set}" = set; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9205 fi
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9207 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9208 if test -n "$libltdl_cv_sys_search_path"; then
9209   sys_search_path=
9210   for dir in $libltdl_cv_sys_search_path; do
9211     if test -z "$sys_search_path"; then
9212       sys_search_path="$dir"
9213     else
9214       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9215     fi
9216   done
9217
9218 cat >>confdefs.h <<_ACEOF
9219 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9220 _ACEOF
9221
9222 fi
9223
9224 { echo "$as_me:$LINENO: checking for objdir" >&5
9225 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9226 if test "${libltdl_cv_objdir+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   libltdl_cv_objdir="$objdir"
9230   if test -n "$objdir"; then
9231     :
9232   else
9233     rm -f .libs 2>/dev/null
9234     mkdir .libs 2>/dev/null
9235     if test -d .libs; then
9236       libltdl_cv_objdir=.libs
9237     else
9238       # MS-DOS does not allow filenames that begin with a dot.
9239       libltdl_cv_objdir=_libs
9240     fi
9241   rmdir .libs 2>/dev/null
9242   fi
9243
9244 fi
9245 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9246 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9247
9248 cat >>confdefs.h <<_ACEOF
9249 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9250 _ACEOF
9251
9252
9253
9254
9255
9256
9257 # Check for command to grab the raw symbol name followed by C symbol from nm.
9258 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263
9264 # These are sane defaults that work on at least a few old systems.
9265 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9266
9267 # Character class describing NM global symbol codes.
9268 symcode='[BCDEGRST]'
9269
9270 # Regexp to match symbols that can be accessed directly from C.
9271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9272
9273 # Transform an extracted symbol line into a proper C declaration
9274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9275
9276 # Transform an extracted symbol line into symbol name and symbol address
9277 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'"
9278
9279 # Define system-specific variables.
9280 case $host_os in
9281 aix*)
9282   symcode='[BCDT]'
9283   ;;
9284 cygwin* | mingw* | pw32*)
9285   symcode='[ABCDGISTW]'
9286   ;;
9287 hpux*) # Its linker distinguishes data from code symbols
9288   if test "$host_cpu" = ia64; then
9289     symcode='[ABCDEGRST]'
9290   fi
9291   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9292   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'"
9293   ;;
9294 linux*)
9295   if test "$host_cpu" = ia64; then
9296     symcode='[ABCDGIRSTW]'
9297     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9298     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'"
9299   fi
9300   ;;
9301 irix* | nonstopux*)
9302   symcode='[BCDEGRST]'
9303   ;;
9304 osf*)
9305   symcode='[BCDEGQRST]'
9306   ;;
9307 solaris*)
9308   symcode='[BDRT]'
9309   ;;
9310 sco3.2v5*)
9311   symcode='[DT]'
9312   ;;
9313 sysv4.2uw2*)
9314   symcode='[DT]'
9315   ;;
9316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9317   symcode='[ABDT]'
9318   ;;
9319 sysv4)
9320   symcode='[DFNSTU]'
9321   ;;
9322 esac
9323
9324 # Handle CRLF in mingw tool chain
9325 opt_cr=
9326 case $build_os in
9327 mingw*)
9328   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9329   ;;
9330 esac
9331
9332 # If we're using GNU nm, then use its standard symbol codes.
9333 case `$NM -V 2>&1` in
9334 *GNU* | *'with BFD'*)
9335   symcode='[ABCDGIRSTW]' ;;
9336 esac
9337
9338 # Try without a prefix undercore, then with it.
9339 for ac_symprfx in "" "_"; do
9340
9341   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9342   symxfrm="\\1 $ac_symprfx\\2 \\2"
9343
9344   # Write the raw and C identifiers.
9345   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9346
9347   # Check to see that the pipe works correctly.
9348   pipe_works=no
9349
9350   rm -f conftest*
9351   cat > conftest.$ac_ext <<EOF
9352 #ifdef __cplusplus
9353 extern "C" {
9354 #endif
9355 char nm_test_var;
9356 void nm_test_func(){}
9357 #ifdef __cplusplus
9358 }
9359 #endif
9360 int main(){nm_test_var='a';nm_test_func();return(0);}
9361 EOF
9362
9363   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364   (eval $ac_compile) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; then
9368     # Now try to grab the symbols.
9369     nlist=conftest.nm
9370     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9371   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } && test -s "$nlist"; then
9375       # Try sorting and uniquifying the output.
9376       if sort "$nlist" | uniq > "$nlist"T; then
9377         mv -f "$nlist"T "$nlist"
9378       else
9379         rm -f "$nlist"T
9380       fi
9381
9382       # Make sure that we snagged all the symbols we need.
9383       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9384         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9385           cat <<EOF > conftest.$ac_ext
9386 #ifdef __cplusplus
9387 extern "C" {
9388 #endif
9389
9390 EOF
9391           # Now generate the symbol file.
9392           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9393
9394           cat <<EOF >> conftest.$ac_ext
9395 #if defined (__STDC__) && __STDC__
9396 # define lt_ptr_t void *
9397 #else
9398 # define lt_ptr_t char *
9399 # define const
9400 #endif
9401
9402 /* The mapping between symbol names and symbols. */
9403 const struct {
9404   const char *name;
9405   lt_ptr_t address;
9406 }
9407 lt_preloaded_symbols[] =
9408 {
9409 EOF
9410           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9411           cat <<\EOF >> conftest.$ac_ext
9412   {0, (lt_ptr_t) 0}
9413 };
9414
9415 #ifdef __cplusplus
9416 }
9417 #endif
9418 EOF
9419           # Now try linking the two files.
9420           mv conftest.$ac_objext conftstm.$ac_objext
9421           lt_save_LIBS="$LIBS"
9422           lt_save_CFLAGS="$CFLAGS"
9423           LIBS="conftstm.$ac_objext"
9424           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9425           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426   (eval $ac_link) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9430             pipe_works=yes
9431           fi
9432           LIBS="$lt_save_LIBS"
9433           CFLAGS="$lt_save_CFLAGS"
9434         else
9435           echo "cannot find nm_test_func in $nlist" >&5
9436         fi
9437       else
9438         echo "cannot find nm_test_var in $nlist" >&5
9439       fi
9440     else
9441       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9442     fi
9443   else
9444     echo "$progname: failed program was:" >&5
9445     cat conftest.$ac_ext >&5
9446   fi
9447   rm -f conftest* conftst*
9448
9449   # Do not use the global_symbol_pipe unless it works.
9450   if test "$pipe_works" = yes; then
9451     break
9452   else
9453     lt_cv_sys_global_symbol_pipe=
9454   fi
9455 done
9456
9457 fi
9458
9459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9460   lt_cv_sys_global_symbol_to_cdecl=
9461 fi
9462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9463   { echo "$as_me:$LINENO: result: failed" >&5
9464 echo "${ECHO_T}failed" >&6; }
9465 else
9466   { echo "$as_me:$LINENO: result: ok" >&5
9467 echo "${ECHO_T}ok" >&6; }
9468 fi
9469
9470
9471 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9472 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9473 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9477     libltdl_cv_preloaded_symbols=yes
9478   else
9479     libltdl_cv_preloaded_symbols=no
9480   fi
9481
9482 fi
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9484 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9485 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9486
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_PRELOADED_SYMBOLS 1
9489 _ACEOF
9490
9491 fi
9492
9493 LIBADD_DL=
9494
9495 ac_ext=c
9496 ac_cpp='$CPP $CPPFLAGS'
9497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9500
9501
9502 { echo "$as_me:$LINENO: checking for shl_load" >&5
9503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9504 if test "${ac_cv_func_shl_load+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9515 #define shl_load innocuous_shl_load
9516
9517 /* System header to define __stub macros and hopefully few prototypes,
9518     which can conflict with char shl_load (); below.
9519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520     <limits.h> exists even on freestanding compilers.  */
9521
9522 #ifdef __STDC__
9523 # include <limits.h>
9524 #else
9525 # include <assert.h>
9526 #endif
9527
9528 #undef shl_load
9529
9530 /* Override any GCC internal prototype to avoid an error.
9531    Use char because int might match the return type of a GCC
9532    builtin and then its argument prototype would still apply.  */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 char shl_load ();
9537 /* The GNU C library defines this for functions which it implements
9538     to always fail with ENOSYS.  Some functions are actually named
9539     something starting with __ and the normal name is an alias.  */
9540 #if defined __stub_shl_load || defined __stub___shl_load
9541 choke me
9542 #endif
9543
9544 int
9545 main ()
9546 {
9547 return shl_load ();
9548   ;
9549   return 0;
9550 }
9551 _ACEOF
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9554 case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_link") 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567   { (case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_try") 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; } &&
9576          { ac_try='test -s conftest$ac_exeext'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; }; then
9586   ac_cv_func_shl_load=yes
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591         ac_cv_func_shl_load=no
9592 fi
9593
9594 rm -f core conftest.err conftest.$ac_objext \
9595       conftest$ac_exeext conftest.$ac_ext
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9599 if test $ac_cv_func_shl_load = yes; then
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_SHL_LOAD 1
9603 _ACEOF
9604
9605 else
9606   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   ac_check_lib_save_LIBS=$LIBS
9612 LIBS="-ldld  $LIBS"
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619
9620 /* Override any GCC internal prototype to avoid an error.
9621    Use char because int might match the return type of a GCC
9622    builtin and then its argument prototype would still apply.  */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
9626 char shl_load ();
9627 int
9628 main ()
9629 {
9630 return shl_load ();
9631   ;
9632   return 0;
9633 }
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9637 case "(($ac_try" in
9638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639   *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642   (eval "$ac_link") 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } &&
9649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650   { (case "(($ac_try" in
9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652   *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655   (eval "$ac_try") 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; } &&
9659          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; }; then
9669   ac_cv_lib_dld_shl_load=yes
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674         ac_cv_lib_dld_shl_load=no
9675 fi
9676
9677 rm -f core conftest.err conftest.$ac_objext \
9678       conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9680 fi
9681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9683 if test $ac_cv_lib_dld_shl_load = yes; then
9684
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_SHL_LOAD 1
9687 _ACEOF
9688
9689         LIBADD_DL="$LIBADD_DL -ldld"
9690 else
9691   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldl  $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704
9705 /* Override any GCC internal prototype to avoid an error.
9706    Use char because int might match the return type of a GCC
9707    builtin and then its argument prototype would still apply.  */
9708 #ifdef __cplusplus
9709 extern "C"
9710 #endif
9711 char dlopen ();
9712 int
9713 main ()
9714 {
9715 return dlopen ();
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_link") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735   { (case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_try") 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_try") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_lib_dl_dlopen=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_lib_dl_dlopen=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9769
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_LIBDL 1
9772 _ACEOF
9773
9774                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9775 else
9776   cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782 #if HAVE_DLFCN_H
9783 #  include <dlfcn.h>
9784 #endif
9785
9786 int
9787 main ()
9788 {
9789 dlopen(0, 0);
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } &&
9808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809   { (case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_try") 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; } &&
9818          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9828
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_LIBDL 1
9831 _ACEOF
9832  libltdl_cv_func_dlopen="yes"
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9838 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9839 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-lsvld  $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 /* Override any GCC internal prototype to avoid an error.
9852    Use char because int might match the return type of a GCC
9853    builtin and then its argument prototype would still apply.  */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char dlopen ();
9858 int
9859 main ()
9860 {
9861 return dlopen ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_link") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881   { (case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_try") 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; } &&
9890          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; }; then
9900   ac_cv_lib_svld_dlopen=yes
9901 else
9902   echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905         ac_cv_lib_svld_dlopen=no
9906 fi
9907
9908 rm -f core conftest.err conftest.$ac_objext \
9909       conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9911 fi
9912 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9914 if test $ac_cv_lib_svld_dlopen = yes; then
9915
9916 cat >>confdefs.h <<\_ACEOF
9917 #define HAVE_LIBDL 1
9918 _ACEOF
9919
9920                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9921 else
9922   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9923 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-ldld  $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935
9936 /* Override any GCC internal prototype to avoid an error.
9937    Use char because int might match the return type of a GCC
9938    builtin and then its argument prototype would still apply.  */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char dld_link ();
9943 int
9944 main ()
9945 {
9946 return dld_link ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_link") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_cv_lib_dld_dld_link=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_lib_dld_dld_link=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9996 fi
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9999 if test $ac_cv_lib_dld_dld_link = yes; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_DLD 1
10003 _ACEOF
10004
10005                 LIBADD_DL="$LIBADD_DL -ldld"
10006 else
10007   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10008 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10009 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10020 #define _dyld_func_lookup innocuous__dyld_func_lookup
10021
10022 /* System header to define __stub macros and hopefully few prototypes,
10023     which can conflict with char _dyld_func_lookup (); below.
10024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10025     <limits.h> exists even on freestanding compilers.  */
10026
10027 #ifdef __STDC__
10028 # include <limits.h>
10029 #else
10030 # include <assert.h>
10031 #endif
10032
10033 #undef _dyld_func_lookup
10034
10035 /* Override any GCC internal prototype to avoid an error.
10036    Use char because int might match the return type of a GCC
10037    builtin and then its argument prototype would still apply.  */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 char _dyld_func_lookup ();
10042 /* The GNU C library defines this for functions which it implements
10043     to always fail with ENOSYS.  Some functions are actually named
10044     something starting with __ and the normal name is an alias.  */
10045 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10046 choke me
10047 #endif
10048
10049 int
10050 main ()
10051 {
10052 return _dyld_func_lookup ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_link") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } &&
10071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_try") 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_func__dyld_func_lookup=yes
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096         ac_cv_func__dyld_func_lookup=no
10097 fi
10098
10099 rm -f core conftest.err conftest.$ac_objext \
10100       conftest$ac_exeext conftest.$ac_ext
10101 fi
10102 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10103 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10104 if test $ac_cv_func__dyld_func_lookup = yes; then
10105
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_DYLD 1
10108 _ACEOF
10109
10110 fi
10111
10112
10113 fi
10114
10115
10116 fi
10117
10118
10119 fi
10120
10121 rm -f core conftest.err conftest.$ac_objext \
10122       conftest$ac_exeext conftest.$ac_ext
10123
10124 fi
10125
10126
10127 fi
10128
10129
10130 fi
10131
10132
10133 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10134 then
10135   lt_save_LIBS="$LIBS"
10136   LIBS="$LIBS $LIBADD_DL"
10137
10138 for ac_func in dlerror
10139 do
10140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10154 #define $ac_func innocuous_$ac_func
10155
10156 /* System header to define __stub macros and hopefully few prototypes,
10157     which can conflict with char $ac_func (); below.
10158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159     <limits.h> exists even on freestanding compilers.  */
10160
10161 #ifdef __STDC__
10162 # include <limits.h>
10163 #else
10164 # include <assert.h>
10165 #endif
10166
10167 #undef $ac_func
10168
10169 /* Override any GCC internal prototype to avoid an error.
10170    Use char because int might match the return type of a GCC
10171    builtin and then its argument prototype would still apply.  */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 char $ac_func ();
10176 /* The GNU C library defines this for functions which it implements
10177     to always fail with ENOSYS.  Some functions are actually named
10178     something starting with __ and the normal name is an alias.  */
10179 #if defined __stub_$ac_func || defined __stub___$ac_func
10180 choke me
10181 #endif
10182
10183 int
10184 main ()
10185 {
10186 return $ac_func ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_link") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206   { (case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_try") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   eval "$as_ac_var=yes"
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230         eval "$as_ac_var=no"
10231 fi
10232
10233 rm -f core conftest.err conftest.$ac_objext \
10234       conftest$ac_exeext conftest.$ac_ext
10235 fi
10236 ac_res=`eval echo '${'$as_ac_var'}'`
10237                { echo "$as_me:$LINENO: result: $ac_res" >&5
10238 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_var'}'` = yes; then
10240   cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10242 _ACEOF
10243
10244 fi
10245 done
10246
10247   LIBS="$lt_save_LIBS"
10248 fi
10249 ac_ext=c
10250 ac_cpp='$CPP $CPPFLAGS'
10251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10254
10255
10256
10257 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10258 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10259 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   ac_cv_sys_symbol_underscore=no
10263   cat > conftest.$ac_ext <<EOF
10264 void nm_test_func(){}
10265 int main(){nm_test_func;return 0;}
10266 EOF
10267   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268   (eval $ac_compile) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; then
10272     # Now try to grab the symbols.
10273     ac_nlist=conftest.nm
10274     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10275   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } && test -s "$ac_nlist"; then
10279       # See whether the symbols have a leading underscore.
10280       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10281         ac_cv_sys_symbol_underscore=yes
10282       else
10283         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10284           :
10285         else
10286           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10287         fi
10288       fi
10289     else
10290       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10291     fi
10292   else
10293     echo "configure: failed program was:" >&5
10294     cat conftest.c >&5
10295   fi
10296   rm -rf conftest*
10297
10298 fi
10299 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10300 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10301
10302
10303 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10304   if test x"$libltdl_cv_func_dlopen" = xyes ||
10305      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10306         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10307 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10308 if test "${libltdl_cv_need_uscore+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   libltdl_cv_need_uscore=unknown
10312           save_LIBS="$LIBS"
10313           LIBS="$LIBS $LIBADD_DL"
10314           if test "$cross_compiling" = yes; then :
10315   libltdl_cv_need_uscore=cross
10316 else
10317   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318   lt_status=$lt_dlunknown
10319   cat > conftest.$ac_ext <<EOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322
10323 #if HAVE_DLFCN_H
10324 #include <dlfcn.h>
10325 #endif
10326
10327 #include <stdio.h>
10328
10329 #ifdef RTLD_GLOBAL
10330 #  define LT_DLGLOBAL           RTLD_GLOBAL
10331 #else
10332 #  ifdef DL_GLOBAL
10333 #    define LT_DLGLOBAL         DL_GLOBAL
10334 #  else
10335 #    define LT_DLGLOBAL         0
10336 #  endif
10337 #endif
10338
10339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340    find out it does not work in some platform. */
10341 #ifndef LT_DLLAZY_OR_NOW
10342 #  ifdef RTLD_LAZY
10343 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10344 #  else
10345 #    ifdef DL_LAZY
10346 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10347 #    else
10348 #      ifdef RTLD_NOW
10349 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10350 #      else
10351 #        ifdef DL_NOW
10352 #          define LT_DLLAZY_OR_NOW      DL_NOW
10353 #        else
10354 #          define LT_DLLAZY_OR_NOW      0
10355 #        endif
10356 #      endif
10357 #    endif
10358 #  endif
10359 #endif
10360
10361 #ifdef __cplusplus
10362 extern "C" void exit (int);
10363 #endif
10364
10365 void fnord() { int i=42;}
10366 int main ()
10367 {
10368   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369   int status = $lt_dlunknown;
10370
10371   if (self)
10372     {
10373       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10374       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375       /* dlclose (self); */
10376     }
10377   else
10378     puts (dlerror ());
10379
10380     exit (status);
10381 }
10382 EOF
10383   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384   (eval $ac_link) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388     (./conftest; exit; ) >&5 2>/dev/null
10389     lt_status=$?
10390     case x$lt_status in
10391       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10392       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10393       x$lt_dlunknown|x*)  ;;
10394     esac
10395   else :
10396     # compilation failed
10397
10398   fi
10399 fi
10400 rm -fr conftest*
10401
10402           LIBS="$save_LIBS"
10403
10404 fi
10405 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10406 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10407   fi
10408 fi
10409
10410 if test x"$libltdl_cv_need_uscore" = xyes; then
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define NEED_USCORE 1
10414 _ACEOF
10415
10416 fi
10417
10418
10419 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10420 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10421 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   # PORTME does your system automatically load deplibs for dlopen?
10425   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10426   # For now, we just catch OSes we know something about -- in the
10427   # future, we'll try test this programmatically.
10428   libltdl_cv_sys_dlopen_deplibs=unknown
10429   case "$host_os" in
10430   aix3*|aix4.1.*|aix4.2.*)
10431     # Unknown whether this is true for these versions of AIX, but
10432     # we want this `case' here to explicitly catch those versions.
10433     libltdl_cv_sys_dlopen_deplibs=unknown
10434     ;;
10435   aix[45]*)
10436     libltdl_cv_sys_dlopen_deplibs=yes
10437     ;;
10438   darwin*)
10439     # Assuming the user has installed a libdl from somewhere, this is true
10440     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10444     # GNU and its variants, using gnu ld.so (Glibc)
10445     libltdl_cv_sys_dlopen_deplibs=yes
10446     ;;
10447   hpux10*|hpux11*)
10448     libltdl_cv_sys_dlopen_deplibs=yes
10449     ;;
10450   interix*)
10451     libltdl_cv_sys_dlopen_deplibs=yes
10452     ;;
10453   irix[12345]*|irix6.[01]*)
10454     # Catch all versions of IRIX before 6.2, and indicate that we don't
10455     # know how it worked for any of those versions.
10456     libltdl_cv_sys_dlopen_deplibs=unknown
10457     ;;
10458   irix*)
10459     # The case above catches anything before 6.2, and it's known that
10460     # at 6.2 and later dlopen does load deplibs.
10461     libltdl_cv_sys_dlopen_deplibs=yes
10462     ;;
10463   netbsd*)
10464     libltdl_cv_sys_dlopen_deplibs=yes
10465     ;;
10466   openbsd*)
10467     libltdl_cv_sys_dlopen_deplibs=yes
10468     ;;
10469   osf[1234]*)
10470     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10471     # it did *not* use an RPATH in a shared library to find objects the
10472     # library depends on, so we explicitly say `no'.
10473     libltdl_cv_sys_dlopen_deplibs=no
10474     ;;
10475   osf5.0|osf5.0a|osf5.1)
10476     # dlopen *does* load deplibs and with the right loader patch applied
10477     # it even uses RPATH in a shared library to search for shared objects
10478     # that the library depends on, but there's no easy way to know if that
10479     # patch is installed.  Since this is the case, all we can really
10480     # say is unknown -- it depends on the patch being installed.  If
10481     # it is, this changes to `yes'.  Without it, it would be `no'.
10482     libltdl_cv_sys_dlopen_deplibs=unknown
10483     ;;
10484   osf*)
10485     # the two cases above should catch all versions of osf <= 5.1.  Read
10486     # the comments above for what we know about them.
10487     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10488     # is used to find them so we can finally say `yes'.
10489     libltdl_cv_sys_dlopen_deplibs=yes
10490     ;;
10491   solaris*)
10492     libltdl_cv_sys_dlopen_deplibs=yes
10493     ;;
10494   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10495     libltdl_cv_sys_dlopen_deplibs=yes
10496     ;;
10497   esac
10498
10499 fi
10500 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10501 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10502 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10503
10504 cat >>confdefs.h <<\_ACEOF
10505 #define LTDL_DLOPEN_DEPLIBS 1
10506 _ACEOF
10507
10508 fi
10509
10510
10511 for ac_header in argz.h
10512 do
10513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 fi
10520 ac_res=`eval echo '${'$as_ac_Header'}'`
10521                { echo "$as_me:$LINENO: result: $ac_res" >&5
10522 echo "${ECHO_T}$ac_res" >&6; }
10523 else
10524   # Is the header compilable?
10525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 $ac_includes_default
10534 #include <$ac_header>
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_compile") 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551   { (case "(($ac_try" in
10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553   *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556   (eval "$ac_try") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest.$ac_objext'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_header_compiler=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575         ac_header_compiler=no
10576 fi
10577
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580 echo "${ECHO_T}$ac_header_compiler" >&6; }
10581
10582 # Is the header present?
10583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 #include <$ac_header>
10592 _ACEOF
10593 if { (ac_try="$ac_cpp conftest.$ac_ext"
10594 case "(($ac_try" in
10595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596   *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } >/dev/null; then
10606   if test -s conftest.err; then
10607     ac_cpp_err=$ac_c_preproc_warn_flag
10608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10609   else
10610     ac_cpp_err=
10611   fi
10612 else
10613   ac_cpp_err=yes
10614 fi
10615 if test -z "$ac_cpp_err"; then
10616   ac_header_preproc=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621   ac_header_preproc=no
10622 fi
10623
10624 rm -f conftest.err conftest.$ac_ext
10625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626 echo "${ECHO_T}$ac_header_preproc" >&6; }
10627
10628 # So?  What about this header?
10629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10630   yes:no: )
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635     ac_header_preproc=yes
10636     ;;
10637   no:yes:* )
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10650     ( cat <<\_ASBOX
10651 ## ------------------------------------ ##
10652 ## Report this to http://llvm.org/bugs/ ##
10653 ## ------------------------------------ ##
10654 _ASBOX
10655      ) | sed "s/^/$as_me: WARNING:     /" >&2
10656     ;;
10657 esac
10658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   eval "$as_ac_Header=\$ac_header_preproc"
10664 fi
10665 ac_res=`eval echo '${'$as_ac_Header'}'`
10666                { echo "$as_me:$LINENO: result: $ac_res" >&5
10667 echo "${ECHO_T}$ac_res" >&6; }
10668
10669 fi
10670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10671   cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 _ACEOF
10674
10675 fi
10676
10677 done
10678
10679
10680 { echo "$as_me:$LINENO: checking for error_t" >&5
10681 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10682 if test "${ac_cv_type_error_t+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 #if HAVE_ARGZ_H
10692 #  include <argz.h>
10693 #endif
10694
10695 typedef error_t ac__type_new_;
10696 int
10697 main ()
10698 {
10699 if ((ac__type_new_ *) 0)
10700   return 0;
10701 if (sizeof (ac__type_new_))
10702   return 0;
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (ac_try="$ac_compile"
10709 case "(($ac_try" in
10710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711   *) ac_try_echo=$ac_try;;
10712 esac
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714   (eval "$ac_compile") 2>conftest.er1
10715   ac_status=$?
10716   grep -v '^ *+' conftest.er1 >conftest.err
10717   rm -f conftest.er1
10718   cat conftest.err >&5
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722   { (case "(($ac_try" in
10723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724   *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727   (eval "$ac_try") 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); }; } &&
10731          { ac_try='test -s conftest.$ac_objext'
10732   { (case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_try") 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; }; then
10741   ac_cv_type_error_t=yes
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_cv_type_error_t=no
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10752 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10753 if test $ac_cv_type_error_t = yes; then
10754
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_ERROR_T 1
10757 _ACEOF
10758
10759
10760 else
10761
10762 cat >>confdefs.h <<\_ACEOF
10763 #define error_t int
10764 _ACEOF
10765
10766 fi
10767
10768
10769
10770
10771
10772
10773
10774 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10775 do
10776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10780   echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782   cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10790 #define $ac_func innocuous_$ac_func
10791
10792 /* System header to define __stub macros and hopefully few prototypes,
10793     which can conflict with char $ac_func (); below.
10794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795     <limits.h> exists even on freestanding compilers.  */
10796
10797 #ifdef __STDC__
10798 # include <limits.h>
10799 #else
10800 # include <assert.h>
10801 #endif
10802
10803 #undef $ac_func
10804
10805 /* Override any GCC internal prototype to avoid an error.
10806    Use char because int might match the return type of a GCC
10807    builtin and then its argument prototype would still apply.  */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char $ac_func ();
10812 /* The GNU C library defines this for functions which it implements
10813     to always fail with ENOSYS.  Some functions are actually named
10814     something starting with __ and the normal name is an alias.  */
10815 #if defined __stub_$ac_func || defined __stub___$ac_func
10816 choke me
10817 #endif
10818
10819 int
10820 main ()
10821 {
10822 return $ac_func ();
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_link") 2>conftest.er1
10835   ac_status=$?
10836   grep -v '^ *+' conftest.er1 >conftest.err
10837   rm -f conftest.er1
10838   cat conftest.err >&5
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); } &&
10841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842   { (case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_try") 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; } &&
10851          { ac_try='test -s conftest$ac_exeext'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }; then
10861   eval "$as_ac_var=yes"
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866         eval "$as_ac_var=no"
10867 fi
10868
10869 rm -f core conftest.err conftest.$ac_objext \
10870       conftest$ac_exeext conftest.$ac_ext
10871 fi
10872 ac_res=`eval echo '${'$as_ac_var'}'`
10873                { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10875 if test `eval echo '${'$as_ac_var'}'` = yes; then
10876   cat >>confdefs.h <<_ACEOF
10877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10878 _ACEOF
10879
10880 fi
10881 done
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10911                   stdio.h unistd.h
10912 do
10913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 fi
10920 ac_res=`eval echo '${'$as_ac_Header'}'`
10921                { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 else
10924   # Is the header compilable?
10925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 $ac_includes_default
10934 #include <$ac_header>
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_compile") 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_try") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest.$ac_objext'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_header_compiler=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         ac_header_compiler=no
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980 echo "${ECHO_T}$ac_header_compiler" >&6; }
10981
10982 # Is the header present?
10983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991 #include <$ac_header>
10992 _ACEOF
10993 if { (ac_try="$ac_cpp conftest.$ac_ext"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } >/dev/null; then
11006   if test -s conftest.err; then
11007     ac_cpp_err=$ac_c_preproc_warn_flag
11008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11009   else
11010     ac_cpp_err=
11011   fi
11012 else
11013   ac_cpp_err=yes
11014 fi
11015 if test -z "$ac_cpp_err"; then
11016   ac_header_preproc=yes
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021   ac_header_preproc=no
11022 fi
11023
11024 rm -f conftest.err conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6; }
11027
11028 # So?  What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030   yes:no: )
11031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11035     ac_header_preproc=yes
11036     ;;
11037   no:yes:* )
11038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11050     ( cat <<\_ASBOX
11051 ## ------------------------------------ ##
11052 ## Report this to http://llvm.org/bugs/ ##
11053 ## ------------------------------------ ##
11054 _ASBOX
11055      ) | sed "s/^/$as_me: WARNING:     /" >&2
11056     ;;
11057 esac
11058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   eval "$as_ac_Header=\$ac_header_preproc"
11064 fi
11065 ac_res=`eval echo '${'$as_ac_Header'}'`
11066                { echo "$as_me:$LINENO: result: $ac_res" >&5
11067 echo "${ECHO_T}$ac_res" >&6; }
11068
11069 fi
11070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11071   cat >>confdefs.h <<_ACEOF
11072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11073 _ACEOF
11074
11075 fi
11076
11077 done
11078
11079
11080
11081
11082
11083 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11084 do
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 fi
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093                { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 else
11096   # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105 $ac_includes_default
11106 #include <$ac_header>
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_compile") 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123   { (case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_try") 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; } &&
11132          { ac_try='test -s conftest.$ac_objext'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_header_compiler=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147         ac_header_compiler=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } >/dev/null; then
11178   if test -s conftest.err; then
11179     ac_cpp_err=$ac_c_preproc_warn_flag
11180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181   else
11182     ac_cpp_err=
11183   fi
11184 else
11185   ac_cpp_err=yes
11186 fi
11187 if test -z "$ac_cpp_err"; then
11188   ac_header_preproc=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193   ac_header_preproc=no
11194 fi
11195
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200 # So?  What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202   yes:no: )
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207     ac_header_preproc=yes
11208     ;;
11209   no:yes:* )
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222     ( cat <<\_ASBOX
11223 ## ------------------------------------ ##
11224 ## Report this to http://llvm.org/bugs/ ##
11225 ## ------------------------------------ ##
11226 _ASBOX
11227      ) | sed "s/^/$as_me: WARNING:     /" >&2
11228     ;;
11229 esac
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   eval "$as_ac_Header=\$ac_header_preproc"
11236 fi
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238                { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11240
11241 fi
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243   cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251
11252
11253 for ac_header in string.h strings.h
11254 do
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 fi
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263                { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11265 else
11266   # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 $ac_includes_default
11276 #include <$ac_header>
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_compile") 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293   { (case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_try") 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; } &&
11302          { ac_try='test -s conftest.$ac_objext'
11303   { (case "(($ac_try" in
11304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305   *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308   (eval "$ac_try") 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_header_compiler=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317         ac_header_compiler=no
11318 fi
11319
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11323
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 #include <$ac_header>
11334 _ACEOF
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } >/dev/null; then
11348   if test -s conftest.err; then
11349     ac_cpp_err=$ac_c_preproc_warn_flag
11350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11351   else
11352     ac_cpp_err=
11353   fi
11354 else
11355   ac_cpp_err=yes
11356 fi
11357 if test -z "$ac_cpp_err"; then
11358   ac_header_preproc=yes
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363   ac_header_preproc=no
11364 fi
11365
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11369
11370 # So?  What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372   yes:no: )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377     ac_header_preproc=yes
11378     ;;
11379   no:yes:* )
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392     ( cat <<\_ASBOX
11393 ## ------------------------------------ ##
11394 ## Report this to http://llvm.org/bugs/ ##
11395 ## ------------------------------------ ##
11396 _ASBOX
11397      ) | sed "s/^/$as_me: WARNING:     /" >&2
11398     ;;
11399 esac
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   eval "$as_ac_Header=\$ac_header_preproc"
11406 fi
11407 ac_res=`eval echo '${'$as_ac_Header'}'`
11408                { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11410
11411 fi
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413   cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 _ACEOF
11416  break
11417 fi
11418
11419 done
11420
11421
11422
11423
11424 for ac_func in strchr index
11425 do
11426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11440 #define $ac_func innocuous_$ac_func
11441
11442 /* System header to define __stub macros and hopefully few prototypes,
11443     which can conflict with char $ac_func (); below.
11444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445     <limits.h> exists even on freestanding compilers.  */
11446
11447 #ifdef __STDC__
11448 # include <limits.h>
11449 #else
11450 # include <assert.h>
11451 #endif
11452
11453 #undef $ac_func
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char $ac_func ();
11462 /* The GNU C library defines this for functions which it implements
11463     to always fail with ENOSYS.  Some functions are actually named
11464     something starting with __ and the normal name is an alias.  */
11465 #if defined __stub_$ac_func || defined __stub___$ac_func
11466 choke me
11467 #endif
11468
11469 int
11470 main ()
11471 {
11472 return $ac_func ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484   (eval "$ac_link") 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492   { (case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_try") 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; } &&
11501          { ac_try='test -s conftest$ac_exeext'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   eval "$as_ac_var=yes"
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516         eval "$as_ac_var=no"
11517 fi
11518
11519 rm -f core conftest.err conftest.$ac_objext \
11520       conftest$ac_exeext conftest.$ac_ext
11521 fi
11522 ac_res=`eval echo '${'$as_ac_var'}'`
11523                { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11525 if test `eval echo '${'$as_ac_var'}'` = yes; then
11526   cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11528 _ACEOF
11529  break
11530 fi
11531 done
11532
11533
11534
11535 for ac_func in strrchr rindex
11536 do
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11551 #define $ac_func innocuous_$ac_func
11552
11553 /* System header to define __stub macros and hopefully few prototypes,
11554     which can conflict with char $ac_func (); below.
11555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556     <limits.h> exists even on freestanding compilers.  */
11557
11558 #ifdef __STDC__
11559 # include <limits.h>
11560 #else
11561 # include <assert.h>
11562 #endif
11563
11564 #undef $ac_func
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567    Use char because int might match the return type of a GCC
11568    builtin and then its argument prototype would still apply.  */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char $ac_func ();
11573 /* The GNU C library defines this for functions which it implements
11574     to always fail with ENOSYS.  Some functions are actually named
11575     something starting with __ and the normal name is an alias.  */
11576 #if defined __stub_$ac_func || defined __stub___$ac_func
11577 choke me
11578 #endif
11579
11580 int
11581 main ()
11582 {
11583 return $ac_func ();
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592   *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595   (eval "$ac_link") 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } &&
11602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11603   { (case "(($ac_try" in
11604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605   *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608   (eval "$ac_try") 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_try") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   eval "$as_ac_var=yes"
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627         eval "$as_ac_var=no"
11628 fi
11629
11630 rm -f core conftest.err conftest.$ac_objext \
11631       conftest$ac_exeext conftest.$ac_ext
11632 fi
11633 ac_res=`eval echo '${'$as_ac_var'}'`
11634                { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11636 if test `eval echo '${'$as_ac_var'}'` = yes; then
11637   cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11639 _ACEOF
11640  break
11641 fi
11642 done
11643
11644
11645
11646 for ac_func in memcpy bcopy
11647 do
11648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654   cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h.  */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h.  */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11662 #define $ac_func innocuous_$ac_func
11663
11664 /* System header to define __stub macros and hopefully few prototypes,
11665     which can conflict with char $ac_func (); below.
11666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667     <limits.h> exists even on freestanding compilers.  */
11668
11669 #ifdef __STDC__
11670 # include <limits.h>
11671 #else
11672 # include <assert.h>
11673 #endif
11674
11675 #undef $ac_func
11676
11677 /* Override any GCC internal prototype to avoid an error.
11678    Use char because int might match the return type of a GCC
11679    builtin and then its argument prototype would still apply.  */
11680 #ifdef __cplusplus
11681 extern "C"
11682 #endif
11683 char $ac_func ();
11684 /* The GNU C library defines this for functions which it implements
11685     to always fail with ENOSYS.  Some functions are actually named
11686     something starting with __ and the normal name is an alias.  */
11687 #if defined __stub_$ac_func || defined __stub___$ac_func
11688 choke me
11689 #endif
11690
11691 int
11692 main ()
11693 {
11694 return $ac_func ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (ac_try="$ac_link"
11701 case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_link") 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } &&
11713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714   { (case "(($ac_try" in
11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716   *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719   (eval "$ac_try") 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; } &&
11723          { ac_try='test -s conftest$ac_exeext'
11724   { (case "(($ac_try" in
11725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726   *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729   (eval "$ac_try") 2>&5
11730   ac_status=$?
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); }; }; then
11733   eval "$as_ac_var=yes"
11734 else
11735   echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738         eval "$as_ac_var=no"
11739 fi
11740
11741 rm -f core conftest.err conftest.$ac_objext \
11742       conftest$ac_exeext conftest.$ac_ext
11743 fi
11744 ac_res=`eval echo '${'$as_ac_var'}'`
11745                { echo "$as_me:$LINENO: result: $ac_res" >&5
11746 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_var'}'` = yes; then
11748   cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11750 _ACEOF
11751  break
11752 fi
11753 done
11754
11755
11756
11757 for ac_func in memmove strcmp
11758 do
11759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11773 #define $ac_func innocuous_$ac_func
11774
11775 /* System header to define __stub macros and hopefully few prototypes,
11776     which can conflict with char $ac_func (); below.
11777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11778     <limits.h> exists even on freestanding compilers.  */
11779
11780 #ifdef __STDC__
11781 # include <limits.h>
11782 #else
11783 # include <assert.h>
11784 #endif
11785
11786 #undef $ac_func
11787
11788 /* Override any GCC internal prototype to avoid an error.
11789    Use char because int might match the return type of a GCC
11790    builtin and then its argument prototype would still apply.  */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 char $ac_func ();
11795 /* The GNU C library defines this for functions which it implements
11796     to always fail with ENOSYS.  Some functions are actually named
11797     something starting with __ and the normal name is an alias.  */
11798 #if defined __stub_$ac_func || defined __stub___$ac_func
11799 choke me
11800 #endif
11801
11802 int
11803 main ()
11804 {
11805 return $ac_func ();
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (ac_try="$ac_link"
11812 case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_link") 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } &&
11824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11825   { (case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_try") 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; } &&
11834          { ac_try='test -s conftest$ac_exeext'
11835   { (case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_try") 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; }; then
11844   eval "$as_ac_var=yes"
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849         eval "$as_ac_var=no"
11850 fi
11851
11852 rm -f core conftest.err conftest.$ac_objext \
11853       conftest$ac_exeext conftest.$ac_ext
11854 fi
11855 ac_res=`eval echo '${'$as_ac_var'}'`
11856                { echo "$as_me:$LINENO: result: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859   cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11861 _ACEOF
11862
11863 fi
11864 done
11865
11866
11867
11868
11869 for ac_func in closedir opendir readdir
11870 do
11871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11875   echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877   cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11885 #define $ac_func innocuous_$ac_func
11886
11887 /* System header to define __stub macros and hopefully few prototypes,
11888     which can conflict with char $ac_func (); below.
11889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890     <limits.h> exists even on freestanding compilers.  */
11891
11892 #ifdef __STDC__
11893 # include <limits.h>
11894 #else
11895 # include <assert.h>
11896 #endif
11897
11898 #undef $ac_func
11899
11900 /* Override any GCC internal prototype to avoid an error.
11901    Use char because int might match the return type of a GCC
11902    builtin and then its argument prototype would still apply.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char $ac_func ();
11907 /* The GNU C library defines this for functions which it implements
11908     to always fail with ENOSYS.  Some functions are actually named
11909     something starting with __ and the normal name is an alias.  */
11910 #if defined __stub_$ac_func || defined __stub___$ac_func
11911 choke me
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917 return $ac_func ();
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_link") 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937   { (case "(($ac_try" in
11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939   *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942   (eval "$ac_try") 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest$ac_exeext'
11947   { (case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_try") 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   eval "$as_ac_var=yes"
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961         eval "$as_ac_var=no"
11962 fi
11963
11964 rm -f core conftest.err conftest.$ac_objext \
11965       conftest$ac_exeext conftest.$ac_ext
11966 fi
11967 ac_res=`eval echo '${'$as_ac_var'}'`
11968                { echo "$as_me:$LINENO: result: $ac_res" >&5
11969 echo "${ECHO_T}$ac_res" >&6; }
11970 if test `eval echo '${'$as_ac_var'}'` = yes; then
11971   cat >>confdefs.h <<_ACEOF
11972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11973 _ACEOF
11974
11975 fi
11976 done
11977
11978
11979
11980 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11981 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11982
11983 ICC=no
11984 IXX=no
11985 case $CC in
11986   icc*|icpc*)
11987     ICC=yes
11988     IXX=yes
11989     ;;
11990    *)
11991     ;;
11992 esac
11993
11994 if test "$GCC" != "yes" && test "$ICC" != "yes"
11995 then
11996   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11997 echo "$as_me: error: gcc|icc required but not found" >&2;}
11998    { (exit 1); exit 1; }; }
11999 fi
12000
12001 if test "$GXX" != "yes" && test "$IXX" != "yes"
12002 then
12003   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12004 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12005    { (exit 1); exit 1; }; }
12006 fi
12007
12008 if test "$GCC" = "yes"
12009 then
12010   cat >conftest.$ac_ext <<_ACEOF
12011 #if !defined(__GNUC__) || __GNUC__ < 3
12012 #error Unsupported GCC version
12013 #endif
12014
12015 _ACEOF
12016 rm -f conftest.$ac_objext
12017 if { (ac_try="$ac_compile"
12018 case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023   (eval "$ac_compile") 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12031   { (case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_try") 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; } &&
12040          { ac_try='test -s conftest.$ac_objext'
12041   { (case "(($ac_try" in
12042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043   *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046   (eval "$ac_try") 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   :
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12056 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12057    { (exit 1); exit 1; }; }
12058 fi
12059
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 fi
12062
12063 if test -z "$llvm_cv_gnu_make_command"
12064 then
12065   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12066 echo "$as_me: error: GNU Make required but not found" >&2;}
12067    { (exit 1); exit 1; }; }
12068 fi
12069
12070 { echo "$as_me:$LINENO: result: ok" >&5
12071 echo "${ECHO_T}ok" >&6; }
12072
12073 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12074 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12075 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12076
12077 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12078
12079 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12080
12081 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12082 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12083
12084
12085
12086 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12087 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_m_sin+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-lm  $LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101    Use char because int might match the return type of a GCC
12102    builtin and then its argument prototype would still apply.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char sin ();
12107 int
12108 main ()
12109 {
12110 return sin ();
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_link") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } &&
12129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; } &&
12139          { ac_try='test -s conftest$ac_exeext'
12140   { (case "(($ac_try" in
12141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142   *) ac_try_echo=$ac_try;;
12143 esac
12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145   (eval "$ac_try") 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }; }; then
12149   ac_cv_lib_m_sin=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154         ac_cv_lib_m_sin=no
12155 fi
12156
12157 rm -f core conftest.err conftest.$ac_objext \
12158       conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12162 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12163 if test $ac_cv_lib_m_sin = yes; then
12164   cat >>confdefs.h <<_ACEOF
12165 #define HAVE_LIBM 1
12166 _ACEOF
12167
12168   LIBS="-lm $LIBS"
12169
12170 fi
12171
12172 if test "$llvm_cv_os_type" = "MingW" ; then
12173
12174 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12175 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12176 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-limagehlp  $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188
12189 int
12190 main ()
12191 {
12192 return main ();
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (ac_try="$ac_link"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_link") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212   { (case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_try") 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; } &&
12221          { ac_try='test -s conftest$ac_exeext'
12222   { (case "(($ac_try" in
12223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224   *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227   (eval "$ac_try") 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_lib_imagehlp_main=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236         ac_cv_lib_imagehlp_main=no
12237 fi
12238
12239 rm -f core conftest.err conftest.$ac_objext \
12240       conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12244 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12245 if test $ac_cv_lib_imagehlp_main = yes; then
12246   cat >>confdefs.h <<_ACEOF
12247 #define HAVE_LIBIMAGEHLP 1
12248 _ACEOF
12249
12250   LIBS="-limagehlp $LIBS"
12251
12252 fi
12253
12254
12255 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12256 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12257 if test "${ac_cv_lib_psapi_main+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-lpsapi  $LIBS"
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269
12270 int
12271 main ()
12272 {
12273 return main ();
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (ac_try="$ac_link"
12280 case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_link") 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12293   { (case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_try") 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; } &&
12302          { ac_try='test -s conftest$ac_exeext'
12303   { (case "(($ac_try" in
12304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305   *) ac_try_echo=$ac_try;;
12306 esac
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308   (eval "$ac_try") 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; }; then
12312   ac_cv_lib_psapi_main=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317         ac_cv_lib_psapi_main=no
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext \
12321       conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12323 fi
12324 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12325 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12326 if test $ac_cv_lib_psapi_main = yes; then
12327   cat >>confdefs.h <<_ACEOF
12328 #define HAVE_LIBPSAPI 1
12329 _ACEOF
12330
12331   LIBS="-lpsapi $LIBS"
12332
12333 fi
12334
12335 fi
12336
12337 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12338 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12339 if test "${ac_cv_search_dlopen+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   ac_func_search_save_LIBS=$LIBS
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 /* Override any GCC internal prototype to avoid an error.
12351    Use char because int might match the return type of a GCC
12352    builtin and then its argument prototype would still apply.  */
12353 #ifdef __cplusplus
12354 extern "C"
12355 #endif
12356 char dlopen ();
12357 int
12358 main ()
12359 {
12360 return dlopen ();
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 for ac_lib in '' dl; do
12366   if test -z "$ac_lib"; then
12367     ac_res="none required"
12368   else
12369     ac_res=-l$ac_lib
12370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12371   fi
12372   rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (ac_try="$ac_link"
12374 case "(($ac_try" in
12375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376   *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379   (eval "$ac_link") 2>conftest.er1
12380   ac_status=$?
12381   grep -v '^ *+' conftest.er1 >conftest.err
12382   rm -f conftest.er1
12383   cat conftest.err >&5
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } &&
12386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12387   { (case "(($ac_try" in
12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389   *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392   (eval "$ac_try") 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; } &&
12396          { ac_try='test -s conftest$ac_exeext'
12397   { (case "(($ac_try" in
12398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399   *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402   (eval "$ac_try") 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_cv_search_dlopen=$ac_res
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411
12412 fi
12413
12414 rm -f core conftest.err conftest.$ac_objext \
12415       conftest$ac_exeext
12416   if test "${ac_cv_search_dlopen+set}" = set; then
12417   break
12418 fi
12419 done
12420 if test "${ac_cv_search_dlopen+set}" = set; then
12421   :
12422 else
12423   ac_cv_search_dlopen=no
12424 fi
12425 rm conftest.$ac_ext
12426 LIBS=$ac_func_search_save_LIBS
12427 fi
12428 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12429 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12430 ac_res=$ac_cv_search_dlopen
12431 if test "$ac_res" != no; then
12432   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12433
12434 cat >>confdefs.h <<\_ACEOF
12435 #define HAVE_DLOPEN 1
12436 _ACEOF
12437
12438 else
12439   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12440 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12441 fi
12442
12443
12444 if test "$llvm_cv_enable_libffi" = "yes" ; then
12445   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12446 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12447 if test "${ac_cv_search_ffi_call+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   ac_func_search_save_LIBS=$LIBS
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char ffi_call ();
12465 int
12466 main ()
12467 {
12468 return ffi_call ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 for ac_lib in '' ffi; do
12474   if test -z "$ac_lib"; then
12475     ac_res="none required"
12476   else
12477     ac_res=-l$ac_lib
12478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12479   fi
12480   rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (ac_try="$ac_link"
12482 case "(($ac_try" in
12483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484   *) ac_try_echo=$ac_try;;
12485 esac
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487   (eval "$ac_link") 2>conftest.er1
12488   ac_status=$?
12489   grep -v '^ *+' conftest.er1 >conftest.err
12490   rm -f conftest.er1
12491   cat conftest.err >&5
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); } &&
12494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12495   { (case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_try") 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; } &&
12504          { ac_try='test -s conftest$ac_exeext'
12505   { (case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_try") 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   ac_cv_search_ffi_call=$ac_res
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519
12520 fi
12521
12522 rm -f core conftest.err conftest.$ac_objext \
12523       conftest$ac_exeext
12524   if test "${ac_cv_search_ffi_call+set}" = set; then
12525   break
12526 fi
12527 done
12528 if test "${ac_cv_search_ffi_call+set}" = set; then
12529   :
12530 else
12531   ac_cv_search_ffi_call=no
12532 fi
12533 rm conftest.$ac_ext
12534 LIBS=$ac_func_search_save_LIBS
12535 fi
12536 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12537 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12538 ac_res=$ac_cv_search_ffi_call
12539 if test "$ac_res" != no; then
12540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12541
12542 cat >>confdefs.h <<\_ACEOF
12543 #define HAVE_FFI_CALL 1
12544 _ACEOF
12545
12546 else
12547   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12548 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12549    { (exit 1); exit 1; }; }
12550 fi
12551
12552 fi
12553
12554 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12555 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12556 if test "${ac_cv_search_mallinfo+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   ac_func_search_save_LIBS=$LIBS
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566
12567 /* Override any GCC internal prototype to avoid an error.
12568    Use char because int might match the return type of a GCC
12569    builtin and then its argument prototype would still apply.  */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 char mallinfo ();
12574 int
12575 main ()
12576 {
12577 return mallinfo ();
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 for ac_lib in '' malloc; do
12583   if test -z "$ac_lib"; then
12584     ac_res="none required"
12585   else
12586     ac_res=-l$ac_lib
12587     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12588   fi
12589   rm -f conftest.$ac_objext conftest$ac_exeext
12590 if { (ac_try="$ac_link"
12591 case "(($ac_try" in
12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593   *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596   (eval "$ac_link") 2>conftest.er1
12597   ac_status=$?
12598   grep -v '^ *+' conftest.er1 >conftest.err
12599   rm -f conftest.er1
12600   cat conftest.err >&5
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } &&
12603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12604   { (case "(($ac_try" in
12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606   *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609   (eval "$ac_try") 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; } &&
12613          { ac_try='test -s conftest$ac_exeext'
12614   { (case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_try") 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; }; then
12623   ac_cv_search_mallinfo=$ac_res
12624 else
12625   echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628
12629 fi
12630
12631 rm -f core conftest.err conftest.$ac_objext \
12632       conftest$ac_exeext
12633   if test "${ac_cv_search_mallinfo+set}" = set; then
12634   break
12635 fi
12636 done
12637 if test "${ac_cv_search_mallinfo+set}" = set; then
12638   :
12639 else
12640   ac_cv_search_mallinfo=no
12641 fi
12642 rm conftest.$ac_ext
12643 LIBS=$ac_func_search_save_LIBS
12644 fi
12645 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12646 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12647 ac_res=$ac_cv_search_mallinfo
12648 if test "$ac_res" != no; then
12649   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12650
12651 cat >>confdefs.h <<\_ACEOF
12652 #define HAVE_MALLINFO 1
12653 _ACEOF
12654
12655 fi
12656
12657
12658 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12659
12660 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12661 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12662 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-lpthread  $LIBS"
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673
12674 /* Override any GCC internal prototype to avoid an error.
12675    Use char because int might match the return type of a GCC
12676    builtin and then its argument prototype would still apply.  */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char pthread_mutex_init ();
12681 int
12682 main ()
12683 {
12684 return pthread_mutex_init ();
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (ac_try="$ac_link"
12691 case "(($ac_try" in
12692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693   *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696   (eval "$ac_link") 2>conftest.er1
12697   ac_status=$?
12698   grep -v '^ *+' conftest.er1 >conftest.err
12699   rm -f conftest.er1
12700   cat conftest.err >&5
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); } &&
12703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12704   { (case "(($ac_try" in
12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706   *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709   (eval "$ac_try") 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; } &&
12713          { ac_try='test -s conftest$ac_exeext'
12714   { (case "(($ac_try" in
12715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716   *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719   (eval "$ac_try") 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_cv_lib_pthread_pthread_mutex_init=yes
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728         ac_cv_lib_pthread_pthread_mutex_init=no
12729 fi
12730
12731 rm -f core conftest.err conftest.$ac_objext \
12732       conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12734 fi
12735 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12736 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12737 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12738   cat >>confdefs.h <<_ACEOF
12739 #define HAVE_LIBPTHREAD 1
12740 _ACEOF
12741
12742   LIBS="-lpthread $LIBS"
12743
12744 fi
12745
12746   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12747 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12748 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   ac_func_search_save_LIBS=$LIBS
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char pthread_mutex_lock ();
12766 int
12767 main ()
12768 {
12769 return pthread_mutex_lock ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 for ac_lib in '' pthread; do
12775   if test -z "$ac_lib"; then
12776     ac_res="none required"
12777   else
12778     ac_res=-l$ac_lib
12779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12780   fi
12781   rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788   (eval "$ac_link") 2>conftest.er1
12789   ac_status=$?
12790   grep -v '^ *+' conftest.er1 >conftest.err
12791   rm -f conftest.er1
12792   cat conftest.err >&5
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } &&
12795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796   { (case "(($ac_try" in
12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798   *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801   (eval "$ac_try") 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; } &&
12805          { ac_try='test -s conftest$ac_exeext'
12806   { (case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_try") 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815   ac_cv_search_pthread_mutex_lock=$ac_res
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820
12821 fi
12822
12823 rm -f core conftest.err conftest.$ac_objext \
12824       conftest$ac_exeext
12825   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826   break
12827 fi
12828 done
12829 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12830   :
12831 else
12832   ac_cv_search_pthread_mutex_lock=no
12833 fi
12834 rm conftest.$ac_ext
12835 LIBS=$ac_func_search_save_LIBS
12836 fi
12837 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12838 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12839 ac_res=$ac_cv_search_pthread_mutex_lock
12840 if test "$ac_res" != no; then
12841   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_PTHREAD_MUTEX_LOCK 1
12845 _ACEOF
12846
12847 fi
12848
12849   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12850 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12851 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12852   echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854   ac_func_search_save_LIBS=$LIBS
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h.  */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h.  */
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863    Use char because int might match the return type of a GCC
12864    builtin and then its argument prototype would still apply.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char pthread_rwlock_init ();
12869 int
12870 main ()
12871 {
12872 return pthread_rwlock_init ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 for ac_lib in '' pthread; do
12878   if test -z "$ac_lib"; then
12879     ac_res="none required"
12880   else
12881     ac_res=-l$ac_lib
12882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12883   fi
12884   rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_link") 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899   { (case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_try") 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914   (eval "$ac_try") 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   ac_cv_search_pthread_rwlock_init=$ac_res
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12922
12923
12924 fi
12925
12926 rm -f core conftest.err conftest.$ac_objext \
12927       conftest$ac_exeext
12928   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929   break
12930 fi
12931 done
12932 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12933   :
12934 else
12935   ac_cv_search_pthread_rwlock_init=no
12936 fi
12937 rm conftest.$ac_ext
12938 LIBS=$ac_func_search_save_LIBS
12939 fi
12940 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12941 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12942 ac_res=$ac_cv_search_pthread_rwlock_init
12943 if test "$ac_res" != no; then
12944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12945
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_PTHREAD_RWLOCK_INIT 1
12948 _ACEOF
12949
12950 fi
12951
12952   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12953 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12954 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957   ac_func_search_save_LIBS=$LIBS
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966    Use char because int might match the return type of a GCC
12967    builtin and then its argument prototype would still apply.  */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char pthread_getspecific ();
12972 int
12973 main ()
12974 {
12975 return pthread_getspecific ();
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 for ac_lib in '' pthread; do
12981   if test -z "$ac_lib"; then
12982     ac_res="none required"
12983   else
12984     ac_res=-l$ac_lib
12985     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12986   fi
12987   rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991   *) ac_try_echo=$ac_try;;
12992 esac
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994   (eval "$ac_link") 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } &&
13001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13002   { (case "(($ac_try" in
13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004   *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007   (eval "$ac_try") 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; } &&
13011          { ac_try='test -s conftest$ac_exeext'
13012   { (case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017   (eval "$ac_try") 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); }; }; then
13021   ac_cv_search_pthread_getspecific=$ac_res
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026
13027 fi
13028
13029 rm -f core conftest.err conftest.$ac_objext \
13030       conftest$ac_exeext
13031   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032   break
13033 fi
13034 done
13035 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13036   :
13037 else
13038   ac_cv_search_pthread_getspecific=no
13039 fi
13040 rm conftest.$ac_ext
13041 LIBS=$ac_func_search_save_LIBS
13042 fi
13043 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13044 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13045 ac_res=$ac_cv_search_pthread_getspecific
13046 if test "$ac_res" != no; then
13047   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13048
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_PTHREAD_GETSPECIFIC 1
13051 _ACEOF
13052
13053 fi
13054
13055 fi
13056
13057
13058 # Check whether --with-udis86 was given.
13059 if test "${with_udis86+set}" = set; then
13060   withval=$with_udis86;
13061       USE_UDIS86=1
13062
13063       case "$withval" in
13064         /usr/lib|yes) ;;
13065         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13066       esac
13067
13068 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13069 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13070 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-ludis86  $LIBS"
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h.  */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h.  */
13081
13082 /* Override any GCC internal prototype to avoid an error.
13083    Use char because int might match the return type of a GCC
13084    builtin and then its argument prototype would still apply.  */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 char ud_init ();
13089 int
13090 main ()
13091 {
13092 return ud_init ();
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (ac_try="$ac_link"
13099 case "(($ac_try" in
13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101   *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104   (eval "$ac_link") 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } &&
13111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13112   { (case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117   (eval "$ac_try") 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; } &&
13121          { ac_try='test -s conftest$ac_exeext'
13122   { (case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_try") 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131   ac_cv_lib_udis86_ud_init=yes
13132 else
13133   echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136         ac_cv_lib_udis86_ud_init=no
13137 fi
13138
13139 rm -f core conftest.err conftest.$ac_objext \
13140       conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13144 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13145 if test $ac_cv_lib_udis86_ud_init = yes; then
13146   cat >>confdefs.h <<_ACEOF
13147 #define HAVE_LIBUDIS86 1
13148 _ACEOF
13149
13150   LIBS="-ludis86 $LIBS"
13151
13152 else
13153
13154         echo "Error! You need to have libudis86 around."
13155         exit -1
13156
13157 fi
13158
13159
13160 else
13161   USE_UDIS86=0
13162
13163 fi
13164
13165
13166 cat >>confdefs.h <<_ACEOF
13167 #define USE_UDIS86 $USE_UDIS86
13168 _ACEOF
13169
13170
13171
13172 # Check whether --with-oprofile was given.
13173 if test "${with_oprofile+set}" = set; then
13174   withval=$with_oprofile;
13175       USE_OPROFILE=1
13176
13177       case "$withval" in
13178         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13179         no) llvm_cv_oppath=
13180             USE_OPROFILE=0
13181  ;;
13182         *) llvm_cv_oppath="${withval}/lib/oprofile"
13183            CPPFLAGS="-I${withval}/include";;
13184       esac
13185       case $llvm_cv_os_type in
13186         Linux)
13187           if test -n "$llvm_cv_oppath" ; then
13188             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13189                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13190 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13191 if test "${ac_cv_search_bfd_init+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   ac_func_search_save_LIBS=$LIBS
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h.  */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char bfd_init ();
13209 int
13210 main ()
13211 {
13212 return bfd_init ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 for ac_lib in '' bfd; do
13218   if test -z "$ac_lib"; then
13219     ac_res="none required"
13220   else
13221     ac_res=-l$ac_lib
13222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13223   fi
13224   rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_link") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239   { (case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_try") 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; } &&
13248          { ac_try='test -s conftest$ac_exeext'
13249   { (case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_try") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; }; then
13258   ac_cv_search_bfd_init=$ac_res
13259 else
13260   echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263
13264 fi
13265
13266 rm -f core conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext
13268   if test "${ac_cv_search_bfd_init+set}" = set; then
13269   break
13270 fi
13271 done
13272 if test "${ac_cv_search_bfd_init+set}" = set; then
13273   :
13274 else
13275   ac_cv_search_bfd_init=no
13276 fi
13277 rm conftest.$ac_ext
13278 LIBS=$ac_func_search_save_LIBS
13279 fi
13280 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13281 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13282 ac_res=$ac_cv_search_bfd_init
13283 if test "$ac_res" != no; then
13284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285
13286 fi
13287
13288             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13289 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13290 if test "${ac_cv_search_op_open_agent+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   ac_func_search_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300
13301 /* Override any GCC internal prototype to avoid an error.
13302    Use char because int might match the return type of a GCC
13303    builtin and then its argument prototype would still apply.  */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 char op_open_agent ();
13308 int
13309 main ()
13310 {
13311 return op_open_agent ();
13312   ;
13313   return 0;
13314 }
13315 _ACEOF
13316 for ac_lib in '' opagent; do
13317   if test -z "$ac_lib"; then
13318     ac_res="none required"
13319   else
13320     ac_res=-l$ac_lib
13321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13322   fi
13323   rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_link") 2>conftest.er1
13331   ac_status=$?
13332   grep -v '^ *+' conftest.er1 >conftest.err
13333   rm -f conftest.er1
13334   cat conftest.err >&5
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338   { (case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_try") 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; } &&
13347          { ac_try='test -s conftest$ac_exeext'
13348   { (case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_try") 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_cv_search_op_open_agent=$ac_res
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362
13363 fi
13364
13365 rm -f core conftest.err conftest.$ac_objext \
13366       conftest$ac_exeext
13367   if test "${ac_cv_search_op_open_agent+set}" = set; then
13368   break
13369 fi
13370 done
13371 if test "${ac_cv_search_op_open_agent+set}" = set; then
13372   :
13373 else
13374   ac_cv_search_op_open_agent=no
13375 fi
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13378 fi
13379 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13380 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13381 ac_res=$ac_cv_search_op_open_agent
13382 if test "$ac_res" != no; then
13383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13384
13385 else
13386
13387               echo "Error! You need to have libopagent around."
13388               exit -1
13389
13390 fi
13391
13392             if test "${ac_cv_header_opagent_h+set}" = set; then
13393   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13394 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13395 if test "${ac_cv_header_opagent_h+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 fi
13398 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13399 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13400 else
13401   # Is the header compilable?
13402 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13403 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 $ac_includes_default
13411 #include <opagent.h>
13412 _ACEOF
13413 rm -f conftest.$ac_objext
13414 if { (ac_try="$ac_compile"
13415 case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_compile") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } &&
13427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; } &&
13437          { ac_try='test -s conftest.$ac_objext'
13438   { (case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_try") 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_header_compiler=yes
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452         ac_header_compiler=no
13453 fi
13454
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457 echo "${ECHO_T}$ac_header_compiler" >&6; }
13458
13459 # Is the header present?
13460 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13461 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468 #include <opagent.h>
13469 _ACEOF
13470 if { (ac_try="$ac_cpp conftest.$ac_ext"
13471 case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } >/dev/null; then
13483   if test -s conftest.err; then
13484     ac_cpp_err=$ac_c_preproc_warn_flag
13485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13486   else
13487     ac_cpp_err=
13488   fi
13489 else
13490   ac_cpp_err=yes
13491 fi
13492 if test -z "$ac_cpp_err"; then
13493   ac_header_preproc=yes
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498   ac_header_preproc=no
13499 fi
13500
13501 rm -f conftest.err conftest.$ac_ext
13502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503 echo "${ECHO_T}$ac_header_preproc" >&6; }
13504
13505 # So?  What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507   yes:no: )
13508     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13511 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13512     ac_header_preproc=yes
13513     ;;
13514   no:yes:* )
13515     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13516 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13518 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13519     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13520 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13521     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13522 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13523     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13524 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13525     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13526 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13527     ( cat <<\_ASBOX
13528 ## ------------------------------------ ##
13529 ## Report this to http://llvm.org/bugs/ ##
13530 ## ------------------------------------ ##
13531 _ASBOX
13532      ) | sed "s/^/$as_me: WARNING:     /" >&2
13533     ;;
13534 esac
13535 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13536 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   ac_cv_header_opagent_h=$ac_header_preproc
13541 fi
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13544
13545 fi
13546 if test $ac_cv_header_opagent_h = yes; then
13547   :
13548 else
13549
13550               echo "Error! You need to have opagent.h around."
13551               exit -1
13552
13553 fi
13554
13555
13556           fi ;;
13557         *)
13558           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13559 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13560    { (exit 1); exit 1; }; } ;;
13561       esac
13562
13563 else
13564
13565       USE_OPROFILE=0
13566
13567
13568 fi
13569
13570
13571 cat >>confdefs.h <<_ACEOF
13572 #define LLVM_USE_OPROFILE $USE_OPROFILE
13573 _ACEOF
13574
13575
13576
13577 # Check whether --with-intel-jitevents was given.
13578 if test "${with_intel_jitevents+set}" = set; then
13579   withval=$with_intel_jitevents;
13580       case $llvm_cv_os_type in
13581         Linux|Win32|Cygwin|MingW) ;;
13582         *)
13583           { { echo "$as_me:$LINENO: error:
13584             Intel JIT API support is available on Linux and Windows only.\"" >&5
13585 echo "$as_me: error:
13586             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13587    { (exit 1); exit 1; }; } ;;
13588       esac
13589
13590       USE_INTEL_JITEVENTS=1
13591
13592       case "$llvm_cv_target_arch" in
13593         x86)    llvm_intel_jitevents_archdir="lib32";;
13594         x86_64) llvm_intel_jitevents_archdir="lib64";;
13595         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13596                 exit -1;;
13597       esac
13598       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13599       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13600       case "$withval" in
13601         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13602                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13603         *) ;;
13604       esac
13605
13606
13607
13608
13609       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13610       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13611
13612       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13613 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13614 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   ac_func_search_save_LIBS=$LIBS
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624
13625 /* Override any GCC internal prototype to avoid an error.
13626    Use char because int might match the return type of a GCC
13627    builtin and then its argument prototype would still apply.  */
13628 #ifdef __cplusplus
13629 extern "C"
13630 #endif
13631 char iJIT_IsProfilingActive ();
13632 int
13633 main ()
13634 {
13635 return iJIT_IsProfilingActive ();
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 for ac_lib in '' jitprofiling; do
13641   if test -z "$ac_lib"; then
13642     ac_res="none required"
13643   else
13644     ac_res=-l$ac_lib
13645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13646   fi
13647   rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654   (eval "$ac_link") 2>conftest.er1
13655   ac_status=$?
13656   grep -v '^ *+' conftest.er1 >conftest.err
13657   rm -f conftest.er1
13658   cat conftest.err >&5
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest$ac_exeext'
13672   { (case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_try") 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext \
13690       conftest$ac_exeext
13691   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13692   break
13693 fi
13694 done
13695 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13696   :
13697 else
13698   ac_cv_search_iJIT_IsProfilingActive=no
13699 fi
13700 rm conftest.$ac_ext
13701 LIBS=$ac_func_search_save_LIBS
13702 fi
13703 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13704 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13705 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13706 if test "$ac_res" != no; then
13707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13708
13709 else
13710
13711         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13712         exit -1
13713
13714 fi
13715
13716       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13717   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13718 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13719 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13720   echo $ECHO_N "(cached) $ECHO_C" >&6
13721 fi
13722 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13723 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13724 else
13725   # Is the header compilable?
13726 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13727 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 $ac_includes_default
13735 #include <jitprofiling.h>
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_compile") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767   (eval "$ac_try") 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   ac_header_compiler=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776         ac_header_compiler=no
13777 fi
13778
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13782
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13785 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792 #include <jitprofiling.h>
13793 _ACEOF
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797   *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13801   ac_status=$?
13802   grep -v '^ *+' conftest.er1 >conftest.err
13803   rm -f conftest.er1
13804   cat conftest.err >&5
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } >/dev/null; then
13807   if test -s conftest.err; then
13808     ac_cpp_err=$ac_c_preproc_warn_flag
13809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13810   else
13811     ac_cpp_err=
13812   fi
13813 else
13814   ac_cpp_err=yes
13815 fi
13816 if test -z "$ac_cpp_err"; then
13817   ac_header_preproc=yes
13818 else
13819   echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822   ac_header_preproc=no
13823 fi
13824
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13828
13829 # So?  What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831   yes:no: )
13832     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13836     ac_header_preproc=yes
13837     ;;
13838   no:yes:* )
13839     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13841     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13843     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13845     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13847     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13849     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13851     ( cat <<\_ASBOX
13852 ## ------------------------------------ ##
13853 ## Report this to http://llvm.org/bugs/ ##
13854 ## ------------------------------------ ##
13855 _ASBOX
13856      ) | sed "s/^/$as_me: WARNING:     /" >&2
13857     ;;
13858 esac
13859 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13860 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864   ac_cv_header_jitprofiling_h=$ac_header_preproc
13865 fi
13866 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13867 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13868
13869 fi
13870 if test $ac_cv_header_jitprofiling_h = yes; then
13871   :
13872 else
13873
13874         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13875         exit -1
13876
13877 fi
13878
13879
13880
13881
13882 else
13883
13884       USE_INTEL_JITEVENTS=0
13885
13886
13887 fi
13888
13889
13890 cat >>confdefs.h <<_ACEOF
13891 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13892 _ACEOF
13893
13894
13895 for ac_prog in xml2-config
13896 do
13897   # Extract the first word of "$ac_prog", so it can be a program name with args.
13898 set dummy $ac_prog; ac_word=$2
13899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13901 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   if test -n "$XML2CONFIG"; then
13905   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13906 else
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13909 do
13910   IFS=$as_save_IFS
13911   test -z "$as_dir" && as_dir=.
13912   for ac_exec_ext in '' $ac_executable_extensions; do
13913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13914     ac_cv_prog_XML2CONFIG="$ac_prog"
13915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13916     break 2
13917   fi
13918 done
13919 done
13920 IFS=$as_save_IFS
13921
13922 fi
13923 fi
13924 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13925 if test -n "$XML2CONFIG"; then
13926   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13927 echo "${ECHO_T}$XML2CONFIG" >&6; }
13928 else
13929   { echo "$as_me:$LINENO: result: no" >&5
13930 echo "${ECHO_T}no" >&6; }
13931 fi
13932
13933
13934   test -n "$XML2CONFIG" && break
13935 done
13936
13937
13938 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13939 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13940 if test "x$XML2CONFIG" = "x"; then
13941  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13942 echo "${ECHO_T}xml2-config not found" >&6; }
13943 else
13944  LIBXML2_INC=`$XML2CONFIG --cflags`
13945  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13946 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13947  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13948 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13949 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   ac_check_lib_save_LIBS=$LIBS
13953 LIBS="-lxml2  $LIBS"
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960
13961 /* Override any GCC internal prototype to avoid an error.
13962    Use char because int might match the return type of a GCC
13963    builtin and then its argument prototype would still apply.  */
13964 #ifdef __cplusplus
13965 extern "C"
13966 #endif
13967 char xmlReadFile ();
13968 int
13969 main ()
13970 {
13971 return xmlReadFile ();
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (ac_try="$ac_link"
13978 case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983   (eval "$ac_link") 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; } &&
14000          { ac_try='test -s conftest$ac_exeext'
14001   { (case "(($ac_try" in
14002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003   *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006   (eval "$ac_try") 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; }; then
14010   ac_cv_lib_xml2_xmlReadFile=yes
14011 else
14012   echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015         ac_cv_lib_xml2_xmlReadFile=no
14016 fi
14017
14018 rm -f core conftest.err conftest.$ac_objext \
14019       conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14021 fi
14022 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14023 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14024 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14025
14026 cat >>confdefs.h <<\_ACEOF
14027 #define CLANG_HAVE_LIBXML 1
14028 _ACEOF
14029
14030                                 LIBXML2_LIBS="-lxml2"
14031 fi
14032
14033 fi
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043 ac_header_dirent=no
14044 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14045   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14046 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14047 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h.  */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h.  */
14057 #include <sys/types.h>
14058 #include <$ac_hdr>
14059
14060 int
14061 main ()
14062 {
14063 if ((DIR *) 0)
14064 return 0;
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_compile") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084   { (case "(($ac_try" in
14085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086   *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089   (eval "$ac_try") 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; } &&
14093          { ac_try='test -s conftest.$ac_objext'
14094   { (case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_try") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   eval "$as_ac_Header=yes"
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108         eval "$as_ac_Header=no"
14109 fi
14110
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 ac_res=`eval echo '${'$as_ac_Header'}'`
14114                { echo "$as_me:$LINENO: result: $ac_res" >&5
14115 echo "${ECHO_T}$ac_res" >&6; }
14116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14117   cat >>confdefs.h <<_ACEOF
14118 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14119 _ACEOF
14120
14121 ac_header_dirent=$ac_hdr; break
14122 fi
14123
14124 done
14125 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14126 if test $ac_header_dirent = dirent.h; then
14127   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14129 if test "${ac_cv_search_opendir+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   ac_func_search_save_LIBS=$LIBS
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h.  */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h.  */
14139
14140 /* Override any GCC internal prototype to avoid an error.
14141    Use char because int might match the return type of a GCC
14142    builtin and then its argument prototype would still apply.  */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char opendir ();
14147 int
14148 main ()
14149 {
14150 return opendir ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 for ac_lib in '' dir; do
14156   if test -z "$ac_lib"; then
14157     ac_res="none required"
14158   else
14159     ac_res=-l$ac_lib
14160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14161   fi
14162   rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166   *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169   (eval "$ac_link") 2>conftest.er1
14170   ac_status=$?
14171   grep -v '^ *+' conftest.er1 >conftest.err
14172   rm -f conftest.er1
14173   cat conftest.err >&5
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } &&
14176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177   { (case "(($ac_try" in
14178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179   *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182   (eval "$ac_try") 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; } &&
14186          { ac_try='test -s conftest$ac_exeext'
14187   { (case "(($ac_try" in
14188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189   *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192   (eval "$ac_try") 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_cv_search_opendir=$ac_res
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext \
14205       conftest$ac_exeext
14206   if test "${ac_cv_search_opendir+set}" = set; then
14207   break
14208 fi
14209 done
14210 if test "${ac_cv_search_opendir+set}" = set; then
14211   :
14212 else
14213   ac_cv_search_opendir=no
14214 fi
14215 rm conftest.$ac_ext
14216 LIBS=$ac_func_search_save_LIBS
14217 fi
14218 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14219 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14220 ac_res=$ac_cv_search_opendir
14221 if test "$ac_res" != no; then
14222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14223
14224 fi
14225
14226 else
14227   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14228 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14229 if test "${ac_cv_search_opendir+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   ac_func_search_save_LIBS=$LIBS
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239
14240 /* Override any GCC internal prototype to avoid an error.
14241    Use char because int might match the return type of a GCC
14242    builtin and then its argument prototype would still apply.  */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char opendir ();
14247 int
14248 main ()
14249 {
14250 return opendir ();
14251   ;
14252   return 0;
14253 }
14254 _ACEOF
14255 for ac_lib in '' x; do
14256   if test -z "$ac_lib"; then
14257     ac_res="none required"
14258   else
14259     ac_res=-l$ac_lib
14260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14261   fi
14262   rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266   *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269   (eval "$ac_link") 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277   { (case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_try") 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; } &&
14286          { ac_try='test -s conftest$ac_exeext'
14287   { (case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_try") 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; }; then
14296   ac_cv_search_opendir=$ac_res
14297 else
14298   echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301
14302 fi
14303
14304 rm -f core conftest.err conftest.$ac_objext \
14305       conftest$ac_exeext
14306   if test "${ac_cv_search_opendir+set}" = set; then
14307   break
14308 fi
14309 done
14310 if test "${ac_cv_search_opendir+set}" = set; then
14311   :
14312 else
14313   ac_cv_search_opendir=no
14314 fi
14315 rm conftest.$ac_ext
14316 LIBS=$ac_func_search_save_LIBS
14317 fi
14318 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14319 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14320 ac_res=$ac_cv_search_opendir
14321 if test "$ac_res" != no; then
14322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14323
14324 fi
14325
14326 fi
14327
14328 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14329 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14330 if test "${ac_cv_header_mmap_anon+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333    ac_ext=c
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <sys/mman.h>
14346 #include <unistd.h>
14347 #include <fcntl.h>
14348 int
14349 main ()
14350 {
14351 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363   (eval "$ac_compile") 2>conftest.er1
14364   ac_status=$?
14365   grep -v '^ *+' conftest.er1 >conftest.err
14366   rm -f conftest.er1
14367   cat conftest.err >&5
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371   { (case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_try") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } &&
14380          { ac_try='test -s conftest.$ac_objext'
14381   { (case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_try") 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   ac_cv_header_mmap_anon=yes
14391 else
14392   echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395         ac_cv_header_mmap_anon=no
14396 fi
14397
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399   ac_ext=c
14400 ac_cpp='$CPP $CPPFLAGS'
14401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14404
14405
14406 fi
14407 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14408 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14409 if test "$ac_cv_header_mmap_anon" = yes; then
14410
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_MMAP_ANONYMOUS 1
14413 _ACEOF
14414
14415 fi
14416
14417 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14418 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14419 if test "${ac_cv_header_stat_broken+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422   cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428 #include <sys/types.h>
14429 #include <sys/stat.h>
14430
14431 #if defined S_ISBLK && defined S_IFDIR
14432 # if S_ISBLK (S_IFDIR)
14433 You lose.
14434 # endif
14435 #endif
14436
14437 #if defined S_ISBLK && defined S_IFCHR
14438 # if S_ISBLK (S_IFCHR)
14439 You lose.
14440 # endif
14441 #endif
14442
14443 #if defined S_ISLNK && defined S_IFREG
14444 # if S_ISLNK (S_IFREG)
14445 You lose.
14446 # endif
14447 #endif
14448
14449 #if defined S_ISSOCK && defined S_IFREG
14450 # if S_ISSOCK (S_IFREG)
14451 You lose.
14452 # endif
14453 #endif
14454
14455 _ACEOF
14456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457   $EGREP "You lose" >/dev/null 2>&1; then
14458   ac_cv_header_stat_broken=yes
14459 else
14460   ac_cv_header_stat_broken=no
14461 fi
14462 rm -f conftest*
14463
14464 fi
14465 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14466 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14467 if test $ac_cv_header_stat_broken = yes; then
14468
14469 cat >>confdefs.h <<\_ACEOF
14470 #define STAT_MACROS_BROKEN 1
14471 _ACEOF
14472
14473 fi
14474
14475 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14476 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14477 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486 #include <sys/types.h>
14487 #include <sys/wait.h>
14488 #ifndef WEXITSTATUS
14489 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14490 #endif
14491 #ifndef WIFEXITED
14492 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14493 #endif
14494
14495 int
14496 main ()
14497 {
14498   int s;
14499   wait (&s);
14500   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext
14506 if { (ac_try="$ac_compile"
14507 case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_compile") 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520   { (case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_try") 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); }; } &&
14529          { ac_try='test -s conftest.$ac_objext'
14530   { (case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_try") 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   ac_cv_header_sys_wait_h=yes
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544         ac_cv_header_sys_wait_h=no
14545 fi
14546
14547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14548 fi
14549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14550 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14551 if test $ac_cv_header_sys_wait_h = yes; then
14552
14553 cat >>confdefs.h <<\_ACEOF
14554 #define HAVE_SYS_WAIT_H 1
14555 _ACEOF
14556
14557 fi
14558
14559 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14561 if test "${ac_cv_header_time+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570 #include <sys/types.h>
14571 #include <sys/time.h>
14572 #include <time.h>
14573
14574 int
14575 main ()
14576 {
14577 if ((struct tm *) 0)
14578 return 0;
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (ac_try="$ac_compile"
14585 case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_compile") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598   { (case "(($ac_try" in
14599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600   *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603   (eval "$ac_try") 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617   ac_cv_header_time=yes
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622         ac_cv_header_time=no
14623 fi
14624
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 fi
14627 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14628 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14629 if test $ac_cv_header_time = yes; then
14630
14631 cat >>confdefs.h <<\_ACEOF
14632 #define TIME_WITH_SYS_TIME 1
14633 _ACEOF
14634
14635 fi
14636
14637
14638
14639
14640
14641
14642
14643
14644 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14645 do
14646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 fi
14653 ac_res=`eval echo '${'$as_ac_Header'}'`
14654                { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14656 else
14657   # Is the header compilable?
14658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h.  */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h.  */
14666 $ac_includes_default
14667 #include <$ac_header>
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (ac_try="$ac_compile"
14671 case "(($ac_try" in
14672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673   *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676   (eval "$ac_compile") 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14684   { (case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_try") 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; } &&
14693          { ac_try='test -s conftest.$ac_objext'
14694   { (case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_try") 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); }; }; then
14703   ac_header_compiler=yes
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708         ac_header_compiler=no
14709 fi
14710
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14713 echo "${ECHO_T}$ac_header_compiler" >&6; }
14714
14715 # Is the header present?
14716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724 #include <$ac_header>
14725 _ACEOF
14726 if { (ac_try="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } >/dev/null; then
14739   if test -s conftest.err; then
14740     ac_cpp_err=$ac_c_preproc_warn_flag
14741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14742   else
14743     ac_cpp_err=
14744   fi
14745 else
14746   ac_cpp_err=yes
14747 fi
14748 if test -z "$ac_cpp_err"; then
14749   ac_header_preproc=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754   ac_header_preproc=no
14755 fi
14756
14757 rm -f conftest.err conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759 echo "${ECHO_T}$ac_header_preproc" >&6; }
14760
14761 # So?  What about this header?
14762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14763   yes:no: )
14764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14768     ac_header_preproc=yes
14769     ;;
14770   no:yes:* )
14771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14783     ( cat <<\_ASBOX
14784 ## ------------------------------------ ##
14785 ## Report this to http://llvm.org/bugs/ ##
14786 ## ------------------------------------ ##
14787 _ASBOX
14788      ) | sed "s/^/$as_me: WARNING:     /" >&2
14789     ;;
14790 esac
14791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794   echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796   eval "$as_ac_Header=\$ac_header_preproc"
14797 fi
14798 ac_res=`eval echo '${'$as_ac_Header'}'`
14799                { echo "$as_me:$LINENO: result: $ac_res" >&5
14800 echo "${ECHO_T}$ac_res" >&6; }
14801
14802 fi
14803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14804   cat >>confdefs.h <<_ACEOF
14805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14806 _ACEOF
14807
14808 fi
14809
14810 done
14811
14812
14813
14814
14815
14816
14817
14818 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14819 do
14820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 fi
14827 ac_res=`eval echo '${'$as_ac_Header'}'`
14828                { echo "$as_me:$LINENO: result: $ac_res" >&5
14829 echo "${ECHO_T}$ac_res" >&6; }
14830 else
14831   # Is the header compilable?
14832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840 $ac_includes_default
14841 #include <$ac_header>
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_compile") 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } &&
14857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14858   { (case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_try") 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; } &&
14867          { ac_try='test -s conftest.$ac_objext'
14868   { (case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873   (eval "$ac_try") 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877   ac_header_compiler=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882         ac_header_compiler=no
14883 fi
14884
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887 echo "${ECHO_T}$ac_header_compiler" >&6; }
14888
14889 # Is the header present?
14890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 #include <$ac_header>
14899 _ACEOF
14900 if { (ac_try="$ac_cpp conftest.$ac_ext"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } >/dev/null; then
14913   if test -s conftest.err; then
14914     ac_cpp_err=$ac_c_preproc_warn_flag
14915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14916   else
14917     ac_cpp_err=
14918   fi
14919 else
14920   ac_cpp_err=yes
14921 fi
14922 if test -z "$ac_cpp_err"; then
14923   ac_header_preproc=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928   ac_header_preproc=no
14929 fi
14930
14931 rm -f conftest.err conftest.$ac_ext
14932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14933 echo "${ECHO_T}$ac_header_preproc" >&6; }
14934
14935 # So?  What about this header?
14936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937   yes:no: )
14938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14942     ac_header_preproc=yes
14943     ;;
14944   no:yes:* )
14945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957     ( cat <<\_ASBOX
14958 ## ------------------------------------ ##
14959 ## Report this to http://llvm.org/bugs/ ##
14960 ## ------------------------------------ ##
14961 _ASBOX
14962      ) | sed "s/^/$as_me: WARNING:     /" >&2
14963     ;;
14964 esac
14965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   eval "$as_ac_Header=\$ac_header_preproc"
14971 fi
14972 ac_res=`eval echo '${'$as_ac_Header'}'`
14973                { echo "$as_me:$LINENO: result: $ac_res" >&5
14974 echo "${ECHO_T}$ac_res" >&6; }
14975
14976 fi
14977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14978   cat >>confdefs.h <<_ACEOF
14979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14980 _ACEOF
14981
14982 fi
14983
14984 done
14985
14986
14987
14988 for ac_header in utime.h windows.h
14989 do
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 fi
14997 ac_res=`eval echo '${'$as_ac_Header'}'`
14998                { echo "$as_me:$LINENO: result: $ac_res" >&5
14999 echo "${ECHO_T}$ac_res" >&6; }
15000 else
15001   # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 $ac_includes_default
15011 #include <$ac_header>
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_compile") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; } &&
15037          { ac_try='test -s conftest.$ac_objext'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   ac_header_compiler=yes
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_header_compiler=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15058
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <$ac_header>
15069 _ACEOF
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } >/dev/null; then
15083   if test -s conftest.err; then
15084     ac_cpp_err=$ac_c_preproc_warn_flag
15085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15086   else
15087     ac_cpp_err=
15088   fi
15089 else
15090   ac_cpp_err=yes
15091 fi
15092 if test -z "$ac_cpp_err"; then
15093   ac_header_preproc=yes
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098   ac_header_preproc=no
15099 fi
15100
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104
15105 # So?  What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107   yes:no: )
15108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112     ac_header_preproc=yes
15113     ;;
15114   no:yes:* )
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15127     ( cat <<\_ASBOX
15128 ## ------------------------------------ ##
15129 ## Report this to http://llvm.org/bugs/ ##
15130 ## ------------------------------------ ##
15131 _ASBOX
15132      ) | sed "s/^/$as_me: WARNING:     /" >&2
15133     ;;
15134 esac
15135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140   eval "$as_ac_Header=\$ac_header_preproc"
15141 fi
15142 ac_res=`eval echo '${'$as_ac_Header'}'`
15143                { echo "$as_me:$LINENO: result: $ac_res" >&5
15144 echo "${ECHO_T}$ac_res" >&6; }
15145
15146 fi
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148   cat >>confdefs.h <<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15150 _ACEOF
15151
15152 fi
15153
15154 done
15155
15156
15157
15158
15159
15160
15161 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15162 do
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 fi
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171                { echo "$as_me:$LINENO: result: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15173 else
15174   # Is the header compilable?
15175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 $ac_includes_default
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_compile") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; } &&
15210          { ac_try='test -s conftest.$ac_objext'
15211   { (case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_try") 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   ac_header_compiler=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225         ac_header_compiler=no
15226 fi
15227
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15230 echo "${ECHO_T}$ac_header_compiler" >&6; }
15231
15232 # Is the header present?
15233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 #include <$ac_header>
15242 _ACEOF
15243 if { (ac_try="$ac_cpp conftest.$ac_ext"
15244 case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } >/dev/null; then
15256   if test -s conftest.err; then
15257     ac_cpp_err=$ac_c_preproc_warn_flag
15258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259   else
15260     ac_cpp_err=
15261   fi
15262 else
15263   ac_cpp_err=yes
15264 fi
15265 if test -z "$ac_cpp_err"; then
15266   ac_header_preproc=yes
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271   ac_header_preproc=no
15272 fi
15273
15274 rm -f conftest.err conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276 echo "${ECHO_T}$ac_header_preproc" >&6; }
15277
15278 # So?  What about this header?
15279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15280   yes:no: )
15281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15285     ac_header_preproc=yes
15286     ;;
15287   no:yes:* )
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15300     ( cat <<\_ASBOX
15301 ## ------------------------------------ ##
15302 ## Report this to http://llvm.org/bugs/ ##
15303 ## ------------------------------------ ##
15304 _ASBOX
15305      ) | sed "s/^/$as_me: WARNING:     /" >&2
15306     ;;
15307 esac
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   eval "$as_ac_Header=\$ac_header_preproc"
15314 fi
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316                { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15318
15319 fi
15320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15321   cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15323 _ACEOF
15324
15325 fi
15326
15327 done
15328
15329
15330
15331
15332
15333 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15334 do
15335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15337   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 fi
15342 ac_res=`eval echo '${'$as_ac_Header'}'`
15343                { echo "$as_me:$LINENO: result: $ac_res" >&5
15344 echo "${ECHO_T}$ac_res" >&6; }
15345 else
15346   # Is the header compilable?
15347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 $ac_includes_default
15356 #include <$ac_header>
15357 _ACEOF
15358 rm -f conftest.$ac_objext
15359 if { (ac_try="$ac_compile"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_compile") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } &&
15372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15373   { (case "(($ac_try" in
15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375   *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378   (eval "$ac_try") 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; } &&
15382          { ac_try='test -s conftest.$ac_objext'
15383   { (case "(($ac_try" in
15384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385   *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388   (eval "$ac_try") 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392   ac_header_compiler=yes
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397         ac_header_compiler=no
15398 fi
15399
15400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15402 echo "${ECHO_T}$ac_header_compiler" >&6; }
15403
15404 # Is the header present?
15405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h.  */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h.  */
15413 #include <$ac_header>
15414 _ACEOF
15415 if { (ac_try="$ac_cpp conftest.$ac_ext"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } >/dev/null; then
15428   if test -s conftest.err; then
15429     ac_cpp_err=$ac_c_preproc_warn_flag
15430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15431   else
15432     ac_cpp_err=
15433   fi
15434 else
15435   ac_cpp_err=yes
15436 fi
15437 if test -z "$ac_cpp_err"; then
15438   ac_header_preproc=yes
15439 else
15440   echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443   ac_header_preproc=no
15444 fi
15445
15446 rm -f conftest.err conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15448 echo "${ECHO_T}$ac_header_preproc" >&6; }
15449
15450 # So?  What about this header?
15451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15452   yes:no: )
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15457     ac_header_preproc=yes
15458     ;;
15459   no:yes:* )
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472     ( cat <<\_ASBOX
15473 ## ------------------------------------ ##
15474 ## Report this to http://llvm.org/bugs/ ##
15475 ## ------------------------------------ ##
15476 _ASBOX
15477      ) | sed "s/^/$as_me: WARNING:     /" >&2
15478     ;;
15479 esac
15480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485   eval "$as_ac_Header=\$ac_header_preproc"
15486 fi
15487 ac_res=`eval echo '${'$as_ac_Header'}'`
15488                { echo "$as_me:$LINENO: result: $ac_res" >&5
15489 echo "${ECHO_T}$ac_res" >&6; }
15490
15491 fi
15492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15493   cat >>confdefs.h <<_ACEOF
15494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15495 _ACEOF
15496
15497 fi
15498
15499 done
15500
15501
15502 for ac_header in valgrind/valgrind.h
15503 do
15504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509   echo $ECHO_N "(cached) $ECHO_C" >&6
15510 fi
15511 ac_res=`eval echo '${'$as_ac_Header'}'`
15512                { echo "$as_me:$LINENO: result: $ac_res" >&5
15513 echo "${ECHO_T}$ac_res" >&6; }
15514 else
15515   # Is the header compilable?
15516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h.  */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h.  */
15524 $ac_includes_default
15525 #include <$ac_header>
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_compile") 2>conftest.er1
15535   ac_status=$?
15536   grep -v '^ *+' conftest.er1 >conftest.err
15537   rm -f conftest.er1
15538   cat conftest.err >&5
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); } &&
15541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15542   { (case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_try") 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; } &&
15551          { ac_try='test -s conftest.$ac_objext'
15552   { (case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_try") 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; }; then
15561   ac_header_compiler=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566         ac_header_compiler=no
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15571 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572
15573 # Is the header present?
15574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582 #include <$ac_header>
15583 _ACEOF
15584 if { (ac_try="$ac_cpp conftest.$ac_ext"
15585 case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } >/dev/null; then
15597   if test -s conftest.err; then
15598     ac_cpp_err=$ac_c_preproc_warn_flag
15599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15600   else
15601     ac_cpp_err=
15602   fi
15603 else
15604   ac_cpp_err=yes
15605 fi
15606 if test -z "$ac_cpp_err"; then
15607   ac_header_preproc=yes
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612   ac_header_preproc=no
15613 fi
15614
15615 rm -f conftest.err conftest.$ac_ext
15616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6; }
15618
15619 # So?  What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621   yes:no: )
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15626     ac_header_preproc=yes
15627     ;;
15628   no:yes:* )
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15641     ( cat <<\_ASBOX
15642 ## ------------------------------------ ##
15643 ## Report this to http://llvm.org/bugs/ ##
15644 ## ------------------------------------ ##
15645 _ASBOX
15646      ) | sed "s/^/$as_me: WARNING:     /" >&2
15647     ;;
15648 esac
15649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654   eval "$as_ac_Header=\$ac_header_preproc"
15655 fi
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657                { echo "$as_me:$LINENO: result: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15659
15660 fi
15661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15662   cat >>confdefs.h <<_ACEOF
15663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15664 _ACEOF
15665
15666 fi
15667
15668 done
15669
15670
15671 for ac_header in fenv.h
15672 do
15673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15678   echo $ECHO_N "(cached) $ECHO_C" >&6
15679 fi
15680 ac_res=`eval echo '${'$as_ac_Header'}'`
15681                { echo "$as_me:$LINENO: result: $ac_res" >&5
15682 echo "${ECHO_T}$ac_res" >&6; }
15683 else
15684   # Is the header compilable?
15685 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693 $ac_includes_default
15694 #include <$ac_header>
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700   *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703   (eval "$ac_compile") 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } &&
15710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15711   { (case "(($ac_try" in
15712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713   *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716   (eval "$ac_try") 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; } &&
15720          { ac_try='test -s conftest.$ac_objext'
15721   { (case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_try") 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730   ac_header_compiler=yes
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735         ac_header_compiler=no
15736 fi
15737
15738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15740 echo "${ECHO_T}$ac_header_compiler" >&6; }
15741
15742 # Is the header present?
15743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 #include <$ac_header>
15752 _ACEOF
15753 if { (ac_try="$ac_cpp conftest.$ac_ext"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } >/dev/null; then
15766   if test -s conftest.err; then
15767     ac_cpp_err=$ac_c_preproc_warn_flag
15768     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15769   else
15770     ac_cpp_err=
15771   fi
15772 else
15773   ac_cpp_err=yes
15774 fi
15775 if test -z "$ac_cpp_err"; then
15776   ac_header_preproc=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781   ac_header_preproc=no
15782 fi
15783
15784 rm -f conftest.err conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6; }
15787
15788 # So?  What about this header?
15789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790   yes:no: )
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795     ac_header_preproc=yes
15796     ;;
15797   no:yes:* )
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810     ( cat <<\_ASBOX
15811 ## ------------------------------------ ##
15812 ## Report this to http://llvm.org/bugs/ ##
15813 ## ------------------------------------ ##
15814 _ASBOX
15815      ) | sed "s/^/$as_me: WARNING:     /" >&2
15816     ;;
15817 esac
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823   eval "$as_ac_Header=\$ac_header_preproc"
15824 fi
15825 ac_res=`eval echo '${'$as_ac_Header'}'`
15826                { echo "$as_me:$LINENO: result: $ac_res" >&5
15827 echo "${ECHO_T}$ac_res" >&6; }
15828
15829 fi
15830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15831   cat >>confdefs.h <<_ACEOF
15832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833 _ACEOF
15834
15835 fi
15836
15837 done
15838
15839 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15840
15841 for ac_header in pthread.h
15842 do
15843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848   echo $ECHO_N "(cached) $ECHO_C" >&6
15849 fi
15850 ac_res=`eval echo '${'$as_ac_Header'}'`
15851                { echo "$as_me:$LINENO: result: $ac_res" >&5
15852 echo "${ECHO_T}$ac_res" >&6; }
15853 else
15854   # Is the header compilable?
15855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15857 cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h.  */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h.  */
15863 $ac_includes_default
15864 #include <$ac_header>
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (ac_try="$ac_compile"
15868 case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_compile") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } &&
15880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15881   { (case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_try") 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; } &&
15890          { ac_try='test -s conftest.$ac_objext'
15891   { (case "(($ac_try" in
15892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893   *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896   (eval "$ac_try") 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   ac_header_compiler=yes
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905         ac_header_compiler=no
15906 fi
15907
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15910 echo "${ECHO_T}$ac_header_compiler" >&6; }
15911
15912 # Is the header present?
15913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921 #include <$ac_header>
15922 _ACEOF
15923 if { (ac_try="$ac_cpp conftest.$ac_ext"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15930   ac_status=$?
15931   grep -v '^ *+' conftest.er1 >conftest.err
15932   rm -f conftest.er1
15933   cat conftest.err >&5
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } >/dev/null; then
15936   if test -s conftest.err; then
15937     ac_cpp_err=$ac_c_preproc_warn_flag
15938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15939   else
15940     ac_cpp_err=
15941   fi
15942 else
15943   ac_cpp_err=yes
15944 fi
15945 if test -z "$ac_cpp_err"; then
15946   ac_header_preproc=yes
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951   ac_header_preproc=no
15952 fi
15953
15954 rm -f conftest.err conftest.$ac_ext
15955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6; }
15957
15958 # So?  What about this header?
15959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960   yes:no: )
15961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15965     ac_header_preproc=yes
15966     ;;
15967   no:yes:* )
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15980     ( cat <<\_ASBOX
15981 ## ------------------------------------ ##
15982 ## Report this to http://llvm.org/bugs/ ##
15983 ## ------------------------------------ ##
15984 _ASBOX
15985      ) | sed "s/^/$as_me: WARNING:     /" >&2
15986     ;;
15987 esac
15988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   eval "$as_ac_Header=\$ac_header_preproc"
15994 fi
15995 ac_res=`eval echo '${'$as_ac_Header'}'`
15996                { echo "$as_me:$LINENO: result: $ac_res" >&5
15997 echo "${ECHO_T}$ac_res" >&6; }
15998
15999 fi
16000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16001   cat >>confdefs.h <<_ACEOF
16002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16003 _ACEOF
16004  HAVE_PTHREAD=1
16005
16006 else
16007   HAVE_PTHREAD=0
16008
16009 fi
16010
16011 done
16012
16013 else
16014   HAVE_PTHREAD=0
16015
16016 fi
16017
16018 if test "$llvm_cv_enable_libffi" = "yes" ; then
16019
16020
16021 for ac_header in ffi.h ffi/ffi.h
16022 do
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 fi
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031                { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16033 else
16034   # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } &&
16060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061   { (case "(($ac_try" in
16062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063   *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066   (eval "$ac_try") 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; } &&
16070          { ac_try='test -s conftest.$ac_objext'
16071   { (case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_try") 2>&5
16077   ac_status=$?
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); }; }; then
16080   ac_header_compiler=yes
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085         ac_header_compiler=no
16086 fi
16087
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16090 echo "${ECHO_T}$ac_header_compiler" >&6; }
16091
16092 # Is the header present?
16093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 #include <$ac_header>
16102 _ACEOF
16103 if { (ac_try="$ac_cpp conftest.$ac_ext"
16104 case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16110   ac_status=$?
16111   grep -v '^ *+' conftest.er1 >conftest.err
16112   rm -f conftest.er1
16113   cat conftest.err >&5
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } >/dev/null; then
16116   if test -s conftest.err; then
16117     ac_cpp_err=$ac_c_preproc_warn_flag
16118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16119   else
16120     ac_cpp_err=
16121   fi
16122 else
16123   ac_cpp_err=yes
16124 fi
16125 if test -z "$ac_cpp_err"; then
16126   ac_header_preproc=yes
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131   ac_header_preproc=no
16132 fi
16133
16134 rm -f conftest.err conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16136 echo "${ECHO_T}$ac_header_preproc" >&6; }
16137
16138 # So?  What about this header?
16139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16140   yes:no: )
16141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16145     ac_header_preproc=yes
16146     ;;
16147   no:yes:* )
16148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16160     ( cat <<\_ASBOX
16161 ## ------------------------------------ ##
16162 ## Report this to http://llvm.org/bugs/ ##
16163 ## ------------------------------------ ##
16164 _ASBOX
16165      ) | sed "s/^/$as_me: WARNING:     /" >&2
16166     ;;
16167 esac
16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   eval "$as_ac_Header=\$ac_header_preproc"
16174 fi
16175 ac_res=`eval echo '${'$as_ac_Header'}'`
16176                { echo "$as_me:$LINENO: result: $ac_res" >&5
16177 echo "${ECHO_T}$ac_res" >&6; }
16178
16179 fi
16180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16181   cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16183 _ACEOF
16184
16185 fi
16186
16187 done
16188
16189 fi
16190
16191
16192 for ac_header in CrashReporterClient.h
16193 do
16194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 fi
16201 ac_res=`eval echo '${'$as_ac_Header'}'`
16202                { echo "$as_me:$LINENO: result: $ac_res" >&5
16203 echo "${ECHO_T}$ac_res" >&6; }
16204 else
16205   # Is the header compilable?
16206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 $ac_includes_default
16215 #include <$ac_header>
16216 _ACEOF
16217 rm -f conftest.$ac_objext
16218 if { (ac_try="$ac_compile"
16219 case "(($ac_try" in
16220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221   *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224   (eval "$ac_compile") 2>conftest.er1
16225   ac_status=$?
16226   grep -v '^ *+' conftest.er1 >conftest.err
16227   rm -f conftest.er1
16228   cat conftest.err >&5
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } &&
16231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16232   { (case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_try") 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; } &&
16241          { ac_try='test -s conftest.$ac_objext'
16242   { (case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247   (eval "$ac_try") 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   ac_header_compiler=yes
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256         ac_header_compiler=no
16257 fi
16258
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6; }
16262
16263 # Is the header present?
16264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 #include <$ac_header>
16273 _ACEOF
16274 if { (ac_try="$ac_cpp conftest.$ac_ext"
16275 case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281   ac_status=$?
16282   grep -v '^ *+' conftest.er1 >conftest.err
16283   rm -f conftest.er1
16284   cat conftest.err >&5
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } >/dev/null; then
16287   if test -s conftest.err; then
16288     ac_cpp_err=$ac_c_preproc_warn_flag
16289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16290   else
16291     ac_cpp_err=
16292   fi
16293 else
16294   ac_cpp_err=yes
16295 fi
16296 if test -z "$ac_cpp_err"; then
16297   ac_header_preproc=yes
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302   ac_header_preproc=no
16303 fi
16304
16305 rm -f conftest.err conftest.$ac_ext
16306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16307 echo "${ECHO_T}$ac_header_preproc" >&6; }
16308
16309 # So?  What about this header?
16310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16311   yes:no: )
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16316     ac_header_preproc=yes
16317     ;;
16318   no:yes:* )
16319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16321     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16322 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16323     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16325     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16326 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16329     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16331     ( cat <<\_ASBOX
16332 ## ------------------------------------ ##
16333 ## Report this to http://llvm.org/bugs/ ##
16334 ## ------------------------------------ ##
16335 _ASBOX
16336      ) | sed "s/^/$as_me: WARNING:     /" >&2
16337     ;;
16338 esac
16339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16342   echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344   eval "$as_ac_Header=\$ac_header_preproc"
16345 fi
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347                { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16349
16350 fi
16351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352   cat >>confdefs.h <<_ACEOF
16353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16354 _ACEOF
16355
16356 fi
16357
16358 done
16359
16360
16361 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16362 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369 extern const char *__crashreporter_info__;
16370       int main() {
16371         __crashreporter_info__ = "test";
16372         return 0;
16373       }
16374
16375 _ACEOF
16376 rm -f conftest.$ac_objext conftest$ac_exeext
16377 if { (ac_try="$ac_link"
16378 case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_link") 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391   { (case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_try") 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; } &&
16400          { ac_try='test -s conftest$ac_exeext'
16401   { (case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_try") 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   { echo "$as_me:$LINENO: result: yes" >&5
16411 echo "${ECHO_T}yes" >&6; }
16412
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CRASHREPORTER_INFO 1
16415 _ACEOF
16416
16417 else
16418   echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421         { echo "$as_me:$LINENO: result: no" >&5
16422 echo "${ECHO_T}no" >&6; }
16423
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_CRASHREPORTER_INFO 0
16426 _ACEOF
16427
16428 fi
16429
16430 rm -f core conftest.err conftest.$ac_objext \
16431       conftest$ac_exeext conftest.$ac_ext
16432
16433
16434
16435
16436   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16437 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16438 if test "${ac_cv_huge_val_sanity+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441
16442     ac_ext=cpp
16443 ac_cpp='$CXXCPP $CPPFLAGS'
16444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16447
16448     ac_save_CXXFLAGS=$CXXFLAGS
16449     CXXFLAGS="$CXXFLAGS -pedantic"
16450     if test "$cross_compiling" = yes; then
16451   ac_cv_huge_val_sanity=yes
16452 else
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 #include <math.h>
16460 int
16461 main ()
16462 {
16463 double x = HUGE_VAL; return x != x;
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 rm -f conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472   *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475   (eval "$ac_link") 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_huge_val_sanity=yes
16489 else
16490   echo "$as_me: program exited with status $ac_status" >&5
16491 echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16493
16494 ( exit $ac_status )
16495 ac_cv_huge_val_sanity=no
16496 fi
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16498 fi
16499
16500
16501     CXXFLAGS=$ac_save_CXXFLAGS
16502     ac_ext=c
16503 ac_cpp='$CPP $CPPFLAGS'
16504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16507
16508
16509 fi
16510 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16511 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16512   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16513
16514
16515 { echo "$as_me:$LINENO: checking for pid_t" >&5
16516 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_pid_t+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526 $ac_includes_default
16527 typedef pid_t ac__type_new_;
16528 int
16529 main ()
16530 {
16531 if ((ac__type_new_ *) 0)
16532   return 0;
16533 if (sizeof (ac__type_new_))
16534   return 0;
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_compile") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554   { (case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_try") 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); }; } &&
16563          { ac_try='test -s conftest.$ac_objext'
16564   { (case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_type_pid_t=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578         ac_cv_type_pid_t=no
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 fi
16583 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16585 if test $ac_cv_type_pid_t = yes; then
16586   :
16587 else
16588
16589 cat >>confdefs.h <<_ACEOF
16590 #define pid_t int
16591 _ACEOF
16592
16593 fi
16594
16595 { echo "$as_me:$LINENO: checking for size_t" >&5
16596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16597 if test "${ac_cv_type_size_t+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 $ac_includes_default
16607 typedef size_t ac__type_new_;
16608 int
16609 main ()
16610 {
16611 if ((ac__type_new_ *) 0)
16612   return 0;
16613 if (sizeof (ac__type_new_))
16614   return 0;
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (ac_try="$ac_compile"
16621 case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_compile") 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634   { (case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_try") 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; } &&
16643          { ac_try='test -s conftest.$ac_objext'
16644   { (case "(($ac_try" in
16645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646   *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649   (eval "$ac_try") 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ac_cv_type_size_t=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658         ac_cv_type_size_t=no
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 fi
16663 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16664 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16665 if test $ac_cv_type_size_t = yes; then
16666   :
16667 else
16668
16669 cat >>confdefs.h <<_ACEOF
16670 #define size_t unsigned int
16671 _ACEOF
16672
16673 fi
16674
16675
16676 cat >>confdefs.h <<_ACEOF
16677 #define RETSIGTYPE void
16678 _ACEOF
16679
16680 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16681 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16682 if test "${ac_cv_struct_tm+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 #include <sys/types.h>
16692 #include <time.h>
16693
16694 int
16695 main ()
16696 {
16697 struct tm *tp; tp->tm_sec;
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_compile") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest.$ac_objext'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_struct_tm=time.h
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741         ac_cv_struct_tm=sys/time.h
16742 fi
16743
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 fi
16746 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16747 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16748 if test $ac_cv_struct_tm = sys/time.h; then
16749
16750 cat >>confdefs.h <<\_ACEOF
16751 #define TM_IN_SYS_TIME 1
16752 _ACEOF
16753
16754 fi
16755
16756 { echo "$as_me:$LINENO: checking for int64_t" >&5
16757 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16758 if test "${ac_cv_type_int64_t+set}" = set; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761   cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 $ac_includes_default
16768 typedef int64_t ac__type_new_;
16769 int
16770 main ()
16771 {
16772 if ((ac__type_new_ *) 0)
16773   return 0;
16774 if (sizeof (ac__type_new_))
16775   return 0;
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_compile") 2>conftest.er1
16788   ac_status=$?
16789   grep -v '^ *+' conftest.er1 >conftest.err
16790   rm -f conftest.er1
16791   cat conftest.err >&5
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } &&
16794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795   { (case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_try") 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; } &&
16804          { ac_try='test -s conftest.$ac_objext'
16805   { (case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_try") 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_type_int64_t=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819         ac_cv_type_int64_t=no
16820 fi
16821
16822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823 fi
16824 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16825 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16826 if test $ac_cv_type_int64_t = yes; then
16827
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_INT64_T 1
16830 _ACEOF
16831
16832
16833 else
16834   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16835 echo "$as_me: error: Type int64_t required but not found" >&2;}
16836    { (exit 1); exit 1; }; }
16837 fi
16838
16839 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16841 if test "${ac_cv_type_uint64_t+set}" = set; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844   cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 $ac_includes_default
16851 typedef uint64_t ac__type_new_;
16852 int
16853 main ()
16854 {
16855 if ((ac__type_new_ *) 0)
16856   return 0;
16857 if (sizeof (ac__type_new_))
16858   return 0;
16859   ;
16860   return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext
16864 if { (ac_try="$ac_compile"
16865 case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_compile") 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16878   { (case "(($ac_try" in
16879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880   *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883   (eval "$ac_try") 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; } &&
16887          { ac_try='test -s conftest.$ac_objext'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   ac_cv_type_uint64_t=yes
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902         ac_cv_type_uint64_t=no
16903 fi
16904
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 fi
16907 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16908 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16909 if test $ac_cv_type_uint64_t = yes; then
16910
16911 cat >>confdefs.h <<_ACEOF
16912 #define HAVE_UINT64_T 1
16913 _ACEOF
16914
16915
16916 else
16917   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16918 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16919 if test "${ac_cv_type_u_int64_t+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 $ac_includes_default
16929 typedef u_int64_t ac__type_new_;
16930 int
16931 main ()
16932 {
16933 if ((ac__type_new_ *) 0)
16934   return 0;
16935 if (sizeof (ac__type_new_))
16936   return 0;
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_compile") 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } &&
16955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; } &&
16965          { ac_try='test -s conftest.$ac_objext'
16966   { (case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971   (eval "$ac_try") 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975   ac_cv_type_u_int64_t=yes
16976 else
16977   echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980         ac_cv_type_u_int64_t=no
16981 fi
16982
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 fi
16985 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16986 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16987 if test $ac_cv_type_u_int64_t = yes; then
16988
16989 cat >>confdefs.h <<_ACEOF
16990 #define HAVE_U_INT64_T 1
16991 _ACEOF
16992
16993
16994 else
16995   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16996 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16997    { (exit 1); exit 1; }; }
16998 fi
16999
17000 fi
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17012 do
17013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17017   echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019   cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17027 #define $ac_func innocuous_$ac_func
17028
17029 /* System header to define __stub macros and hopefully few prototypes,
17030     which can conflict with char $ac_func (); below.
17031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032     <limits.h> exists even on freestanding compilers.  */
17033
17034 #ifdef __STDC__
17035 # include <limits.h>
17036 #else
17037 # include <assert.h>
17038 #endif
17039
17040 #undef $ac_func
17041
17042 /* Override any GCC internal prototype to avoid an error.
17043    Use char because int might match the return type of a GCC
17044    builtin and then its argument prototype would still apply.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 #endif
17048 char $ac_func ();
17049 /* The GNU C library defines this for functions which it implements
17050     to always fail with ENOSYS.  Some functions are actually named
17051     something starting with __ and the normal name is an alias.  */
17052 #if defined __stub_$ac_func || defined __stub___$ac_func
17053 choke me
17054 #endif
17055
17056 int
17057 main ()
17058 {
17059 return $ac_func ();
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_link") 2>conftest.er1
17072   ac_status=$?
17073   grep -v '^ *+' conftest.er1 >conftest.err
17074   rm -f conftest.er1
17075   cat conftest.err >&5
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079   { (case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_try") 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest$ac_exeext'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; }; then
17098   eval "$as_ac_var=yes"
17099 else
17100   echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103         eval "$as_ac_var=no"
17104 fi
17105
17106 rm -f core conftest.err conftest.$ac_objext \
17107       conftest$ac_exeext conftest.$ac_ext
17108 fi
17109 ac_res=`eval echo '${'$as_ac_var'}'`
17110                { echo "$as_me:$LINENO: result: $ac_res" >&5
17111 echo "${ECHO_T}$ac_res" >&6; }
17112 if test `eval echo '${'$as_ac_var'}'` = yes; then
17113   cat >>confdefs.h <<_ACEOF
17114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17115 _ACEOF
17116
17117 fi
17118 done
17119
17120
17121
17122
17123
17124 for ac_func in powf fmodf strtof round
17125 do
17126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17130   echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132   cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17140 #define $ac_func innocuous_$ac_func
17141
17142 /* System header to define __stub macros and hopefully few prototypes,
17143     which can conflict with char $ac_func (); below.
17144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17145     <limits.h> exists even on freestanding compilers.  */
17146
17147 #ifdef __STDC__
17148 # include <limits.h>
17149 #else
17150 # include <assert.h>
17151 #endif
17152
17153 #undef $ac_func
17154
17155 /* Override any GCC internal prototype to avoid an error.
17156    Use char because int might match the return type of a GCC
17157    builtin and then its argument prototype would still apply.  */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 char $ac_func ();
17162 /* The GNU C library defines this for functions which it implements
17163     to always fail with ENOSYS.  Some functions are actually named
17164     something starting with __ and the normal name is an alias.  */
17165 #if defined __stub_$ac_func || defined __stub___$ac_func
17166 choke me
17167 #endif
17168
17169 int
17170 main ()
17171 {
17172 return $ac_func ();
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (ac_try="$ac_link"
17179 case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184   (eval "$ac_link") 2>conftest.er1
17185   ac_status=$?
17186   grep -v '^ *+' conftest.er1 >conftest.err
17187   rm -f conftest.er1
17188   cat conftest.err >&5
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } &&
17191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17192   { (case "(($ac_try" in
17193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194   *) ac_try_echo=$ac_try;;
17195 esac
17196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197   (eval "$ac_try") 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; } &&
17201          { ac_try='test -s conftest$ac_exeext'
17202   { (case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_try") 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   eval "$as_ac_var=yes"
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216         eval "$as_ac_var=no"
17217 fi
17218
17219 rm -f core conftest.err conftest.$ac_objext \
17220       conftest$ac_exeext conftest.$ac_ext
17221 fi
17222 ac_res=`eval echo '${'$as_ac_var'}'`
17223                { echo "$as_me:$LINENO: result: $ac_res" >&5
17224 echo "${ECHO_T}$ac_res" >&6; }
17225 if test `eval echo '${'$as_ac_var'}'` = yes; then
17226   cat >>confdefs.h <<_ACEOF
17227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17228 _ACEOF
17229
17230 fi
17231 done
17232
17233
17234
17235
17236
17237
17238 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17239 do
17240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17254 #define $ac_func innocuous_$ac_func
17255
17256 /* System header to define __stub macros and hopefully few prototypes,
17257     which can conflict with char $ac_func (); below.
17258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259     <limits.h> exists even on freestanding compilers.  */
17260
17261 #ifdef __STDC__
17262 # include <limits.h>
17263 #else
17264 # include <assert.h>
17265 #endif
17266
17267 #undef $ac_func
17268
17269 /* Override any GCC internal prototype to avoid an error.
17270    Use char because int might match the return type of a GCC
17271    builtin and then its argument prototype would still apply.  */
17272 #ifdef __cplusplus
17273 extern "C"
17274 #endif
17275 char $ac_func ();
17276 /* The GNU C library defines this for functions which it implements
17277     to always fail with ENOSYS.  Some functions are actually named
17278     something starting with __ and the normal name is an alias.  */
17279 #if defined __stub_$ac_func || defined __stub___$ac_func
17280 choke me
17281 #endif
17282
17283 int
17284 main ()
17285 {
17286 return $ac_func ();
17287   ;
17288   return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295   *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298   (eval "$ac_link") 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306   { (case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_try") 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); }; } &&
17315          { ac_try='test -s conftest$ac_exeext'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; }; then
17325   eval "$as_ac_var=yes"
17326 else
17327   echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330         eval "$as_ac_var=no"
17331 fi
17332
17333 rm -f core conftest.err conftest.$ac_objext \
17334       conftest$ac_exeext conftest.$ac_ext
17335 fi
17336 ac_res=`eval echo '${'$as_ac_var'}'`
17337                { echo "$as_me:$LINENO: result: $ac_res" >&5
17338 echo "${ECHO_T}$ac_res" >&6; }
17339 if test `eval echo '${'$as_ac_var'}'` = yes; then
17340   cat >>confdefs.h <<_ACEOF
17341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17342 _ACEOF
17343
17344 fi
17345 done
17346
17347
17348
17349
17350 for ac_func in isatty mkdtemp mkstemp
17351 do
17352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17366 #define $ac_func innocuous_$ac_func
17367
17368 /* System header to define __stub macros and hopefully few prototypes,
17369     which can conflict with char $ac_func (); below.
17370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371     <limits.h> exists even on freestanding compilers.  */
17372
17373 #ifdef __STDC__
17374 # include <limits.h>
17375 #else
17376 # include <assert.h>
17377 #endif
17378
17379 #undef $ac_func
17380
17381 /* Override any GCC internal prototype to avoid an error.
17382    Use char because int might match the return type of a GCC
17383    builtin and then its argument prototype would still apply.  */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 char $ac_func ();
17388 /* The GNU C library defines this for functions which it implements
17389     to always fail with ENOSYS.  Some functions are actually named
17390     something starting with __ and the normal name is an alias.  */
17391 #if defined __stub_$ac_func || defined __stub___$ac_func
17392 choke me
17393 #endif
17394
17395 int
17396 main ()
17397 {
17398 return $ac_func ();
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_link") 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest$ac_exeext'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   eval "$as_ac_var=yes"
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         eval "$as_ac_var=no"
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext \
17446       conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 ac_res=`eval echo '${'$as_ac_var'}'`
17449                { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452   cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17455
17456 fi
17457 done
17458
17459
17460
17461
17462
17463
17464
17465
17466 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17467 do
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17482 #define $ac_func innocuous_$ac_func
17483
17484 /* System header to define __stub macros and hopefully few prototypes,
17485     which can conflict with char $ac_func (); below.
17486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487     <limits.h> exists even on freestanding compilers.  */
17488
17489 #ifdef __STDC__
17490 # include <limits.h>
17491 #else
17492 # include <assert.h>
17493 #endif
17494
17495 #undef $ac_func
17496
17497 /* Override any GCC internal prototype to avoid an error.
17498    Use char because int might match the return type of a GCC
17499    builtin and then its argument prototype would still apply.  */
17500 #ifdef __cplusplus
17501 extern "C"
17502 #endif
17503 char $ac_func ();
17504 /* The GNU C library defines this for functions which it implements
17505     to always fail with ENOSYS.  Some functions are actually named
17506     something starting with __ and the normal name is an alias.  */
17507 #if defined __stub_$ac_func || defined __stub___$ac_func
17508 choke me
17509 #endif
17510
17511 int
17512 main ()
17513 {
17514 return $ac_func ();
17515   ;
17516   return 0;
17517 }
17518 _ACEOF
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523   *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526   (eval "$ac_link") 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534   { (case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_try") 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; } &&
17543          { ac_try='test -s conftest$ac_exeext'
17544   { (case "(($ac_try" in
17545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546   *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549   (eval "$ac_try") 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; }; then
17553   eval "$as_ac_var=yes"
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558         eval "$as_ac_var=no"
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext \
17562       conftest$ac_exeext conftest.$ac_ext
17563 fi
17564 ac_res=`eval echo '${'$as_ac_var'}'`
17565                { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17568   cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17570 _ACEOF
17571
17572 fi
17573 done
17574
17575
17576
17577
17578
17579 for ac_func in strerror strerror_r setenv arc4random
17580 do
17581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17595 #define $ac_func innocuous_$ac_func
17596
17597 /* System header to define __stub macros and hopefully few prototypes,
17598     which can conflict with char $ac_func (); below.
17599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600     <limits.h> exists even on freestanding compilers.  */
17601
17602 #ifdef __STDC__
17603 # include <limits.h>
17604 #else
17605 # include <assert.h>
17606 #endif
17607
17608 #undef $ac_func
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611    Use char because int might match the return type of a GCC
17612    builtin and then its argument prototype would still apply.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char $ac_func ();
17617 /* The GNU C library defines this for functions which it implements
17618     to always fail with ENOSYS.  Some functions are actually named
17619     something starting with __ and the normal name is an alias.  */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17621 choke me
17622 #endif
17623
17624 int
17625 main ()
17626 {
17627 return $ac_func ();
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639   (eval "$ac_link") 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647   { (case "(($ac_try" in
17648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649   *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652   (eval "$ac_try") 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; } &&
17656          { ac_try='test -s conftest$ac_exeext'
17657   { (case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_try") 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; }; then
17666   eval "$as_ac_var=yes"
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671         eval "$as_ac_var=no"
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext \
17675       conftest$ac_exeext conftest.$ac_ext
17676 fi
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678                { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681   cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 _ACEOF
17684
17685 fi
17686 done
17687
17688
17689
17690
17691
17692 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17693 do
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698   echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700   cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17708 #define $ac_func innocuous_$ac_func
17709
17710 /* System header to define __stub macros and hopefully few prototypes,
17711     which can conflict with char $ac_func (); below.
17712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713     <limits.h> exists even on freestanding compilers.  */
17714
17715 #ifdef __STDC__
17716 # include <limits.h>
17717 #else
17718 # include <assert.h>
17719 #endif
17720
17721 #undef $ac_func
17722
17723 /* Override any GCC internal prototype to avoid an error.
17724    Use char because int might match the return type of a GCC
17725    builtin and then its argument prototype would still apply.  */
17726 #ifdef __cplusplus
17727 extern "C"
17728 #endif
17729 char $ac_func ();
17730 /* The GNU C library defines this for functions which it implements
17731     to always fail with ENOSYS.  Some functions are actually named
17732     something starting with __ and the normal name is an alias.  */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17734 choke me
17735 #endif
17736
17737 int
17738 main ()
17739 {
17740 return $ac_func ();
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_link") 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760   { (case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765   (eval "$ac_try") 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } &&
17769          { ac_try='test -s conftest$ac_exeext'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   eval "$as_ac_var=yes"
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784         eval "$as_ac_var=no"
17785 fi
17786
17787 rm -f core conftest.err conftest.$ac_objext \
17788       conftest$ac_exeext conftest.$ac_ext
17789 fi
17790 ac_res=`eval echo '${'$as_ac_var'}'`
17791                { echo "$as_me:$LINENO: result: $ac_res" >&5
17792 echo "${ECHO_T}$ac_res" >&6; }
17793 if test `eval echo '${'$as_ac_var'}'` = yes; then
17794   cat >>confdefs.h <<_ACEOF
17795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17796 _ACEOF
17797
17798 fi
17799 done
17800
17801
17802
17803
17804
17805
17806 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17807 do
17808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17822 #define $ac_func innocuous_$ac_func
17823
17824 /* System header to define __stub macros and hopefully few prototypes,
17825     which can conflict with char $ac_func (); below.
17826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17827     <limits.h> exists even on freestanding compilers.  */
17828
17829 #ifdef __STDC__
17830 # include <limits.h>
17831 #else
17832 # include <assert.h>
17833 #endif
17834
17835 #undef $ac_func
17836
17837 /* Override any GCC internal prototype to avoid an error.
17838    Use char because int might match the return type of a GCC
17839    builtin and then its argument prototype would still apply.  */
17840 #ifdef __cplusplus
17841 extern "C"
17842 #endif
17843 char $ac_func ();
17844 /* The GNU C library defines this for functions which it implements
17845     to always fail with ENOSYS.  Some functions are actually named
17846     something starting with __ and the normal name is an alias.  */
17847 #if defined __stub_$ac_func || defined __stub___$ac_func
17848 choke me
17849 #endif
17850
17851 int
17852 main ()
17853 {
17854 return $ac_func ();
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863   *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866   (eval "$ac_link") 2>conftest.er1
17867   ac_status=$?
17868   grep -v '^ *+' conftest.er1 >conftest.err
17869   rm -f conftest.er1
17870   cat conftest.err >&5
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); } &&
17873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17874   { (case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_try") 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); }; } &&
17883          { ac_try='test -s conftest$ac_exeext'
17884   { (case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_try") 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; }; then
17893   eval "$as_ac_var=yes"
17894 else
17895   echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898         eval "$as_ac_var=no"
17899 fi
17900
17901 rm -f core conftest.err conftest.$ac_objext \
17902       conftest$ac_exeext conftest.$ac_ext
17903 fi
17904 ac_res=`eval echo '${'$as_ac_var'}'`
17905                { echo "$as_me:$LINENO: result: $ac_res" >&5
17906 echo "${ECHO_T}$ac_res" >&6; }
17907 if test `eval echo '${'$as_ac_var'}'` = yes; then
17908   cat >>confdefs.h <<_ACEOF
17909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17910 _ACEOF
17911
17912 fi
17913 done
17914
17915 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17916 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17917 if test "${llvm_cv_c_printf_a+set}" = set; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920   ac_ext=c
17921 ac_cpp='$CPP $CPPFLAGS'
17922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17925
17926  if test "$cross_compiling" = yes; then
17927   llvmac_cv_c_printf_a=no
17928 else
17929   cat >conftest.$ac_ext <<_ACEOF
17930
17931   /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936
17937 #include <stdio.h>
17938 #include <stdlib.h>
17939
17940 int
17941 main ()
17942 {
17943
17944 volatile double A, B;
17945 char Buffer[100];
17946 A = 1;
17947 A /= 10.0;
17948 sprintf(Buffer, "%a", A);
17949 B = atof(Buffer);
17950 if (A != B)
17951   return (1);
17952 if (A != 0x1.999999999999ap-4)
17953   return (1);
17954 return (0);
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963   *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966   (eval "$ac_link") 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17970   { (case "(($ac_try" in
17971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972   *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975   (eval "$ac_try") 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   llvm_cv_c_printf_a=yes
17980 else
17981   echo "$as_me: program exited with status $ac_status" >&5
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 ( exit $ac_status )
17986 llvmac_cv_c_printf_a=no
17987 fi
17988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17989 fi
17990
17991
17992  ac_ext=c
17993 ac_cpp='$CPP $CPPFLAGS'
17994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17997
17998 fi
17999 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18000 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18001  if test "$llvm_cv_c_printf_a" = "yes"; then
18002
18003 cat >>confdefs.h <<\_ACEOF
18004 #define HAVE_PRINTF_A 1
18005 _ACEOF
18006
18007  fi
18008
18009
18010 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18011 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18012 if test "${ac_cv_func_rand48+set}" = set; then
18013   echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015   ac_ext=cpp
18016 ac_cpp='$CXXCPP $CPPFLAGS'
18017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020
18021    cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 #include <stdlib.h>
18028 int
18029 main ()
18030 {
18031 srand48(0);lrand48();drand48();
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext
18037 if { (ac_try="$ac_compile"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_compile") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18051   { (case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_try") 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); }; } &&
18060          { ac_try='test -s conftest.$ac_objext'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   ac_cv_func_rand48=yes
18071 else
18072   echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075         ac_cv_func_rand48=no
18076 fi
18077
18078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079   ac_ext=c
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18084
18085 fi
18086 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18087 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18088
18089 if test "$ac_cv_func_rand48" = "yes" ; then
18090
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_RAND48 1
18093 _ACEOF
18094
18095 fi
18096
18097
18098 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18099 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18100 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18101   echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103   cat >conftest.$ac_ext <<_ACEOF
18104 /* confdefs.h.  */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h.  */
18109 $ac_includes_default
18110 int
18111 main ()
18112 {
18113 #ifndef strerror_s
18114   char *p = (char *) strerror_s;
18115   return !p;
18116 #endif
18117
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_compile") 2>conftest.er1
18130   ac_status=$?
18131   grep -v '^ *+' conftest.er1 >conftest.err
18132   rm -f conftest.er1
18133   cat conftest.err >&5
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); } &&
18136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137   { (case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_try") 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; } &&
18146          { ac_try='test -s conftest.$ac_objext'
18147   { (case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_try") 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; }; then
18156   ac_cv_have_decl_strerror_s=yes
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161         ac_cv_have_decl_strerror_s=no
18162 fi
18163
18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165 fi
18166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18167 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18168 if test $ac_cv_have_decl_strerror_s = yes; then
18169
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_DECL_STRERROR_S 1
18172 _ACEOF
18173
18174
18175 else
18176   cat >>confdefs.h <<_ACEOF
18177 #define HAVE_DECL_STRERROR_S 0
18178 _ACEOF
18179
18180
18181 fi
18182
18183
18184
18185 if test "$llvm_cv_os_type" = "MingW" ; then
18186   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18187 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191   ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lgcc  $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h.  */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h.  */
18199
18200 /* Override any GCC internal prototype to avoid an error.
18201    Use char because int might match the return type of a GCC
18202    builtin and then its argument prototype would still apply.  */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 char _alloca ();
18207 int
18208 main ()
18209 {
18210 return _alloca ();
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_link") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } &&
18229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230   { (case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_try") 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; } &&
18239          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; }; then
18249   ac_cv_lib_gcc__alloca=yes
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         ac_cv_lib_gcc__alloca=no
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext \
18258       conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18260 fi
18261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18262 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18263 if test $ac_cv_lib_gcc__alloca = yes; then
18264
18265 cat >>confdefs.h <<\_ACEOF
18266 #define HAVE__ALLOCA 1
18267 _ACEOF
18268
18269 fi
18270
18271   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18272 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18273 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18274   echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276   ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-lgcc  $LIBS"
18278 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h.  */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h.  */
18284
18285 /* Override any GCC internal prototype to avoid an error.
18286    Use char because int might match the return type of a GCC
18287    builtin and then its argument prototype would still apply.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char __alloca ();
18292 int
18293 main ()
18294 {
18295 return __alloca ();
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (ac_try="$ac_link"
18302 case "(($ac_try" in
18303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304   *) ac_try_echo=$ac_try;;
18305 esac
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307   (eval "$ac_link") 2>conftest.er1
18308   ac_status=$?
18309   grep -v '^ *+' conftest.er1 >conftest.err
18310   rm -f conftest.er1
18311   cat conftest.err >&5
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); } &&
18314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18315   { (case "(($ac_try" in
18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317   *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320   (eval "$ac_try") 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); }; } &&
18324          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; }; then
18334   ac_cv_lib_gcc___alloca=yes
18335 else
18336   echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339         ac_cv_lib_gcc___alloca=no
18340 fi
18341
18342 rm -f core conftest.err conftest.$ac_objext \
18343       conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18345 fi
18346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18347 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18348 if test $ac_cv_lib_gcc___alloca = yes; then
18349
18350 cat >>confdefs.h <<\_ACEOF
18351 #define HAVE___ALLOCA 1
18352 _ACEOF
18353
18354 fi
18355
18356   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18357 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18358 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   ac_check_lib_save_LIBS=$LIBS
18362 LIBS="-lgcc  $LIBS"
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h.  */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h.  */
18369
18370 /* Override any GCC internal prototype to avoid an error.
18371    Use char because int might match the return type of a GCC
18372    builtin and then its argument prototype would still apply.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 char __chkstk ();
18377 int
18378 main ()
18379 {
18380 return __chkstk ();
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_link") 2>conftest.er1
18393   ac_status=$?
18394   grep -v '^ *+' conftest.er1 >conftest.err
18395   rm -f conftest.er1
18396   cat conftest.err >&5
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); } &&
18399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400   { (case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_try") 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; } &&
18409          { ac_try='test -s conftest$ac_exeext'
18410   { (case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_try") 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; }; then
18419   ac_cv_lib_gcc___chkstk=yes
18420 else
18421   echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424         ac_cv_lib_gcc___chkstk=no
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext \
18428       conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18430 fi
18431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18432 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18433 if test $ac_cv_lib_gcc___chkstk = yes; then
18434
18435 cat >>confdefs.h <<\_ACEOF
18436 #define HAVE___CHKSTK 1
18437 _ACEOF
18438
18439 fi
18440
18441   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18442 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18443 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18444   echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446   ac_check_lib_save_LIBS=$LIBS
18447 LIBS="-lgcc  $LIBS"
18448 cat >conftest.$ac_ext <<_ACEOF
18449 /* confdefs.h.  */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h.  */
18454
18455 /* Override any GCC internal prototype to avoid an error.
18456    Use char because int might match the return type of a GCC
18457    builtin and then its argument prototype would still apply.  */
18458 #ifdef __cplusplus
18459 extern "C"
18460 #endif
18461 char ___chkstk ();
18462 int
18463 main ()
18464 {
18465 return ___chkstk ();
18466   ;
18467   return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_link") 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } &&
18484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485   { (case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_try") 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; } &&
18494          { ac_try='test -s conftest$ac_exeext'
18495   { (case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_try") 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; }; then
18504   ac_cv_lib_gcc____chkstk=yes
18505 else
18506   echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509         ac_cv_lib_gcc____chkstk=no
18510 fi
18511
18512 rm -f core conftest.err conftest.$ac_objext \
18513       conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18515 fi
18516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18517 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18518 if test $ac_cv_lib_gcc____chkstk = yes; then
18519
18520 cat >>confdefs.h <<\_ACEOF
18521 #define HAVE____CHKSTK 1
18522 _ACEOF
18523
18524 fi
18525
18526
18527   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18528 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18529 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18530   echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532   ac_check_lib_save_LIBS=$LIBS
18533 LIBS="-lgcc  $LIBS"
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h.  */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h.  */
18540
18541 /* Override any GCC internal prototype to avoid an error.
18542    Use char because int might match the return type of a GCC
18543    builtin and then its argument prototype would still apply.  */
18544 #ifdef __cplusplus
18545 extern "C"
18546 #endif
18547 char __ashldi3 ();
18548 int
18549 main ()
18550 {
18551 return __ashldi3 ();
18552   ;
18553   return 0;
18554 }
18555 _ACEOF
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_link") 2>conftest.er1
18564   ac_status=$?
18565   grep -v '^ *+' conftest.er1 >conftest.err
18566   rm -f conftest.er1
18567   cat conftest.err >&5
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); } &&
18570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; } &&
18580          { ac_try='test -s conftest$ac_exeext'
18581   { (case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_try") 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; }; then
18590   ac_cv_lib_gcc___ashldi3=yes
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595         ac_cv_lib_gcc___ashldi3=no
18596 fi
18597
18598 rm -f core conftest.err conftest.$ac_objext \
18599       conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18601 fi
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18604 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18605
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE___ASHLDI3 1
18608 _ACEOF
18609
18610 fi
18611
18612   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18613 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18614 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   ac_check_lib_save_LIBS=$LIBS
18618 LIBS="-lgcc  $LIBS"
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625
18626 /* Override any GCC internal prototype to avoid an error.
18627    Use char because int might match the return type of a GCC
18628    builtin and then its argument prototype would still apply.  */
18629 #ifdef __cplusplus
18630 extern "C"
18631 #endif
18632 char __ashrdi3 ();
18633 int
18634 main ()
18635 {
18636 return __ashrdi3 ();
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (ac_try="$ac_link"
18643 case "(($ac_try" in
18644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645   *) ac_try_echo=$ac_try;;
18646 esac
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648   (eval "$ac_link") 2>conftest.er1
18649   ac_status=$?
18650   grep -v '^ *+' conftest.er1 >conftest.err
18651   rm -f conftest.er1
18652   cat conftest.err >&5
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656   { (case "(($ac_try" in
18657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658   *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661   (eval "$ac_try") 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; } &&
18665          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); }; }; then
18675   ac_cv_lib_gcc___ashrdi3=yes
18676 else
18677   echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18679
18680         ac_cv_lib_gcc___ashrdi3=no
18681 fi
18682
18683 rm -f core conftest.err conftest.$ac_objext \
18684       conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18686 fi
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18688 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18689 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE___ASHRDI3 1
18693 _ACEOF
18694
18695 fi
18696
18697   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18698 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18699 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   ac_check_lib_save_LIBS=$LIBS
18703 LIBS="-lgcc  $LIBS"
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710
18711 /* Override any GCC internal prototype to avoid an error.
18712    Use char because int might match the return type of a GCC
18713    builtin and then its argument prototype would still apply.  */
18714 #ifdef __cplusplus
18715 extern "C"
18716 #endif
18717 char __divdi3 ();
18718 int
18719 main ()
18720 {
18721 return __divdi3 ();
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (ac_try="$ac_link"
18728 case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_link") 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741   { (case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_try") 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; } &&
18750          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760   ac_cv_lib_gcc___divdi3=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765         ac_cv_lib_gcc___divdi3=no
18766 fi
18767
18768 rm -f core conftest.err conftest.$ac_objext \
18769       conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18771 fi
18772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18773 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18774 if test $ac_cv_lib_gcc___divdi3 = yes; then
18775
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE___DIVDI3 1
18778 _ACEOF
18779
18780 fi
18781
18782   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18783 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18784 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18785   echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787   ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lgcc  $LIBS"
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795
18796 /* Override any GCC internal prototype to avoid an error.
18797    Use char because int might match the return type of a GCC
18798    builtin and then its argument prototype would still apply.  */
18799 #ifdef __cplusplus
18800 extern "C"
18801 #endif
18802 char __fixdfdi ();
18803 int
18804 main ()
18805 {
18806 return __fixdfdi ();
18807   ;
18808   return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_link") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } &&
18825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18826   { (case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_try") 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; } &&
18835          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; }; then
18845   ac_cv_lib_gcc___fixdfdi=yes
18846 else
18847   echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850         ac_cv_lib_gcc___fixdfdi=no
18851 fi
18852
18853 rm -f core conftest.err conftest.$ac_objext \
18854       conftest$ac_exeext conftest.$ac_ext
18855 LIBS=$ac_check_lib_save_LIBS
18856 fi
18857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18858 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18859 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE___FIXDFDI 1
18863 _ACEOF
18864
18865 fi
18866
18867   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18868 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lgcc  $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880
18881 /* Override any GCC internal prototype to avoid an error.
18882    Use char because int might match the return type of a GCC
18883    builtin and then its argument prototype would still apply.  */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char __fixsfdi ();
18888 int
18889 main ()
18890 {
18891 return __fixsfdi ();
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_link") 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } &&
18910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911   { (case "(($ac_try" in
18912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913   *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916   (eval "$ac_try") 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; } &&
18920          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   ac_cv_lib_gcc___fixsfdi=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935         ac_cv_lib_gcc___fixsfdi=no
18936 fi
18937
18938 rm -f core conftest.err conftest.$ac_objext \
18939       conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18943 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18944 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18945
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE___FIXSFDI 1
18948 _ACEOF
18949
18950 fi
18951
18952   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18953 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18954 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957   ac_check_lib_save_LIBS=$LIBS
18958 LIBS="-lgcc  $LIBS"
18959 cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965
18966 /* Override any GCC internal prototype to avoid an error.
18967    Use char because int might match the return type of a GCC
18968    builtin and then its argument prototype would still apply.  */
18969 #ifdef __cplusplus
18970 extern "C"
18971 #endif
18972 char __floatdidf ();
18973 int
18974 main ()
18975 {
18976 return __floatdidf ();
18977   ;
18978   return 0;
18979 }
18980 _ACEOF
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (ac_try="$ac_link"
18983 case "(($ac_try" in
18984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985   *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988   (eval "$ac_link") 2>conftest.er1
18989   ac_status=$?
18990   grep -v '^ *+' conftest.er1 >conftest.err
18991   rm -f conftest.er1
18992   cat conftest.err >&5
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); } &&
18995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996   { (case "(($ac_try" in
18997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998   *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001   (eval "$ac_try") 2>&5
19002   ac_status=$?
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); }; } &&
19005          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; }; then
19015   ac_cv_lib_gcc___floatdidf=yes
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020         ac_cv_lib_gcc___floatdidf=no
19021 fi
19022
19023 rm -f core conftest.err conftest.$ac_objext \
19024       conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19026 fi
19027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19028 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19029 if test $ac_cv_lib_gcc___floatdidf = yes; then
19030
19031 cat >>confdefs.h <<\_ACEOF
19032 #define HAVE___FLOATDIDF 1
19033 _ACEOF
19034
19035 fi
19036
19037   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19038 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19039 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   ac_check_lib_save_LIBS=$LIBS
19043 LIBS="-lgcc  $LIBS"
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h.  */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h.  */
19050
19051 /* Override any GCC internal prototype to avoid an error.
19052    Use char because int might match the return type of a GCC
19053    builtin and then its argument prototype would still apply.  */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 char __lshrdi3 ();
19058 int
19059 main ()
19060 {
19061 return __lshrdi3 ();
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (ac_try="$ac_link"
19068 case "(($ac_try" in
19069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070   *) ac_try_echo=$ac_try;;
19071 esac
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073   (eval "$ac_link") 2>conftest.er1
19074   ac_status=$?
19075   grep -v '^ *+' conftest.er1 >conftest.err
19076   rm -f conftest.er1
19077   cat conftest.err >&5
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); } &&
19080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081   { (case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_try") 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); }; } &&
19090          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); }; }; then
19100   ac_cv_lib_gcc___lshrdi3=yes
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105         ac_cv_lib_gcc___lshrdi3=no
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext \
19109       conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19113 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19114 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19115
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE___LSHRDI3 1
19118 _ACEOF
19119
19120 fi
19121
19122   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19123 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19124 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lgcc  $LIBS"
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135
19136 /* Override any GCC internal prototype to avoid an error.
19137    Use char because int might match the return type of a GCC
19138    builtin and then its argument prototype would still apply.  */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 char __moddi3 ();
19143 int
19144 main ()
19145 {
19146 return __moddi3 ();
19147   ;
19148   return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_link") 2>conftest.er1
19159   ac_status=$?
19160   grep -v '^ *+' conftest.er1 >conftest.err
19161   rm -f conftest.er1
19162   cat conftest.err >&5
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); } &&
19165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19166   { (case "(($ac_try" in
19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168   *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171   (eval "$ac_try") 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; } &&
19175          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; }; then
19185   ac_cv_lib_gcc___moddi3=yes
19186 else
19187   echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190         ac_cv_lib_gcc___moddi3=no
19191 fi
19192
19193 rm -f core conftest.err conftest.$ac_objext \
19194       conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19196 fi
19197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19198 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19199 if test $ac_cv_lib_gcc___moddi3 = yes; then
19200
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE___MODDI3 1
19203 _ACEOF
19204
19205 fi
19206
19207   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19208 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19209 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   ac_check_lib_save_LIBS=$LIBS
19213 LIBS="-lgcc  $LIBS"
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220
19221 /* Override any GCC internal prototype to avoid an error.
19222    Use char because int might match the return type of a GCC
19223    builtin and then its argument prototype would still apply.  */
19224 #ifdef __cplusplus
19225 extern "C"
19226 #endif
19227 char __udivdi3 ();
19228 int
19229 main ()
19230 {
19231 return __udivdi3 ();
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (ac_try="$ac_link"
19238 case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_link") 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251   { (case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_try") 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; } &&
19260          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; }; then
19270   ac_cv_lib_gcc___udivdi3=yes
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275         ac_cv_lib_gcc___udivdi3=no
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext \
19279       conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19281 fi
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19283 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19284 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19285
19286 cat >>confdefs.h <<\_ACEOF
19287 #define HAVE___UDIVDI3 1
19288 _ACEOF
19289
19290 fi
19291
19292   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19293 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19294 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   ac_check_lib_save_LIBS=$LIBS
19298 LIBS="-lgcc  $LIBS"
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305
19306 /* Override any GCC internal prototype to avoid an error.
19307    Use char because int might match the return type of a GCC
19308    builtin and then its argument prototype would still apply.  */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 char __umoddi3 ();
19313 int
19314 main ()
19315 {
19316 return __umoddi3 ();
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 rm -f conftest.$ac_objext conftest$ac_exeext
19322 if { (ac_try="$ac_link"
19323 case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_link") 2>conftest.er1
19329   ac_status=$?
19330   grep -v '^ *+' conftest.er1 >conftest.err
19331   rm -f conftest.er1
19332   cat conftest.err >&5
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } &&
19335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19336   { (case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_try") 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; } &&
19345          { ac_try='test -s conftest$ac_exeext'
19346   { (case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_try") 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   ac_cv_lib_gcc___umoddi3=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360         ac_cv_lib_gcc___umoddi3=no
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext \
19364       conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19366 fi
19367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19368 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19369 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19370
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE___UMODDI3 1
19373 _ACEOF
19374
19375 fi
19376
19377
19378   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19379 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19380 if test "${ac_cv_lib_gcc___main+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   ac_check_lib_save_LIBS=$LIBS
19384 LIBS="-lgcc  $LIBS"
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391
19392 /* Override any GCC internal prototype to avoid an error.
19393    Use char because int might match the return type of a GCC
19394    builtin and then its argument prototype would still apply.  */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 char __main ();
19399 int
19400 main ()
19401 {
19402 return __main ();
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_link") 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422   { (case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_try") 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; } &&
19431          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_lib_gcc___main=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446         ac_cv_lib_gcc___main=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext \
19450       conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19454 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19455 if test $ac_cv_lib_gcc___main = yes; then
19456
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE___MAIN 1
19459 _ACEOF
19460
19461 fi
19462
19463   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19464 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19465 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_check_lib_save_LIBS=$LIBS
19469 LIBS="-lgcc  $LIBS"
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476
19477 /* Override any GCC internal prototype to avoid an error.
19478    Use char because int might match the return type of a GCC
19479    builtin and then its argument prototype would still apply.  */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 char __cmpdi2 ();
19484 int
19485 main ()
19486 {
19487 return __cmpdi2 ();
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } &&
19506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507   { (case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_try") 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; } &&
19516          { ac_try='test -s conftest$ac_exeext'
19517   { (case "(($ac_try" in
19518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519   *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522   (eval "$ac_try") 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; }; then
19526   ac_cv_lib_gcc___cmpdi2=yes
19527 else
19528   echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531         ac_cv_lib_gcc___cmpdi2=no
19532 fi
19533
19534 rm -f core conftest.err conftest.$ac_objext \
19535       conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19537 fi
19538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19539 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19540 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19541
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE___CMPDI2 1
19544 _ACEOF
19545
19546 fi
19547
19548 fi
19549
19550 if test "$llvm_cv_os_type" = "MingW" ; then
19551   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19552 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19553   cat >conftest.$ac_ext <<_ACEOF
19554 #include <windows.h>
19555 #include <imagehlp.h>
19556 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19557 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (ac_try="$ac_compile"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566   (eval "$ac_compile") 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19574   { (case "(($ac_try" in
19575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576   *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579   (eval "$ac_try") 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; } &&
19583          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593
19594   { echo "$as_me:$LINENO: result: yes" >&5
19595 echo "${ECHO_T}yes" >&6; }
19596   llvm_cv_win32_elmcb_pcstr="PCSTR"
19597
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602
19603   { echo "$as_me:$LINENO: result: no" >&5
19604 echo "${ECHO_T}no" >&6; }
19605   llvm_cv_win32_elmcb_pcstr="PSTR"
19606
19607 fi
19608
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610
19611 cat >>confdefs.h <<_ACEOF
19612 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19613 _ACEOF
19614
19615 fi
19616
19617
19618 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19619 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19620 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623   ac_ext=cpp
19624 ac_cpp='$CXXCPP $CPPFLAGS'
19625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19628
19629    cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635 #include <math.h>
19636 int
19637 main ()
19638 {
19639 float f; isnan(f);
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext
19645 if { (ac_try="$ac_compile"
19646 case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_compile") 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } &&
19658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19659   { (case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_try") 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }; } &&
19668          { ac_try='test -s conftest.$ac_objext'
19669   { (case "(($ac_try" in
19670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671   *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674   (eval "$ac_try") 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   ac_cv_func_isnan_in_math_h=yes
19679 else
19680   echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683         ac_cv_func_isnan_in_math_h=no
19684 fi
19685
19686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687   ac_ext=c
19688 ac_cpp='$CPP $CPPFLAGS'
19689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692
19693 fi
19694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19695 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19696
19697
19698 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19699
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_ISNAN_IN_MATH_H 1
19702 _ACEOF
19703
19704 fi
19705
19706 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19707 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19708 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   ac_ext=cpp
19712 ac_cpp='$CXXCPP $CPPFLAGS'
19713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19716
19717    cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 #include <cmath>
19724 int
19725 main ()
19726 {
19727 float f; isnan(f);
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739   (eval "$ac_compile") 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } &&
19746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19747   { (case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_try") 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; } &&
19756          { ac_try='test -s conftest.$ac_objext'
19757   { (case "(($ac_try" in
19758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759   *) ac_try_echo=$ac_try;;
19760 esac
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762   (eval "$ac_try") 2>&5
19763   ac_status=$?
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); }; }; then
19766   ac_cv_func_isnan_in_cmath=yes
19767 else
19768   echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771         ac_cv_func_isnan_in_cmath=no
19772 fi
19773
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775   ac_ext=c
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780
19781 fi
19782 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19783 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19784
19785 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19786
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_ISNAN_IN_CMATH 1
19789 _ACEOF
19790
19791 fi
19792
19793 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19794 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19795 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798   ac_ext=cpp
19799 ac_cpp='$CXXCPP $CPPFLAGS'
19800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19803
19804    cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 #include <cmath>
19811 int
19812 main ()
19813 {
19814 float f; std::isnan(f);
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_compile") 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19834   { (case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_try") 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; } &&
19843          { ac_try='test -s conftest.$ac_objext'
19844   { (case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_try") 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; }; then
19853   ac_cv_func_std_isnan_in_cmath=yes
19854 else
19855   echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19857
19858         ac_cv_func_std_isnan_in_cmath=no
19859 fi
19860
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862   ac_ext=c
19863 ac_cpp='$CPP $CPPFLAGS'
19864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
19868 fi
19869 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19870 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19871
19872 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19873
19874 cat >>confdefs.h <<\_ACEOF
19875 #define HAVE_STD_ISNAN_IN_CMATH 1
19876 _ACEOF
19877
19878 fi
19879
19880
19881 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19882 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19883 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19884   echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886   ac_ext=cpp
19887 ac_cpp='$CXXCPP $CPPFLAGS'
19888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19891
19892    cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 #include <math.h>
19899 int
19900 main ()
19901 {
19902 float f; isinf(f);
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_compile") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } &&
19921          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19922   { (case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_try") 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); }; } &&
19931          { ac_try='test -s conftest.$ac_objext'
19932   { (case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_try") 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   ac_cv_func_isinf_in_math_h=yes
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946         ac_cv_func_isinf_in_math_h=no
19947 fi
19948
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950   ac_ext=c
19951 ac_cpp='$CPP $CPPFLAGS'
19952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19955
19956 fi
19957 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19958 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19959
19960 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19961
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE_ISINF_IN_MATH_H 1
19964 _ACEOF
19965
19966 fi
19967
19968 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19969 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19970 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_ext=cpp
19974 ac_cpp='$CXXCPP $CPPFLAGS'
19975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19978
19979    cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h.  */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h.  */
19985 #include <cmath>
19986 int
19987 main ()
19988 {
19989 float f; isinf(f);
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_compile") 2>conftest.er1
20002   ac_status=$?
20003   grep -v '^ *+' conftest.er1 >conftest.err
20004   rm -f conftest.er1
20005   cat conftest.err >&5
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } &&
20008          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20009   { (case "(($ac_try" in
20010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011   *) ac_try_echo=$ac_try;;
20012 esac
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014   (eval "$ac_try") 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }; } &&
20018          { ac_try='test -s conftest.$ac_objext'
20019   { (case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_try") 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); }; }; then
20028   ac_cv_func_isinf_in_cmath=yes
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         ac_cv_func_isinf_in_cmath=no
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037   ac_ext=c
20038 ac_cpp='$CPP $CPPFLAGS'
20039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20042
20043 fi
20044 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20045 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20046
20047 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20048
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_ISINF_IN_CMATH 1
20051 _ACEOF
20052
20053 fi
20054
20055 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20056 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20057 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   ac_ext=cpp
20061 ac_cpp='$CXXCPP $CPPFLAGS'
20062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20065
20066    cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072 #include <cmath>
20073 int
20074 main ()
20075 {
20076 float f; std::isinf(f);
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_compile") 2>conftest.er1
20089   ac_status=$?
20090   grep -v '^ *+' conftest.er1 >conftest.err
20091   rm -f conftest.er1
20092   cat conftest.err >&5
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } &&
20095          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096   { (case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_try") 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111   (eval "$ac_try") 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; }; then
20115   ac_cv_func_std_isinf_in_cmath=yes
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120         ac_cv_func_std_isinf_in_cmath=no
20121 fi
20122
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124   ac_ext=c
20125 ac_cpp='$CPP $CPPFLAGS'
20126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20129
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20132 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20133
20134 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20135
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_STD_ISINF_IN_CMATH 1
20138 _ACEOF
20139
20140 fi
20141
20142 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20143 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20144 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   ac_ext=cpp
20148 ac_cpp='$CXXCPP $CPPFLAGS'
20149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20152
20153    cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159 #include <ieeefp.h>
20160 int
20161 main ()
20162 {
20163 float f; finite(f);
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext
20169 if { (ac_try="$ac_compile"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_compile") 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } &&
20182          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20183   { (case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_try") 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest.$ac_objext'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_cv_func_finite_in_ieeefp_h=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         ac_cv_func_finite_in_ieeefp_h=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211   ac_ext=c
20212 ac_cpp='$CPP $CPPFLAGS'
20213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20216
20217 fi
20218 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20219 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20220
20221 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20222
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE_FINITE_IN_IEEEFP_H 1
20225 _ACEOF
20226
20227 fi
20228
20229
20230
20231 if test "$llvm_cv_platform_type" = "Unix" ; then
20232
20233
20234 for ac_header in stdlib.h unistd.h
20235 do
20236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20238   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 fi
20243 ac_res=`eval echo '${'$as_ac_Header'}'`
20244                { echo "$as_me:$LINENO: result: $ac_res" >&5
20245 echo "${ECHO_T}$ac_res" >&6; }
20246 else
20247   # Is the header compilable?
20248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256 $ac_includes_default
20257 #include <$ac_header>
20258 _ACEOF
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266   (eval "$ac_compile") 2>conftest.er1
20267   ac_status=$?
20268   grep -v '^ *+' conftest.er1 >conftest.err
20269   rm -f conftest.er1
20270   cat conftest.err >&5
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } &&
20273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274   { (case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_try") 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; } &&
20283          { ac_try='test -s conftest.$ac_objext'
20284   { (case "(($ac_try" in
20285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286   *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289   (eval "$ac_try") 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_header_compiler=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_header_compiler=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20304
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 #include <$ac_header>
20315 _ACEOF
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319   *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323   ac_status=$?
20324   grep -v '^ *+' conftest.er1 >conftest.err
20325   rm -f conftest.er1
20326   cat conftest.err >&5
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } >/dev/null; then
20329   if test -s conftest.err; then
20330     ac_cpp_err=$ac_c_preproc_warn_flag
20331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20332   else
20333     ac_cpp_err=
20334   fi
20335 else
20336   ac_cpp_err=yes
20337 fi
20338 if test -z "$ac_cpp_err"; then
20339   ac_header_preproc=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344   ac_header_preproc=no
20345 fi
20346
20347 rm -f conftest.err conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20350
20351 # So?  What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353   yes:no: )
20354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358     ac_header_preproc=yes
20359     ;;
20360   no:yes:* )
20361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373     ( cat <<\_ASBOX
20374 ## ------------------------------------ ##
20375 ## Report this to http://llvm.org/bugs/ ##
20376 ## ------------------------------------ ##
20377 _ASBOX
20378      ) | sed "s/^/$as_me: WARNING:     /" >&2
20379     ;;
20380 esac
20381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20384   echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386   eval "$as_ac_Header=\$ac_header_preproc"
20387 fi
20388 ac_res=`eval echo '${'$as_ac_Header'}'`
20389                { echo "$as_me:$LINENO: result: $ac_res" >&5
20390 echo "${ECHO_T}$ac_res" >&6; }
20391
20392 fi
20393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20394   cat >>confdefs.h <<_ACEOF
20395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20396 _ACEOF
20397
20398 fi
20399
20400 done
20401
20402
20403 for ac_func in getpagesize
20404 do
20405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20419 #define $ac_func innocuous_$ac_func
20420
20421 /* System header to define __stub macros and hopefully few prototypes,
20422     which can conflict with char $ac_func (); below.
20423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424     <limits.h> exists even on freestanding compilers.  */
20425
20426 #ifdef __STDC__
20427 # include <limits.h>
20428 #else
20429 # include <assert.h>
20430 #endif
20431
20432 #undef $ac_func
20433
20434 /* Override any GCC internal prototype to avoid an error.
20435    Use char because int might match the return type of a GCC
20436    builtin and then its argument prototype would still apply.  */
20437 #ifdef __cplusplus
20438 extern "C"
20439 #endif
20440 char $ac_func ();
20441 /* The GNU C library defines this for functions which it implements
20442     to always fail with ENOSYS.  Some functions are actually named
20443     something starting with __ and the normal name is an alias.  */
20444 #if defined __stub_$ac_func || defined __stub___$ac_func
20445 choke me
20446 #endif
20447
20448 int
20449 main ()
20450 {
20451 return $ac_func ();
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_link") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20471   { (case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_try") 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; } &&
20480          { ac_try='test -s conftest$ac_exeext'
20481   { (case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_try") 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; }; then
20490   eval "$as_ac_var=yes"
20491 else
20492   echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20494
20495         eval "$as_ac_var=no"
20496 fi
20497
20498 rm -f core conftest.err conftest.$ac_objext \
20499       conftest$ac_exeext conftest.$ac_ext
20500 fi
20501 ac_res=`eval echo '${'$as_ac_var'}'`
20502                { echo "$as_me:$LINENO: result: $ac_res" >&5
20503 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_var'}'` = yes; then
20505   cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20507 _ACEOF
20508
20509 fi
20510 done
20511
20512 { echo "$as_me:$LINENO: checking for working mmap" >&5
20513 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20514 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   if test "$cross_compiling" = yes; then
20518   ac_cv_func_mmap_fixed_mapped=no
20519 else
20520   cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 $ac_includes_default
20527 /* malloc might have been renamed as rpl_malloc. */
20528 #undef malloc
20529
20530 /* Thanks to Mike Haertel and Jim Avera for this test.
20531    Here is a matrix of mmap possibilities:
20532         mmap private not fixed
20533         mmap private fixed at somewhere currently unmapped
20534         mmap private fixed at somewhere already mapped
20535         mmap shared not fixed
20536         mmap shared fixed at somewhere currently unmapped
20537         mmap shared fixed at somewhere already mapped
20538    For private mappings, we should verify that changes cannot be read()
20539    back from the file, nor mmap's back from the file at a different
20540    address.  (There have been systems where private was not correctly
20541    implemented like the infamous i386 svr4.0, and systems where the
20542    VM page cache was not coherent with the file system buffer cache
20543    like early versions of FreeBSD and possibly contemporary NetBSD.)
20544    For shared mappings, we should conversely verify that changes get
20545    propagated back to all the places they're supposed to be.
20546
20547    Grep wants private fixed already mapped.
20548    The main things grep needs to know about mmap are:
20549    * does it exist and is it safe to write into the mmap'd area
20550    * how to use it (BSD variants)  */
20551
20552 #include <fcntl.h>
20553 #include <sys/mman.h>
20554
20555 #if !STDC_HEADERS && !HAVE_STDLIB_H
20556 char *malloc ();
20557 #endif
20558
20559 /* This mess was copied from the GNU getpagesize.h.  */
20560 #if !HAVE_GETPAGESIZE
20561 /* Assume that all systems that can run configure have sys/param.h.  */
20562 # if !HAVE_SYS_PARAM_H
20563 #  define HAVE_SYS_PARAM_H 1
20564 # endif
20565
20566 # ifdef _SC_PAGESIZE
20567 #  define getpagesize() sysconf(_SC_PAGESIZE)
20568 # else /* no _SC_PAGESIZE */
20569 #  if HAVE_SYS_PARAM_H
20570 #   include <sys/param.h>
20571 #   ifdef EXEC_PAGESIZE
20572 #    define getpagesize() EXEC_PAGESIZE
20573 #   else /* no EXEC_PAGESIZE */
20574 #    ifdef NBPG
20575 #     define getpagesize() NBPG * CLSIZE
20576 #     ifndef CLSIZE
20577 #      define CLSIZE 1
20578 #     endif /* no CLSIZE */
20579 #    else /* no NBPG */
20580 #     ifdef NBPC
20581 #      define getpagesize() NBPC
20582 #     else /* no NBPC */
20583 #      ifdef PAGESIZE
20584 #       define getpagesize() PAGESIZE
20585 #      endif /* PAGESIZE */
20586 #     endif /* no NBPC */
20587 #    endif /* no NBPG */
20588 #   endif /* no EXEC_PAGESIZE */
20589 #  else /* no HAVE_SYS_PARAM_H */
20590 #   define getpagesize() 8192   /* punt totally */
20591 #  endif /* no HAVE_SYS_PARAM_H */
20592 # endif /* no _SC_PAGESIZE */
20593
20594 #endif /* no HAVE_GETPAGESIZE */
20595
20596 int
20597 main ()
20598 {
20599   char *data, *data2, *data3;
20600   int i, pagesize;
20601   int fd;
20602
20603   pagesize = getpagesize ();
20604
20605   /* First, make a file with some known garbage in it. */
20606   data = (char *) malloc (pagesize);
20607   if (!data)
20608     return 1;
20609   for (i = 0; i < pagesize; ++i)
20610     *(data + i) = rand ();
20611   umask (0);
20612   fd = creat ("conftest.mmap", 0600);
20613   if (fd < 0)
20614     return 1;
20615   if (write (fd, data, pagesize) != pagesize)
20616     return 1;
20617   close (fd);
20618
20619   /* Next, try to mmap the file at a fixed address which already has
20620      something else allocated at it.  If we can, also make sure that
20621      we see the same garbage.  */
20622   fd = open ("conftest.mmap", O_RDWR);
20623   if (fd < 0)
20624     return 1;
20625   data2 = (char *) malloc (2 * pagesize);
20626   if (!data2)
20627     return 1;
20628   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20629   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20630                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20631     return 1;
20632   for (i = 0; i < pagesize; ++i)
20633     if (*(data + i) != *(data2 + i))
20634       return 1;
20635
20636   /* Finally, make sure that changes to the mapped area do not
20637      percolate back to the file as seen by read().  (This is a bug on
20638      some variants of i386 svr4.0.)  */
20639   for (i = 0; i < pagesize; ++i)
20640     *(data2 + i) = *(data2 + i) + 1;
20641   data3 = (char *) malloc (pagesize);
20642   if (!data3)
20643     return 1;
20644   if (read (fd, data3, pagesize) != pagesize)
20645     return 1;
20646   for (i = 0; i < pagesize; ++i)
20647     if (*(data + i) != *(data3 + i))
20648       return 1;
20649   close (fd);
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest$ac_exeext
20654 if { (ac_try="$ac_link"
20655 case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_link") 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20664   { (case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_try") 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ac_cv_func_mmap_fixed_mapped=yes
20674 else
20675   echo "$as_me: program exited with status $ac_status" >&5
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ( exit $ac_status )
20680 ac_cv_func_mmap_fixed_mapped=no
20681 fi
20682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20683 fi
20684
20685
20686 fi
20687 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20688 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20689 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20690
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_MMAP 1
20693 _ACEOF
20694
20695 fi
20696 rm -f conftest.mmap
20697
20698   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20699 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20700 if test "${ac_cv_func_mmap_file+set}" = set; then
20701   echo $ECHO_N "(cached) $ECHO_C" >&6
20702 else
20703    ac_ext=c
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708
20709   if test "$cross_compiling" = yes; then
20710   ac_cv_func_mmap_file=no
20711 else
20712   cat >conftest.$ac_ext <<_ACEOF
20713
20714     /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719
20720 #include <sys/types.h>
20721 #include <sys/mman.h>
20722 #include <fcntl.h>
20723
20724 int
20725 main ()
20726 {
20727
20728   int fd;
20729   fd = creat ("foo",0777);
20730   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20731   unlink ("foo");
20732   return (fd != (int) MAP_FAILED);
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_link") 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748   { (case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_try") 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; }; then
20757   ac_cv_func_mmap_file=yes
20758 else
20759   echo "$as_me: program exited with status $ac_status" >&5
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763 ( exit $ac_status )
20764 ac_cv_func_mmap_file=no
20765 fi
20766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20767 fi
20768
20769
20770   ac_ext=c
20771 ac_cpp='$CPP $CPPFLAGS'
20772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20775
20776
20777 fi
20778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20779 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20780 if test "$ac_cv_func_mmap_file" = yes; then
20781
20782 cat >>confdefs.h <<\_ACEOF
20783 #define HAVE_MMAP_FILE
20784 _ACEOF
20785
20786    MMAP_FILE=yes
20787
20788 fi
20789
20790   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20791 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20792 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   if test "$llvm_cv_os_type" = "Interix" ; then
20796    ac_cv_need_dev_zero_for_mmap=yes
20797  else
20798    ac_cv_need_dev_zero_for_mmap=no
20799  fi
20800
20801 fi
20802 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20803 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20804 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20805
20806 cat >>confdefs.h <<\_ACEOF
20807 #define NEED_DEV_ZERO_FOR_MMAP 1
20808 _ACEOF
20809
20810 fi
20811
20812   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20813   then
20814     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20815 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20816   fi
20817   if test "$ac_cv_func_mmap_file" = "no"
20818   then
20819     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20820 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20821   fi
20822 fi
20823
20824 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20825 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20826 ac_ext=cpp
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 int main() {
20839         volatile unsigned long val = 1;
20840         __sync_synchronize();
20841         __sync_val_compare_and_swap(&val, 1, 0);
20842         __sync_add_and_fetch(&val, 1);
20843         __sync_sub_and_fetch(&val, 1);
20844         return 0;
20845       }
20846
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_link") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863   { (case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_try") 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest$ac_exeext'
20873   { (case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_try") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; }; then
20882   ac_ext=c
20883 ac_cpp='$CPP $CPPFLAGS'
20884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888   { echo "$as_me:$LINENO: result: yes" >&5
20889 echo "${ECHO_T}yes" >&6; }
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define LLVM_HAS_ATOMICS 1
20893 _ACEOF
20894
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899         { echo "$as_me:$LINENO: result: no" >&5
20900 echo "${ECHO_T}no" >&6; }
20901
20902 cat >>confdefs.h <<\_ACEOF
20903 #define LLVM_HAS_ATOMICS 0
20904 _ACEOF
20905
20906   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20907 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20908 fi
20909
20910 rm -f core conftest.err conftest.$ac_objext \
20911       conftest$ac_exeext conftest.$ac_ext
20912
20913
20914 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20915   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20916 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20917 if test "${llvm_cv_linux_mixed+set}" = set; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920    ac_ext=c
20921 ac_cpp='$CPP $CPPFLAGS'
20922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20925
20926   cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 #ifndef __x86_64__
20933        error: Not x86-64 even if uname says so!
20934       #endif
20935
20936 int
20937 main ()
20938 {
20939
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948   *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951   (eval "$ac_compile") 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959   { (case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_try") 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; } &&
20968          { ac_try='test -s conftest.$ac_objext'
20969   { (case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_try") 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; }; then
20978   llvm_cv_linux_mixed=no
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983         llvm_cv_linux_mixed=yes
20984 fi
20985
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987   ac_ext=c
20988 ac_cpp='$CPP $CPPFLAGS'
20989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20992
20993
20994 fi
20995 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20996 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20997
20998   if test "$llvm_cv_linux_mixed" = "yes"; then
20999     llvm_cv_target_arch="x86"
21000     ARCH="x86"
21001   fi
21002 fi
21003
21004
21005 for ac_func in __dso_handle
21006 do
21007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21011   echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21021 #define $ac_func innocuous_$ac_func
21022
21023 /* System header to define __stub macros and hopefully few prototypes,
21024     which can conflict with char $ac_func (); below.
21025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026     <limits.h> exists even on freestanding compilers.  */
21027
21028 #ifdef __STDC__
21029 # include <limits.h>
21030 #else
21031 # include <assert.h>
21032 #endif
21033
21034 #undef $ac_func
21035
21036 /* Override any GCC internal prototype to avoid an error.
21037    Use char because int might match the return type of a GCC
21038    builtin and then its argument prototype would still apply.  */
21039 #ifdef __cplusplus
21040 extern "C"
21041 #endif
21042 char $ac_func ();
21043 /* The GNU C library defines this for functions which it implements
21044     to always fail with ENOSYS.  Some functions are actually named
21045     something starting with __ and the normal name is an alias.  */
21046 #if defined __stub_$ac_func || defined __stub___$ac_func
21047 choke me
21048 #endif
21049
21050 int
21051 main ()
21052 {
21053 return $ac_func ();
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_link") 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } &&
21072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073   { (case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_try") 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); }; } &&
21082          { ac_try='test -s conftest$ac_exeext'
21083   { (case "(($ac_try" in
21084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085   *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088   (eval "$ac_try") 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; }; then
21092   eval "$as_ac_var=yes"
21093 else
21094   echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21096
21097         eval "$as_ac_var=no"
21098 fi
21099
21100 rm -f core conftest.err conftest.$ac_objext \
21101       conftest$ac_exeext conftest.$ac_ext
21102 fi
21103 ac_res=`eval echo '${'$as_ac_var'}'`
21104                { echo "$as_me:$LINENO: result: $ac_res" >&5
21105 echo "${ECHO_T}$ac_res" >&6; }
21106 if test `eval echo '${'$as_ac_var'}'` = yes; then
21107   cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21109 _ACEOF
21110
21111 fi
21112 done
21113
21114
21115 SHLIBEXT=$libltdl_cv_shlibext
21116
21117
21118 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21119
21120
21121 if test "${prefix}" = "NONE" ; then
21122   prefix="/usr/local"
21123 fi
21124 eval LLVM_PREFIX="${prefix}";
21125 eval LLVM_BINDIR="${prefix}/bin";
21126 eval LLVM_LIBDIR="${prefix}/lib";
21127 eval LLVM_DATADIR="${prefix}/share/llvm";
21128 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21129 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21130 eval LLVM_INCLUDEDIR="${prefix}/include";
21131 eval LLVM_INFODIR="${prefix}/info";
21132 eval LLVM_MANDIR="${prefix}/man";
21133 LLVM_CONFIGTIME=`date`
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21146   LLVM_CONFIGTIME="(timestamp not enabled)"
21147 fi
21148
21149
21150 cat >>confdefs.h <<_ACEOF
21151 #define LLVM_PREFIX "$LLVM_PREFIX"
21152 _ACEOF
21153
21154
21155 cat >>confdefs.h <<_ACEOF
21156 #define LLVM_BINDIR "$LLVM_BINDIR"
21157 _ACEOF
21158
21159
21160 cat >>confdefs.h <<_ACEOF
21161 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21162 _ACEOF
21163
21164
21165 cat >>confdefs.h <<_ACEOF
21166 #define LLVM_DATADIR "$LLVM_DATADIR"
21167 _ACEOF
21168
21169
21170 cat >>confdefs.h <<_ACEOF
21171 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21172 _ACEOF
21173
21174
21175 cat >>confdefs.h <<_ACEOF
21176 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21177 _ACEOF
21178
21179
21180 cat >>confdefs.h <<_ACEOF
21181 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21182 _ACEOF
21183
21184
21185 cat >>confdefs.h <<_ACEOF
21186 #define LLVM_INFODIR "$LLVM_INFODIR"
21187 _ACEOF
21188
21189
21190 cat >>confdefs.h <<_ACEOF
21191 #define LLVM_MANDIR "$LLVM_MANDIR"
21192 _ACEOF
21193
21194
21195 cat >>confdefs.h <<_ACEOF
21196 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21197 _ACEOF
21198
21199
21200 cat >>confdefs.h <<_ACEOF
21201 #define LLVM_HOSTTRIPLE "$host"
21202 _ACEOF
21203
21204
21205 cat >>confdefs.h <<_ACEOF
21206 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21207 _ACEOF
21208
21209
21210 if test "$BINDINGS_TO_BUILD" = auto ; then
21211   BINDINGS_TO_BUILD=""
21212   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21213     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21214   fi
21215 fi
21216 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21217
21218
21219 ALL_BINDINGS=ocaml
21220
21221
21222 binding_prereqs_failed=0
21223 for a_binding in $BINDINGS_TO_BUILD ; do
21224   case "$a_binding" in
21225   ocaml)
21226     if test "x$OCAMLC" = x ; then
21227       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21228 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21229       binding_prereqs_failed=1
21230     fi
21231     if test "x$OCAMLDEP" = x ; then
21232       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21234       binding_prereqs_failed=1
21235     fi
21236     if test "x$OCAMLOPT" = x ; then
21237       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21238 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21239           fi
21240     if test "x$with_ocaml_libdir" != xauto ; then
21241       OCAML_LIBDIR=$with_ocaml_libdir
21242
21243     else
21244       ocaml_stdlib="`"$OCAMLC" -where`"
21245       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21246       then
21247         # ocaml stdlib is beneath our prefix; use stdlib
21248         OCAML_LIBDIR=$ocaml_stdlib
21249
21250       else
21251         # ocaml stdlib is outside our prefix; use libdir/ocaml
21252         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21253
21254       fi
21255     fi
21256     ;;
21257   esac
21258 done
21259 if test "$binding_prereqs_failed" = 1 ; then
21260   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21261 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21262    { (exit 1); exit 1; }; }
21263 fi
21264
21265 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21266 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21267 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270    ac_ext=cpp
21271 ac_cpp='$CXXCPP $CPPFLAGS'
21272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21275
21276   oldcxxflags="$CXXFLAGS"
21277   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21278   cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21285 int
21286 main ()
21287 {
21288 X<int>().f();
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297   *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300   (eval "$ac_compile") 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21308   { (case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_try") 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; } &&
21317          { ac_try='test -s conftest.$ac_objext'
21318   { (case "(($ac_try" in
21319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320   *) ac_try_echo=$ac_try;;
21321 esac
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323   (eval "$ac_try") 2>&5
21324   ac_status=$?
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); }; }; then
21327   llvm_cv_cxx_visibility_inlines_hidden=yes
21328 else
21329   echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332         llvm_cv_cxx_visibility_inlines_hidden=no
21333 fi
21334
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336   CXXFLAGS="$oldcxxflags"
21337   ac_ext=c
21338 ac_cpp='$CPP $CPPFLAGS'
21339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21342
21343
21344 fi
21345 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21346 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21347 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21348   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21349
21350 else
21351   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21352
21353 fi
21354
21355
21356 if test "$llvm_cv_link_use_r" = "yes" ; then
21357   RPATH="-Wl,-R"
21358 else
21359   RPATH="-Wl,-rpath"
21360 fi
21361
21362
21363 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21364   RDYNAMIC="-Wl,-export-dynamic"
21365 else
21366   RDYNAMIC=""
21367 fi
21368
21369
21370
21371 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21372
21373
21374
21375
21376
21377
21378 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21379
21380 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21381
21382 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21383
21384 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21385
21386 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21387
21388
21389 ac_config_files="$ac_config_files Makefile.config"
21390
21391
21392 ac_config_files="$ac_config_files llvm.spec"
21393
21394
21395 ac_config_files="$ac_config_files docs/doxygen.cfg"
21396
21397
21398 if test "${clang_src_root}" = ""; then
21399   clang_src_root="$srcdir/tools/clang"
21400 fi
21401 if test -f ${clang_src_root}/README.txt; then
21402     configh="include/clang/Config/config.h"
21403   doxy="docs/doxygen.cfg"
21404   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21405
21406   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21407
21408 fi
21409
21410 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21411
21412
21413 test "x$program_prefix" = "xNONE" && program_prefix=""
21414
21415
21416
21417 ac_config_commands="$ac_config_commands setup"
21418
21419 ac_config_commands="$ac_config_commands Makefile"
21420
21421
21422 ac_config_commands="$ac_config_commands Makefile.common"
21423
21424
21425 ac_config_commands="$ac_config_commands examples/Makefile"
21426
21427
21428 ac_config_commands="$ac_config_commands lib/Makefile"
21429
21430
21431 ac_config_commands="$ac_config_commands runtime/Makefile"
21432
21433
21434 ac_config_commands="$ac_config_commands test/Makefile"
21435
21436
21437 ac_config_commands="$ac_config_commands test/Makefile.tests"
21438
21439
21440 ac_config_commands="$ac_config_commands unittests/Makefile"
21441
21442
21443 ac_config_commands="$ac_config_commands tools/Makefile"
21444
21445
21446 ac_config_commands="$ac_config_commands utils/Makefile"
21447
21448
21449 ac_config_commands="$ac_config_commands projects/Makefile"
21450
21451
21452 ac_config_commands="$ac_config_commands bindings/Makefile"
21453
21454
21455 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21456
21457
21458
21459 cat >confcache <<\_ACEOF
21460 # This file is a shell script that caches the results of configure
21461 # tests run on this system so they can be shared between configure
21462 # scripts and configure runs, see configure's option --config-cache.
21463 # It is not useful on other systems.  If it contains results you don't
21464 # want to keep, you may remove or edit it.
21465 #
21466 # config.status only pays attention to the cache file if you give it
21467 # the --recheck option to rerun configure.
21468 #
21469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21471 # following values.
21472
21473 _ACEOF
21474
21475 # The following way of writing the cache mishandles newlines in values,
21476 # but we know of no workaround that is simple, portable, and efficient.
21477 # So, we kill variables containing newlines.
21478 # Ultrix sh set writes to stderr and can't be redirected directly,
21479 # and sets the high bit in the cache file unless we assign to the vars.
21480 (
21481   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21482     eval ac_val=\$$ac_var
21483     case $ac_val in #(
21484     *${as_nl}*)
21485       case $ac_var in #(
21486       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21488       esac
21489       case $ac_var in #(
21490       _ | IFS | as_nl) ;; #(
21491       *) $as_unset $ac_var ;;
21492       esac ;;
21493     esac
21494   done
21495
21496   (set) 2>&1 |
21497     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21498     *${as_nl}ac_space=\ *)
21499       # `set' does not quote correctly, so add quotes (double-quote
21500       # substitution turns \\\\ into \\, and sed turns \\ into \).
21501       sed -n \
21502         "s/'/'\\\\''/g;
21503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21504       ;; #(
21505     *)
21506       # `set' quotes correctly as required by POSIX, so do not add quotes.
21507       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21508       ;;
21509     esac |
21510     sort
21511 ) |
21512   sed '
21513      /^ac_cv_env_/b end
21514      t clear
21515      :clear
21516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21517      t end
21518      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21519      :end' >>confcache
21520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21521   if test -w "$cache_file"; then
21522     test "x$cache_file" != "x/dev/null" &&
21523       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21524 echo "$as_me: updating cache $cache_file" >&6;}
21525     cat confcache >$cache_file
21526   else
21527     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21529   fi
21530 fi
21531 rm -f confcache
21532
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21536
21537 DEFS=-DHAVE_CONFIG_H
21538
21539 ac_libobjs=
21540 ac_ltlibobjs=
21541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21542   # 1. Remove the extension, and $U if already installed.
21543   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21544   ac_i=`echo "$ac_i" | sed "$ac_script"`
21545   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21546   #    will be set to the directory where LIBOBJS objects are built.
21547   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21548   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21549 done
21550 LIBOBJS=$ac_libobjs
21551
21552 LTLIBOBJS=$ac_ltlibobjs
21553
21554
21555 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21556   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21557 Usually this means the macro was only invoked conditionally." >&5
21558 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&2;}
21560    { (exit 1); exit 1; }; }
21561 fi
21562 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21563   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21564 Usually this means the macro was only invoked conditionally." >&5
21565 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&2;}
21567    { (exit 1); exit 1; }; }
21568 fi
21569
21570 : ${CONFIG_STATUS=./config.status}
21571 ac_clean_files_save=$ac_clean_files
21572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21575 cat >$CONFIG_STATUS <<_ACEOF
21576 #! $SHELL
21577 # Generated by $as_me.
21578 # Run this file to recreate the current configuration.
21579 # Compiler output produced by configure, useful for debugging
21580 # configure, is in config.log if it exists.
21581
21582 debug=false
21583 ac_cs_recheck=false
21584 ac_cs_silent=false
21585 SHELL=\${CONFIG_SHELL-$SHELL}
21586 _ACEOF
21587
21588 cat >>$CONFIG_STATUS <<\_ACEOF
21589 ## --------------------- ##
21590 ## M4sh Initialization.  ##
21591 ## --------------------- ##
21592
21593 # Be Bourne compatible
21594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21595   emulate sh
21596   NULLCMD=:
21597   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21598   # is contrary to our usage.  Disable this feature.
21599   alias -g '${1+"$@"}'='"$@"'
21600   setopt NO_GLOB_SUBST
21601 else
21602   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21603 fi
21604 BIN_SH=xpg4; export BIN_SH # for Tru64
21605 DUALCASE=1; export DUALCASE # for MKS sh
21606
21607
21608 # PATH needs CR
21609 # Avoid depending upon Character Ranges.
21610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21613 as_cr_digits='0123456789'
21614 as_cr_alnum=$as_cr_Letters$as_cr_digits
21615
21616 # The user is always right.
21617 if test "${PATH_SEPARATOR+set}" != set; then
21618   echo "#! /bin/sh" >conf$$.sh
21619   echo  "exit 0"   >>conf$$.sh
21620   chmod +x conf$$.sh
21621   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21622     PATH_SEPARATOR=';'
21623   else
21624     PATH_SEPARATOR=:
21625   fi
21626   rm -f conf$$.sh
21627 fi
21628
21629 # Support unset when possible.
21630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21631   as_unset=unset
21632 else
21633   as_unset=false
21634 fi
21635
21636
21637 # IFS
21638 # We need space, tab and new line, in precisely that order.  Quoting is
21639 # there to prevent editors from complaining about space-tab.
21640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21641 # splitting by setting IFS to empty value.)
21642 as_nl='
21643 '
21644 IFS=" ""        $as_nl"
21645
21646 # Find who we are.  Look in the path if we contain no directory separator.
21647 case $0 in
21648   *[\\/]* ) as_myself=$0 ;;
21649   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21650 for as_dir in $PATH
21651 do
21652   IFS=$as_save_IFS
21653   test -z "$as_dir" && as_dir=.
21654   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21655 done
21656 IFS=$as_save_IFS
21657
21658      ;;
21659 esac
21660 # We did not find ourselves, most probably we were run as `sh COMMAND'
21661 # in which case we are not to be found in the path.
21662 if test "x$as_myself" = x; then
21663   as_myself=$0
21664 fi
21665 if test ! -f "$as_myself"; then
21666   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21667   { (exit 1); exit 1; }
21668 fi
21669
21670 # Work around bugs in pre-3.0 UWIN ksh.
21671 for as_var in ENV MAIL MAILPATH
21672 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21673 done
21674 PS1='$ '
21675 PS2='> '
21676 PS4='+ '
21677
21678 # NLS nuisances.
21679 for as_var in \
21680   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21681   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21682   LC_TELEPHONE LC_TIME
21683 do
21684   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21685     eval $as_var=C; export $as_var
21686   else
21687     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21688   fi
21689 done
21690
21691 # Required to use basename.
21692 if expr a : '\(a\)' >/dev/null 2>&1 &&
21693    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21694   as_expr=expr
21695 else
21696   as_expr=false
21697 fi
21698
21699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21700   as_basename=basename
21701 else
21702   as_basename=false
21703 fi
21704
21705
21706 # Name of the executable.
21707 as_me=`$as_basename -- "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709          X"$0" : 'X\(//\)$' \| \
21710          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21711 echo X/"$0" |
21712     sed '/^.*\/\([^/][^/]*\)\/*$/{
21713             s//\1/
21714             q
21715           }
21716           /^X\/\(\/\/\)$/{
21717             s//\1/
21718             q
21719           }
21720           /^X\/\(\/\).*/{
21721             s//\1/
21722             q
21723           }
21724           s/.*/./; q'`
21725
21726 # CDPATH.
21727 $as_unset CDPATH
21728
21729
21730
21731   as_lineno_1=$LINENO
21732   as_lineno_2=$LINENO
21733   test "x$as_lineno_1" != "x$as_lineno_2" &&
21734   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21735
21736   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21737   # uniformly replaced by the line number.  The first 'sed' inserts a
21738   # line-number line after each line using $LINENO; the second 'sed'
21739   # does the real work.  The second script uses 'N' to pair each
21740   # line-number line with the line containing $LINENO, and appends
21741   # trailing '-' during substitution so that $LINENO is not a special
21742   # case at line end.
21743   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21744   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21745   # E. McMahon (1931-1989) for sed's syntax.  :-)
21746   sed -n '
21747     p
21748     /[$]LINENO/=
21749   ' <$as_myself |
21750     sed '
21751       s/[$]LINENO.*/&-/
21752       t lineno
21753       b
21754       :lineno
21755       N
21756       :loop
21757       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21758       t loop
21759       s/-\n.*//
21760     ' >$as_me.lineno &&
21761   chmod +x "$as_me.lineno" ||
21762     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21763    { (exit 1); exit 1; }; }
21764
21765   # Don't try to exec as it changes $[0], causing all sort of problems
21766   # (the dirname of $[0] is not the place where we might find the
21767   # original and so on.  Autoconf is especially sensitive to this).
21768   . "./$as_me.lineno"
21769   # Exit status is that of the last command.
21770   exit
21771 }
21772
21773
21774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21775   as_dirname=dirname
21776 else
21777   as_dirname=false
21778 fi
21779
21780 ECHO_C= ECHO_N= ECHO_T=
21781 case `echo -n x` in
21782 -n*)
21783   case `echo 'x\c'` in
21784   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21785   *)   ECHO_C='\c';;
21786   esac;;
21787 *)
21788   ECHO_N='-n';;
21789 esac
21790
21791 if expr a : '\(a\)' >/dev/null 2>&1 &&
21792    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21793   as_expr=expr
21794 else
21795   as_expr=false
21796 fi
21797
21798 rm -f conf$$ conf$$.exe conf$$.file
21799 if test -d conf$$.dir; then
21800   rm -f conf$$.dir/conf$$.file
21801 else
21802   rm -f conf$$.dir
21803   mkdir conf$$.dir
21804 fi
21805 echo >conf$$.file
21806 if ln -s conf$$.file conf$$ 2>/dev/null; then
21807   as_ln_s='ln -s'
21808   # ... but there are two gotchas:
21809   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21810   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21811   # In both cases, we have to default to `cp -p'.
21812   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21813     as_ln_s='cp -p'
21814 elif ln conf$$.file conf$$ 2>/dev/null; then
21815   as_ln_s=ln
21816 else
21817   as_ln_s='cp -p'
21818 fi
21819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21820 rmdir conf$$.dir 2>/dev/null
21821
21822 if mkdir -p . 2>/dev/null; then
21823   as_mkdir_p=:
21824 else
21825   test -d ./-p && rmdir ./-p
21826   as_mkdir_p=false
21827 fi
21828
21829 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21830 # systems may use methods other than mode bits to determine executability.
21831 cat >conf$$.file <<_ASEOF
21832 #! /bin/sh
21833 exit 0
21834 _ASEOF
21835 chmod +x conf$$.file
21836 if test -x conf$$.file >/dev/null 2>&1; then
21837   as_executable_p="test -x"
21838 else
21839   as_executable_p=:
21840 fi
21841 rm -f conf$$.file
21842
21843 # Sed expression to map a string onto a valid CPP name.
21844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21845
21846 # Sed expression to map a string onto a valid variable name.
21847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21848
21849
21850 exec 6>&1
21851
21852 # Save the log message, to keep $[0] and so on meaningful, and to
21853 # report actual input values of CONFIG_FILES etc. instead of their
21854 # values after options handling.
21855 ac_log="
21856 This file was extended by LLVM $as_me 3.2svn, which was
21857 generated by GNU Autoconf 2.60.  Invocation command line was
21858
21859   CONFIG_FILES    = $CONFIG_FILES
21860   CONFIG_HEADERS  = $CONFIG_HEADERS
21861   CONFIG_LINKS    = $CONFIG_LINKS
21862   CONFIG_COMMANDS = $CONFIG_COMMANDS
21863   $ $0 $@
21864
21865 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21866 "
21867
21868 _ACEOF
21869
21870 cat >>$CONFIG_STATUS <<_ACEOF
21871 # Files that config.status was made for.
21872 config_files="$ac_config_files"
21873 config_headers="$ac_config_headers"
21874 config_commands="$ac_config_commands"
21875
21876 _ACEOF
21877
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21879 ac_cs_usage="\
21880 \`$as_me' instantiates files from templates according to the
21881 current configuration.
21882
21883 Usage: $0 [OPTIONS] [FILE]...
21884
21885   -h, --help       print this help, then exit
21886   -V, --version    print version number, then exit
21887   -q, --quiet      do not print progress messages
21888   -d, --debug      don't remove temporary files
21889       --recheck    update $as_me by reconfiguring in the same conditions
21890   --file=FILE[:TEMPLATE]
21891                    instantiate the configuration file FILE
21892   --header=FILE[:TEMPLATE]
21893                    instantiate the configuration header FILE
21894
21895 Configuration files:
21896 $config_files
21897
21898 Configuration headers:
21899 $config_headers
21900
21901 Configuration commands:
21902 $config_commands
21903
21904 Report bugs to <bug-autoconf@gnu.org>."
21905
21906 _ACEOF
21907 cat >>$CONFIG_STATUS <<_ACEOF
21908 ac_cs_version="\\
21909 LLVM config.status 3.2svn
21910 configured by $0, generated by GNU Autoconf 2.60,
21911   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21912
21913 Copyright (C) 2006 Free Software Foundation, Inc.
21914 This config.status script is free software; the Free Software Foundation
21915 gives unlimited permission to copy, distribute and modify it."
21916
21917 ac_pwd='$ac_pwd'
21918 srcdir='$srcdir'
21919 INSTALL='$INSTALL'
21920 _ACEOF
21921
21922 cat >>$CONFIG_STATUS <<\_ACEOF
21923 # If no file are specified by the user, then we need to provide default
21924 # value.  By we need to know if files were specified by the user.
21925 ac_need_defaults=:
21926 while test $# != 0
21927 do
21928   case $1 in
21929   --*=*)
21930     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21931     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21932     ac_shift=:
21933     ;;
21934   *)
21935     ac_option=$1
21936     ac_optarg=$2
21937     ac_shift=shift
21938     ;;
21939   esac
21940
21941   case $ac_option in
21942   # Handling of the options.
21943   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21944     ac_cs_recheck=: ;;
21945   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21946     echo "$ac_cs_version"; exit ;;
21947   --debug | --debu | --deb | --de | --d | -d )
21948     debug=: ;;
21949   --file | --fil | --fi | --f )
21950     $ac_shift
21951     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21952     ac_need_defaults=false;;
21953   --header | --heade | --head | --hea )
21954     $ac_shift
21955     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21956     ac_need_defaults=false;;
21957   --he | --h)
21958     # Conflict between --help and --header
21959     { echo "$as_me: error: ambiguous option: $1
21960 Try \`$0 --help' for more information." >&2
21961    { (exit 1); exit 1; }; };;
21962   --help | --hel | -h )
21963     echo "$ac_cs_usage"; exit ;;
21964   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21965   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21966     ac_cs_silent=: ;;
21967
21968   # This is an error.
21969   -*) { echo "$as_me: error: unrecognized option: $1
21970 Try \`$0 --help' for more information." >&2
21971    { (exit 1); exit 1; }; } ;;
21972
21973   *) ac_config_targets="$ac_config_targets $1"
21974      ac_need_defaults=false ;;
21975
21976   esac
21977   shift
21978 done
21979
21980 ac_configure_extra_args=
21981
21982 if $ac_cs_silent; then
21983   exec 6>/dev/null
21984   ac_configure_extra_args="$ac_configure_extra_args --silent"
21985 fi
21986
21987 _ACEOF
21988 cat >>$CONFIG_STATUS <<_ACEOF
21989 if \$ac_cs_recheck; then
21990   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21991   CONFIG_SHELL=$SHELL
21992   export CONFIG_SHELL
21993   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21994 fi
21995
21996 _ACEOF
21997 cat >>$CONFIG_STATUS <<\_ACEOF
21998 exec 5>>config.log
21999 {
22000   echo
22001   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22002 ## Running $as_me. ##
22003 _ASBOX
22004   echo "$ac_log"
22005 } >&5
22006
22007 _ACEOF
22008 cat >>$CONFIG_STATUS <<_ACEOF
22009 #
22010 # INIT-COMMANDS
22011 #
22012 llvm_src="${srcdir}"
22013
22014 _ACEOF
22015
22016 cat >>$CONFIG_STATUS <<\_ACEOF
22017
22018 # Handling of arguments.
22019 for ac_config_target in $ac_config_targets
22020 do
22021   case $ac_config_target in
22022     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22023     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22024     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22025     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22026     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22027     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22028     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22029     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22030     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22031     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22032     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22033     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22034     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22035     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22036     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22037     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22038     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22039     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22040     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22041     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22042     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22043     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22044     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22045     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22046     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22047     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22048     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22049
22050   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22051 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22052    { (exit 1); exit 1; }; };;
22053   esac
22054 done
22055
22056
22057 # If the user did not use the arguments to specify the items to instantiate,
22058 # then the envvar interface is used.  Set only those that are not.
22059 # We use the long form for the default assignment because of an extremely
22060 # bizarre bug on SunOS 4.1.3.
22061 if $ac_need_defaults; then
22062   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22063   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22064   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22065 fi
22066
22067 # Have a temporary directory for convenience.  Make it in the build tree
22068 # simply because there is no reason against having it here, and in addition,
22069 # creating and moving files from /tmp can sometimes cause problems.
22070 # Hook for its removal unless debugging.
22071 # Note that there is a small window in which the directory will not be cleaned:
22072 # after its creation but before its name has been assigned to `$tmp'.
22073 $debug ||
22074 {
22075   tmp=
22076   trap 'exit_status=$?
22077   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22078 ' 0
22079   trap '{ (exit 1); exit 1; }' 1 2 13 15
22080 }
22081 # Create a (secure) tmp directory for tmp files.
22082
22083 {
22084   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22085   test -n "$tmp" && test -d "$tmp"
22086 }  ||
22087 {
22088   tmp=./conf$$-$RANDOM
22089   (umask 077 && mkdir "$tmp")
22090 } ||
22091 {
22092    echo "$me: cannot create a temporary directory in ." >&2
22093    { (exit 1); exit 1; }
22094 }
22095
22096 #
22097 # Set up the sed scripts for CONFIG_FILES section.
22098 #
22099
22100 # No need to generate the scripts if there are no CONFIG_FILES.
22101 # This happens for instance when ./config.status config.h
22102 if test -n "$CONFIG_FILES"; then
22103
22104 _ACEOF
22105
22106
22107
22108 ac_delim='%!_!# '
22109 for ac_last_try in false false false false false :; do
22110   cat >conf$$subs.sed <<_ACEOF
22111 SHELL!$SHELL$ac_delim
22112 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22113 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22114 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22115 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22116 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22117 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22118 exec_prefix!$exec_prefix$ac_delim
22119 prefix!$prefix$ac_delim
22120 program_transform_name!$program_transform_name$ac_delim
22121 bindir!$bindir$ac_delim
22122 sbindir!$sbindir$ac_delim
22123 libexecdir!$libexecdir$ac_delim
22124 datarootdir!$datarootdir$ac_delim
22125 datadir!$datadir$ac_delim
22126 sysconfdir!$sysconfdir$ac_delim
22127 sharedstatedir!$sharedstatedir$ac_delim
22128 localstatedir!$localstatedir$ac_delim
22129 includedir!$includedir$ac_delim
22130 oldincludedir!$oldincludedir$ac_delim
22131 docdir!$docdir$ac_delim
22132 infodir!$infodir$ac_delim
22133 htmldir!$htmldir$ac_delim
22134 dvidir!$dvidir$ac_delim
22135 pdfdir!$pdfdir$ac_delim
22136 psdir!$psdir$ac_delim
22137 libdir!$libdir$ac_delim
22138 localedir!$localedir$ac_delim
22139 mandir!$mandir$ac_delim
22140 DEFS!$DEFS$ac_delim
22141 ECHO_C!$ECHO_C$ac_delim
22142 ECHO_N!$ECHO_N$ac_delim
22143 ECHO_T!$ECHO_T$ac_delim
22144 LIBS!$LIBS$ac_delim
22145 build_alias!$build_alias$ac_delim
22146 host_alias!$host_alias$ac_delim
22147 target_alias!$target_alias$ac_delim
22148 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22149 CC!$CC$ac_delim
22150 CFLAGS!$CFLAGS$ac_delim
22151 LDFLAGS!$LDFLAGS$ac_delim
22152 CPPFLAGS!$CPPFLAGS$ac_delim
22153 ac_ct_CC!$ac_ct_CC$ac_delim
22154 EXEEXT!$EXEEXT$ac_delim
22155 OBJEXT!$OBJEXT$ac_delim
22156 CXX!$CXX$ac_delim
22157 CXXFLAGS!$CXXFLAGS$ac_delim
22158 ac_ct_CXX!$ac_ct_CXX$ac_delim
22159 CPP!$CPP$ac_delim
22160 subdirs!$subdirs$ac_delim
22161 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22162 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22163 build!$build$ac_delim
22164 build_cpu!$build_cpu$ac_delim
22165 build_vendor!$build_vendor$ac_delim
22166 build_os!$build_os$ac_delim
22167 host!$host$ac_delim
22168 host_cpu!$host_cpu$ac_delim
22169 host_vendor!$host_vendor$ac_delim
22170 host_os!$host_os$ac_delim
22171 target!$target$ac_delim
22172 target_cpu!$target_cpu$ac_delim
22173 target_vendor!$target_vendor$ac_delim
22174 target_os!$target_os$ac_delim
22175 OS!$OS$ac_delim
22176 HOST_OS!$HOST_OS$ac_delim
22177 TARGET_OS!$TARGET_OS$ac_delim
22178 LINKALL!$LINKALL$ac_delim
22179 NOLINKALL!$NOLINKALL$ac_delim
22180 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22181 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22182 ARCH!$ARCH$ac_delim
22183 HOST_ARCH!$HOST_ARCH$ac_delim
22184 ENDIAN!$ENDIAN$ac_delim
22185 GREP!$GREP$ac_delim
22186 EGREP!$EGREP$ac_delim
22187 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22188 BUILD_CC!$BUILD_CC$ac_delim
22189 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22190 BUILD_CXX!$BUILD_CXX$ac_delim
22191 CVSBUILD!$CVSBUILD$ac_delim
22192 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22193 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22194 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22195 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22196 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22197 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22198 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22199 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22200 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22201 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22202 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22203 JIT!$JIT$ac_delim
22204 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22205 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22206 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22207 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22208 _ACEOF
22209
22210   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22211     break
22212   elif $ac_last_try; then
22213     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22214 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22215    { (exit 1); exit 1; }; }
22216   else
22217     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22218   fi
22219 done
22220
22221 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22222 if test -n "$ac_eof"; then
22223   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22224   ac_eof=`expr $ac_eof + 1`
22225 fi
22226
22227 cat >>$CONFIG_STATUS <<_ACEOF
22228 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22230 _ACEOF
22231 sed '
22232 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22233 s/^/s,@/; s/!/@,|#_!!_#|/
22234 :n
22235 t n
22236 s/'"$ac_delim"'$/,g/; t
22237 s/$/\\/; p
22238 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22239 ' >>$CONFIG_STATUS <conf$$subs.sed
22240 rm -f conf$$subs.sed
22241 cat >>$CONFIG_STATUS <<_ACEOF
22242 CEOF$ac_eof
22243 _ACEOF
22244
22245
22246 ac_delim='%!_!# '
22247 for ac_last_try in false false false false false :; do
22248   cat >conf$$subs.sed <<_ACEOF
22249 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22250 ENABLE_PIC!$ENABLE_PIC$ac_delim
22251 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22252 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22253 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22254 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22255 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22256 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22257 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22258 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22259 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22260 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22261 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22262 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22263 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22264 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22265 NM!$NM$ac_delim
22266 ifGNUmake!$ifGNUmake$ac_delim
22267 LN_S!$LN_S$ac_delim
22268 CMP!$CMP$ac_delim
22269 CP!$CP$ac_delim
22270 DATE!$DATE$ac_delim
22271 FIND!$FIND$ac_delim
22272 MKDIR!$MKDIR$ac_delim
22273 MV!$MV$ac_delim
22274 RANLIB!$RANLIB$ac_delim
22275 AR!$AR$ac_delim
22276 RM!$RM$ac_delim
22277 SED!$SED$ac_delim
22278 TAR!$TAR$ac_delim
22279 BINPWD!$BINPWD$ac_delim
22280 GRAPHVIZ!$GRAPHVIZ$ac_delim
22281 DOT!$DOT$ac_delim
22282 FDP!$FDP$ac_delim
22283 NEATO!$NEATO$ac_delim
22284 TWOPI!$TWOPI$ac_delim
22285 CIRCO!$CIRCO$ac_delim
22286 GV!$GV$ac_delim
22287 DOTTY!$DOTTY$ac_delim
22288 XDOT_PY!$XDOT_PY$ac_delim
22289 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22290 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22291 INSTALL_DATA!$INSTALL_DATA$ac_delim
22292 BZIP2!$BZIP2$ac_delim
22293 CAT!$CAT$ac_delim
22294 DOXYGEN!$DOXYGEN$ac_delim
22295 GROFF!$GROFF$ac_delim
22296 GZIPBIN!$GZIPBIN$ac_delim
22297 PDFROFF!$PDFROFF$ac_delim
22298 ZIP!$ZIP$ac_delim
22299 OCAMLC!$OCAMLC$ac_delim
22300 OCAMLOPT!$OCAMLOPT$ac_delim
22301 OCAMLDEP!$OCAMLDEP$ac_delim
22302 OCAMLDOC!$OCAMLDOC$ac_delim
22303 GAS!$GAS$ac_delim
22304 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22305 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22306 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22307 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22308 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22309 LIBADD_DL!$LIBADD_DL$ac_delim
22310 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22311 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22312 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22313 USE_UDIS86!$USE_UDIS86$ac_delim
22314 USE_OPROFILE!$USE_OPROFILE$ac_delim
22315 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22316 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22317 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22318 XML2CONFIG!$XML2CONFIG$ac_delim
22319 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22320 LIBXML2_INC!$LIBXML2_INC$ac_delim
22321 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22322 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22323 MMAP_FILE!$MMAP_FILE$ac_delim
22324 SHLIBEXT!$SHLIBEXT$ac_delim
22325 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22326 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22327 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22328 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22329 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22330 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22331 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22332 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22333 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22334 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22335 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22336 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22337 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22338 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22339 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22340 RPATH!$RPATH$ac_delim
22341 RDYNAMIC!$RDYNAMIC$ac_delim
22342 program_prefix!$program_prefix$ac_delim
22343 LIBOBJS!$LIBOBJS$ac_delim
22344 LTLIBOBJS!$LTLIBOBJS$ac_delim
22345 _ACEOF
22346
22347   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
22348     break
22349   elif $ac_last_try; then
22350     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22351 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22352    { (exit 1); exit 1; }; }
22353   else
22354     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22355   fi
22356 done
22357
22358 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22359 if test -n "$ac_eof"; then
22360   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22361   ac_eof=`expr $ac_eof + 1`
22362 fi
22363
22364 cat >>$CONFIG_STATUS <<_ACEOF
22365 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22367 _ACEOF
22368 sed '
22369 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22370 s/^/s,@/; s/!/@,|#_!!_#|/
22371 :n
22372 t n
22373 s/'"$ac_delim"'$/,g/; t
22374 s/$/\\/; p
22375 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22376 ' >>$CONFIG_STATUS <conf$$subs.sed
22377 rm -f conf$$subs.sed
22378 cat >>$CONFIG_STATUS <<_ACEOF
22379 CEOF$ac_eof
22380 _ACEOF
22381
22382
22383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22385 # trailing colons and then remove the whole line if VPATH becomes empty
22386 # (actually we leave an empty line to preserve line numbers).
22387 if test "x$srcdir" = x.; then
22388   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22389 s/:*\$(srcdir):*/:/
22390 s/:*\${srcdir}:*/:/
22391 s/:*@srcdir@:*/:/
22392 s/^\([^=]*=[     ]*\):*/\1/
22393 s/:*$//
22394 s/^[^=]*=[       ]*$//
22395 }'
22396 fi
22397
22398 cat >>$CONFIG_STATUS <<\_ACEOF
22399 fi # test -n "$CONFIG_FILES"
22400
22401
22402 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22403 do
22404   case $ac_tag in
22405   :[FHLC]) ac_mode=$ac_tag; continue;;
22406   esac
22407   case $ac_mode$ac_tag in
22408   :[FHL]*:*);;
22409   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22410 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22411    { (exit 1); exit 1; }; };;
22412   :[FH]-) ac_tag=-:-;;
22413   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22414   esac
22415   ac_save_IFS=$IFS
22416   IFS=:
22417   set x $ac_tag
22418   IFS=$ac_save_IFS
22419   shift
22420   ac_file=$1
22421   shift
22422
22423   case $ac_mode in
22424   :L) ac_source=$1;;
22425   :[FH])
22426     ac_file_inputs=
22427     for ac_f
22428     do
22429       case $ac_f in
22430       -) ac_f="$tmp/stdin";;
22431       *) # Look for the file first in the build tree, then in the source tree
22432          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22433          # because $ac_f cannot contain `:'.
22434          test -f "$ac_f" ||
22435            case $ac_f in
22436            [\\/$]*) false;;
22437            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22438            esac ||
22439            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22440 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22441    { (exit 1); exit 1; }; };;
22442       esac
22443       ac_file_inputs="$ac_file_inputs $ac_f"
22444     done
22445
22446     # Let's still pretend it is `configure' which instantiates (i.e., don't
22447     # use $as_me), people would be surprised to read:
22448     #    /* config.h.  Generated by config.status.  */
22449     configure_input="Generated from "`IFS=:
22450           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22451     if test x"$ac_file" != x-; then
22452       configure_input="$ac_file.  $configure_input"
22453       { echo "$as_me:$LINENO: creating $ac_file" >&5
22454 echo "$as_me: creating $ac_file" >&6;}
22455     fi
22456
22457     case $ac_tag in
22458     *:-:* | *:-) cat >"$tmp/stdin";;
22459     esac
22460     ;;
22461   esac
22462
22463   ac_dir=`$as_dirname -- "$ac_file" ||
22464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22465          X"$ac_file" : 'X\(//\)[^/]' \| \
22466          X"$ac_file" : 'X\(//\)$' \| \
22467          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22468 echo X"$ac_file" |
22469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22470             s//\1/
22471             q
22472           }
22473           /^X\(\/\/\)[^/].*/{
22474             s//\1/
22475             q
22476           }
22477           /^X\(\/\/\)$/{
22478             s//\1/
22479             q
22480           }
22481           /^X\(\/\).*/{
22482             s//\1/
22483             q
22484           }
22485           s/.*/./; q'`
22486   { as_dir="$ac_dir"
22487   case $as_dir in #(
22488   -*) as_dir=./$as_dir;;
22489   esac
22490   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22491     as_dirs=
22492     while :; do
22493       case $as_dir in #(
22494       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22495       *) as_qdir=$as_dir;;
22496       esac
22497       as_dirs="'$as_qdir' $as_dirs"
22498       as_dir=`$as_dirname -- "$as_dir" ||
22499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22500          X"$as_dir" : 'X\(//\)[^/]' \| \
22501          X"$as_dir" : 'X\(//\)$' \| \
22502          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22503 echo X"$as_dir" |
22504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22505             s//\1/
22506             q
22507           }
22508           /^X\(\/\/\)[^/].*/{
22509             s//\1/
22510             q
22511           }
22512           /^X\(\/\/\)$/{
22513             s//\1/
22514             q
22515           }
22516           /^X\(\/\).*/{
22517             s//\1/
22518             q
22519           }
22520           s/.*/./; q'`
22521       test -d "$as_dir" && break
22522     done
22523     test -z "$as_dirs" || eval "mkdir $as_dirs"
22524   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22525 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22526    { (exit 1); exit 1; }; }; }
22527   ac_builddir=.
22528
22529 case "$ac_dir" in
22530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22531 *)
22532   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22533   # A ".." for each directory in $ac_dir_suffix.
22534   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22535   case $ac_top_builddir_sub in
22536   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22537   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22538   esac ;;
22539 esac
22540 ac_abs_top_builddir=$ac_pwd
22541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22542 # for backward compatibility:
22543 ac_top_builddir=$ac_top_build_prefix
22544
22545 case $srcdir in
22546   .)  # We are building in place.
22547     ac_srcdir=.
22548     ac_top_srcdir=$ac_top_builddir_sub
22549     ac_abs_top_srcdir=$ac_pwd ;;
22550   [\\/]* | ?:[\\/]* )  # Absolute name.
22551     ac_srcdir=$srcdir$ac_dir_suffix;
22552     ac_top_srcdir=$srcdir
22553     ac_abs_top_srcdir=$srcdir ;;
22554   *) # Relative name.
22555     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22556     ac_top_srcdir=$ac_top_build_prefix$srcdir
22557     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22558 esac
22559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22560
22561
22562   case $ac_mode in
22563   :F)
22564   #
22565   # CONFIG_FILE
22566   #
22567
22568   case $INSTALL in
22569   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22570   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22571   esac
22572 _ACEOF
22573
22574 cat >>$CONFIG_STATUS <<\_ACEOF
22575 # If the template does not know about datarootdir, expand it.
22576 # FIXME: This hack should be removed a few years after 2.60.
22577 ac_datarootdir_hack=; ac_datarootdir_seen=
22578
22579 case `sed -n '/datarootdir/ {
22580   p
22581   q
22582 }
22583 /@datadir@/p
22584 /@docdir@/p
22585 /@infodir@/p
22586 /@localedir@/p
22587 /@mandir@/p
22588 ' $ac_file_inputs` in
22589 *datarootdir*) ac_datarootdir_seen=yes;;
22590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22591   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22592 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22593 _ACEOF
22594 cat >>$CONFIG_STATUS <<_ACEOF
22595   ac_datarootdir_hack='
22596   s&@datadir@&$datadir&g
22597   s&@docdir@&$docdir&g
22598   s&@infodir@&$infodir&g
22599   s&@localedir@&$localedir&g
22600   s&@mandir@&$mandir&g
22601     s&\\\${datarootdir}&$datarootdir&g' ;;
22602 esac
22603 _ACEOF
22604
22605 # Neutralize VPATH when `$srcdir' = `.'.
22606 # Shell code in configure.ac might set extrasub.
22607 # FIXME: do we really want to maintain this feature?
22608 cat >>$CONFIG_STATUS <<_ACEOF
22609   sed "$ac_vpsub
22610 $extrasub
22611 _ACEOF
22612 cat >>$CONFIG_STATUS <<\_ACEOF
22613 :t
22614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22615 s&@configure_input@&$configure_input&;t t
22616 s&@top_builddir@&$ac_top_builddir_sub&;t t
22617 s&@srcdir@&$ac_srcdir&;t t
22618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22619 s&@top_srcdir@&$ac_top_srcdir&;t t
22620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22621 s&@builddir@&$ac_builddir&;t t
22622 s&@abs_builddir@&$ac_abs_builddir&;t t
22623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22624 s&@INSTALL@&$ac_INSTALL&;t t
22625 $ac_datarootdir_hack
22626 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
22627
22628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22629   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22630   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22631   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22632 which seems to be undefined.  Please make sure it is defined." >&5
22633 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22634 which seems to be undefined.  Please make sure it is defined." >&2;}
22635
22636   rm -f "$tmp/stdin"
22637   case $ac_file in
22638   -) cat "$tmp/out"; rm -f "$tmp/out";;
22639   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22640   esac
22641  ;;
22642   :H)
22643   #
22644   # CONFIG_HEADER
22645   #
22646 _ACEOF
22647
22648 # Transform confdefs.h into a sed script `conftest.defines', that
22649 # substitutes the proper values into config.h.in to produce config.h.
22650 rm -f conftest.defines conftest.tail
22651 # First, append a space to every undef/define line, to ease matching.
22652 echo 's/$/ /' >conftest.defines
22653 # Then, protect against being on the right side of a sed subst, or in
22654 # an unquoted here document, in config.status.  If some macros were
22655 # called several times there might be several #defines for the same
22656 # symbol, which is useless.  But do not sort them, since the last
22657 # AC_DEFINE must be honored.
22658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22659 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22660 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22661 # PARAMS is the parameter list in the macro definition--in most cases, it's
22662 # just an empty string.
22663 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22664 ac_dB='\\)[      (].*,\\1define\\2'
22665 ac_dC=' '
22666 ac_dD=' ,'
22667
22668 uniq confdefs.h |
22669   sed -n '
22670         t rset
22671         :rset
22672         s/^[     ]*#[    ]*define[       ][      ]*//
22673         t ok
22674         d
22675         :ok
22676         s/[\\&,]/\\&/g
22677         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22678         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22679   ' >>conftest.defines
22680
22681 # Remove the space that was appended to ease matching.
22682 # Then replace #undef with comments.  This is necessary, for
22683 # example, in the case of _POSIX_SOURCE, which is predefined and required
22684 # on some systems where configure will not decide to define it.
22685 # (The regexp can be short, since the line contains either #define or #undef.)
22686 echo 's/ $//
22687 s,^[     #]*u.*,/* & */,' >>conftest.defines
22688
22689 # Break up conftest.defines:
22690 ac_max_sed_lines=50
22691
22692 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22693 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22694 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22695 # et cetera.
22696 ac_in='$ac_file_inputs'
22697 ac_out='"$tmp/out1"'
22698 ac_nxt='"$tmp/out2"'
22699
22700 while :
22701 do
22702   # Write a here document:
22703     cat >>$CONFIG_STATUS <<_ACEOF
22704     # First, check the format of the line:
22705     cat >"\$tmp/defines.sed" <<\\CEOF
22706 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22707 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22708 b
22709 :def
22710 _ACEOF
22711   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22712   echo 'CEOF
22713     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22714   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22715   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22716   grep . conftest.tail >/dev/null || break
22717   rm -f conftest.defines
22718   mv conftest.tail conftest.defines
22719 done
22720 rm -f conftest.defines conftest.tail
22721
22722 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724   if test x"$ac_file" != x-; then
22725     echo "/* $configure_input  */" >"$tmp/config.h"
22726     cat "$ac_result" >>"$tmp/config.h"
22727     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22728       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22729 echo "$as_me: $ac_file is unchanged" >&6;}
22730     else
22731       rm -f $ac_file
22732       mv "$tmp/config.h" $ac_file
22733     fi
22734   else
22735     echo "/* $configure_input  */"
22736     cat "$ac_result"
22737   fi
22738   rm -f "$tmp/out12"
22739  ;;
22740
22741   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22742 echo "$as_me: executing $ac_file commands" >&6;}
22743  ;;
22744   esac
22745
22746
22747   case $ac_file$ac_mode in
22748     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22749    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22750     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22751    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22752     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22753    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22754     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22755    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22756     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22757    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22758     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22759    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22760     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22761    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22762     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22763    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22764     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22765    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22766     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22767    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22768     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22769    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22770     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22771    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22772     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22773    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22774
22775   esac
22776 done # for ac_tag
22777
22778
22779 { (exit 0); exit 0; }
22780 _ACEOF
22781 chmod +x $CONFIG_STATUS
22782 ac_clean_files=$ac_clean_files_save
22783
22784
22785 # configure is writing to config.log, and then calls config.status.
22786 # config.status does its own redirection, appending to config.log.
22787 # Unfortunately, on DOS this fails, as config.log is still kept open
22788 # by configure, so config.status won't be able to write to it; its
22789 # output is simply discarded.  So we exec the FD to /dev/null,
22790 # effectively closing config.log, so it can be properly (re)opened and
22791 # appended to by config.status.  When coming back to configure, we
22792 # need to make the FD available again.
22793 if test "$no_create" != yes; then
22794   ac_cs_success=:
22795   ac_config_status_args=
22796   test "$silent" = yes &&
22797     ac_config_status_args="$ac_config_status_args --quiet"
22798   exec 5>/dev/null
22799   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22800   exec 5>>config.log
22801   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22802   # would make configure fail if this is the last instruction.
22803   $ac_cs_success || { (exit 1); exit 1; }
22804 fi
22805
22806 #
22807 # CONFIG_SUBDIRS section.
22808 #
22809 if test "$no_recursion" != yes; then
22810
22811   # Remove --cache-file and --srcdir arguments so they do not pile up.
22812   ac_sub_configure_args=
22813   ac_prev=
22814   eval "set x $ac_configure_args"
22815   shift
22816   for ac_arg
22817   do
22818     if test -n "$ac_prev"; then
22819       ac_prev=
22820       continue
22821     fi
22822     case $ac_arg in
22823     -cache-file | --cache-file | --cache-fil | --cache-fi \
22824     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22825       ac_prev=cache_file ;;
22826     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22827     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22828     | --c=*)
22829       ;;
22830     --config-cache | -C)
22831       ;;
22832     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22833       ac_prev=srcdir ;;
22834     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22835       ;;
22836     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22837       ac_prev=prefix ;;
22838     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22839       ;;
22840     *)
22841       case $ac_arg in
22842       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22843       esac
22844       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22845     esac
22846   done
22847
22848   # Always prepend --prefix to ensure using the same prefix
22849   # in subdir configurations.
22850   ac_arg="--prefix=$prefix"
22851   case $ac_arg in
22852   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22853   esac
22854   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22855
22856   ac_popdir=`pwd`
22857   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22858
22859     # Do not complain, so a configure script can configure whichever
22860     # parts of a large source tree are present.
22861     test -d "$srcdir/$ac_dir" || continue
22862
22863     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22864     echo "$as_me:$LINENO: $ac_msg" >&5
22865     echo "$ac_msg" >&6
22866     { as_dir="$ac_dir"
22867   case $as_dir in #(
22868   -*) as_dir=./$as_dir;;
22869   esac
22870   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22871     as_dirs=
22872     while :; do
22873       case $as_dir in #(
22874       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22875       *) as_qdir=$as_dir;;
22876       esac
22877       as_dirs="'$as_qdir' $as_dirs"
22878       as_dir=`$as_dirname -- "$as_dir" ||
22879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22880          X"$as_dir" : 'X\(//\)[^/]' \| \
22881          X"$as_dir" : 'X\(//\)$' \| \
22882          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22883 echo X"$as_dir" |
22884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22885             s//\1/
22886             q
22887           }
22888           /^X\(\/\/\)[^/].*/{
22889             s//\1/
22890             q
22891           }
22892           /^X\(\/\/\)$/{
22893             s//\1/
22894             q
22895           }
22896           /^X\(\/\).*/{
22897             s//\1/
22898             q
22899           }
22900           s/.*/./; q'`
22901       test -d "$as_dir" && break
22902     done
22903     test -z "$as_dirs" || eval "mkdir $as_dirs"
22904   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22905 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22906    { (exit 1); exit 1; }; }; }
22907     ac_builddir=.
22908
22909 case "$ac_dir" in
22910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22911 *)
22912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22913   # A ".." for each directory in $ac_dir_suffix.
22914   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22915   case $ac_top_builddir_sub in
22916   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22917   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22918   esac ;;
22919 esac
22920 ac_abs_top_builddir=$ac_pwd
22921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22922 # for backward compatibility:
22923 ac_top_builddir=$ac_top_build_prefix
22924
22925 case $srcdir in
22926   .)  # We are building in place.
22927     ac_srcdir=.
22928     ac_top_srcdir=$ac_top_builddir_sub
22929     ac_abs_top_srcdir=$ac_pwd ;;
22930   [\\/]* | ?:[\\/]* )  # Absolute name.
22931     ac_srcdir=$srcdir$ac_dir_suffix;
22932     ac_top_srcdir=$srcdir
22933     ac_abs_top_srcdir=$srcdir ;;
22934   *) # Relative name.
22935     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22936     ac_top_srcdir=$ac_top_build_prefix$srcdir
22937     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22938 esac
22939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22940
22941
22942     cd "$ac_dir"
22943
22944     # Check for guested configure; otherwise get Cygnus style configure.
22945     if test -f "$ac_srcdir/configure.gnu"; then
22946       ac_sub_configure=$ac_srcdir/configure.gnu
22947     elif test -f "$ac_srcdir/configure"; then
22948       ac_sub_configure=$ac_srcdir/configure
22949     elif test -f "$ac_srcdir/configure.in"; then
22950       # This should be Cygnus configure.
22951       ac_sub_configure=$ac_aux_dir/configure
22952     else
22953       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22955       ac_sub_configure=
22956     fi
22957
22958     # The recursion is here.
22959     if test -n "$ac_sub_configure"; then
22960       # Make the cache file name correct relative to the subdirectory.
22961       case $cache_file in
22962       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22963       *) # Relative name.
22964         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22965       esac
22966
22967       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22968 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22969       # The eval makes quoting arguments work.
22970       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22971            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22972         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22973 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22974    { (exit 1); exit 1; }; }
22975     fi
22976
22977     cd "$ac_popdir"
22978   done
22979 fi
22980